How to configure native multipathing for Solaris 10

To configure Solaris 10's native multipathing you should first check to see if it is enabled. Look at the Fibre Channel Port Driver Configuration file located at /kernel/drv/fp.conf. By default multipathing is disabled on SPARC-based systems and enabled on x86-based systems.

Find the entry for mpxio-disable and set it to "no" like so:

mpxio-disable="no";




If you are using a third-party storage device then you will also need to edit the file /kernel/drv/scsi_vhci.conf to add an entry for your storage device. Find the entry for device-type-scsi-options-list. To determine what information to enter here you will need to use the format command to do an "inquiry" on the LUN you want to configure for multipathing. Here's an example:
# format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
       0. c1t0d0 
          /pci@1c,600000/scsi@2/sd@0,0
       1. c2t50060E8006CF6971d0 
          /pci@1d,700000/fibre-channel@1/fp@0,0/ssd@w50060e8006cf6971,0
Specify disk (enter its number): 1
selecting c2t50060E8006CF6971d0
[disk formatted]
Disk not labeled.  Label it now? n

FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !     - execute , then return
        quit
format>i
Vendor:   HITACHI
Product:  OPEN-V-CM
Revision: 7002

The information we are interested in is the Vendor and Product. The Vendor must be exactly 8 characters and must be padded if it is less than that. The Product must be 16 characters or less and does not need to be padded. So in this case we would create the following entry:
device-type-scsi-options-list =
"HITACHI OPEN-V-CM", "symmetric-option";


Save the file and then execute stmsboot -u, which will update the configuration and reboot the server so the changes can take effect. In my case the command took a few minutes before it rebooted so be patient if it looks like it is hung.

To verify that the multipathing is configured correctly use the luxadm command to show the pathing like so:
# luxadm display /dev/rdsk/c2t50060E8006CF6971d0s2
DEVICE PROPERTIES for disk: /dev/rdsk/c2t50060E8006CF6971d0s2
  Vendor:               HITACHI
  Product ID:           OPEN-V-CM
  Revision:             7002
  Serial Num:           50 0CF690F00
  Unformatted capacity: 100.312 MBytes
  Write Cache:          Enabled
  Read Cache:           Enabled
    Minimum prefetch:   0x0
    Maximum prefetch:   0x0
  Device Type:          Disk device
  Path(s):

  /dev/rdsk/c2t50060E8006CF6971d0s2
  /devices/pci@1d,700000/fibre-channel@1/fp@0,0/ssd@w50060e8006cf6971,0:c,raw
    LUN path port WWN:          50060e8006cf6971
    Host controller port WWN:   210000e08b920e34
    Path status:                O.K.
  /dev/rdsk/c3t50060E8006CF6915d0s2
  /devices/pci@1d,700000/fibre-channel@1,1/fp@0,0/ssd@w50060e8006cf6915,0:c,raw
    LUN path port WWN:          50060e8006cf6915
    Host controller port WWN:   210100e08bb20e34
    Path status:                O.K.

We can see that both paths are up and available.