can't close logical volume

can't close logical volume

Amos Shapira amos.shapira at gmail.com
Sun Apr 18 16:08:01 IDT 2010


2010/4/18 Tom Rosenfeld <trosen at bezeqint.net>:
>
>
>
> On Sun, Apr 18, 2010 at 11:24 AM, Noam Meltzer <tsnoam at gmail.com> wrote:
>>
>> You need to deactivate all active LVs before trying to deactivate the VG.
>>
>> lvchange -an /dev/vgelg/lvelg
>>
>> - Noam
>>
> It won't let me since it thinks its open:
>
> # lvchange -an /dev/vgelg/lvelg
>   LV vgelg/lvelg in use: not deactivating

Last time I had something like this, as far as I remember, I had to
make sure I "losetup -d ..." the device (I was playing around with Xen
DomU's disk images from the Dom0 using losetup, xpartx and vgchange).
What does "losetup -a" shows?
Also maybe worth checking output of "lsof".

Cheers,

--Amos



More information about the Linux-il mailing list