Managing SAN Devices and Multipathing in Oracle® Solaris 11.2

Exit Print View

Updated: December 2014

Port Configuration Considerations

Before you start configuring the software by port, consider the following:

  • FC global and per-port multipath settings are specified in the /kernel/drv/fp.conf file.

    Per-port multipath settings have priority over the global setting. Therefore, if global multipathing is enabled but a specific port has been disabled for multipathing, the port will not be available in the multipathing configuration. Conversely, even if global multipathing has been disabled, specific ports may be enabled for multipathing if they are listed in the appropriate driver.conf file.

  • Load balancing is controlled by the global load-balance property in the/kernel/drv/scsi_vhci.conf file and is not controlled on a per-port basis.

  • If a device has more than one path to the host, all paths to the device must be configured with multipathing enabled or disabled.

  • Configuring multipathing by port enables the multipathing software to coexist with other multipathing solutions like Symantec (VERITAS) Dynamic Multipathing (DMP), or EMC PowerPath. However, devices and paths should not be shared between the multipathing software and other multipathing solutions.

How to Configure Multipathing by Port

The following procedure applies to both SPARC based and x86 based systems.

Depending on how many ports you want the multipathing software to control, you can enable or disable multipathing globally or for specified ports.

  1. Become an administrator.
  2. Determine the HBA controller ports that you want the multipathing software to control.

    To list the available devices, perform an ls –l command on the /dev/cfg directory. The following example shows the ls -l command output.

    # ls -l
    lrwxrwxrwx  1 root  root  50 Jan 29 21:33 c0 -> 
    lrwxrwxrwx  1 root  root  61 Jan 29 21:33 c1 ->
    lrwxrwxrwx  1 root  root  61 Jan 29 21:33 c2 -> 
    lrwxrwxrwx  1 root  root  53 Jan 29 21:33 c3 -> 
    lrwxrwxrwx  1 root  root  54 Apr 16 20:28 c5 ->
    lrwxrwxrwx  1 root  root  56 Apr 16 20:28 c6 -> 

    Note - Controllers c5 and c6 are ports A and B on a dual-port FC HBA. Controllers c1 and c3 are single port SAS HBA ports. Controller c2 is the internal SAS controller in Oracle's Sun Fire T2000 server.

    Determine the port or ports for which you want to explicitly enable or disable multipathing.

  3. Copy the /kernel/drv/fp.conf file to the /etc/driver/drv/fp.conf file.
  4. Select one of the following to enable or disable specific FC HBA ports:
    • For each FC HBA port that is to be enabled in the /etc/driver/drv/fp.conf, add the following line:

      name="fp" parent="parent‐name" port=port-number mpxio-disable="no";

      where parent‐name is the port device name, and port-number is the FC HBA port number.

      For example, the following entries disable multipathing on all FC HBA controller ports except for the two specified ports:

      name="fp" parent="/pci@6,2000/SUNW,qlc@2" port=0 mpxio-disable="no";
      name="fp" parent="/pci@13,2000/pci@2/SUNW,qlc@5" port=0 mpxio-disable="no";
    • For each FC HBA port that is to be disabled, add the following line:

      name="fp" parent="parent‐name" port=port-number mpxio-disable="yes";

      For example:

      name="fp" parent="/pci@6,2000/SUNW,qlc@2" port=0 mpxio-disable="yes";
  5. Start the reboot and configuration process.
    # stmsboot -u

    You are prompted to reboot. During the reboot, the /etc/vfstab file and your dump device configuration are updated to reflect any device name changes.

  6. (Optional)After the reboot, if necessary, configure your applications to use new device names as described in Multipathing Considerations.