set zfs default mountpoint

peacepipe

Dabbler
Joined
Dec 17, 2017
Messages
36
Dear all,

I made a mistake when I tried to set a new mountpoint with "zfs set mountpoint=/newpool tank"

After that I realized that my Sharing (SMB/NFS) mounts aren't working anymore. It's no big deal but annoying to set all my shares to the new mountpoint.
So I tried to set the mount point to the default: "zfs set mountpoint=/mnt tank" BUT after checking the directory the zfs dataset was set to /mnt/mnt/tank and not to /mnt/tank. I tried also "zfs set mountpoint=/ tank" ... well then I see the content behind the "tank"

ls /mnt/ shows my datasets... So how should I set the mountpoint to get it normal: "/mnt/tank/dataset1"?

BR
PeacePipe
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
The mountpoint is prefixed from the zpool property altroot, which can only be set on creation or import. Export your pool, and then reimport via the GUI.
 
Last edited:
Top