This section describes fabric device configuration tasks on a host that does not have multipathing enabled.
The procedures in this section show how to detect fabric devices that are visible on a host and to configure and make them available to a host using the Solaris Express Developer's Edition OS. The procedures in this section use specific devices as examples to illustrate how to use the cfgadm(1M) command to detect and configure fabric devices.
The device information that you supply and that is displayed by the cfgadm(1M) command depends on your system configuration.
This sample procedure describes how to configure a fabric device that is attached to the fabric-connected host port c0.
Log in as root (su - root).
Identify the device to be configured.
# cfgadm -al Ap_Id Type Receptacle Occupant Condition c0 fc-fabric connected unconfigured unknown c0::50020f2300006077 disk connected unconfigured unknown c0::50020f23000063a9 disk connected unconfigured unknown c0::50020f2300005f24 disk connected unconfigured unknown c0::50020f2300006107 disk connected unconfigured unknown c1 fc-private connected configured unknown c1::220203708b69c32b disk connected configured unknown c1::220203708ba7d832 disk connected configured unknown c1::220203708b8d45f2 disk connected configured unknown c1::220203708b9b20b2 disk connected configured unknown |
Configure the fabric device.
# cfgadm -c configure c0::50020f2300006077 |
Verify that the selected fabric device is configured.
# cfgadm -al Ap_Id Type Receptacle Occupant Condition c0 fc-fabric connected configured unknown c0::50020f2300006077 disk connected configured unknown c0::50020f23000063a9 disk connected unconfigured unknown c0::50020f2300005f24 disk connected unconfigured unknown c0::50020f2300006107 disk connected unconfigured unknown c1 fc-private connected configured unknown c1::220203708b69c32b disk connected configured unknown c1::220203708ba7d832 disk connected configured unknown c1::220203708b8d45f2 disk connected configured unknown c1::220203708b9b20b2 disk connected configured unknown |
Notice that the Occupant column for both c0 and c0::50020f2300006077 displays as configured, indicating that the c0 port has a configured occupant and that the c0::50020f2300006077 device is configured.
Use the show_SCSI_LUN option to display FCP SCSI LUN information for multi-LUN SCSI devices.
The following code example shows that the physical devices connected through Ap_Id c0:50020f2300006077 have four LUNs configured.
# cfgadm -al -o show_SCSI_LUN c0 Ap_Id Type Receptacle Occupant Condition c0 fc-fabric connected configured unknown c0::50020f2300006077,0 disk connected configured unknown c0::50020f2300006077,1 disk connected configured unknown c0::50020f2300006077,2 disk connected configured unknown c0::50020f2300006077,3 disk connected configured unknown |
The device is now available on the host using the Solaris Express Developer's Edition OS. The paths represent each SCSI LUN in the physical device represented by c0::50020f2300006077.
Make sure you first identify the devices visible to the host with the procedure Ensuring That LUN Level Information Is Visible. This procedure describes how to configure all unconfigured fabric devices that are attached to a fabric-connected host port. The port used as an example is c0.
Log in as root (su - root).
Identify the devices to be configured.
# cfgadm -al Ap_Id Type Receptacle Occupant Condition c0 fc-fabric connected unconfigured unknown c0::50020f2300006077 disk connected unconfigured unknown c0::50020f23000063a9 disk connected unconfigured unknown c0::50020f2300005f24 disk connected unconfigured unknown c0::50020f2300006107 disk connected unconfigured unknown c1 fc-private connected configured unknown c1::220203708b69c32b disk connected configured unknown c1::220203708ba7d832 disk connected configured unknown c1::220203708b8d45f2 disk connected configured unknown c1::220203708b9b20b2 disk connected configured unknown |
Configure all of the unconfigured devices on the selected port.
# cfgadm -c configure c0 |
This operation repeats the configure operation of an individual device for all the devices on c0. This can be time consuming if the number of devices on c0 is large.
Verify that all devices on c0 are configured.
# cfgadm -al Ap_Id Type Receptacle Occupant Condition c0 fc-fabric connected configured unknown c0::50020f2300006077 disk connected configured unknown c0::50020f23000063a9 disk connected configured unknown c0::50020f2300005f24 disk connected configured unknown c0::50020f2300006107 disk connected configured unknown c1 fc-private connected configured unknown c1::220203708b69c32b disk connected configured unknown c1::220203708ba7d832 disk connected configured unknown c1::220203708b8d45f2 disk connected configured unknown c1::220203708b9b20b2 disk connected configured unknown |
Use the show_SCSI_LUN command to display FCP SCSI LUN information for multi-LUN SCSI devices.
The following code example shows that the physical devices represented by c0::50020f2300006077 and c0::50020f2300006107 each have four LUNs configured. The physical devices represented by c0::50020f23000063a9 and c0::50020f2300005f24 each have two LUNs configured.
# cfgadm -al -o show_SCSI_LUN c0 Ap_Id Type Receptacle Occupant Condition c0 fc-fabric connected configured unknown c0::50020f2300006077,0 disk connected configured unknown c0::50020f2300006077,1 disk connected configured unknown c0::50020f2300006077,2 disk connected configured unknown c0::50020f2300006077,3 disk connected configured unknown c0::50020f23000063a9,0 disk connected configured unknown c0::50020f23000063a9,1 disk connected configured unknown c0::50020f2300005f24,0 disk connected configured unknown c0::50020f2300005f24,1 disk connected configured unknown c0::50020f2300006107,0 disk connected configured unknown c0::50020f2300006107,1 disk connected configured unknown c0::50020f2300006107,2 disk connected configured unknown c0::50020f2300006107,3 disk connected configured unknown |