<div dir="ltr">Hi Fajar,<div><br></div><div>(1) Understood, I was just trying to work out if mine was one.</div><div>(2) I've got it working with the client connecting to the server IP address, does this still have problems? One of the issues I have with LXC is knowing when an action is considered to be on the same machine as the host and when it's separate.</div><div>(3) My portability concern was around being able to migrate a container to a new host, so yeah, I would need to add the NFS share on the new host as well.</div><div>(4) For backups I read somewhere that if you tar a container with a bind mount you also tar the contents of the mount, so if I bind mount then I'll need to work out a way to remove the bind mount prior to running tar</div><div><br></div><div>Thanks for your help :-)</div><div><br></div><div>Matt</div><div>  </div></div><div class="gmail_extra"><br><div class="gmail_quote">On 4 December 2015 at 12:54, Fajar A. Nugraha <span dir="ltr"><<a href="mailto:list@fajar.net" target="_blank">list@fajar.net</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"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Fri, Dec 4, 2015 at 5:56 PM, Matthew Green <span dir="ltr"><<a href="mailto:mephi@mephi.co.uk" target="_blank">mephi@mephi.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">The host is expected to be the NFS server to start with, but using bind mounts (I think this is what you're suggesting) gives me concerns about portability and backups.</div><div class="gmail_extra"><br></div></blockquote><div><br></div><div><br></div></span><div>(1) Not EVERY use case is suitable for unpriv containers. So don't be surprised if yours isn't one of them.</div><div><br></div><div>(2) IIRC it's NOT recommended to have an nfs client mounting nfs share from localhost (i.e. loopback nfs mount), At least in old kernels: <a href="https://lwn.net/Articles/595652/" target="_blank">https://lwn.net/Articles/595652/</a> . Not sure about current (e.g. 4+) kernels though.</div><div><br></div><div>(3) What kind of "portability" are you talking about here? Moving between virt systems (e.g. KVM -> lxc, or whatever)? If its THAT, then you'd always have to perform some level of adjustment anyway, with or without additional bind mounts.</div><div><br></div><div>If you mean "what happens when the nfs server is on another server", then the host can import the share on the SAME path as you're currently using, and bind-mount will continue to work (as long as the path and owner/permission is the same)</div><div><br></div><div>(4) you create a backup strategy that fits your needs.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-- </div><div>Fajar</div></font></span></div></div></div>
<br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div>