25.10. Removing a Path to a Storage Device
Procedure 25.12. Removing a Path to a Storage Device
- Remove any reference to the device's path-based name, like
major:minornumber, in applications, scripts, or utilities on the system. This is important in ensuring that different devices added in the future will not be mistaken for the current device.
- Take the path offline using
echo offline > /sys/block/sda/device/state.This will cause any subsequent I/O sent to the device on this path to be failed immediately. Device-mapper-multipath will continue to use the remaining paths to the device.
- Remove the path from the SCSI subsystem. To do so, use the command
echo 1 > /sys/block/device-name/device/deletewhere
sde, for example (as described in Procedure 25.11, “Ensuring a Clean Device Removal”).