I've 22Tb lun from SAN Storage (HITACHI) on my Linux Server(CentOS 6.7). I configure multipath for this lun, and now I wanna remove it. The storage team deattach the lun from my server and when I run "multipath -ll"it still exists.
mpathf (360060e801667af00000167af0000014b) dm-2 HITACHI,OPEN-V*12 size=22T features='0' hwhandler='0' wp=rw `-+- policy='round-robin 0' prio=0 status=enabled
|- 3:0:0:3 sdf 8:80 failed faulty running
`- 3:0:1:3 sdn 8:208 failed faulty running
this message stay until I reboot the server and i can't reboot all of my servers because they are in production environment. anybody know what should I do? Thanks
First you need to be sure the mpathf
device is not being used:
lsof | grep mpathf
dmsetup info mpathf | grep -i open
In the dmsetup info
open count needs to be equal to 0
So you are using the luns with lvm or something else, you need to remove everything from the lun.
Now you can delete sub disks with echo 1 > /sys/block/<x>/device/delete