How do I mount a ZFS pool?

If you run the command sudo zfs get all it should list all the properties of you current zfs pools and file systems. One of those properties, if correctly set, should be mountpoint=.

enter image description here

Zfs will mount the pool automatically, unless you are using legacy mounts, mountpoint tells zfs where the pool should be mounted in your system by default. If not set you can do so with

sudo zfs set mountpoint=/foo_mount data

That will make zfs mount your data pool in to a designated foo_mount point of your choice.

After that is done and since root owns the mount point you can change the owner of the mount with

sudo chown -R user:user /foo_mount

That will make the user user and the group user own the mount point and everything inside it, adjust the command to assign correct user:group privileges to the mount point.


I had a similar problem and, indeed, canmount was on but the pool+dataset didn't mount on boot nor when going online, etc.

My solution, after zpool import and zpool online the pool, was:

  1. zfs mount poolname

  2. zfs mount poolname/datasetname

Yes, zfs instead of zpool with the poolname and then poolname/datasetname.

Hope this help someone.

Tags:

Mount

Zfs