[lxc-users] Setting up containers with multiple logical volumes

Joshua Schaeffer jschaeffer0922 at gmail.com
Tue Feb 18 16:16:11 UTC 2014


Okay thanks for the pointers.  I'll be able to try this out tonight and
report back.


On Mon, Feb 17, 2014 at 10:30 PM, Serge Hallyn <serge.hallyn at ubuntu.com>wrote:

> Quoting Serge Hallyn (serge.hallyn at ubuntu.com):
> > Quoting Joshua Schaeffer (jschaeffer0922 at gmail.com):
> > > Yes it failed to start:
> > >
> > > 1. lxc-create -n testme1 -t debian
> > > 2. root at reaver:~# cat /var/lib/lxc/testme1/config | grep
> lxc.mount.entry
> > >     lxc.mount.entry = proc proc proc nodev,noexec,nosuid 0 0
> > >     lxc.mount.entry = sysfs sys sysfs defaults  0 0
> > >     lxc.mount.entry = /dev/vg_lxc1/lv_ldap_tmp1 lv_ldap
> > > defaults,create=dir 0 0
> >
> > Wait a sec.  I mistyped.  There's no fstype in there :)
> >
> > That should be
> >
> >     lxc.mount.entry = /dev/vg_lxc1/lv_ldap_tmp1 lv_ldap ext4
> defaults,create=dir 0 0
> >
> > or whatever fstype it is in place of ext4.  Sorry.
>
> Actually I see that will fail too, because 'create=dir' has a
> slight problem.  We need to remove create=dir from the mount
> options which we pass along to the mount syscall.
>
> so for the sake of testing just do
>
>     lxc.mount.entry = /dev/vg_lxc1/lv_ldap_tmp1 mnt ext4 defaults 0 0
>
> -serge
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140218/f16346d1/attachment.html>


More information about the lxc-users mailing list