lvremove command fails with error 'device-mapper: remove ioctl on failed: Device or resource busy'
Issue
-
lvremovecommand 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
lvremovecommand, also there are no applications using this lv, but stilllvremovecommand 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 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.
