<div dir="ltr"><div>Thanks Serge! for your response..<br><br></div>We want to move a stop container from hosta to host b, <span id="result_box" class="" lang="en"><span class="">my</span> <span class="">big question is</span><span>,</span> <span class="">simply</span> <span class="">make a</span> <span class="">copy</span> <span class="">rsync</span> <span class="">or</span> I <span class="">should</span> <span class="">also</span> copy <span class="">the cgroups information</span> to <span class="">the</span> <span class="">host</span> <span class="">b?</span></span><div class="gmail_extra"><br></div><div class="gmail_extra">-Pablo<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 31, 2015 at 10:47 AM, Serge Hallyn <span dir="ltr"><<a href="mailto:serge.hallyn@ubuntu.com" target="_blank">serge.hallyn@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Quoting Pablo Silva (<a href="mailto:psilvao@gmail.com">psilvao@gmail.com</a>):<br>
> Dear colleagues:<br>
><br>
> I need to know how to move a container that is on host1 host2 towards.<br>
><br>
> I can use lxc-clone or just rsync is from host1 to host2 ?, what<br>
> happens to the information generated in / cgrups?<br>
<br>
</span>Wait, do you want to copy a running container? The /cgroup info is not<br>
persistent, so if the container is shutdown then it's irrelevant. If<br>
the container is running, then criu takes care of checkpointing and<br>
restarting that info.<br>
<br>
So for a non-running container 'rsync --numeric-ids' should be fine.<br>
Otherwise you probably want to be using lxd. ('lxc move' will work<br>
there for either case)<br>
<br>
-serge<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></blockquote></div><br></div></div>