Go to main content

Managing SAN Devices and Multipathing in Oracle® Solaris 11.3

Exit Print View

Updated: March 2018
 
 

How to Unconfigure One Path to a Multipathed FC Device

In contrast to the procedure in the preceding section, this procedure shows how to unconfigure one device associated with c2::50020f2300006107 and leave the other device, 50020f2300006077, configured. Only devices on a fabric-connected host port can be unconfigured through the cfgadm unconfigure command.

  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.

  2. Identify the Ap_Id of the multipathed device to be unconfigured.
    # 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
    c2                   fc-fabric   connected    configured   unknown
    c2::50020f2300005f24 disk        connected    configured   unknown
    c2::50020f2300006107 disk        connected    configured   unknown

    In this example, c0::50020f2300006077 and c2::50020f2300006107 Ap_Ids represent different port WWNs for the same device.

  3. Unconfigure the Ap_Id associated with the device.

    Note -  If the Ap_Id represents the last configured path to the device, stop all activity to the path and unmount any file systems on it. If the multipathing device is under any volume manager's control, see your volume manager documentation for maintaining the fabric device.

    In the example that follows, the path represented as c2::50020f2300006107 is unconfigured, and c0::50020f2300006077 remains configured to show how you can unconfigure just one of multiple paths for a multipathing device.

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

    The devices associated with that Ap_Id are still available to a system through the other path, represented by c0::50020f2300006077. A fabric device can be connected to multiple Ap_Ids and an Ap_Id can be connected to multiple devices.

    /dev/rdsk/c6t60020F20000061073AC8B52D000B74A3d0s2
    and
    /dev/rdsk/c6t60020F20000061073AC8B4C50004ED3Ad0s2