远程NFS服务器出故障,本机无法ls -l /,无法df -h,无法正常的umount等,需要强制卸载已经挂载的NFS远程目录
You can use umount -f -l /mnt/myfolder , and that will fix the problem.
-f – Force unmount (in case of an unreachable NFS system). (Requires kernel 2.1. ...
-l – Lazy unmount. Detach the filesystem from the filesystem hierarchy now, and cleanup all references to the filesystem as soon as it is not busy anymore.
参考:
https://askubuntu.com/questions/292043/how-to-unmount-nfs-when-server-is-gone
Windows下如果不重启,只能强制停止NFS客户端服务进程,才能彻底删除NFS资源:
首先查询NFS客户端服务进程PID:sc queryex NfsClnt,得到PID号
再taskkill /pid 6676 /f,再mount查看效果,如下图所示。之后,无法再启动NFS客户端服务进程,只能重启。
[
本帖最后由 linda 于 2021-3-5 12:14 编辑 ]