<div dir="ltr"><div><div>Hello,<br></div><div><pre><font><span style="font-family:arial,helvetica,sans-serif">$ cat > test.sh <<-EOF
#!/bin/sh
while :; do
sleep 1
date
done
EOF
$ chmod +x <b>test.sh</b><br><br></span></font></pre><pre><font><span style="font-family:arial,helvetica,sans-serif">I'd like to migrate and restart this process on a new machine.<br></span></font></pre><pre><font><span style="font-family:arial,helvetica,sans-serif"><b>Fist of all</b>, i have done the <b>dumping process</b>:<br><br>root@g-71:/home# criu dump -vvvv -o dump.log -D imgDir -R -t 1249 --shell-job && echo OK<br>OK<br>root@g-71:/home# cd imgDir/<br>root@g-71:/home/imgDir# ls<br>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<br>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<br>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<br>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<br>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<br>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<br></span></font></pre></div><div><b>Secondly</b>, i try to restart the process <b>on the same machine</b> but it didn't work:<br><br> criu restore -d -vvv -o restore.log && echo OK<br> ps -C test.sh<br> PID TTY TIME CMD<br><br>restore.log<br>............<br>............<br>(00.013583) 1249: Collecting 48/29 (flags 0)<br>(00.013595) 1249: Collecting 49/31 (flags 2)<br>(00.013611) 1249: Collecting 50/32 (flags 2)<br>(00.013624) 1249: Collecting 71/33 (flags 2)<br>(00.013631) 1249: Collecting 51/34 (flags 2)<br>(00.013642) 1249: Collecting 72/35 (flags 2)<br>(00.013648) 1249: Collecting 45/37 (flags 2)<br>(00.013676) 1249: Collecting 44/36 (flags 2)<br>(00.013690) 1249: tty: Collected tty ID 0x1<br>(00.013696) 1249: Collecting 52/42 (flags 2)<br>(00.013712) 1249: Collecting 34/19 (flags 0)<br>(00.013723) 1249: Collecting 54/45 (flags 2)<br>(00.013734) 1249: Collecting 55/38 (flags 2)<br>(00.013761) 1249: Trying to read socket queues image<br>(00.013774) 1249: Error (tty.c:193): tty: Found slave peer index 1 without correspond master peer<br>(00.013791) Error (cr-restore.c:1838): Restoring FAILED.<br>(00.021267) Error (cr-restore.c:1185): 1249 exited, status=1<br><br></div><div>Have you an idea please ?<br><br></div>Thanks a lot.<br></div>Best Regards. <br></div>