Use the following method to offline/online or scan the specific HBA. This can be done without reloading the HBA module, nor rebooting the system.Let's check How to reset Host Bus Adapter?
Oracle Solaris
• Identify the HBA which needs to reset or scan
#luxadm -e port /devices/pci@0/pci@0/pci@8/pci@0/pci@9/SUNW,emlxs@0/fp@0,0:devctl NOT CONNECTED /devices/pci@0/pci@0/pci@8/pci@0/pci@a/SUNW,emlxs@0/fp@0,0:devctl NOT CONNECTED #fcinfo hba-port HBA Port WWN: 10000000c977600a >>WWN number can be a parameter to find out which HBA OS Device Name: /dev/cfg/c2 Manufacturer: Emulex Model: LPe11000-S Firmware Version: 2.72a2 (Z3D2.72A2) FCode/BIOS Version: Boot:5.02a1 Fcode:1.50a9 Serial Number: 0999BG0-082200032S Driver Name: emlxs Driver Version: 2.60k (2011.03.24.16.45) Type: unknown State: offline Supported Speeds: 1Gb 2Gb 4Gb Current Speed: not established Node WWN: 20000000c977600a #ls -ld /dev/cfg/c2|awk ‘{print $11}’ ../../devices/pci@0/pci@0/pci@8/pci@0/pci@9/SUNW,emlxs@0/fp@0,0:fc #luxadm -e port|grep pci@8/pci@0/pci@9/SUNW,emlxs@0/fp /devices/pci@0/pci@0/pci@8/pci@0/pci@9/SUNW,emlxs@0/fp@0,0:devctl NOT CONNECTED
• Reset HBA
#luxadm -e forcelip /devices/pci@0/pci@0/pci@8/pci@0/pci@9/SUNW,emlxs@0/fp@0,0:devctl
LINUX
• Identify the HBA which need to reset or scan
# cat /sys/class/fc_host/host3/port_name 0x50014380186a5cex
• Reset HBA
#echo 1 > /sys/class/fc_host/host3/issue_lip
HP-UX
• Identify the HBA which need to reset or scan
#ioscan -funC fc Class I H/W Path Driver S/W State H/W Type Description ====================================================================== fc 0 32/0/2/0/0/0/0 fcd CLAIMED INTERFACE HP AH401A 8Gb Dual Port PCIe Fibre Channel Adapter (FC Port 1) /dev/fcd0 fc 1 32/0/2/0/0/0/1 fcd CLAIMED INTERFACE HP AH401A 8Gb Dual Port PCIe Fibre Channel Adapter (FC Port 2) /dev/fcd1 fc 2 32/0/2/2/0/0/0 fcd CLAIMED INTERFACE HP AH401A 8Gb Dual Port PCIe Fibre Channel Adapter (FC Port 1) #fcmsutil /dev/fcd0 Vendor ID is = 0x1077 Device ID is = 0x2532 PCI Sub-system Vendor ID is = 0x103C PCI Sub-system ID is = 0x3263 PCI Mode = PCI Express x4 ISP Code version = 5.6.7 ISP Chip version = 2 Topology = PTTOPT_FABRIC Link Speed = 8Gb Local N_Port_id is = 0x011500 Previous N_Port_id is = None N_Port Node World Wide Name = 0x50014380062e5f55 N_Port Port World Wide Name = 0x50014380062e5f54 Switch Port World Wide Name = 0x200100053328dedc Switch Node World Wide Name = 0x100000053328dedc N_Port Symbolic Port Name = TEST_fcd0 N_Port Symbolic Node Name = TEST_HP-UX_B.11.31 Driver state = ONLINE Hardware Path is = 32/0/2/0/0/0/0 Maximum Frame Size = 2048 Driver-Firmware Dump Available = NO Driver-Firmware Dump Timestamp = N/A TYPE = PFC NPIV Supported = YES Driver Version = @(#) fcd B.11.31.1407 Jul 4 2014
• How to disable/enable HBA fcmsutil?
#fcmsutil /dev/fcd0 disable #fcmsutil /dev/fcd0 enable