"multipath -f" and "dmsetup remove" failed for a PV in an exported VG

Solution Unverified - Updated -

Issue

  • multipath -f and then dmsetup remove -f commands failed for a physical volume of an exported volume group. The commands were ran by a script. The commands worked fine for two PVs of the VG before.

Command return code after multipath -f mpath2 is 1 and error message :

mpath2: map in use

Command return code after dmsetup remove -f mpath2 is 1 and error message :

device-mapper: remove ioctl failed: Device or resource busy

Was able to remove manually the physical volume from multipathing. After that, script properly works with same volumes.

Environment

  • Red Hat Enterprise Linux (RHEL) 5.8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.