[CRIU] LXC DUMP ERROR

riya khanna riyakhanna1983 at gmail.com
Tue Sep 30 09:42:57 PDT 2014


What is needed to add support for shared mounts. What could cause
checkpointing of shared mounts to fail? Even I'm facing the same
issue. Thanks!

On Thu, Sep 18, 2014 at 11:46 AM, Tycho Andersen
<tycho.andersen at canonical.com> wrote:
> On Thu, Sep 18, 2014 at 08:22:41PM +0400, Pavel Emelyanov wrote:
>> On 09/12/2014 11:31 PM, beproject criu wrote:
>> > I am trying to dump LXC container using following command
>> >
>> > /sdcard # criu dump --root /usr/local/lib/lxc/rootfs/root --evasive-devices --tc
>> > p-established --file-locks -n net -n mnt -n ipc -n pid -vvvvvvvv -D data -o dump
>> > .log -t 79
>> >
>> > but i get the following error :
>> >
>> > Error (mount.c:517): Mount 58 (master_id: 12 shared_id: 0) has unreachable sharing
>>
>> That's because LXC tools configured shared mountpoints that criu
>> doesn't yet support. Can you check with LXC guys what's the preferred
>> way of configuring container, they are in progress of integrating criu
>> with lxc right now.
>
> I keep meaning to update the LXC criu wiki page with how to snapshot
> using the LXC tools, I will do that today.
>
> For now, though, as Pavel says shared mounts aren't supported.
> lxc-checkpoint should refuse to checkpoint a container if it has an
> unsupported configuration.
>
> Tycho
>
>> > I have attached the dump.log file with the mail containing full log.
>> >
>> > Content of mountpoint are:
>> >
>> > /sdcard # lxc-attach -n L cat /proc/self/mountinfo
>> > 16 16 0:2 / / rw - rootfs rootfs rw,size=373304k,nr_inodes=93326
>> > 17 16 0:4 / /proc rw,relatime - proc proc rw
>> > 18 16 0:11 / /sys rw,relatime - sysfs sysfs rw
>> > 19 18 0:12 / /sys/fs/cgroup rw,relatime - cgroup none rw,cpuset,debug,cpu,cpuacct,memory,devices,freezer,blkio,perf_event,clone_children
>> > 20 18 0:6 / /sys/kernel/debug rw,relatime - debugfs none rw
>> > 21 16 0:10 / /dev/pts rw,relatime - devpts devpts rw,mode=600,ptmxmode=000
>> > 22 16 179:0 / /sdcard rw,relatime - ext3 /dev/mmcblk0 rw,data=ordered
>> > 24 16 0:2 /usr/local/lib/lxc/rootfs /usr/local/lib/lxc/rootfs rw - rootfs rootfs rw,size=373304k,nr_inodes=93326
>> > 25 24 0:14 / /usr/local/lib/lxc/rootfs rw,relatime - tmpfs none rw,size=12k,mode=755
>> > 35 25 179:0 /L/rootfs /usr/local/lib/lxc/rootfs/root rw,relatime shared:1 - ext3 /dev/mmcblk0 rw,data=ordered
>> > 36 35 0:13 / /usr/local/lib/lxc/rootfs/root/proc rw,relatime shared:2 - proc none rw
>> > 37 35 0:15 / /usr/local/lib/lxc/rootfs/root/sys rw,relatime shared:3 - sysfs none rw
>> > 26 35 0:16 / /usr/local/lib/lxc/rootfs/root/dev rw,nosuid,relatime shared:6 - tmpfs tmpfs rw,mode=755
>> > 27 26 0:10 / /usr/local/lib/lxc/rootfs/root/dev/pts rw,relatime shared:7 - devpts devpts rw,mode=600,ptmxmode=000
>> > 28 37 0:6 / /usr/local/lib/lxc/rootfs/root/sys/kernel/debug rw,relatime shared:4 - debugfs debugfs rw
>> > 29 37 0:17 / /usr/local/lib/lxc/rootfs/root/sys/fs/cgroup rw,relatime shared:5 - tmpfs none rw,mode=750,gid=1000
>> > 30 35 0:18 / /usr/local/lib/lxc/rootfs/root/mnt/asec rw,relatime shared:8 - tmpfs tmpfs rw,mode=755,gid=1000
>> > 31 35 0:19 / /usr/local/lib/lxc/rootfs/root/mnt/obb rw,relatime shared:9 - tmpfs tmpfs rw,mode=755,gid=1000
>> > 32 35 31:0 / /usr/local/lib/lxc/rootfs/root/system ro,relatime shared:10 - ext4 /dev/block/mtdblock0 ro,data=ordered
>> > 33 35 31:1 / /usr/local/lib/lxc/rootfs/root/data rw,nosuid,nodev,noatime shared:11 - ext4 /dev/block/mtdblock1 rw,data=ordered
>> > 34 35 31:2 / /usr/local/lib/lxc/rootfs/root/cache rw,nosuid,nodev,noatime shared:12 - yaffs2 /dev/block/mtdblock2 rw
>> >
>> > Thanks.
>> >
>> > encl(1).
>> >
>> >
>> > _______________________________________________
>> > CRIU mailing list
>> > CRIU at openvz.org
>> > https://lists.openvz.org/mailman/listinfo/criu
>> >
>>
>> _______________________________________________
>> CRIU mailing list
>> CRIU at openvz.org
>> https://lists.openvz.org/mailman/listinfo/criu
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu


More information about the CRIU mailing list