How to get rid of or remove the multipath device without rebooting the server, rescanning the scsi bus, or restarting multipathd
Issue
- Unable to remove the multipath device after unmapping the LUN from the server.
-
Attempting to flush a multipath map with "multipath -f" or "multipath -F" results in "map in use":
# multipath -f mpath7 mpath7: map in use -
The multipath command still shows the multipath device, with path(s) to the unmapped LUN as follows:
# multipath -ll mpath7 mpath7 (36090a01870982994dcb8d4405ed03cbf) dm-7 , [size=4.4T][features=1 queue_if_no_path][hwhandler=0][rw] \_ round-robin 0 [prio=0][enabled] \_ #:#:#:# - #:# [failed][faulty]
Environment
- Red Hat Enterprise Linux 5, 6
- Device mapper multipath
- SAN connected storage
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
