Changes the operational status of paths to an MultiPath I/O (MPIO) capable device, or changes an attribute associated with a path to an MPIO capable device.
chpath -l Name -s OpStatus [ -p Parent ] [ -w Connection ]
chpath -l Name -p Parent [ -w Connection ] [ -P ] -a Attribute=Value [ -a Attribute=Value ... ]
chpath -h
The chpath command either changes the operational status of paths to the specified device (the -l Name flag) or it changes one, or more, attributes associated with a specific path to the specified device. The required syntax is slightly different depending upon the change being made.
The first syntax shown above changes the operational status of one or more paths to a specific device. The set of paths to change is obtained by taking the set of paths which match the following criteria:
The operational status of a path refers to the usage of the path as part of MPIO path selection. The value of enable indicates that the path is to be used while disable indicates that the path is not to be used. It should be noted that setting a path to disable impacts future I/O, not I/O already in progress. As such, a path can be disabled, but still have outstanding I/O until such time that all of the I/O that was already in progress completes. As such, if -s disable is specified for a path and I/O is outstanding on the path, this fact will be output.
Disabling a path affects path selection at the device driver level. The path_status of the path is not changed in the device configuration database. The lspath command must be used to see current operational status of a path.
The second syntax shown above changes one or more path specific attributes associated with a particular path to a particular device. Note that multiple attributes can be changed in a single invocation of the chpath command; but all of the attributes must be associated with a single path. In other words, you cannot change attributes across multiple paths in a single invocation of the chpath command. To change attributes across multiple paths, separate invocations of chpath are required; one for each of the paths that are to be changed.
Privilege Control: Only the root user and members of the system group have execute access to this command.
Auditing Events:
Event | Information |
---|---|
DEV_Change | The chpath command line. |
chpath -l hdisk1 -p scsi0 -s disableThe system displays a message similar to one of the following:
paths disabledor
some paths enabledThe first message indicates that all PATH_AVAILABLE paths from scsi0 to hdisk1 have been successfully enabled. The second message indicates that only some of the PATH_AVAILABLE paths from scsi0 to hdisk1 have been successfully disabled.
/usr/sbin/chpath | Contains the chpath command. |
The lspath command, mkpath command, rmpath command.