<div dir="ltr"><div><div><div><b>On the source node:</b><br>root@g-71:/home/imgDir# criu show -f cgroup.img <br>sets: {<br> id: 0x2<br> ctls: {<br> name: "blkio"<br> path: "/user/0.user/1.session"<br> }<br> {<br> name: "cpu"<br> path: "/user/0.user/1.session"<br> }<br> {<br> name: "cpuacct"<br> path: "/user/0.user/1.session"<br> }<br> {<br> name: "cpuset"<br> path: "/user/0.user/1.session"<br> }<br> {<br> name: "devices"<br> path: "/user/0.user/1.session"<br> }<br> {<br> name: "freezer"<br> path: "/user/0.user/1.session"<br> }<br> {<br> name: "hugetlb"<br> path: "/user/0.user/1.session"<br> }<br> {<br> name: "memory"<br> path: "/user/0.user/1.session"<br> }<br> {<br> name: "name=systemd"<br> path: "/user/0.user/1.session"<br> }<br> {<br> name: "perf_event"<br> path: "/user/0.user/1.session"<br> }<br><br>}<br><br>controllers: {<br> cnames: "cpuset"<br> dirs: <empty><br>}<br>{<br> cnames: "cpu"<br> dirs: <empty><br>}<br>{<br> cnames: "cpuacct"<br> dirs: <empty><br>}<br>{<br> cnames: "memory"<br> dirs: <empty><br>}<br>{<br> cnames: "devices"<br> dirs: <empty><br>}<br>{<br> cnames: "freezer"<br> dirs: <empty><br>}<br>{<br> cnames: "blkio"<br> dirs: <empty><br>}<br>{<br> cnames: "perf_event"<br> dirs: <empty><br>}<br>{<br> cnames: "hugetlb"<br> dirs: <empty><br>}<br>{<br> cnames: "name=systemd"<br> dirs: <empty><br>}<br><b><br></b></div><b>On the destination node:</b><br>root@g-80:/home/imgDir# criu show -f cgroup.img <br>sets: {<br> id: 0x2<br> ctls: {<br> name: "blkio"<br> path: "/user/0.user/1.session"<br> }<br> {<br> name: "cpu"<br> path: "/user/0.user/1.session"<br> }<br> {<br> name: "cpuacct"<br> path: "/user/0.user/1.session"<br> }<br> {<br> name: "cpuset"<br> path: "/user/0.user/1.session"<br> }<br> {<br> name: "devices"<br> path: "/user/0.user/1.session"<br> }<br> {<br> name: "freezer"<br> path: "/user/0.user/1.session"<br> }<br> {<br> name: "hugetlb"<br> path: "/user/0.user/1.session"<br> }<br> {<br> name: "memory"<br> path: "/user/0.user/1.session"<br> }<br> {<br> name: "name=systemd"<br> path: "/user/0.user/1.session"<br> }<br> {<br> name: "perf_event"<br> path: "/user/0.user/1.session"<br> }<br><br>}<br><br>controllers: {<br> cnames: "cpuset"<br> dirs: <empty><br>}<br>{<br> cnames: "cpu"<br> dirs: <empty><br>}<br>{<br> cnames: "cpuacct"<br> dirs: <empty><br>}<br>{<br> cnames: "memory"<br> dirs: <empty><br>}<br>{<br> cnames: "devices"<br> dirs: <empty><br>}<br>{<br> cnames: "freezer"<br> dirs: <empty><br>}<br>{<br> cnames: "blkio"<br> dirs: <empty><br>}<br>{<br> cnames: "perf_event"<br> dirs: <empty><br>}<br>{<br> cnames: "hugetlb"<br> dirs: <empty><br>}<br>{<br> cnames: "name=systemd"<br> dirs: <empty><br>}<br><br><i>I also asked for the cgroups on source and destination nodes, you only<br>
showed what's there in the image file.</i><br><br></div>How can i get them ? the commad should i use ?<br></div>Thanks.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-03 14:44 GMT+01:00 Pavel Emelyanov <span dir="ltr"><<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 02/03/2015 04:36 PM, Thouraya TH wrote:<br>
> Same result with --shell-job (it didn't work !)<br>
</span>> root@g-80:/home/imgDir# criu restore -d -vvv -o restore.log --shell-job && echo OK*<br>
><br>
><br>
> *<br>
> *cgroup.img on t*he source node:<br>
<br>
CRIU stores images in binary form. Please, learn how the "criu show"<br>
works to decode them.<br>
<br>
I also asked for the cgroups on source and destination nodes, you only<br>
showed what's there in the image file.<br>
<div><div class="h5"><br>
> 038YÑ^A^@^@<br>
> à^B^H^B^R^_<br>
> ^Eblkio^R^V/user/0.user/1.session^R^]<br>
> ^Ccpu^R^V/user/0.user/1.session^R!<br>
> ^Gcpuacct^R^V/user/0.user/1.session^R<br>
> ^Fcpuset^R^V/user/0.user/1.session^R!<br>
> ^Gdevices^R^V/user/0.user/1.session^R!<br>
> ^Gfreezer^R^V/user/0.user/1.session^R!<br>
> ^Ghugetlb^R^V/user/0.user/1.session^R<br>
> ^Fmemory^R^V/user/0.user/1.session^R&<br>
> ^Lname=systemd^R^V/user/0.user/1.session^R$<br>
><br>
> perf_event^R^V/user/0.user/1.session^R^H<br>
> ^Fcpuset^R^E<br>
> ^Ccpu^R<br>
> ^Gcpuacct^R^H<br>
> ^Fmemory^R<br>
> ^Gdevices^R<br>
> ^Gfreezer^R^G<br>
> ^Eblkio^R^L<br>
><br>
> perf_event^R<br>
> ^Ghugetlb^R^N<br>
> ^Lname=systemd<br>
><br>
> cgroup.img on the destination node: (it's the same, i have used scp to send the all directory imgDir)<br>
><br>
> 038YÑ^A^@^@<br>
> à^B^H^B^R^_<br>
> ^Eblkio^R^V/user/0.user/1.session^R^]<br>
> ^Ccpu^R^V/user/0.user/1.session^R!<br>
> ^Gcpuacct^R^V/user/0.user/1.session^R<br>
> ^Fcpuset^R^V/user/0.user/1.session^R!<br>
> ^Gdevices^R^V/user/0.user/1.session^R!<br>
> ^Gfreezer^R^V/user/0.user/1.session^R!<br>
> ^Ghugetlb^R^V/user/0.user/1.session^R<br>
> ^Fmemory^R^V/user/0.user/1.session^R&<br>
> ^Lname=systemd^R^V/user/0.user/1.session^R$<br>
><br>
> perf_event^R^V/user/0.user/1.session^R^H<br>
> ^Fcpuset^R^E<br>
> ^Ccpu^R<br>
> ^Gcpuacct^R^H<br>
> ^Fmemory^R<br>
> ^Gdevices^R<br>
> ^Gfreezer^R^G<br>
> ^Eblkio^R^L<br>
><br>
> perf_event^R<br>
> ^Ghugetlb^R^N<br>
> ^Lname=systemd<br>
><br>
> Bests.<br>
><br>
><br>
</div></div>> 2015-02-03 14:26 GMT+01:00 Pavel Emelyanov <<a href="mailto:xemul@parallels.com">xemul@parallels.com</a> <mailto:<a href="mailto:xemul@parallels.com">xemul@parallels.com</a>>>:<br>
<div class="HOEnZb"><div class="h5">><br>
> On 02/03/2015 02:25 PM, Thouraya TH wrote:<br>
><br>
> > *i try to migrate the imgDir on a new host:*<br>
> ><br>
> > scp -r *imgDir *root@*g-80*.xxxxxxx:/home<br>
> ><br>
> > root@g-80:/home# cd imgDir/<br>
> > root@g-80:/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>
> ><br>
> ><br>
> > root@g-80:/home/imgDir# criu restore -d -vvv -o restore.log && echo OK<br>
><br>
> Same images? The --shell-job is not there again.<br>
><br>
> > (00.012355) 1249: cg: Move into 2<br>
> > (00.012371) 1249: Error (cgroup.c:907): cg: Can't move into blkio//user/0.user/1.session/tasks (-1/-1): No such file or directory<br>
> > (00.012405) Error (cr-restore.c:1838): Restoring FAILED.<br>
> > (00.018935) Error (cr-restore.c:1185): 1249 exited, status=1<br>
><br>
> This means, that there's no cgroup called blkio//user/0.user/1.session/tasks.<br>
> Can you check what the cgroups are on the source node, on the destination one<br>
> and what's there in the cgroup.img image?<br>
><br>
> Thanks,<br>
> Pavel<br>
><br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div>