a. Remove the logical volumes
b. Remove the volume groups
c. Remove the physical volumes
(Another variation of this operation is echo 1 > /sys/class/scsi_device/h:c:t:l/device/delete, where h is the HBA number, c is the channel on the HBA, t is the SCSI target ID, and l is the LUN)
a. Do this for every device name in the mpath that has to be removed:
b. Run multipath –ll to see the devices Eg. :
echo 1 > /sys/block/sdck/device/delete echo 1 > /sys/block/sdcw/device/delete echo 1 > /sys/block/sdi/device/delete echo 1 > /sys/block/sdu/device/delete echo 1 > /sys/block/sdce/device/delete echo 1 > /sys/block/sdcq/device/delete echo 1 > /sys/block/sdc/device/delete echo 1 > /sys/block/sdo/device/delete * If the device uses multipathing, run multipath -l and note all the paths to the device.
NB! Note the wwn before you delete the multipath!
multipath –f mpath0
Thanks to Mikkel Arnberg for the input to this article.