Mount point /mnt/mnt/pool1 instead of /mnt/pool1

stickypt

Cadet
Joined
Aug 19, 2013
Messages
1
Hello All,

After update from RC to FINAL version the mount point of my pool always goes to /mnt/mnt no mather what I do.
Already reinstalled from scratch and happens the same.
Before import the pool I double check the mountpoint of the pool:

> zpool import pool1
> zfs get mountpoint pool1

Result:

NAME PROPERTY VALUE SOURCE
pool1 mountpoint /mnt/pool1 local

> zpool export pool1

Go to GUI, import the pool, then back com shell:

> zfs get mountpoint pool1

Result:
NAME PROPERTY VALUE SOURCE
pool1 mountpoint /mnt/mnt/pool1 local

Tried to change the mount point a lots of times, but it always ends to the same /mnt/mnt point. Samba and other services doesn't work because of mismatch mount point.
 

Alecmascot

Guru
Joined
Mar 18, 2014
Messages
1,177
This may cover it :

 

Maximilious

Dabbler
Joined
Jun 20, 2023
Messages
15
Sorry for a bump on an old thread but after having this exact issue in SCALE, the proper fix is to run this in the CLI while the pool is mounted:

zfs set mountpoint=/poolname poolname

If you accidentally set the mount to / instead of /poolname it will mount it at the root of /mnt and take precedence over any other pool you may have mounted. You can simply rerun the command with /poolname and your other pools will show up under /mnt again if you make that mistake like I did.

The zfs import/export commands from the other thread do not persist a reboot if you've configured the pool in the web interface. I'm not sure what caused my pool to set an alternate mount point but the above command fixes the issue on the Pool immediately and persists a reboot.
 

i8degrees

Cadet
Joined
Jul 25, 2023
Messages
3
Many thanks goes out to @Maximilious for posting the answer. This bug has been driving me crazy from time to time, creating such a mess. I don't know what caused it to happen originally with my setup, either, but thank goodness is it now resolved.

Cheers,
Jeff
 
Top