天天看点

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

继续阅读