Identifying HBAs
After an HBA is installed on a host, run the following command on the host to check whether the HBA is identified by the host.
bash-3.2# cfgadm -al
Ap_Id Type Receptacle Occupant Condition
c0 scsi-bus connected configured unknown
c0::dsk/c0t0d0 CD-ROM connected configured unknown
c1 scsi-sata connected configured unknown
c1::dsk/c1t0d0 disk connected configured unknown
c1::dsk/c1t1d0 disk connected configured unknown
c1::dsk/c1t2d0 disk connected configured unknown
c1::dsk/c1t3d0 disk connected configured unknown
c7 fc-private connected configured unknown
c7::2013323232323232 disk connected configured unknown
c8 fc-private connected configured unknown
c8::2003323232323232 disk connected configured unknown
usb0/1 unknown empty unconfigured ok
usb0/2 unknown empty unconfigured ok
usb0/3 unknown empty unconfigured ok
usb1/1.1 unknown empty unconfigured ok
usb1/1.2 unknown empty unconfigured ok
usb1/1.3 unknown empty unconfigured ok
usb1/1.4 unknown empty unconfigured ok
usb1/2 unknown empty unconfigured ok
usb1/3 unknown empty unconfigured ok
usb2/1 unknown empty unconfigured ok
usb2/2 unknown empty unconfigured ok
usb2/3 unknown empty unconfigured ok
usb2/4 unknown empty unconfigured ok
usb2/5 unknown empty unconfigured ok
usb2/6 unknown empty unconfigured ok
usb2/7 unknown empty unconfigured ok
usb2/8 unknown empty unconfigured ok
In the command output, two Ap_Ids (c7 and c8) are of the fc-private type. This indicates that the host has identified two Fibre Channel ports on the HBAs.
Make sure that Receptacle is connected and Occupant is configured. If both parameters are incorrect, follow-up operations such as LUN discovery will be affected.
If Receptacle is connected and Occupant is unconfigured, perform the following operations:
- Manually configure the device.
Run the cfgadm -c configure cx command, in which cx is a variable that is set based on site requirements.
- Forcibly initialize the device.
Run the luxadm -e port command to query the device that must be forcibly initialized, and then run the luxadm -e forcelip device command to initialize the Fibre Channel link of the port. The following is an example:
bash-3.2# luxadm -e port
/devices/pci@1f,700000/pci@0/fibre-channel@2/fp@0,0:devctl CONNECTED
/devices/pci@1f,700000/pci@0/fibre-channel@2,1/fp@0,0:devctl CONNECTED
bash-3.2#
bash-3.2# luxadm -e forcelip /devices/pci@1f,700000/pci@0/fibre-channel@2/fp@0,0:devctl
bash-3.2#
When this command is executed, the HBA port is initialized. All links on the port are interrupted and then reconnected.
- Restart the host.
If the preceding methods cannot resolve the problem, run the shutdown -y -i6 -g0 command to restart the host. Exercise caution when performing this operation, because this affects services on the host.