<div dir="ltr"><div><span id="result_box" class="" lang="en"><span class=""><b>Dumping Process</b> with - s option:<br><br>root@g-9:/home# lxc-checkpoint <b>-s </b>-D /home/ImGLXC1Worker -n worker<br>root@g-9:/home# lxc-ls -f<br>NAME STATE IPV4 IPV6 GROUPS AUTOSTART <br>-----------------------------------------------<br>worker <b>STOPPED</b> - - - NO<br></span></span></div><span id="result_box" class="" lang="en"><span class=""><br></span></span><div><b>I have done this test:</b><br></div><div>You have said: "<i>Check the file contents <b>after dump</b> but <b>before restore</b>. Does this file exists<br>
at all? Does it contain proper data?</i>"<br><br></div><div>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><span id="result_box" class="" lang="en"><span class="">..............<br>ubuntu@worker:/home$ vim results.txt <br></span></span></div><div><span id="result_box" class="" lang="en"><span class=""><br></span></span></div><div><span id="result_box" class="" lang="en"><span class=""><b>the file exists and contains the proper data.</b><br><br></span></span></div><div><span id="result_box" class="" lang="en"><span class="">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> root@g-9:/home/ImGLXC1Worker1# <b>lxc-checkpoint -r</b> -D /home/ImGLXC1Worker1 -n worker<br> 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></span></div><div><span id="result_box" class="" lang="en"><span class=""><b>it's blocked!! </b><br></span></span></div><br><span id="result_box" class="" lang="en"><span class=""><b><span id="result_box" class="" lang="en"><span class="">I proceeded</span> <span class="">as follows and</span> <span class="">the test</span> <span class="">process</span> <span class="">in the container</span> <span class="">restarts correctly:<br><br></span></span>Restart</b> (after dumping process without starting and stopping the container)<br></span></span><div><span id="result_box" class="" lang="en"><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></span></span><span class="im"> <span style="color:rgb(0,0,0)">i find the old and the new results in the file :)</span></span><br><br></div><div>Bests.<br></div><div>Thouraya. <br></div><div><br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-21 18:14 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"><span class="">On 01/21/2015 07:20 PM, Thouraya TH wrote:<br>
> Hello :)<br>
><br>
> i have repeated all steps from the begining.<br>
> The only change I made:<br>
><br>
</span>> *Before the dumping process, *instead of<br>
<span class="">> root@g-2:~# lxc-start -n worker<br>
</span>> root@g-2:~# *lxc-attach -n worker*<br>
<span class="">><br>
> i have done:<br>
><br>
> root@g-2:~# lxc-start -n worker<br>
</span>> root@g-2:~# *ssh ubuntu@$(sudo lxc-info -n worker -H -i)*<br>
<span class="">><br>
> Dumping Process.<br>
> Then, after restart, the process "test.sh" restarts well :)<br>
><br>
> ./test.sh > results.txt<br>
<br>
</span>Do you do this command manually?<br>
<span class=""><br>
> As you see, the result of test.sh is saved in the file results.txt. When, i restart the container, the process test.sh<br>
> restarts and the old file is overwritten! i find only the new results in the file !<br>
<br>
</span>Check the file contents after dump but before restore. Does this file exists<br>
at all? Does it contain proper data?<br>
<div class="HOEnZb"><div class="h5"><br>
> Have you an idea please ?<br>
><br>
> Thanks a lot for help.<br>
> Best Regards.<br>
<br>
</div></div></blockquote></div><br></div>