Saturday, February 4, 2012

4 . Find the HBA details of a Linux machine.


[root@obiapp-po-1p tmp]# cat /etc/redhat-release / uname –a

[root@obiapp-po-1p tmp]# lspci | grep -i fibre

On  Red Hat Enterprise Linux 5 (5.x)
  (X is your device 1,2,3,…N)

[root@obiapp-po-1p tmp]# cat /sys/class/scsi_host/host*/device/fc_host:host*/port_name

[root@obiapp-po-1p tmp]# cat /sys/class/fc_host/host*/port_name

Sample with multiple HBA (Fibre) QLogic

[root@obiapp-po-1p tmp]# # ls /sys/class/fc_host/

host3  host4  host5  host6

[root@obiapp-po-1p tmp]# # cat /sys/class/fc_host/host[3-6]/port_name



0x2100001b32936e24
0x2101001b32b36e24
0x2100001b32932821
0x2101001b32b32821


On Red Hat Enterprise Linux 4 (AS/ES) is on /proc/scsi/qla2xxx/1 (1,2,3,..N)

Sample:
[root@obiapp-po-1p tmp]# # egrep [node|port] /proc/scsi/qlx2xxx/0

scsi-qla0-adapter-node=200000e08b1c19f2;
scsi-qla0-adapter-port=210000e08b1c19f2;

[root@obiapp-po-1p tmp]# systool -c fc_host -v

No comments:

Post a Comment