FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

LinkBack Thread Tools
Old 09-07-2012, 07:02 PM
"James B. Byrne"
Default 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 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

Thread Tools

All times are GMT. The time now is 12:19 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org