[lxc-users] shared mount and umount propogation.

Vijay Viswanathan vijay.vishy at gmail.com
Tue Feb 4 19:14:15 UTC 2014


Hi
Is there an option where shared mount works and restrict propogation of
unmounts ?

This the sequence to reproduce the issue.
1) make /mnt share mount
2) mount a usb stick on it /dev/sdc -> /mnt/usb
             [here mount shows : /dev/sdc on /mnt/usb type ... ]
3) Now start a container that has the mount entry for /mnt
[e.g., lxc.mount.entry = /mnt /home/otvlxc/rootfs/mnt none rw,bind 0 0 ]

what I see is :
lxc-start      73733.655 DEBUG    lxc_conf - umounted
'/myvm1_putold/mnt/usb'
/mnt/usb is gone from the host also :(


The reason I want to make /mnt shared is that to share a mount point that
is mounted by one vm ( not just mounts done by host) be available on
another vm any suggestions towards this is fine too.

Any tips and tricks ?

Thx.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140204/472e508f/attachment.html>


More information about the lxc-users mailing list