This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Why a link /tank -> /usr/tank?

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
ku-gew
Advanced User
Advanced User
Posts: 172
Joined: 29 Nov 2012 09:02
Location: Den Haag, The Netherlands
Status: Offline

Why a link /tank -> /usr/tank?

Post by ku-gew »

I found out today by chance that in my N4F 10.3.x there is a soft link from /tank to /usr/tank.
"zfs list" correctly lists the dataset as mounted in /tank, but instead I found a link to somewhere else.
I tried to delete it and to reboot, it reappeared.

I have another storage pool and it is correctly mounted in /tank2, without soft links.

It doesn't seem to affect the system in any way, but how can I put things back in order?

Please let me know if you need more info about the system to diagnose the issue, I will post them.
HP Microserver N40L, 8 GB ECC, 2x 3TB WD Red, 2x 4TB WD Red
XigmaNAS stable branch, always latest version
SMB, rsync

User avatar
tony1
Moderator
Moderator
Posts: 169
Joined: 14 Jul 2016 19:04
Status: Offline

Re: Why a link /tank -> /usr/tank?

Post by tony1 »

use a more recent version and possibly change your mnt point back to the default of /mnt

ku-gew
Advanced User
Advanced User
Posts: 172
Joined: 29 Nov 2012 09:02
Location: Den Haag, The Netherlands
Status: Offline

Re: Why a link /tank -> /usr/tank?

Post by ku-gew »

Why would that solve the issue? one zfs pool is already fine, so updating won't solve magically the issue... especially since the mountpoint I gave is not conflicting with any standard POSIX one. Also, I cannot access the server and I cannot update remotely between 10.x and 11.x, due to change in partitioning of the USB boot device.

Also, ZFS doesn't care about the mountpoint, since it's specified in one of its properties ("zfs get mountpoint tank/dataset" gives me the correct one).

I dowloaded the configuration file and I searched inside it the occurrences of "tank" and "usr". Nothing interesting found, the mountpoints look fine.
Something else must be causing the issue.
HP Microserver N40L, 8 GB ECC, 2x 3TB WD Red, 2x 4TB WD Red
XigmaNAS stable branch, always latest version
SMB, rsync

User avatar
tony1
Moderator
Moderator
Posts: 169
Joined: 14 Jul 2016 19:04
Status: Offline

Re: Why a link /tank -> /usr/tank?

Post by tony1 »

look at Diagnostics|Information|Mounts, what does it say?

seems you have your mounts messed up. an upgrade may fix it for you are automatically was my thought.

or you can do it manually but you probably need to fix that.

take care.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Why a link /tank -> /usr/tank?

Post by raulfg3 »

post zpool history of yours pools, in sometime in the past , /tank was defined/used to be the mount point.

Perhaps your pool was originally created in FreeNAS or in linux?

/mnt is the correct path in BSD, please consider to use to avoid future problems.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

User avatar
tony1
Moderator
Moderator
Posts: 169
Joined: 14 Jul 2016 19:04
Status: Offline

Re: Why a link /tank -> /usr/tank?

Post by tony1 »

N4F 10.3.x is a series not a version. upgrade to the latest version in that series.

edit your pool path, Disks|ZFS|Pools|Management|Edit and remove the entry in "Mount point" this will restore the default path of /mnt/pool

the links are reappearing on reboot because you have a dataset using an invalid path in the users home directory. adjust them properly. a users home directory for example needs to be remapped.

this should restore the default behaviour.

take care

ku-gew
Advanced User
Advanced User
Posts: 172
Joined: 29 Nov 2012 09:02
Location: Den Haag, The Netherlands
Status: Offline

Re: Why a link /tank -> /usr/tank?

Post by ku-gew »

The issue was still there after the update to 11.x.

I solved the problem with "zfs set mountpoint=/myspecialfolder mypool", and then I corrected the user homes and the SMB shares. It seems fine now.

However, I noticed a link from /home to /usr/home, and in it only a folder called "transmission".

Could someone check if the issue is only in my system or not?
I don't think I have anything to do with it, this time.
HP Microserver N40L, 8 GB ECC, 2x 3TB WD Red, 2x 4TB WD Red
XigmaNAS stable branch, always latest version
SMB, rsync

Post Reply

Return to “ZFS (only!)”