[CRIU] How to pre-dump lxc or docker?
陈晓
chenxiao_study at 126.com
Wed Sep 24 04:29:49 PDT 2014
I hava dumped the lxc successfully with lxc tools, but how can I pre-dump lxc, the command lxc-checkpoint do not support pre-dump.<br/> Thanks,<br/> Carl
At 2014-09-24 19:23:53, "Pavel Emelyanov" <xemul at parallels.com> wrote:
>On 09/24/2014 03:21 PM, 陈晓 wrote:
>> First I execute pre-dump, the command is : criu pre-dump -D images_lxc_pre/ -o /software/checkpoint/images_lxc_pre/dump.log -t 19092 -v4
>> Then I execute dump, the command is: criu dump --tcp-established --file-locks --link-remap --force-irmap --manage-cgroups --action-script /usr/local/libexec/lxc/lxc-restore-net -D images_lxc_dump/ --prev-images-dir ../images_lxc_pre/ -o /software/checkpoint/images_lxc_dump/dump.log -t 19092 -v4
>> Finally when I restore the lxc, the command is: criu restore --tcp-established --file-locks --link-remap --force-irmap --manage-cgroups --action-script /usr/local/libexec/lxc/lxc-restore-net -D /software/checkpoint/images_lxc_dump/ -o /software/checkpoint/images_lxc_dump/restore.log --root /usr/local/lib/lxc/rootfs --restore-detached --restore-sibling --pidfile /tmp/file54YJjg --veth-pair eth0=veth1D8I78
>> the restore error is : Error (mount.c:1947): New root and old root are the same.
>> So what should I do?
>
>I'd recommend you to use the lxc tools for that. They do all the necessary preparations.
>http://criu.org/LXC
>
>In your particular case you should prepare the root directory to be exactly the same as
>lxc-start does -- mount something there in priave/slave mode. You cannot just take arbitrary
>path and set it as root.
>
>
>Thanks,
>Pavel
>
More information about the CRIU
mailing list