<div dir="ltr"><div dir="ltr">Hi Zdenek,</div><div dir="ltr"><br></div><div>Thanks for your reply. The use case is for containerd snapshooter, yes, all lvm setup is on host machine, creating thin LV for VM-based/KATA container as rootfs.</div><div><br></div><div>For example:</div><div><a href="https://github.com/containerd/containerd/pull/3136">https://github.com/containerd/containerd/pull/3136</a><br></div><div><br></div><div>and</div><div><br></div><div><a href="https://github.com/containerd/containerd/pull/3022">https://github.com/containerd/containerd/pull/3022</a><br></div><div><br></div><div>So, we're evaluating such solution now~</div><div><br></div><div>Thanks,</div><div>Eric</div><div><br></div><div dir="ltr"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 11 Apr 2019 at 19:04, Zdenek Kabelac <<a href="mailto:zkabelac@redhat.com">zkabelac@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">Dne 11. 04. 19 v 2:27 Eric Ren napsal(a):<br>
> Hello list,<br>
> <br>
> Recently, we're exercising our container environment which uses lvm to manage <br>
> thin LVs, meanwhile we found a very strange error to activate the thin LV:<br>
> <br>
<br>
<br>
Hi<br>
<br>
<br>
The reason is very simple here - lvm2 does not work from containers.<br>
It's unsupported and if it partially works - it's a pure lucky case.<br>
<br>
ATM it's simply clear statement that lvm2 cannot be used from container simply <br>
because block layer is not namespaced.<br>
<br>
I'd give here long list of reason why it currently cannot work, but for now  - <br>
you should focus on making all 'device-block' operation on you host - and pass <br>
results to container.<br>
<br>
Regards<br>
<br>
Zdenek<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">- Eric Ren<br></div></div>