[CRIU] How to pre-dump lxc or docker?

陈晓 chenxiao_study at 126.com
Tue Sep 23 19:12:08 PDT 2014


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 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. 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20140924/1483518d/attachment.html>


More information about the CRIU mailing list