CT's will not start with ZFS subvol from non-root mounted zpool

nz_monkey

Renowned Member
Jan 17, 2013
62
0
71
Hello,

I have a zpool called "store0" that is mounted to /media/store0 due to consistency reasons. When I create a "mountpoint" for a container on this zpool, the container will not start and gives the error:

lxc-start 125 20200107015607.240 DEBUG conf - conf.c:run_buffer:340 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 125 lxc pre-start produced output: cannot open directory //store0: No such file or directory

Indicating that the lxc-pve-prestart-hook script is expecting the pool to be mounted to /

Is there a workaround or fix available for this ?
 
Hi,

in PVE 6 you can set mount point as a Storage parameter for local ZFS storages.
see
man pvesm