[CRIU] File size is not same on restore

Pavel Emelyanov xemul at parallels.com
Tue Nov 10 05:54:10 PST 2015


On 11/10/2015 04:07 PM, 上司陽平 wrote:

> I didn't declare --root option. When I set this option container's rootfs
> [/var/lib/lxc/u1/rootfs], I faced the following error.
> 
> Path `/var/lib/lxc/u1/rootfs' resolved to `./' mountpoint
> Error (mount.c:2727): New root and old root are the same
> 
> Would you please tell me how to decide a correct path?
> 
> 
> 
> I show the dump and restore options.
> 
> criu dump --skip-mnt /sys/kernel/debug/tracing -o dump.log
> --tcp-established --file-locks --link-remap --force-irmap
> --manage-cgroups -D ~/checkpoint --ext-mount-map auto
> --enable-external-sharing --enable-external-masters
> --enable-fs hugetlbfs -v4
> 
> criu restore -o restore.log
> --tcp-established --file-locks --link-remap --force-irmap
> --manage-cgroups -D ~/checkpoint --ext-mount-map auto
> --enable-external-sharing --enable-external-masters
> --enable-fs hugetlbfs -v4
> --restore-detached --restore-sibling

The --root one is missing on restore. Not sure how to properly
configure one for LXC containers, maybe Tycho would advise.

But why don't you use the native lxc-checkpoint? It will put proper
options and call CRIU for you.

-- Pavel


More information about the CRIU mailing list