[CRIU] How to pre-dump lxc or docker?
Pavel Emelyanov
xemul at parallels.com
Wed Sep 24 04:10:48 PDT 2014
On 09/24/2014 06:12 AM, 陈晓 wrote:
> Hi Andrew, Krystof,
>
> The criu project is very good and I am very interested in it. But I hava some questions.
>
> 1. When I pre-dump a lxc, it works. However, I can not restore it successfully.
The pre-dump generates images that cannot be used for restoring.
After pre-dump-ing you should do full dump as described here:
http://criu.org/Incremental_dumps
> The pre-dump command is: criu pre-dump -D images_lxc_pre/ -o /software/checkpoint/images_lxc_pre/dump.log -t 19092 -v4
> The dump 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
> The restore 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 and the error info is: Error (mount.c:1947): New root and old root are the same.
> So how can I pre-dump a lxc or docker and restore it successfully.
> 2. I notice that when I dump a lxc or docker the file stats-dump does not exit and stats-restore exits.
What command do you use for dump? Is it dump or pre-dump, btw?
> So how can I generate a stats-dump file when I checkpoint a lxc or docker, because I want to do some performing testings on criu.
> Thank you! I am looking forward to your reply!
> Carl
>
>
>
>
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
>
More information about the CRIU
mailing list