[Lxc-users] lxcpath

Papp Tamas tompos at martos.bme.hu
Fri Feb 22 17:28:49 UTC 2013


hi Serge and Others,

lxc version: 0.9.0.alpha3

lxcpath=/data/lxc

tank/lxc/ltest on /tank/lxc/ltest type zfs (rw,noatime)


# sh -x /usr/bin/lxc-create -n ltest -t ubuntu
+ . /usr/share/lxc/lxc.functions
+ globalconf=/etc/lxc/lxc.conf
+ bindir=/usr/bin
+ templatedir=/usr/share/lxc/templates
+ lxcinitdir=/usr/lib/x86_64-linux-gnu
+ get_default_lxcpath
+ grep -v ^# /etc/lxc/lxc.conf
+ grep [ \t]*lxcpath[ \t]*=
+ awk -F= { print $2 }
+ lxc_path=/data/lxc
+ backingstore=_unset
+ fstype=ext4
+ fssize=500M
+ vgname=lxc
+ custom_rootfs=
+ [ 4 -gt 0 ]
+ opt=-n
+ shift
+ optarg_check -n ltest
+ [ -z ltest ]
+ lxc_name=ltest
+ shift
+ [ 2 -gt 0 ]
+ opt=-t
+ shift
+ optarg_check -t ubuntu
+ [ -z ubuntu ]
+ lxc_template=ubuntu
+ shift
+ [ 0 -gt 0 ]
+ wantedhelp=0
+ [ -z /data/lxc ]
+ [ ! -r /data/lxc ]
+ [ -z ltest ]
+ [ -z  ]
+ lvname=ltest
+ id -u
+ [ 0 != 0 ]
+ [ -n  ]
+ :
+ [ -d /data/lxc/ltest ]
+ basename /usr/bin/lxc-create
+ echo lxc-create: 'ltest' already exists
lxc-create: 'ltest' already exists
+ exit 1



So a new container cannot be created, because the directory already exists, as it's on an own
filesystem.


tamas




More information about the lxc-users mailing list