Sie sind auf Seite 1von 2

Solaris 10 How to Find SAN and LUN IDs In Solaris 10, how to find the SAN ID and the

LUN IDs. In this example below, I ha ve a single dual ported FC HBA. The way I find the LUN IDs and SAN IDs is by having the logical units displayed with the fcinfo command and they run the device node through luxadm display and look for the serial number. Find the logical units on each controller Below I display the devices. I have highlighted the two disks that I think are t he same disks, just on different controllers. Below is an example. # fcinfo logical-unit OS Device Name: /dev/rdsk/c3t50060E8006FF0315d0s2 OS Device Name: /dev/rdsk/c3t50060E8006FF0315d1s2 OS Device Name: /dev/rdsk/c3t50060E8006FF0315d2s2 OS Device Name: /dev/rdsk/c3t50060E8006FF0315d3s2 OS Device Name: /dev/rdsk/c3t50060E8006FF0315d4s2 OS Device Name: /dev/rdsk/c2t50060E8006FF0305d0s2 OS Device Name: /dev/rdsk/c2t50060E8006FF0305d1s2 OS Device Name: /dev/rdsk/c2t50060E8006FF0305d2s2 OS Device Name: /dev/rdsk/c2t50060E8006FF0305d3s2 OS Device Name: /dev/rdsk/c2t50060E8006FF0305d4s2Now that I have the 2 devices that I think are the same, but not sure, I will try to display the disk informat ion using luxadm. I will look at the serial numbers to confirm the LUN IDs. Here w e go: # luxadm display /dev/rdsk/c3t50060E8006FF0315d1s2 DEVICE PROPERTIES for disk: /dev/rdsk/c3t50060E8006FF0315d1s2 Vendor: HITACHI Product ID: OPEN-V -SUN Revision: 7005 Serial Num: 50 0FF031501 Unformatted capacity: 102400.000 MBytes Write Cache: Enabled Read Cache: Enabled Minimum prefetch: 0x0 Maximum prefetch: 0x0 Device Type: Disk device Path(s): /dev/rdsk/c3t50060E8006FF0315d1s2 /devices/pci@400/pci@2/pci@0/pci@2/pci@0/pci@2/SUNW,qlc@0,1/fp@0,0/s sd@w50060e8006ff0315,1:c,raw LUN path port WWN: 50060e8006ff0315 Host controller port WWN: 21000024ff4794b5 Path status: O.K. /dev/rdsk/c2t50060E8006FF0305d1s2 /devices/pci@400/pci@2/pci@0/pci@2/pci@0/pci@2/SUNW,qlc@0/fp@0,0/s sd@w50060e8006ff0305,1:c,raw LUN path port WWN: 50060e8006ff0305 Host controller port WWN: 21000024ff4794b4 Path status: O.K.Using the serial 0FF031501 number from above, w e have: SAN ID 0FF03 1501 # luxadm display /dev/rdsk/c2t50060E8006FF0305d1s2 DEVICE PROPERTIES for disk: /dev/rdsk/c2t50060E8006FF0305d1s2 Vendor: HITACHI Product ID: OPEN-V -SUN LUN ID

Revision: 7005 Serial Num: 50 0FF031501 Unformatted capacity: 102400.000 MBytes Write Cache: Enabled Read Cache: Enabled Minimum prefetch: 0x0 Maximum prefetch: 0x0 Device Type: Disk device Path(s): /dev/rdsk/c2t50060E8006FF0305d1s2 /devices/pci@400/pci@2/pci@0/pci@2/pci@0/pci@2/SUNW,qlc@0/fp@0,0/s sd@w50060e8006ff0305,1:c,raw LUN path port WWN: 50060e8006ff0305 Host controller port WWN: 21000024ff4794b4 Path status: O.K. /dev/rdsk/c3t50060E8006FF0315d1s2 /devices/pci@400/pci@2/pci@0/pci@2/pci@0/pci@2/SUNW,qlc@0,1/fp@0, 0/ssd@w50060e8006ff0315,1:c,raw LUN path port WWN: 50060e8006ff0315 Host controller port WWN: 21000024ff4794b5 Path status: O.K.And again using the serial 0FF031501 number fro m above, we have: SAN ID LUN ID

0FF03 1501They both have the LUN ID of 1501 and SAN ID of 0FF03. So these are t he same disks. As an example, lets look at one other disk to see if its possibly another path for the same disk. # luxadm display /dev/rdsk/c3t50060E8006FF0315d2s2 DEVICE PROPERTIES for disk: /dev/rdsk/c3t50060E8006FF0315d2s2 Vendor: HITACHI Product ID: OPEN-V -SUN Revision: 7005 Serial Num: 50 0FF031503 Unformatted capacity: 307200.000 MBytes Write Cache: Enabled Read Cache: Enabled Minimum prefetch: 0x0 Maximum prefetch: 0x0 Device Type: Disk device Path(s): /dev/rdsk/c3t50060E8006FF0315d2s2 /devices/pci@400/pci@2/pci@0/pci@2/pci@0/pci@2/SUNW,qlc@0, 1/fp@0,0/ssd@w50060e8006ff0315,2:c,raw LUN path port WWN: 50060e8006ff0315 Host controller port WWN: 21000024ff4794b5 Path status: O.K. /dev/rdsk/c2t50060E8006FF0305d2s2 /devices/pci@400/pci@2/pci@0/pci@2/pci@0/pci@2/SUNW,qlc@0/ fp@0,0/ssd@w50060e8006ff0305,2:c,raw LUN path port WWN: 50060e8006ff0305 Host controller port WWN: 21000024ff4794b4 Path status: O.K.The serial number or SANID-LUNID is different. It has a serial number of: 0FF031503In this case the SAN ID is 0FF03 which is the same SAN ID, but the LUN ID 1503 is not the same as the other 1501, therefore this is a different disk, b ut on the same fabric.

Das könnte Ihnen auch gefallen