Wednesday, December 15, 2010
Managing HBA adapter in Sun Servers
How to view the HBA controllers ?
You can use any of the below commands
# /usr/sbin/lpfc/lputil
# vxdmpadm listctlr all
# cfgadm -al
How to reset a HBA ?
Method 1:
# /usr/sbin/hbanyware/hbacmd Reset 10:01:00:00:bc:c9:3b:ca
Method 2:
# /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:
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.
Some Commands :
1. To view ports :
# luxadm -e port
# cfgadm -o show_FCP_dev -al
2. To view detailed information of a LUN :
# luxadm diplay /dev/rdsk/c2t2d12s2
3. To scan for new luns in a HBA :
# luxadm -e forcelip /devices/pci@8,700000/SUNW,qlc@2/fp@0,0:devctl
4. To show all devices :
# luxadm probe
5. To display all the HBA:
# fcinfo hba-port
6. To display WWN for each HBA
# /usr/sbin/lpfc/lputil listhbas
7. To list info about HBA :
# prtpicl -v -c scsi-fcp
# prtpicl -v -c scsi-fcp | grep port-wwn
# prtpicl -v -c scsi-fcp | grep devfs-path
8. To see if the Qlogic driver is loaded :
# modinfo | grep qlc
9. To see if QLogic driver is configured to load on boot :
# grep qlc /etc/system
forceload: drv/qlc
10. To see the number of HBA instances/devices :
# prtdiag -v | grep qlc
Labels:
Solaris
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment