Removes a path from a multipath I/O (MPIO) capable device.
rmpath -l Name [ -d [ -c ] ] [ -p Parent ] [ -w Connection ] [ -v Level ]
rmpath -h
The rmpath command undefines, unconfigures, or both undefines and unconfigures a path in the Customized Paths (CuPath) object class for the specified device (-l Name). The set of paths that is removed is indicated by the -p Parent and -w Connection flags. If the command results in all paths associated with the device being unconfigured or undefined, the command exits with an error and without unconfiguring or undefining any path. The rmdev command must be used instead since the device is to be unconfigured or undefined. It is not an error for rmpath to attempt to unconfigure paths that are not configured. The default action unconfigures each specified path while retaining its definition in the CuPath object class.
If the -d flag is specified, the rmpath command deletes (undefines) the path definition from the CuPath object class. The path must already be unconfigured unless the -c flag is also specified. If the -d flag is not specified, the rmpath command unconfigures each specified path and sets its Path_Status to the Path_Defined state.
When unconfiguring multiple paths, this command may only be able to unconfigure some paths and not others. For example, paths that are in the process of doing I/O, cannot be unconfigured. If this happens, the command indicates only that this occurred. To determine which paths are still configured, the lspath command should be executed.
Attention: To protect the Configuration database, the rmpath command cannot be interrupted. Stopping this command before execution is complete could result in a corrupted database.
rmpath -l hdisk1 -p scsi0
The system displays a message similar to the following:
hdisk1 paths from parent scsi0 defined
rmpath -d -c -l hdisk1 -p scsi0
The system displays a message similar to the following:
hdisk1 paths from parent scsi0 deleted
/usr/sbin/rmpath | Contains the rmpath command. |
The lspath command, rmdev command.