Linux: Removing attach storage from a server manually
If multipathing is used find your paths and drive with:
multipath -l (to collect and note the paths to the disk. You will need this information)
Be sure to copy this information to a text editor for future review
Delete paths:
multipath -f path(letter) ( to remove the device from mutipath, where is the mpathX name or alias assigned to the multipath device)
Flush drives:
blockdev –flushbufs /dev/(devicename) ( for each path you collected with multipath -l. This part is especially important when deleting )
Delete drives:
echo 1 > /sys/block/devicename/device/delete
If the above does not work you can do the following:
dmsetup remove -f serialnumberfromthemultipathcommand