Solaris Express SAN Configuration and Multipathing Guide

Configuring Device Nodes With Solaris Multipathing Software Enabled

This section describes how to perform fabric device configuration steps on a host that has the multipathing software enabled.

The devices attached to the fabric-connected host port are not configured by default and so are not available to the host using the Solaris Express Developer's Edition OS. Use the cfgadm configure and cfgadm unconfigure commands to manage device node creation for fabric devices. See the cfgadm_fp(1M) man page for additional information. The procedures in this section illustrate steps to detect fabric devices that are visible on a host and to configure them as multipathing devices to make them available to the host using the Solaris Express Developer's Edition OS.

The device information that you supply, and that is displayed by the cfgadm(1M) command, depends on your system configuration. For more information on the cfgadm command, see the cfgadm_fp(1M) and cfgadm(1M) man pages.

ProcedureTo Configure Individual Devices With Sun StorageTek Traffic Manager Software

This sample procedure uses fabric-connected host ports c0 and c2 to configure fabric devices as multipath devices on a host that has the Sun StorageTek Traffic Manager software enabled.

The cfgadm -c configure command for fabric devices is the same regardless of whether multipathing is enabled.

  1. Log in as root (su - root)..

  2. Identify the port WWN of the device to be configured as the Sun StorageTek Traffic Manager software device.

    Look for devices on a fabric-connected host port marked as fc-fabric. These devices are the devices you can configure with the cfgadm -c configure command.


    # 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
    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
    c2                   fc-fabric  connected   unconfigured unknown
    c2::50020f2300005f24 disk       connected   unconfigured unknown
    c2::50020f2300006107 disk       connected   unconfigured unknown

    In the above example, the c0::50020f2300006077 and c2::50020f2300006107 Ap_Ids represent the same storage device with different port WWNs for the storage device controllers. The c0 and c2 host ports are enabled for use by the Sun StorageTek Traffic Manager software.

  3. Configure the fabric device and make the devices available to the host.


    # cfgadm -c configure c0::50020f2300006077 c2::50020f2300006107
    
  4. Verify that the selected devices 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   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
    c2                   fc-fabric  connected   configured   unknown
    c2::50020f2300005f24 disk       connected   unconfigured unknown
    c2::50020f2300006107 disk       connected   configured   unknown

    Notice that the Occupant column of c0 and c0::50020f2300006077 specifies configured, which indicates that the c0 port has at least one configured occupant and that the c0::50020f2300006077 device is configured. The same change has been made in c2 and c2::50020f2300006107.

    When the configure operation has been completed without an error, multipathing-enabled devices are created on the host. If the physical device represented by c0::50020f2300006077 and c2::50020f2300006107 has multiple SCSI LUNs configured, each LUN is configured as a Sun StorageTek Traffic Manager software device. The example below shows that two LUNs are configured through c0::50020f2300006077 and c2::50020f2300006107. Each Ap_Id is associated with a path to those Sun StorageTek Traffic Manager software devices.


    # cfgadm -al -o show_SCSI_LUN c0::50020f2300006077\ c2::50020f2300006107
    Ap_Id                  Type    Receptacle   Occupant     Condition
    c0::50020f2300006077,0 disk    connected    configured   unknown
    c0::50020f2300006077,1 disk    connected    configured   unknown
    c2::50020f2300006107,0 disk    connected    configured   unknown
    c2::50020f2300006107,1 disk    connected    configured   unknown

    The example above shows that the following two multipathing-enabled devices are created for the device represented by c0::50020f2300006077 and c2::50020f2300006107:

ProcedureTo Configure Multiple Devices With Multipathing

Before you configure or remove device nodes, be sure to first identify the fabric devices by using the procedure Ensuring That LUN Level Information Is Visible.

In this example, an Ap_Id on a fabric-connected host port is a path to the Sun StorageTek Traffic Manager software device. For example, all devices with a path through c2 are to be configured, but none through c0 are to be configured. c2 is an attachment point from the host to the fabric, whereas c2::50020f2300006107 is an attachment point from the storage to the fabric. A host detects all the storage devices in a fabric for which it is configured.

Configuring an Ap_Id on the device that has already been configured through another Ap_Id results in an additional path to the previously configured device. A new device node is not created in this case. The device node is created only the first time an Ap_Id to the corresponding device is configured.

  1. Log in as root (su - root)..

  2. Identify the fabric-connected host port to be 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
    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
    c2                   fc-fabric   connected   unconfigured unknown
    c2::50020f2300005f24 disk        connected   unconfigured unknown
    c2::50020f2300006107 disk        connected   unconfigured unknown

    Devices represented by Ap_Ids c0::50020f2300006077 and c2::50020f2300006107 are two paths to the same physical device, with c0::50020f2300006077 already configured. Configure the unconfigured devices on the selected port. This operation repeats the configure command of an individual device for all the devices on c2. This can be time-consuming if the number of devices on c2 is large.


    # cfgadm -c configure c2
    
  3. Verify that all devices on c2 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
    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
    c2                   fc-fabric  connected    configured   unknown
    c2::50020f2300005f24 disk       connected    configured   unknown
    c2::50020f2300006107 disk       connected    configured   unknown

    Notice that the Occupant column of c2 and all of the devices under c2 is marked as configured.

    The show_SCSI_LUN command displays FCP SCSI LUN information for multiple LUN SCSI devices. The following code example shows that the physical devices connected through by c2::50020f2300006107 and c2::50020f2300005f24 each have two LUNs configured.


    # cfgadm -al -o show_SCSI_LUN c2
    Ap_Id                 Type     Receptacle   Occupant     Condition
    c2                   fc-fabric connected    configured   unknown
    c2::50020f2300005f24,0 disk    connected    configured   unknown
    c2::50020f2300005f24,1 disk    connected    configured   unknown
    c2::50020f2300006107,0 disk    connected    configured   unknown
    c2::50020f2300006107,1 disk    connected    configured   unknown