<div dir="ltr"><div><div>Yes, it is fine with <b>ssh</b> and without <b>lxc-attach</b> :)<br></div>Thanks a lot :)<br></div>Bests. <br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-22 17:47 GMT+01:00 Pavel Emelyanov <span dir="ltr"><<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 01/22/2015 07:41 PM, Thouraya TH wrote:<br>
> *Dumping Process* with - s option:<br>
><br>
> root@g-9:/home# lxc-checkpoint *-s *-D /home/ImGLXC1Worker -n worker<br>
<span class="">> root@g-9:/home# lxc-ls -f<br>
> NAME STATE IPV4 IPV6 GROUPS AUTOSTART<br>
> -----------------------------------------------<br>
</span>> worker *STOPPED* - - - NO<br>
><br>
> *I have done this test:*<br>
> You have said: "/Check the file contents *after dump* but *before restore*. Does this file exists<br>
> at all? Does it contain proper data?/"<br>
<span class="">><br>
> 1) dumping Process with -s option<br>
> 2) root@g-9:/home/ImGLXC1Worker1# lxc-start -n worker<br>
> root@g-9:/home/ImGLXC1Worker1# lxc-ls -f<br>
> NAME STATE IPV4 IPV6 GROUPS AUTOSTART<br>
> -----------------------------------------------------<br>
> worker RUNNING 10.0.3.109 - - NO<br>
> worker1 STOPPED - - - NO<br>
> root@g-9:/home/ImGLXC1Worker1# ssh ubuntu@$(sudo lxc-info -n worker -H -i)<br>
> ..............<br>
> ubuntu@worker:/home$ vim results.txt<br>
><br>
</span>> *the file exists and contains the proper data.*<br>
<span class="">><br>
> 3) i stopped the container to test the restart:<br>
> root@g-9:/home/ImGLXC1Worker1# lxc-stop -n worker<br>
> root@g-9:/home/ImGLXC1Worker1# lxc-ls -f<br>
> NAME STATE IPV4 IPV6 GROUPS AUTOSTART<br>
> -----------------------------------------------<br>
> worker STOPPED - - - NO<br>
> worker1 STOPPED - - - NO<br>
</span>> root@g-9:/home/ImGLXC1Worker1# *lxc-checkpoint -r* -D /home/ImGLXC1Worker1 -n worker<br>
<span class="">> root@g-9:/home/ImGLXC1Worker1# ssh ubuntu@$(sudo lxc-info -n worker -H -i)<br>
> ^C<br>
> root@g-9:/home/ImGLXC1Worker1#<br>
> root@g-9:/home/ImGLXC1Worker1# lxc-ls -f<br>
><br>
> ^CTraceback (most recent call last):<br>
> File "/usr/bin/lxc-ls", line 432, in <module><br>
> containers = get_containers(root=True)<br>
> File "/usr/bin/lxc-ls", line 261, in get_containers<br>
> if container.controllable:<br>
> KeyboardInterrupt<br>
><br>
</span>> *it's blocked!! *<br>
<br>
This should be forwarded to LXC guys.<br>
<br>
> *I proceeded as follows and the test process in the container restarts correctly:<br>
><br>
> Restart* (after dumping process without starting and stopping the container)<br>
<span class="">><br>
> root@g-9:/home# lxc-checkpoint -r -D /home/ImGLXC1Worker -n worker<br>
> root@g-9:/home# lxc-ls -f<br>
> NAME STATE IPV4 IPV6 GROUPS AUTOSTART<br>
> -----------------------------------------------------<br>
> worker RUNNING 10.0.3.109 - - NO<br>
> worker1 STOPPED - - - NO<br>
> root@g-9:/home# ssh ubuntu@$(sudo lxc-info -n worker -H -i)<br>
> ..............<br>
> ubuntu@worker:/home$ vim results.txt<br>
><br>
> i find the old and the new results in the file :)<br>
<br>
</span>So everything is fine, isn't it?<br>
<br>
Thanks,<br>
Pavel<br>
<br>
</blockquote></div><br></div>