[CRIU] Migration and Restart of http://criu.org/Simple_loop

Pavel Emelyanov xemul at parallels.com
Mon Feb 9 01:08:57 PST 2015


On 02/04/2015 01:02 PM, Thouraya TH wrote:
> 1) i have done the test *without sending results.txt
> *
> *restore.log*
> 
> (00.014439)   1633: Error (files-reg.c:1024): *Can't open file home/results.txt on restore: No such file or directory *                                 297,1         96%
> (00.014466)   1747:     Restoring fd 0 (state -> prepare)                                                                                             298,1         96%
> (00.014470)   1633: Error (files-reg.c:967): *Can't open file home/results.txt: No such file or directory
> 
> 
> *
> 2) i have*send *results.txt and i have this error:*
> *00.015016)   1633: Error (files-reg.c:982): File home/results.txt has bad size 2117 (expect 1537)*

The results.txt file size should be 1537 on restore.

> *
> *-> i have done the dumping process with -R option !
> *
> 
> 3)*without -R *the restart on the destination works well :)*

Yes, that's because with -R tasks on the dump side continue modifying the results.txt
and its size changes from what it was at dump time.

> *
> Thanks. *
> *
> *
> 
> *
> **
> *  *                                                
> 
> 2015-02-04 10:42 GMT+01:00 Thouraya TH <thouraya87 at gmail.com <mailto:thouraya87 at gmail.com>>:
> 
>     Hello,
> 
>     I have done the same steps on another nodes and the process restarts well :)
> 
>     *Source:*
>     root at g-71:/home# cd  /sys/fs/cgroup
>     root at g-71:/sys/fs/cgroup# ls
>     cgmanager  systemd
> 
>     *Destination: *
>     root at g-91:/home/imgDir# cd  /sys/fs/cgroup
>     root at g-91:/sys/fs/cgroup# ls
>     cgmanager  systemd
> 
>     i'd like to redirect the result of test.sh in a file (./test.sh > results.txt), then dumping process on the source, sending imgDir to the destination
>     i ask if i had to send the file results.txt to the destination or not ?
> 
>     Thanks a lot.
>     Best Regards.
> 
> 
>     2015-02-03 15:22 GMT+01:00 Pavel Emelyanov <xemul at parallels.com <mailto:xemul at parallels.com>>:
> 
>         On 02/03/2015 04:49 PM, Thouraya TH wrote:
> 
>         > /I also asked for the cgroups on source and destination nodes, you only
>         > showed what's there in the image file./
>         >
>         > How can i get them ? the commad should i use ?
> 
>         Check the /sys/fs/cgroup directory.
> 
>         Anticipating future questions about cgroups:
>         https://www.kernel.org/doc/Documentation/cgroups/cgroups.txt
> 
>         Thanks,
>         Pavel
> 
> 
> 



More information about the CRIU mailing list