I have a ZVOL created on the host and partitioned so that I end up with /dev/zd0p1 which I’ve then formatted with ext4 . I have exported this to a container with:
lxc config device add spike-test1 testvol unix-block path=/dev/zd0p1
this works fine and on the container I can mount /dev/zd0p1 and write to it no problem.
However I cannot get it to mount when the container is started, even if I put it in /etc/fstab it won’t automatically mount (it uses defaults option so it implies auto and mount at boot).
what am I missing? both host and container are ubuntu 16.04, lxd 2.16.