Linux – is multipath -F safe? (flush all unused paths)

linuxmultipathstorage-area-network

from multipath manpage:

-F     flush all unused multipath device maps

is this a safe operation? I have a bunch of old dead paths and would like to clear them out, but want to make sure it's absolutely safe to do. I've heard ql-scan-lun.sh -r, which is supposed to do the same thing, can interrupt visibility of all the LUNS. using qlogic qla2xxx hbas.

Best Answer

Yes, it is safe. However, if any other subsystem is using them (lvm, mount) or you have queued I/Os the paths won't be flushed and you'll need to figure out why.

Edit: use -f device to be safe.

See http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Online_Storage_Reconfiguration_Guide/removing_devices.html