上午到web server 上查看挂载的NFS目录,竟然发现下面的错误。下面为处理过程:
[root@apache dhj]# cd /mnt/netstorage
[root@apache netstorage]# ll
ls: .: Stale NFS file handle
[root@apache ~]# mount -o remount /mnt/netstorage
[root@apache ~]# cd /mnt/netstorage
-bash: cd: /mnt/netstorage: Stale NFS file handle
[root@apache ~]# ls -lh /mnt/
total 0
?--------- ? ? ? ? ? netstorage
[root@apache ~]# umount /mnt/netstorage
umount: /mnt/netstorage: device is busy
umount: /mnt/netstorage: device is busy
[root@apache ~]# umount -f /mnt/netstorage
umount2: Device or resource busy
umount: /mnt/netstorage: device is busy
umount2: Device or resource busy
umount: /mnt/netstorage: device is busy
[root@apache ~]# lsof |grep /mnt/netstorage
lsof: WARNING: can't stat() nfs file system /mnt/netstorage
Output information may be incomplete.
ping 30767 root cwd unknown 3,3 /mnt/netstorage
[root@apache ~]# ps -ef|grep 30767
root 30767 1 0 Jun25 ? 00:00:21 ping 219.1
root 4474 25491 0 11:32 pts/2 00:00:00 grep 30767
[root@apache ~]# ps aux|grep ping
root 30767 0.0 0.0 2552 572 ? S Jun25 0:21 ping 219.1
root 6013 0.0 0.0 5476 656 pts/2 S+ 11:37 0:00 grep ping
[root@apache ~]# fuser /mnt/netstorage
/mnt/netstorage: Stale NFS file handle
[root@apache ~]# fuser -k /mnt/netstorage
/mnt/netstorage: 30767c
[root@apache ~]# ps aux|grep ping
root 6360 0.0 0.0 5008 648 pts/2 S+ 11:38 0:00 grep ping
[root@apache ~]# ls /mnt/netstorage/
apachedoc
查阅资料后说是“
当我们已经mount 上的file or directory ,在server上突然被remove or unexport ,就会出现此讯息“。
就是说,如果client端mount上了server端的directory之后,如果server端又将这个directory unshare了,那么就会在client端出现这个错误。
阅读(6934) | 评论(0) | 转发(0) |