Linux Archive

Linux Archive (
-   CentOS (
-   -   Unable to remove an lvm on CentOS-6 (

"James B. Byrne" 09-07-2012 07:02 PM

Unable to remove an lvm on CentOS-6
I mistyped the storage allocation for an additional virtio drive for
one of our vm guests and now I cannot get rid of the thing.

I have discovered that this is probably, indeed almost certainly,
related to udev but the few work arounds I have found all seem to fail
for me.

Does anyone here know how to remove these things?

When I try this:

# for i in {1..200}; do udevadm control --stop-exec-queue ; lvremove
-f /dev/vg_vhost01/lv_vm_inet05.harte-lyne.ca_01; udevadm control
--start-exec-queue; done

I get hundreds of these:

Logical volume vg_vhost01/lv_vm_inet05.harte-lyne.ca_01 is used by
another device.

# lsof /dev/vg_vhost01/lv_vm_inet05.harte-lyne.ca_01

I recall that I ran into this before and I have a sinking feeling that
the 'fix' was to reinstall the then new virtual host OS. I have
(re-)opened a bug report:

But if anyone has a recipe to deal with this I would be grateful if
you would share it.

*** E-Mail is NOT a SECURE channel ***
James B. Byrne
Harte & Lyne Limited
9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3C3

CentOS mailing list

All times are GMT. The time now is 02:59 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.