Hi,<br><br>Hope its not dismounted properly . <br>Do a resize2fs again and lvchange -an <br><br>Regards<br>Prathyush<br><br><div class="gmail_quote">On Sun, Jul 24, 2011 at 1:17 PM, Alexander Lyakas <span dir="ltr"><<a href="mailto:alex.bolshoy@gmail.com">alex.bolshoy@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">OK, since nobody answered, let me perhaps ask a different question.<br>
<br>
Is there any way to prevent any automatic LV activation/deactivation?<br>
And have full manual control via lvm_lv_deactivate/lvm_lv_activate?<br>
<br>
Setting activation = 0 in global section of lvm.conf did not do the<br>
job, because then lvm_vg_create_lv_linear fails, so I even cannot<br>
create a LV.<br>
<br>
Thanks,<br>
   Alex.<br>
<div><div></div><div class="h5"><br>
<br>
On Tue, Jul 19, 2011 at 5:14 PM, Alexander Lyakas<br>
<<a href="mailto:alex.bolshoy@gmail.com">alex.bolshoy@gmail.com</a>> wrote:<br>
><br>
> Hello everybody,<br>
> I am using stock ubuntu natty with lvmlib 2.02.66:<br>
> root@11:/mnt/work/alex# uname -a<br>
> Linux 11 2.6.38-8-server #42-Ubuntu SMP Mon Apr 11 03:49:04 UTC 2011<br>
> x86_64 x86_64 x86_64 GNU/Linux<br>
><br>
> In my code I open a VG, iterate over all the LVs and then call<br>
> lvm_lv_deactivate() on each LV. The return value is 0, and also<br>
> immediately after that, I call lvm_lv_is_active() for each LV and<br>
> assert that it returns 0 (not-active).<br>
> Later in the code, I close the VG handle.<br>
><br>
> However, when I issue lvdisplay from command-line, I still see:<br>
> LV Status              available<br>
> and the dm device files for the LVs are also present (/dev/dm-0 etc).<br>
><br>
> As a result I cannot later stop the underlying md devices (PVs) using<br>
> 'mdadm --stop'.<br>
> If I do lvchange -an from the command line later, it succeeds, LV<br>
> status becomes 'NOT available' and I am able to stop the md arrays.<br>
><br>
> From looking at the code of lvmlib, it looks like lvm_lv_deactivate()<br>
> does not require lvm_vg_write(); I see that lvchange implementation<br>
> does not seem to call this when de-activating LVs. Still, I have tried<br>
> to call lvm_vg_write() with same effect.<br>
><br>
> No other application on the machine uses the same VG (at least not<br>
> that I know of).<br>
><br>
> Can anybody please advise what I might be missing.<br>
><br>
> Thanks,<br>
>  Alex.<br>
<br>
_______________________________________________<br>
linux-lvm mailing list<br>
<a href="mailto:linux-lvm@redhat.com">linux-lvm@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-lvm" target="_blank">https://www.redhat.com/mailman/listinfo/linux-lvm</a><br>
read the LVM HOW-TO at <a href="http://tldp.org/HOWTO/LVM-HOWTO/" target="_blank">http://tldp.org/HOWTO/LVM-HOWTO/</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><i style="font-family:garamond,serif"><b><span style="color:rgb(153, 153, 0)">Regards,</span><br style="color:rgb(153, 153, 0)"><span style="color:rgb(153, 153, 0)">Prathyush</span></b></i><br>