HBA Solaris
01/09/2010 15:39good tools
HBA Solaris
bash-2.03# luxadm probe
No Network Array enclosures found in /dev/esFound Fibre Channel device(s):
Node WWN:50070e800475e108 Device Type:Disk device
Logical Path:/dev/rdsk/c5t50060E800475D109d0s2
Node WWN:50070e800475e108 Device Type:Disk device
Logical Path:/dev/rdsk/c5t50060E800475D109d1s2
Node WWN:50070e800475e108 Device Type:Disk device
Logical Path:/dev/rdsk/c5t50060E800475D109d2s2
Node WWN:50070e800475e108 Device Type:Disk device
Logical Path:/dev/rdsk/c5t50060E800475D109d3s2
Node WWN:50070e800475e108 Device Type:Disk device
Logical Path:/dev/rdsk/c5t50060E800475D109d4s2
Node WWN:50070e800475e108 Device Type:Disk device
Logical Path:/dev/rdsk/c5t50060E800475D109d5s2
Node WWN:50070e800475e108 Device Type:Disk device
Logical Path:/dev/rdsk/c5t50060E800475D109d6s2
Node WWN:50070e800475e108 Device Type:Disk device
Logical Path:/dev/rdsk/c5t50060E800475D109d7s2HBA card WWN
# prtconf -vp | grep wwn
port-wwn: 2100001b.3202f94b
node-wwn: 2000001b.3202f94b
port-wwn: 210000e0.8b90e795
node-wwn: 200000e0.8b90e795#prtconf -vp | more
Node 0xf00e2f80
assigned-addresses: 81000810.00000000.00000300.00000000.00000100.82000814.00000000.00100000.00000000.00002000.82000830.00000000.00140000.00000000.00040000
version: ‘QLA2460 Host Adapter Driver(SPARC): 1.11 10/03/05′
manufacturer: ‘QLGC’
model: ‘QLA2460 ‘
name: ‘SUNW,qlc’
port-wwn: 2100001b.3202f94b
node-wwn: 2000001b.3202f94b
reg: 00000800.00000000.00000000.00000000.00000000.01000810.00000000.00000000.00000000.00000100.02000814.00000000.00000000.00000000.00001000
compatible: ‘pci1077,140.1077.140.2′ + ‘pci1077,140.1077.140′ + ‘pci1077,140′ + ‘pci1077,2422.2′ + ‘pci1077,2422′ + ‘pciclass,c0400′ + ‘pciclass,0400′
short-version: ‘1.11 10/03/05′
#size-cells: 00000000
#address-cells: 00000002
device_type: ’scsi-fcp’
fcode-rom-offset: 0000aa00
66mhz-capable:
fast-back-to-back:
devsel-speed: 00000001
latency-timer: 00000040
cache-line-size: 00000010
max-latency: 00000000
min-grant: 00000040
interrupts: 00000001
class-code: 000c0400
subsystem-id: 00000140
subsystem-vendor-id: 00001077
revision-id: 00000002
device-id: 00002422
vendor-id: 00001077Node 0xf00ee398
#size-cells: 00000000
#address-cells: 00000004
reg: 00000000.00000000
device_type: ‘fp’
name: ‘fp’Node 0xf00eeaa0
device_type: ‘block’
compatible: ’ssd’
name: ‘disk’Node 0xf00ef91c
assigned-addresses: 81001010.00000000.00000400.00000000.00000100.82001014.00000000.
version: ‘QLA2460 Host Adapter Driver(SPARC): 1.11 10/03/05′
manufacturer: ‘QLGC’
model: ‘QLA2460 ‘
name: ‘SUNW,qlc’
port-wwn: 210000e0.8b90e795
node-wwn: 200000e0.8b90e795
reg: 00001000.00000000.00000000.00000000.00000000.01001010.00000000.
compatible: ‘pci1077,140.1077.140.2′ + ‘pci1077,140.1077.140′ + ‘pci1077,140′ + ‘pci1077,2422.2′ + ‘pci1077,2422′ + ‘pciclass,c0400′ + ‘pciclass,0400′
short-version: ‘1.11 10/03/05′
#size-cells: 00000000
#address-cells: 00000002
device_type: ’scsi-fcp’
fcode-rom-offset: 0000aa00
66mhz-capable:
fast-back-to-back:
devsel-speed: 00000001
latency-timer: 00000040
cache-line-size: 00000010
max-latency: 00000000
min-grant: 00000040
interrupts: 00000001
class-code: 000c0400
subsystem-id: 00000140
subsystem-vendor-id: 00001077
revision-id: 00000002
device-id: 00002422
vendor-id: 00001077Node 0xf00fad34
#size-cells: 00000000
#address-cells: 00000004
reg: 00000000.00000000
device_type: ‘fp’
name: ‘fp’Node 0xf00fb43c
device_type: ‘block’
compatible: ’ssd’
name: ‘disk’For Solaris 8 and 9:
Run the following script to determine the WWNs of the HBAs that are currently being utilized:
#!/bin/sh for i in `cfgadm |grep fc-fabric|awk ‘{print $1}’`;do
dev=”`cfgadm -lv $i|grep devices |awk ‘{print $NF}’`” wwn= \
“`luxadm -e dump_map $dev |grep ‘Host Bus’|awk ‘{print $4}’`”
echo “$i: $wwn” done
To show link status of card
bash-2.03# luxadm -e port
Found path to 2 HBA ports
/devices/ssm@0,0/pci@18,700000/SUNW,qlc@2/fp@0,0:devctl CONNECTED
/devices/ssm@0,0/pci@19,700000/SUNW,qlc@2/fp@0,0:devctl CONNECTED
To see the WWN’s (using address given to you from previous commands),
it is the last one that specifies it is a HBA, so the port WWN here is 50070e800475e108
bash-2.03# luxadm -e dump_map /devices/ssm@0,0/pci@18,700000/SUNW,qlc@2/fp@0,0:devctl
Pos Port_ID Hard_Addr Port WWN Node WWN Type
0 642113 0 50070e800475e108 50070e800475e108 0×0 (Disk device)
1 643f13 0 550070e800475e108 50070e800475e108 0×0 (Disk device)
2 643913 0 2100001b3205e828 2000001b3205e828 0×1f (Unknown Type,Host Bus Adapter)
SAN Foundation Software versions display as such
bash-2.03# modinfo | grep SunFC
38 102bcd25 209b8 150 1 fcp (SunFC FCP v20070703-1.98)
39 102d4071 855c - 1 fctl (SunFC Transport v20070703-1.41)
42 102ead69 164e0 149 1 fp (SunFC Port v20070703-1.60)
44 10300a79 cd574 153 1 qlc (SunFC Qlogic FCA v20070212-2.19)
To show Sun/Qlogic HBA’s
bash-2.03# luxadm qlgc
Found Path to 2 FC100/P, ISP2200, ISP23xx Devices
Opening Device: /devices/ssm@0,0/pci@18,700000/SUNW,qlc@2/fp@0,0:devctl
Detected FCode Version: ISP2312 Host Adapter fcode version 1.16 11/15/06Opening Device: /devices/ssm@0,0/pci@19,700000/SUNW,qlc@2/fp@0,0:devctl
Detected FCode Version: ISP2312 Host Adapter fcode version 1.16 11/15/06
Complete
To show all vendor HBA’s
bash-2.03# luxadm fcode_download -p
Found Path to 0 FC/S Cards
CompleteFound Path to 0 FC100/S Cards
CompleteFound Path to 2 FC100/P, ISP2200, ISP23xx Devices
Opening Device: /devices/ssm@0,0/pci@18,700000/SUNW,qlc@2/fp@0,0:devctl
Detected FCode Version: ISP2312 Host Adapter fcode version 1.16 11/15/06Opening Device: /devices/ssm@0,0/pci@19,700000/SUNW,qlc@2/fp@0,0:devctl
Detected FCode Version: ISP2312 Host Adapter fcode version 1.16 11/15/06
CompleteFound Path to 0 JNI1560 Devices.
CompleteFound Path to 0 Emulex Devices.
Complete
# luxadm probe
Found Fibre Channel device(s):
Node WWN:2000000b5d6a0fdc Device Type:Disk device
Logical Path:/dev/rdsk/c4t6000B5D0006A0000006A0FDC00040000d0s2
Node WWN:2000000b5d6a085f Device Type:Disk device
Logical Path:/dev/rdsk/c4t6000B5D0006A0000006A085F002B0000d0s2
Node WWN:2000000b5d6a085f Device Type:Disk device
Logical Path:/dev/rdsk/c4t6000B5D0006A0000006A085F00230000d0s2
Node WWN:2000000b5d6a085f Device Type:Disk device
Logical Path:/dev/rdsk/c4t6000B5D0006A0000006A085F001F0000d0s2
Node WWN:2000000b5d6a085f Device Type:Disk device
Logical Path:/dev/rdsk/c4t6000B5D0006A0000006A085F002C0000d0s2
Node WWN:2000000b5d6a085f Device Type:Disk device
Logical Path:/dev/rdsk/c4t6000B5D0006A0000006A085F00310000d0s2
Node WWN:2000000b5d6a085f Device Type:Disk device
# luxadm display /dev/rdsk/c0t600015D0002028000000000000001142d0s2
DEVICE PROPERTIES for disk: /dev/rdsk/c0t600015D0002028000000000000001142d0s2 Vendor: SUN Product ID: SE6920 Revision: 0202 Serial Num: 00500057 Unformatted capacity: 10240.000 MBytes Read Cache: Enabled Minimum prefetch: 0x0 Maximum prefetch: 0xffff Device Type: Disk device Path(s): /dev/rdsk/c0t600015D0002028000000000000001142d0s2 /devices/scsi_vhci/disk@g600015d0002028000000000000001142:c,raw Controller /dev/cfg/c4 Device Address 213600015d207200,0 Host controller port WWN 210100e08b206812 Class primary State ONLINE Controller /dev/cfg/c11 Device Address 213600015d207200,0 Host controller port WWN 210100e08b30a2f2 Class primary State ONLINE
The following luxadm command output from the example can be used to map the MPxIO based c#t#d# to the HBA WWN and array WWN:
- MPxIO c#t#d# = c0t600015d00020280000000000000001142d0
- Array WWN = 213600015d207200, LUN 0
- HBA WWNs = 210100e08b206812 and 210100e08b30a2f2
root at hostname # luxadm -e port Found path to 5 HBA ports /devices/pci at 9,600000/SUNW,qlc at 2/fp at 0,0:devctl CONNECTED /devices/pci at 8,600000/SUNW,emlxs at 1/fp at 0,0:devctl CONNECTED /devices/pci at 8,600000/SUNW,emlxs at 1,1/fp at 0,0:devctl NOT CONNECTED /devices/pci at 8,600000/SUNW,emlxs at 2/fp at 0,0:devctl CONNECTED /devices/pci at 8,600000/SUNW,emlxs at 2,1/fp at 0,0:devctl NOT CONNECTED The port in red is for the internal connection (The server is sun fire V490) is it right..? and what is the internal connection? The other ports are for the fiber cards installed in the server. ----------------------------- I've configured in the storage 6 drives + 2 disks in the server = 8 in total, but in the format output I can see 10 disks... AVAILABLE DISK SELECTIONS: 0. c1t0d0
/pci at 9,600000/SUNW,qlc at 2/fp at 0,0/ssd at w2100001862ed3688,0
1. c1t1d0
/pci at 9,600000/SUNW,qlc at 2/fp at 0,0/ssd at w2100001862ed3a02,0
2. c2t2d31
/pci at 8,600000/SUNW,emlxs at 1/fp at 0,0/ssd at w200700a0b838ad98,1f
3. c3t0d31
/pci at 8,600000/SUNW,emlxs at 2/fp at 0,0/ssd at w200600a0b838ad98,1f
4. c6t600A0B800038AD97000002B3473DB938d0
/scsi_vhci/ssd at g600a0b800038ad97000002b3473db938
5. c6t600A0B800038AD97000002B6473DB97Cd0
/scsi_vhci/ssd at g600a0b800038ad97000002b6473db97c
6. c6t600A0B800038AD97000002B8473DB9FCd0
/scsi_vhci/ssd at g600a0b800038ad97000002b8473db9fc
7. c6t600A0B800038AD97000002BA473DBA64d0
/scsi_vhci/ssd at g600a0b800038ad97000002ba473dba64
8. c6t600A0B800038AD97000002BD473DBAD6d0
/scsi_vhci/ssd at g600a0b800038ad97000002bd473dbad6
9. c6t600A0B800038AD97000002BF473DBB46d0
/scsi_vhci/ssd at g600a0b800038ad97000002bf473dbb46
What are the hard disks in red for..!!!??
Bellow is the output for "luxadm" utility while displaying there
informations:
root at hostname # luxadm display /dev/rdsk/c2t2d31s2
DEVICE PROPERTIES for disk: /dev/rdsk/c2t2d31s2
Vendor: SUN
Product ID: Universal Xport
Revision: 0617
Serial Num: SX73006980
Unformatted capacity: 20.000 MBytes
Read Cache: Enabled
Minimum prefetch: 0x0
Maximum prefetch: 0x0
Device Type: Disk device
Path(s):
/dev/rdsk/c2t2d31s2
/devices/pci at 8,600000/SUNW,emlxs at 1/fp at 0,0/ssd at w200700a0b838ad98,1f:c,raw
LUN path port WWN: 200700a0b838ad98
Host controller port WWN: 10000000c967ff16
Path status: O.K.
root at hostname # luxadm display /dev/rdsk/c3t0d31s2
DEVICE PROPERTIES for disk: /dev/rdsk/c3t0d31s2
Vendor: SUN
Product ID: Universal Xport
Revision: 0617
Serial Num: SX73005548
Unformatted capacity: 20.000 MBytes
Read Cache: Enabled
Minimum prefetch: 0x0
Maximum prefetch: 0x0
Device Type: Disk device
Path(s):
/dev/rdsk/c3t0d31s2
/devices/pci at 8,600000/SUNW,emlxs at 2/fp at 0,0/ssd at w200600a0b838ad98,1f:c,raw
LUN path port WWN: 200600a0b838ad98
Host controller port WWN: 10000000c96725e4
Path status: O.K.
———
Voltar