MPATHADM(8) | Maintenance Commands and Procedures | MPATHADM(8) |
mpathadm - multipath discovery and administration
mpathadm subcommand direct-object [options] [operand]
The mpathadm command enables multipathing discovery and management. The mpathadm command is implemented as a set of subcommands, many with their own options, that are described in the section for that subcommand. Options not associated with a particular subcommand are described under OPTIONS. The mpathadm subcommands operate on a direct-object. These are described in this section for each subcommand. The direct-objects, initiator-port, target-port, and logical-unit in the subcommands are consistent with SCSI standard definitions.
The mpathadm command supports the following subcommands, which are described in detail in subsections that follow.
list
show
modify
enable
disable
failover
override
The mpathadm subcommands operate on a direct-object. These are described in this section for each subcommand.
The syntax for the list subcommand is:
# mpathadm list direct-object [operands...]
The list subcommand displays data for following direct-objects:
mpath-support [mpath-support-name, ...]
initiator-port [initiator-port-name, ...]
{logical-unit | lu} [options] [logical-unit-name, ...]
Options for list logical-unit are as follows:
-n, --name name
-t, --target-port target-port-name
The syntax for the show subcommand is:
# mpathadm show direct-object [operands...]
The show subcommand displays detailed information for following the direct-objects:
mpath-support [mpath-support-name, ...]
initiator-port initiator-port-name[,initiator-port-name, ...]
{logical-unit | lu} [logical-unit-name, ...]
The syntax for the modify subcommand is:
# mpathadm modify direct-object [options] [operands...]
The modify subcommand modifies characteristics of the following direct-objects:
mpath-support [options] mpath-support-name, ...
-a, --autofailback on | off
-p, --autoprobe on | off
-b, --loadbalance loadbalance-type
{logical-unit | lu} [options] logical-unit-name, ...
-a, --autofailback on | off
-p, --autoprobe on | off
-b, --loadbalance loadbalance-type
The syntax for the enable subcommand is:
# mpathadm disable [options]
The enable subcommand supports the following direct-objects to be enabled:
path -i initiator-port-name -t
target-port-name
-l logical-unit-name
The syntax for the disable subcommand is:
# mpathadm disable [options]
The disable subcommand supports the following direct-objects to be disabled:
path -i initiator-port-name -t
target-port-name
-l logical-unit-name
The syntax for the failover subcommand is:
# mpathadm failover direct-object [operand]
The failover subcommand supports failover for the following direct-objects:
{logical-unit | lu} logical-unit-name
The syntax for the override subcommand is:
# mpathadm override [options]
The override subcommand controls whether or not the following direct-objects override another:
path {-i initiator-port-name -t
target-port-name | -c}
-l logical-unit-name
Options for override path are as follows:
-i, --initiator-port initiator-port-name
-t, --target-port target-port-name
-l, --logical-unit logical-unit
-c, --cancel
The following options are supported:
-V, --version
-?, --help
# mpathadm add mpath-support-help
... mpathadm responds with a display of the options available for that combination of subcommand and direct-object.
Example 1 Obtaining a List of Multipathing Support
The following command uses the list subcommand to list all currently registered mpath-support libraries.
# mpathadm list mpath-support mpath-support: libmpscsi_vhci.so
Example 2 Displaying the Properties of a Particular Multipathing Support
The following command uses the show subcommand to display the properties for a currently registered mpath-support library.
# mpathadm show mpath-support libmpscsi_vhci.so mpath-support: libmpscsi_vhci.so
Vendor: Sun Microsystems
Driver Name: scsi_vhci
Default Load Balance: round-robin
Supported Load Balance Types:
round-robin logical-block Allows To Activate Target Port Group Access: yes Allows Path Override: no Supported Auto Failback Config: 1 Auto Failback: on Failback Polling Rate (current/max): 0/0 Supported Auto Probing Config: 0 Auto Probing: NA Probing Polling Rate (current/max): NA/NA Supported Devices:
Vendor: SUN
Product: T300
Revision:
Supported Load Balance Types:
round-robin
Vendor: SUN
Product: T4
Revision:
Supported Load Balance Types:
round-robin
Example 3 Obtaining a List of Initiator Ports Discovered Through the mpath-support Libraries
The following command uses the list initiator-port subcommand to display a list of initiator ports discovered by the currently registered mpath-support libraries.
# mpathadm list initiator-port Initiator-Port: iqn.1986-03.com.sun:01:080020b7ac2b.437a3b3e,4000002a0000 Initiator-Port: 2000000173018713 Initiator-Port: 2000000173818713
Example 4 Displaying the Properties of a Particular Initiator Port
The following command uses the show initiator-port subcommand to display the properties of a particular initiator port discovered using the list initiator-port subcommand in an example above.
# mpathadm show initiator-port 2000000173018713 initiator-port: 2000000173018713
Transport Type: Fibre Channel
OS device File: devices/pci@1f,4000/pci@2/SUNW,qlca@5/fp@0,0:fc
Example 5 Displaying the Properties of a Particular Logical Unit
The following command uses the show logical-unit subcommand to display the properties of the logical unit with the specified name.
# mpathadm show lu /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2 Logical Unit: /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2 mpath-support libmpscsi_vhci.so Vendor: SUN Product: T4 Revision: 0301 Name Type: SCSI Inquiry VPD Page 83 type 3 Name: 60003ba27d2120004204ac2b000dab00 Asymmetric: yes Current Load Balance: round-robin Logical Unit Group ID: NA Auto Failback: on Auto Probing: NA Paths: Initiator Port Name: 2000000173818713 Target Port Name: 20030003ba27d212 Override Path: NA Path State: OK Disabled: no Initiator Port Name: 2000000173018713 Target Port Name: 20030003ba27d095 Override Path: NA Path State: OK Disabled: no Target Port Group: ID: 2 Explicit Failover: yes Access State: standby Target Ports: Name: 20030003ba27d212 Relative ID: 0 ID: 5 Explicit Failover: yes Access State: active Target Ports Name: 20030003ba27d095 Relative ID: 0
Example 6 Enabling a Path
The following command uses the enable path subcommand to enable the path with the specified initiator port, target port, and logical unit.
# mpathadm enable path -i 2000000173018713 -t 20030003ba27d095 \ -l /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
Example 7 Modifying mpath-support To Turn On autofailback
# mpathadm modify mpath-support -a on libmpscsi_vhci.so
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | Evolving |
September 12, 2020 | OmniOS |