RedHat Remove SAN SCSI disk with multipath without rebooting
id : m6qxoz7uor
category : computer
blog : unixlinux
created : 10/21/10 - 10:24:58

Under lvm ?
  • If you're under lvm you need to disable your VG before remove disk :
# vgchange -an <vg_name>

Removing device
  • Get your sd (all multipath paths) devices with :
# multiapth -ll <mpathx>

  • Remove your multipath device:
# multipath -f <mpathx>

  • Flush multipath buffers :
# blockdev --flushbufs <device> (the ones your gets with multipath -ll)

  • Check mulitpath devices are removed :
# multipath -ll

  • Then remove dm devices through /sys pseudo file system :
# echo 1 > /sys/block/<dm-x>/device/delete

Usefull link