<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 26, 2022 at 10:10 PM David Teigland <<a href="mailto:teigland@redhat.com">teigland@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Jan 26, 2022 at 06:41:07PM +0530, Lakshmi Narasimhan Sundararajan wrote:<br>
> From the code, all commands that internally does vg_open() gets stuck.<br>
<br>
vg_open() sounds like the old liblvm2app, is there a program you've<br>
written using that library?  That lib was seriously flawed, so you're<br>
unlikely to get it to work well.  It was dropped some years ago now.<br>
We can take a brief look at the debug output to see if there's any<br>
obvious workaround for whatever is blocking it.<br>
<br></blockquote><div><br>Yes, i highlighted vg_open() by reading the code. I understand that the code path is deprecated now and should not side line from the obvious problem.<br>The logs I posted was directly using lvm cli, it had nothing to do with the liblvm2app.</div><div>So the problem still exists and the workaround I posted wherein a pxd filter, takes out all pxd devices during vg handlings helps recover from this.<br><br>Secondly, it looks like any vg processing, first builts a lvm disk device cache by reading from a list of block devices. Those block devices include all dm devices,</div><div>which includes dm-crypt whose parent is a virtual pxd device in this particular case. That read gets blocked forever without the application being alive.<br>So a global pxd filter seemed like a good approach and it worked for us.<br><br>I definitely would like to hear from you all, as to any better way to recover from this situation. Please also see if the pxd filter that I posted earlier makes sense now, given that there is additional information that I posted that should have clarified the scenario further.</div><div><br>Looking forward to your response.<br><br>Thanks<br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Dave<br>
<br>
</blockquote></div></div>