强制umount无法umount的NFS的Export

笔者的一台测试机上mount了一个NFS的export,后来这台NFS Server被重装了,这台测试机上mount的export就没法umount掉了。

image


查了资料,说“fuser –cu”命令可以查看还在使用这个mount的进程ID。结果这个命令还是不行。

image


最后还是通过命令“umount –l /mnt/f6002n2” 解决了问题。

image


关于这个-l选项,说明如下:

-l, --lazy
              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.  (Requires  kernel  2.4.11  or
              later.)


参考资料

===========

强制Umount NFS终极手法(转载)

https://blog.51cto.com/kingslanding/1812631

原文地址:https://www.cnblogs.com/awpatp/p/13532148.html