RHELはwwn号を表示します

1542 ワード

ソースアドレス:http://kairo.wordpress.com/2010/05/13/identify-qlogic-wwn-on-red-hat-enterprise-linux-5-and-4-rhel/
Identify QLogic WN on Red Hat Enterprise Linux 5 and 4(RHEL)
Tags:RHEL、QLogic、WWN、RHEL 5、RHEL 4、WNP、Identify WN Red Hat Enterprise Linux、Identify WNP Red Hat Enterprise Linux、Get WN Reterprise Linux、Get WNP Reput Enux
How to identify/get QLogic WN on Red Hat Enterprise Linux 5(RHEL 5)
First identify your installed or recognized# lspci | grep -i fibre
04:00.0 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
04:00.1 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
05:00.0 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
05:00.1 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
On Red Hat Enterpris Linux 5(5.x)is on/sys/class/fc_host/hostX/port_name(X is your device 1,2,3,…N)
For get use:cat /sys/class/fc_host/hostX/port_nameSample with multiple HBA(Fibree)QLogic# ls /sys/class/fc_host/
host3 host4 host5 host6
# cat /sys/class/fc_host/host[3-6]/port_name
0x2100001b32936e24
0x2101001b32b36e24
0x2100001b32932821
0x2101001b32b32821
On Red Hat Enterpris Linux 4(AS/ES)is on/proc/scsi/qla 2 xxx/1(1,2,3,.N)
Sample:# more /proc/scsi/qlx2xxx/0|grep node
scsi-qla0-adapter-node=200000e08b1c19f2;