[lxc-users] mount 2nd LV in a LVM container

Flo florian.engelmann at gmail.com
Mon Feb 3 17:06:02 UTC 2014


Hi,

is it possible to mount a 2nd logical volume into a LVM based container?

I tried:

/dev/lxc2/glusterfs-test srv/glusterfs ext4 defaults 0 0

and

/dev/lxc2/glusterfs-test srv/glusterfs none defaults 0 0

or

/dev/mapper/lxc2-glusterfs--test .....


into my /var/lib/lxc/<containername>/fstab

but none did work. A bind mount does work:

/srv/glusterfs srv/glusterfs none bind 0 0

but I don't want the FS mounted on the global host.

Do I have to allow access to the device?

lxc.cgroup.devices.allow = ????

Regards,
Flo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140203/dfa116aa/attachment.html>


More information about the lxc-users mailing list