lvremove command fails with error 'device-mapper: remove ioctl on failed: Device or resource busy'

Solution Verified - Updated -

Issue

  • lvremove command is failing to remove the lvm volume and shows following error messages:

    $ lvremove /dev/testvg/testlv
    Do you really want to remove active logical volume testlv? [y/n]: y
      device-mapper: remove ioctl on  failed: Device or resource busy
      device-mapper: remove ioctl on  failed: Device or resource busy
      device-mapper: remove ioctl on  failed: Device or resource busy
      device-mapper: remove ioctl on  failed: Device or resource busy
      Unable to deactivate testlv (253:37)
      Unable to deactivate logical volume "testlv"
    
  • The lvm volume is unmounted before trying above lvremove command, also there are no applications using this lv, but still lvremove command is unable to deactivate and remove the lv

Environment

  • Red Hat Enterprise Linux 6

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