Page 1 of 1
Why a link /tank -> /usr/tank?
Posted: 04 Dec 2016 20:33
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.
Re: Why a link /tank -> /usr/tank?
Posted: 04 Dec 2016 21:40
by tony1
use a more recent version and possibly change your mnt point back to the default of /mnt
Re: Why a link /tank -> /usr/tank?
Posted: 04 Dec 2016 23:48
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.
Re: Why a link /tank -> /usr/tank?
Posted: 05 Dec 2016 00:25
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.
Re: Why a link /tank -> /usr/tank?
Posted: 05 Dec 2016 07:35
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.
Re: Why a link /tank -> /usr/tank?
Posted: 05 Dec 2016 15:28
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
Re: Why a link /tank -> /usr/tank?
Posted: 26 Dec 2016 01:09
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.