強制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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM