I have four computers and on two of them (say it will be n1 and n2) I have installed NFS4 server and exported:
/export 10.0.0.0/16(rw,fsid=0,no_subtree_check,async,insecure,no_root_squash)
/export/home 10.0.0.0/16(rw,fsid=0,no_subtree_check,async,insecure,no_root_squash)
Now, both n1 and n2 has the same configuration and I can mount and unmount those resources on any of my computers (in /home/n1 and /home/n2) without errors, but I can access only resources from n1. When I try to ls
directory from n2 I get error: "Stale NFS file handle".
My network is working correctly, I have no firewall, both of them has the same configuration and the same Ubuntu 10.04 server version.
On client machines in logs I get this error:
[585039.584017] NFS: server 10.0.1.4 error: fileid changed
[585039.584019] fsid 0:16: expected fileid 0x1ba54e2, got 0x3f20001
I've checked it on server machine and this 0x3f20001 is id of /export
directory and 0x1ba54e2 is /export/home
.
My fstab looks like this:
10.0.1.4:/home /home/n2 nfs4 _netdev,auto 0 0
IP 10.0.1.4 belongs to n2 host.
Any idea?