Normand_Nadon Posted May 21, 2020 Share Posted May 21, 2020 Setup: UNRAID v.6.8.3 Ubuntu 20.04 client (Pop!OS variant) Fixed IP on client and server side NFS share option 192.168.2.10(sec=sys,rw) - this is the IP of the client computer client's /etc/fstab entry: 192.168.2.17:/mnt/user/MULTIMEDIAS /home/normand/NFS/NORMAND-NAS-01/MULTIMEDIAS nfs defaults,timeo=14,soft 0 0 Issue: It happens with all my shares. I use them, then, at any given (and random) times, I have a "Stale file handle" message and I have to remount the drive to continue working with it. The weirdest part, is that sometimes, a program or process is still writing to the share with no issue but I can't make anything else communicate with it (file manager, other programs). I wait until the process finishes and unmount/remount the drive to continue working... Is it due to the mounting options I used on the client's side? I am not understanding these NFS parameters well, even after 10 years of linux usage! Quote Link to comment
JorgeB Posted May 21, 2020 Share Posted May 21, 2020 See if turning off hard link support in Settings/Global Share Settings helps, but you'll lose hard link support. Quote Link to comment
Normand_Nadon Posted May 28, 2020 Author Share Posted May 28, 2020 On 5/21/2020 at 8:36 AM, johnnie.black said: See if turning off hard link support in Settings/Global Share Settings helps, but you'll lose hard link support. What is that Hardlink thing? What does it do? Quote Link to comment
JorgeB Posted May 29, 2020 Share Posted May 29, 2020 https://www.geeksforgeeks.org/soft-hard-links-unixlinux/ Quote Link to comment
eric.frederich Posted June 19, 2020 Share Posted June 19, 2020 I'm having this problem as well.... I constantly have to `umount` then `mount` the shares after getting stale NFS errors. Quote Link to comment
Charly Posted March 5, 2021 Share Posted March 5, 2021 Same for me, running UNRAID 6.9.0 and Ubuntu 20.04 in a VM. I've mounted an UNRAID NFS export in the Ubuntu VM using the /etc/fstab file and the following configuration: 10.10.xxx.yyy:/mnt/user/share /mnt/share nfs rw 0 0 Randomly after some time (sometimes after minutes or sometimes after hours) the NFS export is not accessible anymore. When I try to view the mounted content by typing "ls /mnt/share", I get the following error: "ls: cannot access '/mnt/share': Stale file handle" Already disabled "Tunable (support Hard Links)" in "Global Share Settings". Also disabled caching for this particular share where I have got the issue. Anyone find a solution or workaround for this issue already? Quote Link to comment
GnaXi Posted May 23, 2023 Share Posted May 23, 2023 On 3/5/2021 at 3:32 PM, Charly said: Same for me, running UNRAID 6.9.0 and Ubuntu 20.04 in a VM. I've mounted an UNRAID NFS export in the Ubuntu VM using the /etc/fstab file and the following configuration: 10.10.xxx.yyy:/mnt/user/share /mnt/share nfs rw 0 0 Randomly after some time (sometimes after minutes or sometimes after hours) the NFS export is not accessible anymore. When I try to view the mounted content by typing "ls /mnt/share", I get the following error: "ls: cannot access '/mnt/share': Stale file handle" Already disabled "Tunable (support Hard Links)" in "Global Share Settings". Also disabled caching for this particular share where I have got the issue. Anyone find a solution or workaround for this issue already? I'm having this exact same issue as well with 6.11.5. Quote Link to comment
dlandon Posted May 23, 2023 Share Posted May 23, 2023 2 minutes ago, GnaXi said: I'm having this exact same issue as well with 6.11.5. Post diagnostics. Quote Link to comment
intoran Posted May 24, 2023 Share Posted May 24, 2023 Same issue here with 6.11.5. Any fixes on this? Quote Link to comment
Econaut Posted May 25, 2023 Share Posted May 25, 2023 (edited) Same recurring issue with 6.11.5 as well. What are the correct NFS export/mount parameters to avoid this issue? I have a Synology NAS as well with NFS exports and have never run into this issue. Occurs every day, several times a day with UNRAID. Edited May 25, 2023 by Econaut Quote Link to comment
dlandon Posted May 25, 2023 Share Posted May 25, 2023 Make sure you are using NFSv4. Quote Link to comment
GnaXi Posted May 28, 2023 Share Posted May 28, 2023 On 5/25/2023 at 6:35 PM, dlandon said: Make sure you are using NFSv4. How do we make sure that it's using NFSv4? Even though I enabled it in /etc/nfsmount.conf, if looking at the version with "nfsstat -m" it says "vers=3" on Unraid. Quote Link to comment
dlandon Posted May 28, 2023 Share Posted May 28, 2023 1 minute ago, GnaXi said: How do we make sure that it's using NFSv4? Even though I enabled it in /etc/nfsmount.conf, if looking at the version with "nfsstat -m" it says "vers=3" on Unraid. How are you mounting them? You need to do the following: Use Unraid 6.10 or later for NFSv4 support. Specify NFSv4 in your mount command. -t 'nfs4' Quote Link to comment
GnaXi Posted May 28, 2023 Share Posted May 28, 2023 9 minutes ago, dlandon said: How are you mounting them? You need to do the following: Use Unraid 6.10 or later for NFSv4 support. Specify NFSv4 in your mount command. -t 'nfs4' I'm mounting a share from Unraid from my virtual Ubuntu. Even if I use -t nfs4, so that my virtual Ubuntu uses nfsv4, Unraid still insists on using v3. Quote Link to comment
dlandon Posted May 28, 2023 Share Posted May 28, 2023 Just now, GnaXi said: I'm mounting a share from Unraid from my virtual Ubuntu. What version of Unraid? You're mounting an Unraid NFS share from an Ubuntu VM? Quote Link to comment
GnaXi Posted May 28, 2023 Share Posted May 28, 2023 Just now, dlandon said: What version of Unraid? You're mounting an Unraid NFS share from an Ubuntu VM? Unraid is Version: 6.11.5 And yes, I am mounting an Unraid share from an Ubuntu VM running on the Unraid server. Quote Link to comment
dlandon Posted May 28, 2023 Share Posted May 28, 2023 37 minutes ago, GnaXi said: Unraid is Version: 6.11.5 And yes, I am mounting an Unraid share from an Ubuntu VM running on the Unraid server. Post the Unraid diagnostics. Quote Link to comment
GnaXi Posted May 28, 2023 Share Posted May 28, 2023 4 hours ago, dlandon said: Post the Unraid diagnostics. gnaxserver-diagnostics-20230528-1848.zip Quote Link to comment
dlandon Posted May 28, 2023 Share Posted May 28, 2023 You're mounting this share on the Unraid server using NFSv3: May 28 13:34:24 GnaXServer unassigned.devices: Mounting Remote Share '192.168.2.130:/volume1/Andi'... May 28 13:34:24 GnaXServer unassigned.devices: Mount NFS command: /sbin/mount -t 'nfs' -o rw,noacl '192.168.2.130:/volume1/Andi' '/mnt/remotes/Jabba' May 28 13:34:24 GnaXServer nfsrahead[4700]: setting /mnt/remotes/Jabba readahead to 128 May 28 13:34:24 GnaXServer unassigned.devices: Successfully mounted '192.168.2.130:/volume1/Andi' on '/mnt/remotes/Jabba'. You can mount this using MFSv4 by a setting in UD. This is a client mount setting used when mounting NFS shares with UD. NFSv3 is known to have stale file issues with Unraid because of the Mover moving files from a cache to the array. Several attempts at work arounds are only partially effective. NTFSv4 is the best solution Quote Link to comment
GnaXi Posted May 28, 2023 Share Posted May 28, 2023 24 minutes ago, dlandon said: You're mounting this share on the Unraid server using NFSv3: May 28 13:34:24 GnaXServer unassigned.devices: Mounting Remote Share '192.168.2.130:/volume1/Andi'... May 28 13:34:24 GnaXServer unassigned.devices: Mount NFS command: /sbin/mount -t 'nfs' -o rw,noacl '192.168.2.130:/volume1/Andi' '/mnt/remotes/Jabba' May 28 13:34:24 GnaXServer nfsrahead[4700]: setting /mnt/remotes/Jabba readahead to 128 May 28 13:34:24 GnaXServer unassigned.devices: Successfully mounted '192.168.2.130:/volume1/Andi' on '/mnt/remotes/Jabba'. You can mount this using MFSv4 by a setting in UD. This is a client mount setting used when mounting NFS shares with UD. NFSv3 is known to have stale file issues with Unraid because of the Mover moving files from a cache to the array. Several attempts at work arounds are only partially effective. NTFSv4 is the best solution Thanks! Where is that setting located though? Feels like I've looked everywhere at this point Quote Link to comment
GnaXi Posted May 28, 2023 Share Posted May 28, 2023 32 minutes ago, dlandon said: UD Settings. I see! But I'm not using UD for the setup that I'm having issues with. The NFS share that you referred to earlier is working fine, when Unraid is connecting to a share on a different server. Issue is the other way around, when a different server is connecting to a share on the Unraid server. Quote Link to comment
dlandon Posted May 28, 2023 Share Posted May 28, 2023 Unraid can serve NFSv4. I'm not sure what you need to do on the Ubuntu server to make it happen other than specify NFSv4 in the mount. As I said, NFSv4 is more robust and doesn't have stale file handles issues. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.