[SOLVED] LXC Container on ZFS Volume

MasterTH

Renowned Member
Jun 12, 2009
244
11
83
www.sonog.de
Hi,

i tried to create an lxc on a zfs-pool.

this is what i get as an error:
Code:
Formatting '/var/lib/vz/images/100/vm-100-disk-1.raw', fmt=raw size=8589934592
mke2fs 1.42.12 (29-Aug-2014)
Discarding device blocks: 4096/2097152 done 
Creating filesystem with 2097152 4k blocks and 524288 inodes
Filesystem UUID: a2ce3fc7-5661-46bc-b59f-7c323c21432d
Superblock backups stored on blocks: 
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Allocating group tables: 0/64 done 
Writing inode tables: 0/64 done 
Creating journal (32768 blocks): done
Multiple mount protection is enabled with update interval 5 seconds.
Writing superblocks and filesystem accounting information: 0/64 
Warning, had trouble writing out superblocks.TASK ERROR: command 'mkfs.ext4 -O mmp -E 'root_owner=0:0' /var/lib/vz/images/100/vm-100-disk-1.raw' failed: exit code 144
 
getting this now:

Code:
mount: special device /rpool/ROOT/pve-1/subvol-100-disk-1 does not exist
mounting container failed
TASK ERROR: command 'mount -o bind -o '' /rpool/ROOT/pve-1/subvol-100-disk-1 /var/lib/lxc/100/rootfs/' failed: exit code 32
 
The driver expects the volume to be mounted on the standard mount point - that is why I suggested that
you want to create a subvolume first (which is mounted at /rpool/yoursubvolume/).