Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2446473
  • 博文数量: 540
  • 博客积分: 11289
  • 博客等级: 上将
  • 技术积分: 6160
  • 用 户 组: 普通用户
  • 注册时间: 2008-02-11 20:27
个人简介

潜龙勿用,见龙在田

文章分类

全部博文(540)

文章存档

2018年(2)

2013年(5)

2012年(24)

2011年(104)

2010年(60)

2009年(217)

2008年(128)

分类: LINUX

2009-08-17 11:51:31

上午到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端出现这个错误。
阅读(6851) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~