Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   CentOS (http://www.linux-archive.org/centos/)
-   -   Unable to remove an lvm on CentOS-6 (http://www.linux-archive.org/centos/701523-unable-remove-lvm-centos-6-a.html)

"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:

https://bugzilla.redhat.com/show_bug.cgi?id=855409

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 mailto:ByrneJB@Harte-Lyne.ca
Harte & Lyne Limited http://www.harte-lyne.ca
9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3C3

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


All times are GMT. The time now is 04:03 AM.

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