Operating System - Linux
1757091 Members
2175 Online
108858 Solutions
New Discussion

Re: How to find the Fiber channel card's WWN number in Redhat Linux

 
Ratheesh.G
Occasional Contributor

How to find the Fiber channel card's WWN number in Redhat Linux

Hi Team,
I have one redhat Linux box (HP DL580G5). Now I am in a need for connecting SAN disks to this serer. Can anyone tell me that how can check that is there any Fiber card installed on the server and if installed how can we find out the wwn number for that card. I am not good in Linux I am basically from HP-UX support team.

Thank in advance..
Ratheesh
2 REPLIES 2
John McNulty_2
Frequent Advisor

Re: How to find the Fiber channel card's WWN number in Redhat Linux

That's a coincidence, I just posted an answer to the same question in another thread here, so I can just cut 'n paste ...

On Redhat 5 do:

# systool -c fc_host -v

If you want to see info about the WWIDs on the other end of your link do:

# systool -c fc_transport -v

Another useful tip: you can use the port_id number to find out the Domain ID and port number of the FC Switch you're connected to. The first two numbers are the ID and the next two the port. Just convert from hex to decimal. e.g.

port_id = "0x2C1100"

# bc
ibase=16
2C
44 <-- domain ID
11
17 <-- port number

There are a couple of Redhat knowledgebase articles on this subject you might like to read too.

http://kbase.redhat.com/faq/docs/DOC-19446

http://kbase.redhat.com/faq/docs/DOC-19446

http://kbase.redhat.com/faq/docs/DOC-9937

John McNulty_2
Frequent Advisor

Re: How to find the Fiber channel card's WWN number in Redhat Linux

Some other resources that you're going to need:

Drivers and software downloads for the DL580 G5 are here. Just pick your Linux distro/version:

http://h20000.www2.hp.com/bizsupport/TechSupport/DriverDownload.jsp?prodNameId=3562405〈=en&cc=us&taskId=135&prodClassId=-1&prodTypeId=15351&prodSeriesId=3454575

You're also going to need the HP Device Mapper Multipath enablement kit. This populates multipath.conf with the correct information for talking to HP SAN Storagework Arrays.

http://h20000.www2.hp.com/bizsupport/TechSupport/DriverDownload.jsp?prodNameId=3559652〈=en&cc=us&taskId=135&prodTypeId=12169&prodSeriesId=3559651

Oh, and make sure you install lsscsi as well so you can see what device LUNs are visible over the different FC HBA scsi hosts.

# yum install lsscsi

dm-multipath will combine these to present a single multipath device in /dev/mapper.

You have some learning to do. Have fun :)