Hello, everyone:
I have two questions about NFS:
1. Error 'Stale file handle' caused by executing 'mount' command in the mount
directory after mounting to nfs-hdfs-gateway
zdh246 is nfs-hdfs-gateway, centos87 is nfs-hdfs-client
The recur steps are as follows:
[root@centos87 ~]# mount -t nfs -o vers=3,proto=tcp,nolock zdh246:/
/var/data/share/am
[root@centos87 ~]# cd /var/data/share/am
[root@centos87 am]# ls
csvFile hbase oneminer solr sparkSQL spark-tmp testaie3 user zaip_data_87
hadoop hive saveModelPath spark sparkSQL-tmp test time_series_demo wzc
[root@centos87 am]# mount | grep 246
*.*.*.246:/ on /var/data/share/am type nfs
(rw,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,nolock,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=*.*.*.246,mountvers=3,mountport=4242,mountproto=tcp,local_lock=all,addr=*.*.*.246)
[root@centos87 am]# ls -lrt
ls: cannot open directory .: Stale file handle
Key point:
a. The operating system of the node(centos87) where nfs-client is located is
CentOS Linux release 7.7.1908 (Core). It can recur with Redhat7, but it can not
recur with Redhat6.
b. After the command 'mount' is executed in the mount
directory('/var/data/share/am'), the problem will recur. If it is executed in
other directories, the problem will not recur.
2. Error 'E72: Close error on swap file' occur when vi a file in the nfs-mount
directory
zdh108 is nfs-hdfs-gateway, HQxDAP-161 is nfs-hdfs-client
The recur steps are as follows:
[root@HQxDAP-161 mnt]# mount -t nfs -o vers=3,proto=tcp,nolock zdh108:/
/mnt/test
[root@HQxDAP-161 mnt]# cd /mnt/test
[root@HQxDAP-161 test]# ls
1.txt
[root@HQxDAP-161 test]# vi 1.txt
E72: Close error on swap file[root@HQxDAP-161 test]#
How can I avoid the above two errors?
wangzhichao
Distributed Development Engineer
Network Management & Service Development Dept. I/Central R&D Institute/System
Product
ZTE Corporation
4/F, ZTE Corporation Phase Ⅱ Area C, Huashen Avenue No.6 Yuhuatai District,
Nanjing, 210012, P.R.China
T: +86 755 xxxxxxxx M: +86 18752030516
E: [email protected]
www.zte.com.cn
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]