<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 19, 2015 at 2:35 PM, Pavel Emelyanov <span dir="ltr"><<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 02/19/2015 10:25 PM, Nam Ninh wrote:<br>
<span class="">> On Thu, Feb 19, 2015 at 2:13 PM, Pavel Emelyanov <<a href="mailto:xemul@parallels.com">xemul@parallels.com</a> <mailto:<a href="mailto:xemul@parallels.com">xemul@parallels.com</a>>> wrote:<br>
><br>
> On 02/19/2015 10:03 PM, Nam Ninh wrote:<br>
> > Please find attached restore.log when I run<br>
> > criu restore -d --images-dir /tmp/images -o restore.log<br>
> ><br>
> > The content of pstree.img shows:<br>
> ><br>
> > root@128:~# criu show -f /tmp/images/pstree.img<br>
> > pid: 1251 ppid: 0 pgid: 1251 sid: 950 threads: 1251<br>
> > pid: 1290 ppid: 1251 pgid: 1251 sid: 950 threads: 1290<br>
> ><br>
><br>
> OK. How did you dump this tree? Did you use the -j/--shell-job option?<br>
><br>
><br>
> I dumped using this command:<br>
> criu dump -t 1251 --images-dir /tmp/images --shell-job --leave-stopped<br>
<br>
</span>Ah, I see. The -j option should be used on both stages -- dump and restore. Add one<br>
to your restore command, it should fix the sid mismatch issue. <br></blockquote><div><br></div><div>It works when I have -j on both dump and restore. Thank you very much for your help. Should we update this page?<br><a href="http://criu.org/Live_migration">http://criu.org/Live_migration</a><br><br></div></div>- "--tree <pid" is obsolete and add "-d" with restore<br></div><div class="gmail_extra">- Add a note to use -j on both dump and restore for shell job migration<br> </div></div>