我configuration了一个在Ubuntu 10.04 Server上运行的nfs-kernel-server。
/export THIRD_SERVER_IP(rw,fsid=0,insecure,no_subtree_check,async) SECOND_SERVER_IP(rw,fsid=0,insecure,no_subtree_check,async) /export/ebs THIRD_SERVER_IP(rw,fsid=0,insecure,no_subtree_check,async) SECOND_SERVER_IP(rw,nohide,insecure,no_subtree_check,async)
我将导出的文件夹安装到第二台服务器上:
mount -t nfs4 -o proto=tcp,port=2049 NFS_SERVER_IP_HERE:/ebs /ebs
它工作得很好。 我把它挂载到第三台服务器,但是我无法从中访问文件。
ls -l /ebs ls: reading directory /ebs: Stale NFS file handle total 0
第三台服务器上的系统日志说:
kernel: [11575.483720] NFS: server NFS_SERVER_IP_HERE error: fileid changed kernel: [11575.483722] fsid 0:14: expected fileid 0x2, got 0x6e001
一些信息:
uname -r 2.6.32-312-ec2 uname -m i686
错误是由于/ etc / exports中的错误fsid值而发生的。
我用这个replace了第二行:
/export/ebs THIRD_SERVER_IP(rw,insecure,no_subtree_check,async) SECOND_SERVER_IP(rw,nohide,insecure,no_subtree_check,async)
现在它工作。