nfs umount 卸载不掉 Stale file handle

nfs挂在是一个很方便硬盘扩容和共享的方式,当然它还有很多的功能。但是当server宕机后,client无法卸载挂在,就存在问题了

umount /xxx
umount.nfs: /xxx: device is busy
umount.nfs: /xxx: device is busy

我们会使用

umount -l /xxx  就可以卸载了

当然,也有可能是我挂在了 /xxx ,然后在/xxx下同时也挂在了/xxx/yyy,如果使用

umount -l /xxx/yyy 就会报错

umount -l /xxx/yyy
umount.nfs: /xxx/yyy: Stale file handle

这时,只需要使用umount -l /xxx就可以了

但是 ,我们使用mount 查看挂在的时候/xxx/yyy还是存在的,那么就可以

touch /xxx/yyy

在使用mount看一下就不存在了

umount -f  也可以试试

时间: 2024-08-14 07:13:46

nfs umount 卸载不掉 Stale file handle的相关文章

nfs文件不共享,Stale file handle

对于nfs文件不能共享,提示Stale file handle的情况, 可能在此之前,这个目录已经有挂载,解决办法为重新挂载: umount /def mount -t nfs 10.17.11.120:/home/abc /def 检验方法: cd /def 进入挂载点,查看里面文件与nfs是否一致 ls 原文地址:http://blog.51cto.com/xiaoahehe/2343289

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上

[object-c 2.0 程序设计]object-c file handle (二)

// // main.m // cmdTry // // Created by Calos Chen on 2017/8/21. // Copyright © 2017年 Calos Chen. All rights reserved. // #import <Foundation/Foundation.h> #import "class4.m" #import "NSObject_class5.h" @class Fraction; @interfac

【翻译自mos文章】 在错误的从os级别remove掉 trace file 之后,怎么找到该trace file的内容?

在错误的从os级别remove掉 trace file 之后,怎么找到该trace file的内容? 參考原文: How to Find the Content of Trace File Generated for an Oracle Process after Removing the Trace File by Mistake at OS Level (Doc ID 805083.1) 适用于: Oracle Database - Enterprise Edition - Version

Java(TM) SE Development Kit 6 卸载不掉怎么办

错误描述:Java 安装时断电,再次安装java时,提示“您的电脑上已经安装了此软件.是否要重新安装”,点“是”后出现“内部错误2753:RegUtils”,点“确定”又出现上述提示. 解决办法 :使用Windows Install Clean Up 将 Java SE Development Kit 删除即可. Java(TM) SE Development Kit 6 卸载不掉怎么办,布布扣,bubuko.com

CentOS下强行umount卸载设备

fuser -cu /usr/local/openresty/nginx/html/down/ fuser -ck /usr/local/openresty/nginx/html/down/ fuser -c /usr/local/openresty/nginx/html/down/ umount /usr/local/openresty/nginx/html/down/ CentOS下强行umount卸载设备

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

umount 卸载

[email protected]:~# umount /home/opt/log/112.16.4.10_LB2 umount.nfs: /home/opt/log/112.16.4.10_LB2: device is busy umount.nfs: /home/opt/log/112.16.4.10_LB2: device is busy [email protected]:~# umount -f /home/opt/log/112.16.4.10_LB2   #加-f参数,多试几次即可

umount卸载一块盘,不让卸载怎么办

今天公司一台极其重要的设备要换一块盘,因为那块盘坏掉了,umount一直不让卸载,fuser -vm又看不了谁在占用磁盘: 设备不能重启,找了下大师帮忙怎么看什么进程再用这个目录,给了个极其简单的命令: lsof -n|fgrep 'logs' 把对应的进程kill掉就可以卸载了..get