Same FSID on different devices?

Discussion about using NAS on Linux and Unix OS.
Post Reply
dlaurenz
New here
Posts: 7
Joined: Fri Nov 03, 2017 11:09 pm

Same FSID on different devices?

Post by dlaurenz » Sat Mar 13, 2021 1:49 am

Hi,

i have multiple USB Devices connected to my qnap and have a strange behavior.
two of them have exact the same fsid? I tried everything, fsck, removeing nfs share readding but DEV5005_1 and DEV5105_1 keep having the same fsid. Via SMB everything is fine...

[~] # cat /etc/exports
"/share/external/DEV5107_1" *(sec=sys,ro,async,wdelay,insecure,no_subtree_check,no_root_squash,fsid=0e7cd42e8d4ff68f3bae83caa69a5943)
"/share/CACHEDEV1_DATA/DATADISK0" *(sec=sys,ro,async,wdelay,insecure,no_subtree_check,no_root_squash,fsid=a302b362ef882cb2fe55650313225f0b)
"/share/external/DEV3705_1" *(sec=sys,ro,async,wdelay,insecure,no_subtree_check,no_root_squash,fsid=da13e213f9a7fef9e31473e3bd036eb7)
"/share/external/DEV3703_1" *(sec=sys,ro,async,wdelay,insecure,no_subtree_check,no_root_squash,fsid=edff1574ab20d04ce4a859ffe44df11a)
"/share/external/DEV5106_1" *(sec=sys,ro,async,wdelay,insecure,no_subtree_check,no_root_squash,fsid=4f4777e6664aa1fe3dc7e3c7cb656287)
"/share/external/DEV3704_1" *(sec=sys,ro,async,wdelay,insecure,no_subtree_check,no_root_squash,fsid=6900a2998931eb4a12b6edf49b9e820f)
"/share/external/DEV3706_1" *(sec=sys,ro,async,wdelay,insecure,no_subtree_check,no_root_squash,fsid=80fa98efb5b3848fd32d353e6a415536)
"/share/external/DEV5005_1" *(sec=sys,ro,async,wdelay,insecure,no_subtree_check,no_root_squash,fsid=4bc17c9d807c8ca3adef910c33d15f04)
"/share/external/DEV5105_1" *(sec=sys,ro,async,wdelay,insecure,no_subtree_check,no_root_squash,fsid=4bc17c9d807c8ca3adef910c33d15f04)
"/share/CACHEDEV1_DATA/Public" *(sec=sys,rw,async,wdelay,insecure,no_subtree_check,no_root_squash,fsid=37b143ba0ca575d37a356ab03a7a28db)

dlaurenz
New here
Posts: 7
Joined: Fri Nov 03, 2017 11:09 pm

Re: Same FSID on different devices?

Post by dlaurenz » Sat Mar 13, 2021 4:04 am

/sbin/gen_exports creates this: (found it in /etc/init.d/nfs )

[/etc] # /sbin/gen_exports
"/share/external/DEV5107_1" *(sec=sys,ro,async,wdelay,insecure,no_subtree_check,no_root_squash,fsid=0e7cd42e8d4ff68f3bae83caa69a5943)
"/share/CACHEDEV1_DATA/DATADISK0" *(sec=sys,ro,async,wdelay,insecure,no_subtree_check,no_root_squash,fsid=a302b362ef882cb2fe55650313225f0b)
"/share/external/DEV3705_1" *(sec=sys,ro,async,wdelay,insecure,no_subtree_check,no_root_squash,fsid=da13e213f9a7fef9e31473e3bd036eb7)
"/share/external/DEV3703_1" *(sec=sys,ro,async,wdelay,insecure,no_subtree_check,no_root_squash,fsid=edff1574ab20d04ce4a859ffe44df11a)
"/share/external/DEV5104_1" *(sec=sys,ro,async,wdelay,insecure,no_subtree_check,no_root_squash,fsid=fb4fd33233a3accc31f4c77781bd4d38)
"/share/external/DEV5106_1" *(sec=sys,ro,async,wdelay,insecure,no_subtree_check,no_root_squash,fsid=4f4777e6664aa1fe3dc7e3c7cb656287)
"/share/external/DEV3704_1" *(sec=sys,ro,async,wdelay,insecure,no_subtree_check,no_root_squash,fsid=6900a2998931eb4a12b6edf49b9e820f)
"/share/external/DEV3706_1" *(sec=sys,ro,async,wdelay,insecure,no_subtree_check,no_root_squash,fsid=80fa98efb5b3848fd32d353e6a415536)
"/share/external/DEV5005_1" *(sec=sys,ro,async,wdelay,insecure,no_subtree_check,no_root_squash,fsid=4bc17c9d807c8ca3adef910c33d15f04)
"/share/external/DEV5105_1" *(sec=sys,ro,async,wdelay,insecure,no_subtree_check,no_root_squash,fsid=4bc17c9d807c8ca3adef910c33d15f04)
"/share/CACHEDEV1_DATA/Public" *(sec=sys,rw,async,wdelay,insecure,no_subtree_check,no_root_squash,fsid=37b143ba0ca575d37a356ab03a7a28db)

So where does gen_exports get the same fsid from....

Mousetick
Been there, done that
Posts: 956
Joined: Thu Aug 24, 2017 10:28 pm

Re: Same FSID on different devices?

Post by Mousetick » Sat Mar 13, 2021 6:35 am

It looks like there's a bug in QNAP's /sbin/gen_exports tool. Distinct paths must have different fsids. I don't know what algorithm or heuristics they use to generate the "unique" ids. Contact QNAP to report and ask for a solution.

dlaurenz
New here
Posts: 7
Joined: Fri Nov 03, 2017 11:09 pm

Re: Same FSID on different devices?

Post by dlaurenz » Mon Mar 15, 2021 6:30 pm

i did open a request...

Post Reply

Return to “Linux & Unix (NFS)”