Detecting WWID number of HBA on SLES11
Hi,
I have SLES11 installed on server. I have attached 2 SAS cables which are connected to External storage device. I have connected 3 machines to external storage device. It shows total 6 ID’s. I want to know which 2 are from which machine. I would like to find out the WWID number of HBA’s on SLES 11 machine. Any idea; how can do this? Thanks, Shashank |
cd /proc/scsi
Look for information on your HBAs (e.g. there will be qla2xxx/1 and qla2xxx2 for first two Qlogic 2340 HBAs). Cat those files and they'll give you a wealth of detail including "FC Port" information. Also cat of /proc/scsi/scsi will show you information about SCSI devices detected including the disks over the SAN. |
Thanks for reply.
I am serching for number similar to 500605b001415094 on server side. I see 6 numbers like ablove on storage device. I think that 500605b001415094 is WWID. How can I serch which 2 number (like 500605b001415094) belongs to any machine? Thanks and Regards, -Nilesh |
You have to look at the /proc/scsi info as I mentioned.
What do you see when you type "ls /proc/scsi" on the servers? For example on one of my servers I see: Code:
# ls -l /proc/scsi Code:
# ls -l Code:
# cat 1 The above is for Qlogic. For Emulex I don't know what it would be but is should have some sort of information in /proc/scsi. |
This is what I see on my server:
cpt2:/proc/scsi # ll total 0 -r--r--r-- 1 root root 0 Jul 2 16:46 device_info dr-xr-xr-x 2 root root 0 Jul 2 16:46 mptsas -r--r--r-- 1 root root 0 Jul 2 16:46 scsi dr-xr-xr-x 2 root root 0 Jul 2 16:46 sg cpt2:/proc/scsi # cd mptsas/ cpt2:/proc/scsi/mptsas # ls 0 1 2 cpt2:/proc/scsi/mptsas # cat 0 ioc0: LSISAS1068E B3, FwRev=011b5200h, Ports=1, MaxQ=277 cpt2:/proc/scsi/mptsas # cat 1 ioc1: LSISAS1068E B3, FwRev=011b5200h, Ports=1, MaxQ=277 cpt2:/proc/scsi/mptsas # cat 2 ioc2: LSISAS1068E B3, FwRev=011b5600h, Ports=1, MaxQ=277 cpt2:/proc/scsi/mptsas # cpt2:/dev/disk # cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: IBM Model: 1726-2xx FAStT Rev: 0617 Type: Direct-Access ANSI SCSI revision: 05 Host: scsi0 Channel: 00 Id: 00 Lun: 31 Vendor: IBM Model: Universal Xport Rev: 0617 Type: Direct-Access ANSI SCSI revision: 05 Host: scsi1 Channel: 00 Id: 00 Lun: 00 Vendor: IBM Model: 1726-2xx FAStT Rev: 0617 Type: Direct-Access ANSI SCSI revision: 05 Host: scsi1 Channel: 00 Id: 00 Lun: 31 Vendor: IBM Model: Universal Xport Rev: 0617 Type: Direct-Access ANSI SCSI revision: 05 Host: scsi2 Channel: 00 Id: 00 Lun: 00 Vendor: IBM-ESXS Model: CBRCA146C3ETS0 N Rev: C370 Type: Direct-Access ANSI SCSI revision: 06 Host: scsi2 Channel: 00 Id: 01 Lun: 00 Vendor: IBM-ESXS Model: CBRCA146C3ETS0 N Rev: C370 Type: Direct-Access ANSI SCSI revision: 06 Host: scsi2 Channel: 01 Id: 01 Lun: 00 Vendor: LSILOGIC Model: Logical Volume Rev: 3000 Type: Direct-Access ANSI SCSI revision: 02 Host: scsi3 Channel: 00 Id: 00 Lun: 00 Vendor: HL-DT-ST Model: RW/DVD GCC-T20N Rev: 1.00 Type: CD-ROM ANSI SCSI revision: 05 cpt2:/dev/disk # Is there anything I am missing? Thanks and Regards, -Shashank |
Hi,
ctl1:/proc/scsi/mptsas # cat 1 ioc1: LSISAS1068E B3, FwRev=011b5200h, Ports=1, MaxQ=277 ctl1:/proc/scsi/mptsas # cat 2 ioc2: LSISAS1068E B3, FwRev=011b5600h, Ports=1, MaxQ=277 ctl1:/proc/scsi/mptsas # These 2 are HBA's on my machine. But I not able to find WWID number till now. Help is much appreciated. Thanks and Regards, -Shashank |
Hi,
I could find the WWID of HBA's. It is manual process to see the exact number, but I am not blocked now. cpt2:~ # find /sys -name sas_address It gives lot of files. I went thr each file and could match the wwid that is available on storage. e.g: cpt2 #cat /sys/devices/pci0000:00/0000:00:07.0/0000:1a:00.0/host1/phy-1:3/sas_phy/phy-1:3/sas_address 0x500605b001413460 cpt2 # Thanks all for help. Regards, -Shashank |
Thanks for posting your solution.
|
All times are GMT -5. The time now is 04:21 AM. |