Package: lxc Version: 1:2.0.9-6 Severity: normal Dear Maintainer,
I created an instance of stretch Debian on ext4 on a thinly-provisioned LVM backend. I attempt to clone it using a snapshot. Thus: $ sudo vgcreate lxc --dataalignment 512k -s 1M /dev/md0 (sizes chosen to match chunksize and stripewidth of underlying device) $ sudo lvcreate -l 50%VG --type=thin-pool -n lxc-pool lxc $ sudo lxc-create -n 'stretch-thin' --fssize=8G --fstype ext4 -B lvm --thinpool lxc-pool -t debian -- --mirror=http://mirror.aarnet.edu.au/debian/ -r stretch Then: $ sudo lxc-copy -l DEBUG -s -n stretch-thin -N stretch-copy Using default stripesize 64.00 KiB. Logical volume "stretch-copy" created. lxc-copy: lxccontainer.c: container_destroy: 2576 Error destroying rootfs for stretch-copy clone failed At this point, the container is half-created. $ sudo ls -l /var/lib/lxc/stretch-copy/ total 4 -rw-r--r-- 1 root root 732 Mar 26 14:35 config drwxr-xr-x 2 root root 6 Mar 26 14:35 rootfs $ sudo lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert lxc-pool lxc twi-aotz-- 931.38g 0.04 0.44 stretch-copy lxc Vwi---tz-k 8.00g lxc-pool stretch-thin stretch-thin lxc Vwi-a-tz-- 8.00g lxc-pool 4.13 BUT: $ sudo ls -l /dev/lxc total 0 lrwxrwxrwx 1 root root 7 Mar 26 14:35 stretch-thin -> ../dm-4 and: $ sudo lxc-start -n stretch-copy lxc-start: lxccontainer.c: wait_on_daemonized_start: 754 Received container state "ABORTING" instead of "RUNNING" lxc-start: tools/lxc_start.c: main: 368 The container failed to start. -- System Information: Debian Release: 9.4 APT prefers stable APT policy: (500, 'stable'), (500, 'oldstable'), (300, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 4.9.0-6-amd64 (SMP w/4 CPU cores) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages lxc depends on: ii libapparmor1 2.11.0-3+deb9u2 ii libc6 2.27-2 ii libcap2 1:2.25-1 ii libgnutls30 3.5.8-5+deb9u3 ii liblxc1 1:2.0.9-6 ii libseccomp2 2.3.1-2.1 ii libselinux1 2.6-3+b3 ii lsb-base 9.20161125 ii python3 3.6.4-1 ii python3-lxc 1:2.0.9-6 Versions of packages lxc recommends: ii bridge-utils 1.5-13+deb9u1 ii debootstrap 1.0.89 ii dirmngr 2.1.18-8~deb9u1 ii dnsmasq-base 2.76-5+deb9u1 ii gnupg 2.1.18-8~deb9u1 ii iptables 1.6.0+snapshot20161117-6 ii libpam-cgfs 2.0.7-1 ii lxcfs 2.0.7-1 ii openssl 1.1.0f-3+deb9u1 ii rsync 3.1.2-1+deb9u1 ii uidmap 1:4.4-4.1 Versions of packages lxc suggests: pn apparmor <none> pn btrfs-progs <none> ii lvm2 2.02.168-2 -- no debconf information