<div dir="ltr">
<br><br><div class="gmail_quote">On Sun, Apr 18, 2010 at 4:08 PM, Amos Shapira <span dir="ltr"><<a href="mailto:amos.shapira@gmail.com">amos.shapira@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
2010/4/18 Tom Rosenfeld <<a href="mailto:trosen@bezeqint.net">trosen@bezeqint.net</a>>:<br>
<div class="im">><br>
><br>
><br>
> On Sun, Apr 18, 2010 at 11:24 AM, Noam Meltzer <<a href="mailto:tsnoam@gmail.com">tsnoam@gmail.com</a>> wrote:<br>
>><br>
>> You need to deactivate all active LVs before trying to deactivate the VG.<br>
>><br>
>> lvchange -an /dev/vgelg/lvelg<br>
>><br>
>> - Noam<br>
>><br>
> It won't let me since it thinks its open:<br>
><br>
> # lvchange -an /dev/vgelg/lvelg<br>
> LV vgelg/lvelg in use: not deactivating<br>
<br>
</div>Last time I had something like this, as far as I remember, I had to<br>
make sure I "losetup -d ..." the device (I was playing around with Xen<br>
DomU's disk images from the Dom0 using losetup, xpartx and vgchange).<br>
What does "losetup -a" shows?<br>
Also maybe worth checking output of "lsof".<br>
<br>
Cheers,<br>
<font color="#888888"><br>
--Amos<br>
</font></blockquote></div><br>I am not using any loop devices so 'losetup -a' shows no output<br>'lsof' also has nothing for /dev/vgelg/lvelg since it has never been mounted on this machine.<br><br>Any other ideas?<br>
<br>Thanks,<br>-tom<br><br></div>