HI there,
I'm having trouble creating a LXC container using a ZFS pool.
What am I doing wrong?
I'm having trouble creating a LXC container using a ZFS pool.
What am I doing wrong?
Code:
root@surf:~# pct create 104 /local-dir/template/cache/debian-8.0-standard_8.0-1_amd64.tar.gz -description LXC -rootfs 4 -hostname pvecontainer01 -memory 1024 -nameserver 8.8.8.8 -net0 name=eth0,hwaddr=52:4A:5E:26:58:D8,ip=192.168.15.147/24,gw=192.168.15.1,bridge=vmbr0 -storage images -password changeme
mount: special device /surf-p4/images/subvol-104-disk-1 does not exist
mounting container failed - command 'mount -o bind /surf-p4/images/subvol-104-disk-1 /var/lib/lxc/104/rootfs/' failed: exit code 32
extracting archive '/local-dir/template/cache/debian-8.0-standard_8.0-1_amd64.tar.gz'
Total bytes read: 533012480 (509MiB, 108MiB/s)
Detected container architecture: amd64
Creating SSH host key 'ssh_host_dsa_key' - this may take some time ...
Creating SSH host key 'ssh_host_ecdsa_key' - this may take some time ...
Creating SSH host key 'ssh_host_key' - this may take some time ...
Creating SSH host key 'ssh_host_rsa_key' - this may take some time ...
Creating SSH host key 'ssh_host_ed25519_key' - this may take some time ...
Code:
root@surf:~# pvesm zfsscan
surf-p4
surf-p4/Backups
surf-p4/images
surf-p4/pve
root@surf:~# pvesm list images
images:subvol-100-disk-1 subvol 107374182400 100
images:subvol-104-disk-1 subvol 4294967296 104
images:vm-600-disk-1 raw 34359738368 600
images:vm-601-disk-1 raw 21474836480 601
images:vm-901-disk-1 raw 34359738368 901
root@surf:~# pvesm list status
storage 'status' does not exists
root@surf:~# pvesm status
Backups dir 1 1831558784 50930560 1780628224 3.28%
images zfspool 1 1810999371 30371052 1780628319 2.18%
local dir 1 1787783552 7155328 1780628224 0.90%
local-dir dir 1 20026172 14151056 4834788 75.03%
root@surf:~# pvesm list images
images:subvol-100-disk-1 subvol 107374182400 100
images:subvol-104-disk-1 subvol 4294967296 104
images:vm-600-disk-1 raw 34359738368 600
images:vm-601-disk-1 raw 21474836480 601
images:vm-901-disk-1 raw 34359738368 901
root@surf:~# uname -a
Linux surf 4.2.6-1-pve #1 SMP Sat Dec 19 15:42:50 CET 2015 x86_64 GNU/Linux
root@surf:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
surf-p4 84.4G 1.66T 19K /surf-p4
surf-p4/Backups 48.6G 1.66T 48.6G /surf-p4/Backups
surf-p4/images 29.0G 1.66T 19K none
surf-p4/images/subvol-100-disk-1 19K 100G 19K none
surf-p4/images/subvol-104-disk-1 19K 4.00G 19K none
surf-p4/images/vm-600-disk-1 14.2G 1.66T 14.2G -
surf-p4/images/vm-601-disk-1 2.92G 1.66T 2.92G -
surf-p4/images/vm-901-disk-1 11.9G 1.66T 11.9G -
surf-p4/pve 6.82G 1.66T 6.82G /var/lib/vz
root@surf:~#