Automatic zfs mountpoint

On a server I installed earlier this year, I automatically get the mountpoint of a lxc container. So to access the data I can simply run zfs mount default/containers/test and access the data at the mountpoint.

On a new server I’m currently installing, the mountpoint when running zfs list is just none, for containers I’m launching.

Is this a property somewhere that I’m not aware of? What is deciding this?

I have tried both setting up the zfs pool manually, and in the lxd init process.

It’s a change we made to LXD a little while ago to help with some issues when mounting/unmounting ZFS datasets, everything is kept with no mountpoint set and LXD now directly instructs the kernel to mount it as needed.

1 Like