<div dir="ltr">I abandoned the bind-based mounts as I could not make them work. I went with direct /dev/ manipulation instead. See my blog entry on this:<br><a href="http://skliarie.blogspot.com/2011/11/llslxclvmsnapshots.html">http://skliarie.blogspot.com/2011/11/llslxclvmsnapshots.html</a><br>
<br>Please leave a comment if you find this useful.<br><br clear="all">--<br>Arie<br><br>
<br><br><div class="gmail_quote">On Sun, Nov 13, 2011 at 15:29, Arie Skliarouk <span dir="ltr"><<a href="mailto:skliarie@gmail.com">skliarie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr">Hi,<br><br>In our company we deal with massive datasets that needs to be easy to copy, modify a fraction of it and scrape. Snapshotting is an ideal solution here.<br><br>I started writing LLS scripts (will opensource them upon completion) that enable users to snapshot existing physical volumes and mount them from inside of the container.<br>
<br>For that there is a daemon script on the host and client scripts on the vservers. The clients communicate with the server over a named pipe in a shared (bind mount) directory /lls (lls - LXC+LVM+Snapshots). The directory is actually a small partition that is mounted with --make-rshared flag on the host. The partition is mounted on each vserver. This enables a snapshot to be created on the host machine, mounted onto some /lls/snapshot_version directory and thus become visible to all vservers (security is not an issue here).<br>
<br>This works as long as the vservers are up and running.<br><br>If some partition is mounted onto /lls/abc, the partition is no longer visible after a vserver is started (it appears empty, both from the host and from the vserver). I suspect this relates to the way bind mount works.<br>
<br>Please help me to understand the way bind mount work.<br><br>PS. If you have a different approach to propose, please share.<span class="HOEnZb"><font color="#888888"><br><br>--<br>Arie<br><br>
</font></span></div>
</blockquote></div><br></div>