SAN
To find out the wwn of SUN/Qlogic Fibre cards
First way:
# prtpicl -v | grep wwn
:node-wwn 20 00 00 e0 8b 10 22 1a
:port-wwn 21 00 00 e0 8b 10 22 1a
:node-wwn 20 00 00 e0 8b 81 75 ed
:port-wwn 21 00 00 e0 8b 81 75 ed
:node-wwn 50 06 0e 80 03 9d 7e 06
:port-wwn 50 06 0e 80 03 9d 7e 06
:node-wwn 50 06 0e 80 03 9d 7e 06
:port-wwn 50 06 0e 80 03 9d 7e 06
:node-wwn 50 06 0e 80 03 9d 7e 06
:port-wwn 50 06 0e 80 03 9d 7e 06
:node-wwn 20 00 00 e0 8b a1 75 ed
:port-wwn 21 01 00 e0 8b a1 75 ed
:node-wwn 50 06 0e 80 03 9d 7e 16
:port-wwn 50 06 0e 80 03 9d 7e 16
:node-wwn 50 06 0e 80 03 9d 7e 16
:port-wwn 50 06 0e 80 03 9d 7e 16
:node-wwn 50 06 0e 80 03 9d 7e 16
:port-wwn 50 06 0e 80 03 9d 7e 16
Second Way:
# prtconf -vp | grep -i wwn
port-wwn: 210000e0.8b10221a
node-wwn: 200000e0.8b10221a
port-wwn: 210000e0.8b8175ed
node-wwn: 200000e0.8b8175ed
port-wwn: 210100e0.8ba175ed
node-wwn: 200000e0.8ba175ed
Third Way:
# luxadm qlgc Found Path to 3 FC100/P, ISP2200, ISP23xx Devices Opening Device: /devices/pci@1f,4000/SUNW,qlc@2/fp@0,0:devctl Detected FCode Version: ISP2200 Host Adapter Driver: 1.14.02 05/28/03 Opening Device: /devices/pci@1f,4000/SUNW,qlc@4/fp@0,0:devctl Detected FCode Version: ISP2312 Host Adapter Driver: 1.14.09 03/08/04 Opening Device: /devices/pci@1f,4000/SUNW,qlc@4,1/fp@0,0:devctl Detected FCode Version: ISP2312 Host Adapter Driver: 1.14.09 03/08/04 Complete # luxadm -e dump_map /devices/pci@1f,4000/SUNW,qlc@4/fp@0,0:devctl
To list all the Fibre channel devices
- cfgadm -al -o show_FCP_dev
Ap_Id Type Receptacle Occupant Condition c2 fc-fabric connected configured unknown c2::50060e800329d500,0 disk connected configured unknown c2::50060e800329d500,1 disk connected configured unknown c2::50060e800329d500,2 disk connected configured unknown c2::50060e800329d500,3 disk connected configured unknown c3 fc-fabric connected configured unknown c3::50060e800329d500,0 disk connected configured unknown c3::50060e800329d500,1 disk connected configured unknown c3::50060e800329d500,2 disk connected configured unknown c3::50060e800329d500,3 disk connected configured unknown c4 fc connected unconfigured unknown c7 fc connected unconfigured unknown
On solaris 10
# fcinfo hba-port
Run the following to get the newly added LUNs to get detected.
# luxadm -e port |grep -v NOT|cut -f1 -d:|while read FIL do luxadm -e forcelip $FIL done # devfsadm
Emulex Fibre cards
On rare ocassions it may be necessary to reset an Emulex HBA to re-establish connectivity to fabric services, and to find new targets and LUNs that have been added to the fabric. This can be accomplished with a system reboot ( which takes a good deal of time, and is not an option when availability is the primary service driver), or with the Emeulex hbacmd(1m) or lputil(1m) utilities. To reset an adaptor with hbacmd(1m), the WWPN is passed as an option:
$/usr/sbin/hbanyware/hbacmd Reset 10:00:00:00:c9:49:2c:b4
Reset HBA 10:00:00:00:c9:49:2c:b4
To reset an HBA through the lputil(1m) text-base menu, you can select option 4 from the main menu, and pick the adaptor to reset:
$ /usr/sbin/lputil/lputil
LightPulse Common Utility for Solaris/SPARC. Version 2.0a5 (4/7/2005).
Copyright (c) 2005, Emulex Corporation
Emulex Fibre Channel Host Adapters Detected: 3
Host Adapter 0 (lpfc3) is an LP9802 (Ready Mode)
Host Adapter 1 (lpfc4) is an LP9802 (Ready Mode)
Host Adapter 2 (lpfc5) is an LP9802 (Ready Mode)
MAIN MENU
1. List Adapters
2. Adapter Information
3. Firmware Maintenance
4. Reset Adapter
5. Persistent Bindings
0. Exit
Enter choice => 4
0. lpfc3
1. lpfc4
2. lpfc5
Select an adapter => 0
MAIN MENU
1. List Adapters
2. Adapter Information
3. Firmware Maintenance
4. Reset Adapter
5. Persistent Bindings
0. Exit
Enter choice => 0
Once the adaptor is reset, you should see a message similar to the following in the system logfile:
Sep 7 15:23:49 tiger lpfc: [ID 728700 kern.warning] WARNING: lpfc3:1303:LKe:Link Up Event x1 received Data: x1 x0 x8 x14
Emulex makes a killer HBA, and provides several awesome software utilities to manage host side SAN connectivity.
To view all of the Emulex HBAs installed in a server, hbacmd(1m) can be invoked with the “listhbas” option:
$ hbacmd listhbas
Manageable HBA List
Port WWN : 10:00:00:00:c9:49:28:42
Node WWN : 20:00:00:00:c9:49:28:42
Fabric Name: 10:00:00:60:69:80:2d:ee
Flags : 8000f980
Host Name : server01
Mfg : Emulex Corporation
Port WWN : 10:00:00:00:c9:49:28:47
Node WWN : 20:00:00:00:c9:49:28:47
Fabric Name: 10:00:00:60:69:80:0e:fc
Flags : 8000f980
Host Name : fraudmgmt01
Mfg : Emulex Corporation
[ ..... ]
To list firmware versions, serial numbers, WWN and a variety of model specific information, the hbacmd(1m) utility can be invoked with the “hbaattrib” option and the WWN to probe:
$ hbacmd HBAAttrib 10:00:00:00:c9:49:28:47
HBA Attributes for 10:00:00:00:c9:49:28:47
Host Name : server01
Manufacturer : Emulex Corporation
Serial Number : MS51403247
Model : LP9802
Model Desc : Emulex LightPulse LP9802 2 Gigabit PCI Fibre Channel Adapter
Node WWN : 20 00 00 00 c9 49 28 47
Node Symname : Emulex LP9802 FV1.91A1 DV6.02f
HW Version : 2003806d
Opt ROM Version: 1.50a4
FW Version : 1.91A1 (H2D1.91A1)
Vender Spec ID : 80F9
Number of Ports: 1
Driver Name : lpfc
Device ID : F980
HBA Type : LP9802
Operational FW : SLI-2 Overlay
SLI1 FW : SLI-1 Overlay 1.91a1
SLI2 FW : SLI-2 Overlay 1.91a1
IEEE Address : 00 00 c9 49 28 47
Boot BIOS : Fcode Firmware1.50a4
Driver Version : 6.02f; HBAAPI(I) v2.0.e, 11-07-03
To view host port information (e.g., port speed, device paths) and fabric parameters (e.g., fabric ID (S_ID), # of ports zoned along with this port), hbacmd(1m) can be invoked with the “portattrib” option:
$ hbacmd PortAttrib 10:00:00:00:c9:49:28:47
Port Attributes for 10:00:00:00:c9:49:28:47
Node WWN : 20 00 00 00 c9 49 28 47
Port WWN : 10 00 00 00 c9 49 28 47
Port Symname :
Port FCID : 6D0900
Port Type : Fabric
Port State : Operational
Port Service Type : 6
Port Supported FC4 : 00 00 01 20 00 00 00 01
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
Port Active FC4 : 00 00 01 20 00 00 00 01
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
Port Supported Speed: 2 GBit/sec.
Port Speed : 2 GBit/sec.
Max Frame Size : 2048
OS Device Name : /devices/pci@84,2000/lpfc@1
Num Discovered Ports: 3
Fabric Name : 10 00 00 60 69 80 0e fc
In addition to providing super high performance HBAS, Emulex has done a great job with their CLI (their GUI is actually pretty good as well) management utilites!
HP storage specifig
dlmsetconf dlmcfgmgr /kernel/drv/sd.conf devfsadm -c sysdef