Monday, June 15, 2009

Check wwpn/wwnn on Solaris and select boot device for boot san

IN OBP:-
{a2} ok show-disks
a) /ramdisk-root
b) /pci@3d,600000/SUNW,qlc@1/fp@0,0/disk
c) /pci@3d,700000/pci@1/scsi@2,1/disk
d) /pci@3d,700000/pci@1/scsi@2/disk
e) /pci@3c,600000/SUNW,qlc@1/fp@0,0/disk
f) /pci@1d,600000/SUNW,qlc@1/fp@0,0/disk
g) /pci@1d,700000/pci@1/scsi@2,1/disk
h) /pci@1d,700000/pci@1/scsi@2/disk
i) /pci@1c,600000/SUNW,qlc@1/fp@0,0/disk
q) NO SELECTION
Enter Selection, q to quit: q
{a2} ok
{a2} ok cd /pci@3c,600000/SUNW,qlc@1
{a2} ok .properties
assigned-addresses 81000810 00000000 00000300 00000000 00000100
82000814 00000000 00100000 00000000 00002000
82000830 00000000 00120000 00000000 00020000
port-wwn 21 00 00 e0 8b 11 b0 94
node-wwn 20 00 00 e0 8b 11 b0 94

reg 00000800 00000000 00000000 00000000 00000000
01000810 00000000 00000000 00000000 00000100
02000814 00000000 00000000 00000000 00001000
compatible pci1077,2300.1077.106.1
pci1077,2300.1077.106
pci1077,106
pci1077,2300.1
pci1077,2300
pciclass,0c0400
pciclass,0c04
manufacturer QLGC
#size-cells 00000000
#address-cells 00000002
device_type scsi-fcp
name SUNW,qlc
version ISP2300 Host Adapter Driver: 1.14.01 12/20/02
fcode-rom-offset 00000000
66mhz-capable
fast-back-to-back
devsel-speed 00000001
class-code 000c0400
interrupts 00000001
latency-timer 00000040
cache-line-size 00000010
max-latency 00000000
min-grant 00000040
subsystem-id 00000106
subsystem-vendor-id 00001077
revision-id 00000001
device-id 00002300
vendor-id 00001077
{a2} ok
{a0} ok select /pci@1c,600000/SUNW,qlc@1
{a0} ok show-children
************************* Fabric Attached Devices ************************
Adapter portId - 41300
Device PortId 41000 DeviceId 1 WWPN 5006048c53684c1e
Lun 0 DISK EMC SYMMETRIX 5771
Lun 9 DISK EMC SYMMETRIX 5771
Lun a DISK EMC SYMMETRIX 5771
Lun b DISK EMC SYMMETRIX 5771
Lun c DISK EMC SYMMETRIX 5771
Lun d DISK EMC SYMMETRIX 5771
Lun e DISK EMC SYMMETRIX 5771
Lun f DISK EMC SYMMETRIX 5771
Lun 10 DISK EMC SYMMETRIX 5771
Lun 1b DISK EMC SYMMETRIX 5771
Lun 1d DISK EMC SYMMETRIX 5771
Lun 1e DISK EMC SYMMETRIX 5771
Lun 1f DISK EMC SYMMETRIX 5771
Lun 20 DISK EMC SYMMETRIX 5771
Lun 21 DISK EMC SYMMETRIX 5771
Lun 22 DISK EMC SYMMETRIX 5771
Lun 23 DISK EMC SYMMETRIX 5771
{a0} ok

{a0} ok boot /pci@1c,600000/SUNW,qlc@1/fp@0,0/disk@w5006048c53684c1e,1e
Notes:- disk@w5006048c53684c1e,1e
5006048c53684c1e is wwpn of EMC FA Port
1e is lun id in hex number it can translate to d30 in decimal



IN OS Level:-
-Sol9 and older make sure process picld is running. You can start it by below command.

#/etc/init.d/picld start
#ps -efgrep picld
root 28707 1 0 Jun 13 ? 0:01 /usr/lib/picl/picld

#/usr/sbin/prtpicl -v -c scsi-fcp grep wwn
:node-wwn 20 00 00 e0 8b 11 64 76
:port-wwn 21 00 00 e0 8b 11 64 76
:node-wwn 20 00 00 e0 8b 11 53 77
:port-wwn 21 00 00 e0 8b 11 53 77

-Sol10
#fcinfo hba-port
HBA Port WWN: 210000e08b111878
OS Device Name: /dev/cfg/c0
Manufacturer: QLogic Corp.
Model: 375-3102-xx
Firmware Version: 3.03.27
FCode/BIOS Version: fcode: 1.13;
Serial Number: not available
Driver Name: qlc
Driver Version: 20081115-2.29
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb
Current Speed: 2Gb
Node WWN: 200000e08b111878

HBA Port WWN: 210000e08b11b094
OS Device Name: /dev/cfg/c2
Manufacturer: QLogic Corp.
Model: 375-3102-xx
Firmware Version: 3.03.27
FCode/BIOS Version: fcode: 1.13;
Serial Number: not available
Driver Name: qlc
Driver Version: 20081115-2.29
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb
Current Speed: 2Gb
Node WWN: 200000e08b11b094

#ls -l /dev/cfg/c[0,2]
lrwxrwxrwx 1 root root 48 Jun 11 10:16 /dev/cfg/c0 -> ../../devices/pci@1c,600000/SUNW,qlc@1/fp@0,0:fc
lrwxrwxrwx 1 root root 48 Jun 11 10:16 /dev/cfg/c2 -> ../../devices/pci@3c,600000/SUNW,qlc@1/fp@0,0:fc


If you install EMC Solution Enabler then you can use syminq command to list the HBA information

#syminq hba -fibre
#luxadm -e port

Found path to 2 HBA ports

/devices/pci@dc,600000/SUNW,qlc@1/fp@0,0:devctl CONNECTED
/devices/pci@fc,600000/SUNW,qlc@1/fp@0,0:devctl CONNECTED
#luxadm -e dump_map /devices/pci@dc,600000/SUNW,qlc@1/fp@0,0:devctl
Pos Port_ID Hard_Addr Port WWN Node WWN Type
0 31000 0 5006048c53684c11 5006048c53684c11 0x0 (Disk device) ---> Target wwn (EMC FA)
1 31100 0 210000e08b116476 200000e08b116476 0x1f (Unknown Type,Host Bus Adapter) ---> HBA wwn
#luxadm -e dump_map /devices/pci@fc,600000/SUNW,qlc@1/fp@0,0:devctl
Pos Port_ID Hard_Addr Port WWN Node WWN Type
0 41000 0 5006048c53684c1e 5006048c53684c1e 0x0 (Disk device)
1 41100 0 210000e08b115377 200000e08b115377 0x1f (Unknown Type,Host Bus Adapter)

No comments:

Post a Comment