Stale NFS file handle的解决方法

今天当我在Linux系统内df -h查看磁盘使用情况的时候,一个NFS客户端系统报错:Stale NFS file handle。

我查了资料,说是当我们在NFS Client已经mount上的文件或者目录,在NFS Server上突然被remove或者unexport,就会出现这样的信息。例如NFS Client端mount上了NFS Server端的目录后,如果NFS Server端把这个目录进行了unshare。就会在NFS Client端出现这个错误。

解决办法:在NFS Client上取消文档或者目录的挂载。

1.用fuser查找占用NFS共享的目录或者文件的进程。

fuser -m -v $file_path

2.杀掉进程。

kill -9 $PID

3.强制umount卸载掉NFS Client上已经mount的文件目录。

umount -f $file_path

时间: 2024-08-03 12:52:37

Stale NFS file handle的解决方法的相关文章

NFS挂载报如下错误信息:mount.nfs: Stale NFS file handle解决

1)用fuser杀掉占用那个目录的进程 linux:~ # fuser -k /home/msgplus/msgplus/remote_dir 2)强制umount linux:~ # umount -f /home/msgplus/msgplus/remote_dir 3)重新挂载 linux:~ # mount -t nfs 193.168.168.85:/home/msgplusdata /home/msgplus/msgplus/remote_dir -o nolock

salt-minion dead but pid file exists 正确解决方法

说明: 看了网上很多关于alt-minion dead but pid file exists 的解决方法,千篇一律的写一个shell脚本 killproc salt-minion 见链接:http://732233048.blog.51cto.com/9323668/1693483 但是并没有什么用,我如何解决这个问题的呢,请容我慢慢道来. 系统版本:CentOS_6.7_64bit 环境已优化. 重装(第一次装)salt-minion,但是客户端却无法正常启动,如下报错: [[email p

Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] No such file or directory解决方法

今天用pdo连接mysql遇到一个奇怪的问题,host设为127.0.0.1可以连接成功,设为localhost就会报如下的错误: PHP Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] No such file or directory' in /usr/share/nginx/html/test.php:2 Stack trace: #0 /usr/share/nginx

Cannot find SS.INI file for user *** 解决方法

昨天还用的好好的VSS今天早上一来就提示: Cannot find SS.INI file for user *** 度娘了一下,好像都是说的: 1,vss\users\***\  下无文件SS.INI若无从别处copy一个2,vss\users\***\  下有文件SS.INI修改vss下users.txt文件添加:*** = users\***\ss.ini 但是我的就没有users这个目录,更没有SS.INI或者users.txt这个文件,我的是VSS2005的版本,不知道是不是其他版本才

rmmod: can't change directory to '3.4.39': No such file or directory 解决方法

在调试linux系统的模块时,在卸载模块时遇到了如rmmod: can't change directory to '3.4.39': No such file or directory这样的错误,网上了找了一些方法,最后发现问题本身提示已经很明显了,缺少这个目录. 那么问题是这个目录是在哪呢,答案是/lib/modules目录下,在该目录下建立3.4.39这个文件夹即可. rmmod: can't change directory to '3.4.39': No such file or di

nfs文件系统挂载失败解决方法

*/--> nfs文件系统挂载失败解决方法 Table of Contents 1. 错误提示 2. 我的配置 1 错误提示 bootserver=255.255.255.255, rootserver=192.168.1.88, rootpath= VFS: Mounted root (nfs filesystem) on device 0:12. Freeing init memory: 136K nfs: server 192.168.1.88 not responding, still

numa.h:No such file or directory 解决方法

参考: numa.h:No such file or directory numa.h:No such file or directory 解决方法 Ubuntu: $ apt-get install libnuma-dev 2017.12

Ubuntu下 fatal error: Python.h: No such file or directory 解决方法

参考: fatal error: Python.h: No such file or directory Ubuntu下 fatal error: Python.h: No such file or directory 解决方法 根据使用的Python版本安装python-dev库. sudo apt-get install python-dev # for python2.x installs sudo apt-get install python3-dev # for python3.x i

Linux启动网卡时出现RTNETLINK answers: File exists错误解决方法

这里说一下,如果复制了虚拟机,设置新的MAC地址为什么? 在虚拟机的网络设置中--->高级.然后找到如下窗口,生成新的MAC地址即可. -------------------------------------------------------------------------------- 一.问题描述VMware中克隆虚拟机是经常的事情,虽然如此,用到虚拟机时,本人还是喜欢新安装一个操作系统,针对服务器的应用,在安装操作系统时,一并安装好,并且也花不了多少时间.但最近需要大量的配置一样的