[lxc-users] Setting up containers with multiple logical volumes
Joshua Schaeffer
jschaeffer0922 at gmail.com
Mon Feb 17 17:07:38 UTC 2014
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
3. root at reaver:~# lxc-start -n testme1 -l trace -o testme1.out
lxc-start: No such file or directory - failed to mount
'/dev/vg_lxc1/lv_ldap_tmp1' on '/usr/lib/x86_64-linux-gnu/lxc/lv_ldap'
lxc-start: failed to setup the mount entries for 'testme1'
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'testme1'
Thanks,
Josh
On 02/17/2014 09:55 AM, Serge Hallyn wrote:
> Quoting Joshua Schaeffer (jschaeffer0922 at gmail.com):
>> I still can't get this to work, I'm sure I'm missing something
>> simple or obvious. To recap, I'm trying to use an LVM logical volume
>> for my container's /var and /tmp partitions. Since I've been unable
>> to get this to work, I've just beenfocusing on getting /tmp to work.
>> I changed my mount points and my container's config:
>>
>> Here are my logical volume onthe host:
>>
>> root at reaver:~# lvdisplay /dev/vg_lxc1/lv_ldap_tmp1
> Could you please create a new container, 'testme1', and just add to its
> /var/lib/lxc/testme1/config the entry
>
> lxc.mount.entry = /dev/vg_lxc1/lv_ldap_tmp1 lv_ldap defaults,create=dir 0 0
>
> Then do
>
> lxc-start -n testme1 -l trace -o testme1.out
>
> and send testme1.out here (assuming that fails to start)?
>
> thanks,
> -serge
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140217/945f62b9/attachment.html>
-------------- next part --------------
lxc-start 1392656494.694 DEBUG lxc_conf - allocated pty '/dev/pts/12' (4/5)
lxc-start 1392656494.695 DEBUG lxc_conf - allocated pty '/dev/pts/13' (6/7)
lxc-start 1392656494.695 DEBUG lxc_conf - allocated pty '/dev/pts/14' (8/9)
lxc-start 1392656494.695 DEBUG lxc_conf - allocated pty '/dev/pts/15' (10/11)
lxc-start 1392656494.695 INFO lxc_conf - tty's configured
lxc-start 1392656494.695 DEBUG lxc_console - using '/dev/tty' as console
lxc-start 1392656494.695 DEBUG lxc_start - sigchild handler set
lxc-start 1392656494.695 INFO lxc_start - 'testme1' is initialized
lxc-start 1392656494.696 DEBUG lxc_cgroup - checking '/' (rootfs)
lxc-start 1392656494.696 DEBUG lxc_cgroup - checking '/sys' (sysfs)
lxc-start 1392656494.696 DEBUG lxc_cgroup - checking '/proc' (proc)
lxc-start 1392656494.696 DEBUG lxc_cgroup - checking '/dev' (devtmpfs)
lxc-start 1392656494.696 DEBUG lxc_cgroup - checking '/dev/pts' (devpts)
lxc-start 1392656494.696 DEBUG lxc_cgroup - checking '/run' (tmpfs)
lxc-start 1392656494.696 DEBUG lxc_cgroup - checking '/' (xfs)
lxc-start 1392656494.696 DEBUG lxc_cgroup - checking '/sys/fs/selinux' (selinuxfs)
lxc-start 1392656494.696 DEBUG lxc_cgroup - checking '/run/lock' (tmpfs)
lxc-start 1392656494.696 DEBUG lxc_cgroup - checking '/boot' (ext4)
lxc-start 1392656494.696 DEBUG lxc_cgroup - checking '/tmp' (xfs)
lxc-start 1392656494.696 DEBUG lxc_cgroup - checking '/var' (xfs)
lxc-start 1392656494.696 DEBUG lxc_cgroup - checking '/sys/fs/cgroup' (cgroup)
lxc-start 1392656494.696 INFO lxc_cgroup - [1] found cgroup mounted at '/sys/fs/cgroup',opts='rw,relatime,perf_event,blkio,net_cls,freezer,devices,memory,cpuacct,cpu,cpuset,clone_children'
lxc-start 1392656494.696 DEBUG lxc_cgroup - get_init_cgroup: found init cgroup for subsys (null) at /
lxc-start 1392656494.696 DEBUG lxc_cgroup - cgroup /sys/fs/cgroup has flags 0x2
lxc-start 1392656494.725 INFO lxc_cgroup - created cgroup '/sys/fs/cgroup//lxc/testme1'
lxc-start 1392656494.725 DEBUG lxc_cgroup - checking '/var/lib/nfs/rpc_pipefs' (rpc_pipefs)
lxc-start 1392656494.773 DEBUG lxc_start - Dropped cap_sys_boot
lxc-start 1392656494.773 INFO lxc_conf - 'testme1' hostname has been setup
lxc-start 1392656494.773 DEBUG lxc_conf - mounted '/var/lib/lxc/testme1/rootfs' on '/usr/lib/x86_64-linux-gnu/lxc'
lxc-start 1392656494.774 DEBUG lxc_conf - mounted 'proc' on '/usr/lib/x86_64-linux-gnu/lxc/proc', type 'proc'
lxc-start 1392656494.774 DEBUG lxc_conf - mounted 'sysfs' on '/usr/lib/x86_64-linux-gnu/lxc/sys', type 'sysfs'
lxc-start 1392656494.774 ERROR lxc_conf - No such file or directory - failed to mount '/dev/vg_lxc1/lv_ldap_tmp1' on '/usr/lib/x86_64-linux-gnu/lxc/lv_ldap'
lxc-start 1392656494.774 ERROR lxc_conf - failed to setup the mount entries for 'testme1'
lxc-start 1392656494.774 ERROR lxc_start - failed to setup the container
lxc-start 1392656494.774 ERROR lxc_sync - invalid sequence number 1. expected 2
lxc-start 1392656494.774 ERROR lxc_start - failed to spawn 'testme1'
lxc-start 1392656494.774 DEBUG lxc_cgroup - get_init_cgroup: found init cgroup for subsys (null) at /
lxc-start 1392656494.774 DEBUG lxc_cgroup - destroying /sys/fs/cgroup//lxc/testme1
lxc-start 1392656494.861 DEBUG lxc_cgroup - '/sys/fs/cgroup//lxc/testme1' unlinked
More information about the lxc-users
mailing list