[CRIU] Migration and Restart of http://criu.org/Simple_loop
Thouraya TH
thouraya87 at gmail.com
Tue Feb 3 05:49:04 PST 2015
*On the source node:*
root at g-71:/home/imgDir# criu show -f cgroup.img
sets: {
id: 0x2
ctls: {
name: "blkio"
path: "/user/0.user/1.session"
}
{
name: "cpu"
path: "/user/0.user/1.session"
}
{
name: "cpuacct"
path: "/user/0.user/1.session"
}
{
name: "cpuset"
path: "/user/0.user/1.session"
}
{
name: "devices"
path: "/user/0.user/1.session"
}
{
name: "freezer"
path: "/user/0.user/1.session"
}
{
name: "hugetlb"
path: "/user/0.user/1.session"
}
{
name: "memory"
path: "/user/0.user/1.session"
}
{
name: "name=systemd"
path: "/user/0.user/1.session"
}
{
name: "perf_event"
path: "/user/0.user/1.session"
}
}
controllers: {
cnames: "cpuset"
dirs: <empty>
}
{
cnames: "cpu"
dirs: <empty>
}
{
cnames: "cpuacct"
dirs: <empty>
}
{
cnames: "memory"
dirs: <empty>
}
{
cnames: "devices"
dirs: <empty>
}
{
cnames: "freezer"
dirs: <empty>
}
{
cnames: "blkio"
dirs: <empty>
}
{
cnames: "perf_event"
dirs: <empty>
}
{
cnames: "hugetlb"
dirs: <empty>
}
{
cnames: "name=systemd"
dirs: <empty>
}
*On the destination node:*
root at g-80:/home/imgDir# criu show -f cgroup.img
sets: {
id: 0x2
ctls: {
name: "blkio"
path: "/user/0.user/1.session"
}
{
name: "cpu"
path: "/user/0.user/1.session"
}
{
name: "cpuacct"
path: "/user/0.user/1.session"
}
{
name: "cpuset"
path: "/user/0.user/1.session"
}
{
name: "devices"
path: "/user/0.user/1.session"
}
{
name: "freezer"
path: "/user/0.user/1.session"
}
{
name: "hugetlb"
path: "/user/0.user/1.session"
}
{
name: "memory"
path: "/user/0.user/1.session"
}
{
name: "name=systemd"
path: "/user/0.user/1.session"
}
{
name: "perf_event"
path: "/user/0.user/1.session"
}
}
controllers: {
cnames: "cpuset"
dirs: <empty>
}
{
cnames: "cpu"
dirs: <empty>
}
{
cnames: "cpuacct"
dirs: <empty>
}
{
cnames: "memory"
dirs: <empty>
}
{
cnames: "devices"
dirs: <empty>
}
{
cnames: "freezer"
dirs: <empty>
}
{
cnames: "blkio"
dirs: <empty>
}
{
cnames: "perf_event"
dirs: <empty>
}
{
cnames: "hugetlb"
dirs: <empty>
}
{
cnames: "name=systemd"
dirs: <empty>
}
*I also asked for the cgroups on source and destination nodes, you only
showed what's there in the image file.*
How can i get them ? the commad should i use ?
Thanks.
2015-02-03 14:44 GMT+01:00 Pavel Emelyanov <xemul at parallels.com>:
> 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
> >
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20150203/8f49929e/attachment.html>
More information about the CRIU
mailing list