Mountpoint /mnt/mnt/pool after import

I have imported a pool from a different machine and they keep mounting at /mnt/mnt/poolname

Exporting and reimporting from GUI doesn’t change anything.
Exporting and importing on console might temporarely fix it but after reboot it’s wrong again.

Here is my fix:

  • import from GUI — will give wrong mountpoint /mnt/mnt/poolname
  • as root on console:
    – zfs set mountpoint=/mnt/poolname poolname
    – zpool export poolname
    – zpool import poolname ( /mnt/poolname is fixed)
    – reboot (mointpoint stays fixed)
    – enjoy

Here’s another solution to the /mnt/mnt problem which I used after not knowing about the -R /mnt options for importing after a checkpoint. I set the mountpoints manually which was a mistake.

The correct settings are:

zfs set mountpoint=/.ix-apps main/ix-apps
zfs inherit mountpoint main

Then reboot.

Life is now good.