LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-13-2007, 06:21 AM   #1
_phenix_
LQ Newbie
 
Registered: Nov 2007
Posts: 7

Rep: Reputation: 0
Question [solved] Dual Port FC HBA failover on Debian?


Hi Forum,

i used the search function but didn't really find something that helps me out.

I am using a dual port fibre channel hba (emulex) to connect my server to the fc-san, devices are correctly identified by the lpfc module as "/dev/sda" and "/dev/sdb". The only problem remaining for me is now, how can i set up the hba, so he uses them either active/active or active/passive? the server is a hp server where binary packages for suse and rhel exist.

any help, rtfm's or links to information i overlooked would be appreciated.

thx
_phenix_

Last edited by _phenix_; 11-13-2007 at 11:36 AM.
 
Old 11-13-2007, 06:31 AM   #2
stokes
Member
 
Registered: Oct 2005
Location: UK
Posts: 31

Rep: Reputation: 15
Not sure about emulex, but for qlogic cards on hp servers you have to use a specific driver to put the card into either active-active or failover mode. I had some problems with this recently so know a little about it. With the qlogic cards you can tell which mode they are in by viewing the output of cat /proc/scsi/qlaxxxx/0 or 1, grep for fo which indicates the card is configured as a failover. Maybe this will help?!
 
Old 11-13-2007, 06:52 AM   #3
_phenix_
LQ Newbie
 
Registered: Nov 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Hi stokes,

i haven't got any /proc/scsi/qla*,
all information i found out in /proc/scsi was:
Code:
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: HITACHI  Model: OPEN-V*2         Rev: 5009
  Type:   Direct-Access                    ANSI  SCSI revision: 03
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: HITACHI  Model: OPEN-V*2         Rev: 5009
  Type:   Direct-Access                    ANSI  SCSI revision: 03
where scsi0/1 are the two hba ports, hitachi is the san in the background. i don't know if the "direct-access" type has something to do with this, but if it has, i'll post it in here.
 
Old 11-13-2007, 08:47 AM   #4
stokes
Member
 
Registered: Oct 2005
Location: UK
Posts: 31

Rep: Reputation: 15
qla is for qlogic cards only, which is why you don't have it on your server. What do you have if you "ls /proc/scsi/*" ?
 
Old 11-13-2007, 09:29 AM   #5
_phenix_
LQ Newbie
 
Registered: Nov 2007
Posts: 7

Original Poster
Rep: Reputation: 0
only "/proc/scsi/scsi" where i posted the cat-output above.

according to a colleague of mine, qlogic-cards could be configured for failover in modules.conf with ql2xfailover=1.

Only that neither debian has no modules.conf nor can i find the right parameters that could be put in a relevant file (whilst searching the emulex documentation).
 
Old 11-13-2007, 11:36 AM   #6
_phenix_
LQ Newbie
 
Registered: Nov 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Debian automatically identifies the dual-port HBA with the kernel module lpfc, all i had to do was search for a software-raid solution that supported multipathing.

the tool is called mdadm and with the following command a new "raid"-device can be created and after filesystem-creation normally mounted.

[code]
mdadm -Cv /dev/md0 --level=multipath -n2 /dev/sda /dev/sdb
[code]

i still have to test the stability of the driver, but so far it looks good.

thx
_phenix_

EDIT: admins could place a "solved" tag or whatever in front of the thread, with usual thread-editing it doesn't seem to work

Last edited by _phenix_; 11-13-2007 at 11:37 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Virtual Machine Replication & Failover with VMWare Server & Debian Etch (4.0) LXer Syndicated Linux News 0 08-19-2007 02:50 PM
QLA2462 dual port 4Gb/s FC HBA, Red Hat EL 4 update 4 hardware false detect stvy Linux - Enterprise 2 03-22-2007 09:45 AM
debian iptables squid - redirect port 80 to port 8080 on another machine nickleus Linux - Networking 1 08-17-2006 01:59 AM
Setup Dual nics for load balancing/failover thistleair Linux - Networking 4 05-11-2005 03:15 PM
How to enable HBA failover nerissar Linux - Hardware 1 03-24-2004 04:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration