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

Serge Hallyn serge.hallyn at ubuntu.com
Mon Feb 3 21:09:56 UTC 2014


Quoting Flo (florian.engelmann at gmail.com):
> 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

lxc2 is vgname and glusterfs-test is lvname?

> 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 = ????

Can you do 'lxc-start -n cname -l info -o debug.out' and show
us the debug.out?

thanks,
-serge


More information about the lxc-users mailing list