[Lxc-users] Container remounts ro an host's mount

Alessandro Guido ag at alessandroguido.name
Fri Nov 26 14:20:13 UTC 2010


On 11/26/2010 03:08 PM, Serge Hallyn wrote:
> I suspect the host's fs is MNT_SHARED.  Can you cat /proc/1/mountinfo?

Host: 

# cat /proc/1/mountinfo
14 19 0:0 / /sys rw,nosuid,nodev,noexec,relatime - sysfs none rw
15 19 0:3 / /proc rw,nosuid,nodev,noexec,relatime - proc none rw
16 19 0:5 / /dev rw,relatime - devtmpfs none rw,size=1017280k,nr_inodes=254320,mode=755
17 16 0:11 / /dev/pts rw,nosuid,noexec,relatime - devpts none rw,gid=5,mode=620,ptmxmode=000
19 1 8:2 / / rw,noatime - ext4 /dev/disk/by-uuid/93e2be5b-5334-41b8-a454-cb04d67c6cf3 rw,errors=remount-ro,barrier=1,data=ordered
20 19 0:15 / /lib/init/rw rw,nosuid,relatime - tmpfs tmpfs rw,mode=755
21 16 0:16 / /dev/shm rw,nosuid,nodev,relatime - tmpfs tmpfs rw
22 19 0:17 / /cgroup rw,relatime - cgroup cgroup rw,net_cls,freezer,devices,cpuacct,cpu,ns,cpuset
23 19 8:3 / /var/lib/lxc rw,noatime - ext4 /dev/sda3 rw,barrier=1,data=ordered

Guest:

# cat /proc/1/mountinfo
38 24 8:3 /1004/rootfs / rw,relatime - ext4 /dev/sda3 rw,barrier=1,data=ordered
39 38 0:11 /2 /dev/console rw,nosuid,noexec,relatime - devpts none rw,gid=5,mode=620,ptmxmode=000
40 38 0:11 /1 /dev/tty1 rw,nosuid,noexec,relatime - devpts none rw,gid=5,mode=620,ptmxmode=000
25 38 0:20 / /dev/pts rw,relatime - devpts devpts rw,mode=600,ptmxmode=666
26 38 0:20 /ptmx /dev/ptmx rw,relatime - devpts devpts rw,mode=600,ptmxmode=666
27 38 0:21 / /lib/init/rw rw,nosuid,relatime - tmpfs tmpfs rw,mode=755
28 38 0:19 / /proc rw,nosuid,nodev,noexec,relatime - proc proc rw
29 38 0:0 / /sys rw,nosuid,nodev,noexec,relatime - sysfs sysfs rw
30 28 0:14 / /proc/bus/usb rw,nosuid,nodev,noexec,relatime - usbfs usbfs rw
31 38 0:22 / /dev/shm rw,nosuid,nodev,relatime - tmpfs tmpfs rw





More information about the lxc-users mailing list