[CRIU] Migration and Restart of http://criu.org/Simple_loop
Thouraya TH
thouraya87 at gmail.com
Tue Feb 3 03:06:24 PST 2015
Hello,
$ cat > test.sh <<-EOF
#!/bin/sh
while :; do
sleep 1
date
done
EOF
$ chmod +x *test.sh*
I'd like to migrate and restart this process on a new machine.
*Fist of all*, i have done the *dumping process*:
root at g-71:/home# criu dump -vvvv -o dump.log -D imgDir -R -t 1249
--shell-job && echo OK
OK
root at g-71:/home# cd imgDir/
root at g-71:/home/imgDir# ls
cgroup.img creds-1849.img ext-files.img filelocks.img
ids-1849.img mm-1249.img packetsk.img pages-2.img
sigacts-1249.img stats-dump
core-1249.img creds-1967.img fanotify.img fs-1249.img
ids-1967.img mm-1849.img pagemap-1249.img pipes-data.img
sigacts-1849.img timerfd.img
core-1849.img creds-1995.img fdinfo-2.img fs-1849.img
ids-1995.img mm-1967.img pagemap-1849.img pipes.img
sigacts-1967.img tty.img
core-1967.img dump.log fdinfo-3.img fs-1967.img
inetsk.img mm-1995.img pagemap-1967.img pstree.img
sigacts-1995.img tty-info.img
core-1995.img eventfd.img fifo-data.img fs-1995.img
inotify.img netlinksk.img pagemap-1995.img reg-files.img
signalfd.img tunfile.img
creds-1249.img eventpoll.img fifo.img ids-1249.img
inventory.img ns-files.img pages-1.img remap-fpath.img
sk-queues.img unixsk.img
*Secondly*, i try to restart the process *on the same machine* but it
didn't work:
criu restore -d -vvv -o restore.log && echo OK
ps -C test.sh
PID TTY TIME CMD
restore.log
............
............
(00.013583) 1249: Collecting 48/29 (flags 0)
(00.013595) 1249: Collecting 49/31 (flags 2)
(00.013611) 1249: Collecting 50/32 (flags 2)
(00.013624) 1249: Collecting 71/33 (flags 2)
(00.013631) 1249: Collecting 51/34 (flags 2)
(00.013642) 1249: Collecting 72/35 (flags 2)
(00.013648) 1249: Collecting 45/37 (flags 2)
(00.013676) 1249: Collecting 44/36 (flags 2)
(00.013690) 1249: tty: Collected tty ID 0x1
(00.013696) 1249: Collecting 52/42 (flags 2)
(00.013712) 1249: Collecting 34/19 (flags 0)
(00.013723) 1249: Collecting 54/45 (flags 2)
(00.013734) 1249: Collecting 55/38 (flags 2)
(00.013761) 1249: Trying to read socket queues image
(00.013774) 1249: Error (tty.c:193): tty: Found slave peer index 1
without correspond master peer
(00.013791) Error (cr-restore.c:1838): Restoring FAILED.
(00.021267) Error (cr-restore.c:1185): 1249 exited, status=1
Have you an idea please ?
Thanks a lot.
Best Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20150203/a4ef1d50/attachment.html>
More information about the CRIU
mailing list