Unable to remove an lvm on CentOS-6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxxxxxx
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@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux