On 2014-04-21, Jim Beard <
jdb...@patriot.net> wrote:
> On Sun, 20 Apr 2014 22:54:20 +0000, William Unruh wrote:
>
>> I am again getting the "Stale NFS file handle" error on an nfs mounted
>> directory. Nothing I do gets rid of it. umount , umount -f, umount -l,
>> mount and then umount. Both machines (client and server ) are running
>> rpm.statd.
>>
>> On the server, I get the message in /var/log/messages
>> authenticated unmount request from 142.103.xxx.xxx:yyy for /local/wwwww.
>> So it seems that the server and client are talking to each otehr and
>> that the server does not see anything terrible.
>>
>>
>> It really really really should not be necessary to reboot a machine in
>> order to solve this problem.
>>
>> I am not sure when the particular problem happened, or what caused it.
>> Sometimes it happens when the server is rebooted without first having
>> umnounted on the client.
>>
>> But -f I thought was supposed to force an unmount. It has never ever
>> worked for me.
>> (In this case both client and server are Mageia 3 machines.)
>
> Are you running the commands on both machines?
Not sure what you mean by that. The umount commands (umount, umount -f,
umount -l , umount -l -f) are run on the client where they are the
problem. The exportfs -f was run on the server.
>
> Have you tried restarting nfs on both machines?
I ran
systemctl restart nfs-secure nfs-server nfs-mountd nfs-blkmap
on both. Did not help.
client:10.0[root]>umount /disk9/home
umount.nfs: /disk9/home: Stale NFS file handle
On the client I get in var/log/syslog
Apr 20 18:06:10 boson systemd[1]: Started NFS Mount Daemon.
Apr 20 18:07:32 boson systemd[1]: Job dev-disk-by\x2duuid-7697a931\x2d5429\x2d4ddf\x2d9be4\x2d55d7e0935396.device/start timed out.
Apr 20 18:07:32 boson systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-7697a931\x2d5429\x2d4ddf\x2d9be4\x2d55d7e0935396.device.
Apr 20 18:07:32 boson systemd[1]: Dependency failed for /dev/disk/by-uuid/7697a931-5429-4ddf-9be4-55d7e0935396.
Apr 20 18:07:32 boson systemd[1]: Job dev-disk-by\x2duuid-7697a931\x2d5429\x2d4ddf\x2d9be4\x2d55d7e0935396.swap/start failed with result 'dependency'.
Apr 20 18:07:32 boson systemd[1]: Job dev-disk-by\x2duuid-7697a931\x2d5429\x2d4ddf\x2d9be4\x2d55d7e0935396.device/start failed with result 'timeout'.
Apr 20 18:07:40 boson nfsdcltrack[21388]: cltrack_legacy_gracedone: unable to rmdir /var/lib/nfs/v4recovery/.: -1
Apr 20 18:07:40 boson nfsdcltrack[21388]: cltrack_legacy_gracedone: unable to rmdir /var/lib/nfs/v4recovery/..: -1
No idea what that dev-disk-by... is but that is the error I get, but not
sure from what. (when I tried
systemctl restart nfs-mountd
umount -f /disk9/home
I did not get those lines,
It really seems that the only way of getting out of this is to reboot,
which is crazy. The Stale File handle really does seem to be a serious
bug in nfs that has been there for at least 10 years by now. One simply
should NOT have to reboot.