[CRIU] Restore Process
Thouraya TH
thouraya87 at gmail.com
Tue Jul 15 10:39:29 PDT 2014
When i test :
*Now let's see how to dump the same program when it is just started from
the shell without any additional setsid and stdio redirection. For that we
need to execute our test script or another program (e.g. "top") from a
terminal without any redirection. *
Part 2 of: http://criu.org/Simple_loop
i can restart several times :
root at thouraya-Lenovo-3000-N500:/home/thouraya# cd imgDir1
root at thouraya-Lenovo-3000-N500:/home/thouraya/imgDir1# criu restore -vvvv
-o restore.log --shell-job
mardi 15 juillet 2014, 18:25:07 (UTC+0100)
mardi 15 juillet 2014, 18:25:08 (UTC+0100)
mardi 15 juillet 2014, 18:25:09 (UTC+0100)
mardi 15 juillet 2014, 18:25:10 (UTC+0100)
mardi 15 juillet 2014, 18:25:11 (UTC+0100)
mardi 15 juillet 2014, 18:25:12 (UTC+0100)
mardi 15 juillet 2014, 18:25:13 (UTC+0100)
mardi 15 juillet 2014, 18:25:14 (UTC+0100)
mardi 15 juillet 2014, 18:25:15 (UTC+0100)
mardi 15 juillet 2014, 18:25:16 (UTC+0100)
mardi 15 juillet 2014, 18:25:17 (UTC+0100)
mardi 15 juillet 2014, 18:25:18 (UTC+0100)
mardi 15 juillet 2014, 18:25:19 (UTC+0100)
mardi 15 juillet 2014, 18:25:20 (UTC+0100)
mardi 15 juillet 2014, 18:25:21 (UTC+0100)
mardi 15 juillet 2014, 18:25:22 (UTC+0100)
mardi 15 juillet 2014, 18:25:23 (UTC+0100)
root at thouraya-Lenovo-3000-N500:/home/thouraya/imgDir1# criu restore -vvvv
-o restore.log --shell-job
mardi 15 juillet 2014, 18:25:26 (UTC+0100)
mardi 15 juillet 2014, 18:25:27 (UTC+0100)
mardi 15 juillet 2014, 18:25:28 (UTC+0100)
mardi 15 juillet 2014, 18:25:29 (UTC+0100)
mardi 15 juillet 2014, 18:25:30 (UTC+0100)
mardi 15 juillet 2014, 18:25:31 (UTC+0100)
mardi 15 juillet 2014, 18:25:32 (UTC+0100)
Bests.
2014-07-15 17:35 GMT+01:00 Thouraya TH <thouraya87 at gmail.com>:
> Ok, thanks for answer.
> For a second restore, it didn't work:
>
> root at thouraya-Lenovo-3000-N500:/home/thouraya# cd imgDir/
> root at thouraya-Lenovo-3000-N500:/home/thouraya/imgDir# criu restore -d
> -vvv -o restore.log && echo OK
> --> it doesn't display OK
>
> Have you an idea ?
>
> Best Regards.
>
>
> 2014-07-15 17:31 GMT+01:00 Pavel Emelyanov <xemul at parallels.com>:
>
> On 07/15/2014 08:21 PM, Thouraya TH wrote:
>> > root at thouraya-Lenovo-3000-N500:/home/thouraya# cd imgDir/
>> > root at thouraya-Lenovo-3000-N500:/home/thouraya/imgDir# criu restore -d
>> -vvv -o restore.log && echo OK
>> > OK
>> > root at thouraya-Lenovo-3000-N500:/home/thouraya/imgDir# ls
>> > cgroup.img fifo-data.img netlinksk.img
>> sigacts-20099.img
>> > core-19654.img fifo.img ns-files.img signalfd.img
>> > core-20099.img filelocks-19654.img packetsk.img
>> signal-p-19654.img
>> > creds-19654.img filelocks-20099.img pagemap-19654.img
>> signal-p-20099.img
>> > creds-20099.img fs-19654.img pagemap-20099.img
>> signal-s-19654.img
>> > dump.log fs-20099.img pages-1.img
>> signal-s-20099.img
>> > eventfd.img ids-19654.img pages-2.img sk-queues.img
>> > eventpoll.img ids-20099.img pipes-data.img stats-dump
>> > eventpoll-tfd.img inetsk.img pipes.img stats-restore
>> > ext-files.img inotify.img pstree.img tty.img
>> > fanotify.img inotify-wd.img reg-files.img tty-info.img
>> > fanotify-mark.img inventory.img remap-fpath.img tunfile.img
>> > fdinfo-2.img mm-19654.img restore.log unixsk.img
>> > fdinfo-3.img mm-20099.img sigacts-19654.img
>> > root at thouraya-Lenovo-3000-N500:/home/thouraya/imgDir# vim restore.log
>> >
>> >
>> > i have a new file restore.log ,
>> > Here is the initial code:
>> >
>> > $ cat > test.sh <<-EOF
>> > #!/bin/sh
>> > while :; do
>> > sleep 1
>> > date
>> > done
>> > EOF
>> > $ chmod +x test.sh
>> > $ setsid ./test.sh < /dev/null &> test.log &
>> >
>> > My question: besides this file, what I must have ?
>>
>> The restored processes.
>>
>> > the time should increment in the test.log file ?
>>
>> Yes, after some time.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20140715/d6727096/attachment-0001.html>
More information about the CRIU
mailing list