ZFS Pool and LXC Root Disk

perryflynn

Active Member
Aug 26, 2016
4
0
41
34
Hello there,

i try to create a LXC container into a ZFS Pool.

Output:
Code:
mounting container failed
TASK ERROR: cannot open directory //myraidz: No such file or directory

The name of the selected ZPool is myraidz/machines.
Same problem on restore a backup into the ZPool.

Any ideas?

Greetings
Christian

Screenshot at 2016-08-26 07:22:10.png
 
Why isn't it mounted at /myraidz/machines? Proxmox VE expects the volumes to be mounted at the standard zfs mount points.
 
Ah okay, KVM Machines working without mounting the volume. I expected for LXC the same.

Code:
# zfs list
NAME                                         USED  AVAIL  REFER  MOUNTPOINT
myraidz                                     3.03T  12.3T   140K  none
myraidz/files                               2.19T  12.3T  2.19T  /media/files
myraidz/machines                             866G  12.3T   140K  none
myraidz/machines/vm-100-disk-1               516G  12.7T   114G  -
myraidz/machines/vm-101-disk-1              66.0G  12.3T  4.64G  -
myraidz/machines/vm-102-disk-1              66.0G  12.3T  33.5G  -
myraidz/machines/vm-103-disk-1              66.0G  12.3T  44.2G  -
myraidz/machines/vm-105-disk-1               143G  12.4T  11.4G  -
myraidz/machines/vm-105-state-AfterInstall  8.76G  12.3T  5.20G  -

I have created a test subvolume. Now its working as expected.
Thanks!

Code:
myraidz/lxcmachines                          633M  12.3T   140K  /myraidz/lxcmachines
 
ZFS has two fundamental types of datasets - zvols and filesystems. VMs use zvols (which do not contain a ZFS filesystem, but are passed as block devices to the VMs), containers use ZFS filesystem datasets directly. zvols don't get a mountpoint in ZFS (but can be formatted and mounted by the operating system just like any other block device).
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!