天天看點

nfs umount 解除安裝不掉 Stale file handle

nfs挂在是一個很友善硬碟擴容和共享的方式,當然它還有很多的功能。但是當server當機後,client無法解除安裝挂在,就存在問題了

umount /xxx

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  也可以試試

 本文轉自 ninnycalf 51CTO部落格,原文連結:http://blog.51cto.com/314258/1639835

繼續閱讀