Problem: Nested mountpoint for tank pool after reboot

After a migration to new hardware, I’m having a persistent issue where the tank pool gets incorrectly mounted to /mnt/mnt/tank. I found a fix, but it doesn’t persist after reboot. Here’s what my fix looks like:

On boot, check tank mount path:

zfs get mountpoint tank

NAME  PROPERTY    VALUE          SOURCE
tank  mountpoint  /mnt/mnt/tank  local

Export pool:

zpool export tank

Cleanup incorrect mount directories

rmdir /mnt/mnt/tank
rmdir /mnt/mnt

Import pool

zpool import -d /dev/disk/by-id/ tank

Check mount point:

zfs get mountpoint tank

NAME  PROPERTY    VALUE       SOURCE
tank  mountpoint  /mnt/tank   local

Everything works fine after that, until the next system reboot.

The pool is a single 12TB HDD. I’m running TrueNAS SCALE Fangtooth 25.04.2.4.

Thanks for any help!

Try the following:
zfs inherit mountpoint tank

That command should set source to default:

$ sudo zfs get mountpoint rust
NAME  PROPERTY    VALUE       SOURCE
rust  mountpoint  /mnt/rust   default

Note: TrueNAS always does imports using zpool import ... -R /mnt ... That’s why you get /mnt prepended to the usual mount points.

That fixed it! I stopped all services, VMs, apps, etc. Ran:

zfs inherit mountpoint tank

The mountpoint is now configured correctly:

zfs get mountpoint tank

NAME  PROPERTY    VALUE       SOURCE
tank  mountpoint  /mnt/tank   default

After a reboot, everything is mounted correctly in /mnt/tank.

Thank you!