[CRIU] Migration and Restart of http://criu.org/Simple_loop
Pavel Emelyanov
xemul at parallels.com
Tue Feb 3 05:44:18 PST 2015
On 02/03/2015 04:36 PM, Thouraya TH wrote:
> Same result with --shell-job (it didn't work !)
> root at g-80:/home/imgDir# criu restore -d -vvv -o restore.log --shell-job && echo OK*
>
>
> *
> *cgroup.img on t*he source node:
CRIU stores images in binary form. Please, learn how the "criu show"
works to decode them.
I also asked for the cgroups on source and destination nodes, you only
showed what's there in the image file.
> 038YÑ^A^@^@
> à^B^H^B^R^_
> ^Eblkio^R^V/user/0.user/1.session^R^]
> ^Ccpu^R^V/user/0.user/1.session^R!
> ^Gcpuacct^R^V/user/0.user/1.session^R
> ^Fcpuset^R^V/user/0.user/1.session^R!
> ^Gdevices^R^V/user/0.user/1.session^R!
> ^Gfreezer^R^V/user/0.user/1.session^R!
> ^Ghugetlb^R^V/user/0.user/1.session^R
> ^Fmemory^R^V/user/0.user/1.session^R&
> ^Lname=systemd^R^V/user/0.user/1.session^R$
>
> perf_event^R^V/user/0.user/1.session^R^H
> ^Fcpuset^R^E
> ^Ccpu^R
> ^Gcpuacct^R^H
> ^Fmemory^R
> ^Gdevices^R
> ^Gfreezer^R^G
> ^Eblkio^R^L
>
> perf_event^R
> ^Ghugetlb^R^N
> ^Lname=systemd
>
> cgroup.img on the destination node: (it's the same, i have used scp to send the all directory imgDir)
>
> 038YÑ^A^@^@
> à^B^H^B^R^_
> ^Eblkio^R^V/user/0.user/1.session^R^]
> ^Ccpu^R^V/user/0.user/1.session^R!
> ^Gcpuacct^R^V/user/0.user/1.session^R
> ^Fcpuset^R^V/user/0.user/1.session^R!
> ^Gdevices^R^V/user/0.user/1.session^R!
> ^Gfreezer^R^V/user/0.user/1.session^R!
> ^Ghugetlb^R^V/user/0.user/1.session^R
> ^Fmemory^R^V/user/0.user/1.session^R&
> ^Lname=systemd^R^V/user/0.user/1.session^R$
>
> perf_event^R^V/user/0.user/1.session^R^H
> ^Fcpuset^R^E
> ^Ccpu^R
> ^Gcpuacct^R^H
> ^Fmemory^R
> ^Gdevices^R
> ^Gfreezer^R^G
> ^Eblkio^R^L
>
> perf_event^R
> ^Ghugetlb^R^N
> ^Lname=systemd
>
> Bests.
>
>
> 2015-02-03 14:26 GMT+01:00 Pavel Emelyanov <xemul at parallels.com <mailto:xemul at parallels.com>>:
>
> On 02/03/2015 02:25 PM, Thouraya TH wrote:
>
> > *i try to migrate the imgDir on a new host:*
> >
> > scp -r *imgDir *root@*g-80*.xxxxxxx:/home
> >
> > root at g-80:/home# cd imgDir/
> > root at g-80:/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
> >
> >
> > root at g-80:/home/imgDir# criu restore -d -vvv -o restore.log && echo OK
>
> Same images? The --shell-job is not there again.
>
> > (00.012355) 1249: cg: Move into 2
> > (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
> > (00.012405) Error (cr-restore.c:1838): Restoring FAILED.
> > (00.018935) Error (cr-restore.c:1185): 1249 exited, status=1
>
> This means, that there's no cgroup called blkio//user/0.user/1.session/tasks.
> Can you check what the cgroups are on the source node, on the destination one
> and what's there in the cgroup.img image?
>
> Thanks,
> Pavel
>
>
>
More information about the CRIU
mailing list