Reset HBA port in Oracle Solaris

If the devices not immediately available in fabric zones in a storage area network you can reinitialize the link to the devices by using the luxadm -e forcelip command.

The following command can be used to list HBA devices:

[root @ unixonline]
/ # luxadm -e port
/devices/pci@1c,600000/QLGC,qlc@1/fp@0,0:devctl                     CONNECTED
/devices/pci@1c,600000/QLGC,qlc@1,1/fp@0,0:devctl                   CONNECTED

The following command can be used to reset storage interconnects:

NOTICE: Do not try this in critical servers unless you are confident that multipathing is correctly configured.

[root @ unixonline]
/ # luxadm -e forcelip /devices/pci@1c,600000/QLGC,qlc@1/fp@0,0:devctl

forcelip command is reinitialize the link to the fabric-connected devices.

The forcelip command can be issued to the controller names(OS Device Name) as well:

[root @ unixonline]
/ # fcinfo hba-port
HBA Port WWN: 210000e08b8f8dee
        OS Device Name: /dev/cfg/c2
        Manufacturer: QLogic Corp.
        Model: QLA2462
        Firmware Version: 5.08.00
        FCode/BIOS Version:  BIOS: 1.12; fcode: 1.16; EFI: 1.04;
        Serial Number: RFC7896M88227
        Driver Name: qlc
        Driver Version: 20140422-5.01
        Type: unknown
        State: online
        Supported Speeds: 1Gb 2Gb 4Gb
        Current Speed: 4Gb
        Node WWN: 200000e08faf8dee
HBA Port WWN: 210100e08baf8dee
        OS Device Name: /dev/cfg/c3
        Manufacturer: QLogic Corp.
        Model: QLA2462
        Firmware Version: 5.08.00
        FCode/BIOS Version:  BIOS: 1.12; fcode: 1.16; EFI: 1.04;
        Serial Number: RFC7896M88228
        Driver Name: qlc
        Driver Version: 20140422-5.01
        Type: unknown
        State: online
        Supported Speeds: 1Gb 2Gb 4Gb
        Current Speed: 4Gb
        Node WWN: 200100e08faf8dea
		
		
[root @ unixonline]
/ # luxadm -e forcelip /dev/cfg/c2

Leave a Comment