<div dir="ltr"><div><div><div><div><div>Hello all,<br><br></div><div>OS: Ubuntu 14.04.1 LTS<br></div><div>LXC Version: 1.0.6-0ubuntu0.1 <br></div><div><br></div>Experienced a weird issue when I tried to launch a container which mounts an additional logical volume (ext4 formatted) through the container's fstab file:<br><br># cat /var/lib/lxc/mycontainer/fstab<br>/dev/vglxc/apps mnt/apps ext4 ro 0 0<br><br></div>This LV is already mounted on the physical host:<br><br># mount /dev/vglxc/apps /mnt<br><br></div>Now when I try to launch the container, I get the following error:<br><br># lxc-start -n mycontainer -l trace -o mycontainer.out<br>lxc-start: Device or resource busy - failed to mount '/dev/vglxc/apps' on '/usr/lib/x86_64-linux-gnu/lxc/mnt/apps'<br>lxc-start: failed to setup the mounts for 'mycontainer'<br>lxc-start: failed to setup the container<br>lxc-start: invalid sequence number 1. expected 2<br>lxc-start: failed to spawn 'mycontainer'<br>lxc-start: The container failed to start.<br>lxc-start: Additional information can be obtained by setting the --logfile and --logpriority options.<br><br></div>In the output file the following information is shown:<br><br>      lxc-start 1416921918.699 INFO     lxc_conf - Autodev not required.<br>      lxc-start 1416921918.699 ERROR    lxc_conf - Device or resource busy - failed to mount '/dev/vglxc/apps' on '/usr/lib/x86_64-linux-gnu/lxc/mnt/apps'<br>      lxc-start 1416921918.699 ERROR    lxc_conf - failed to setup the mounts for 'mycontainer'<br><br></div>When I change the mount option in the container's fstab file from "ro" to "defaults"  (or basically "rw"), the container starts up:<br><br># cat /var/lib/lxc/mycontainer/fstab<br>/dev/vglxc/apps mnt/apps ext4 defaults 0 0<br><br># lxc-start -n mycontainer -l trace -o mycontainer.out<br><br>      lxc-start 1416921799.912 INFO     lxc_conf - Autodev not required.<br>      lxc-start 1416921799.912 DEBUG    lxc_conf - mounted '/dev/vglxc/apps' on '/usr/lib/x86_64-linux-gnu/lxc/mnt/apps', type 'ext4'<br><br><div>If the LV /dev/vglxc/apps is nowhere mounted yet, the container starts up - with the read only mount option, too. <br></div><div><br></div><div>Is this a (known) bug I ran into? <br><br>cheers,<br>ck<br></div><div><br></div></div>