"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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content