linux – 当我收到陈旧的nfs文件句柄时,如何强行卸载?

linux – 当我收到陈旧的nfs文件句柄时,如何强行卸载?,第1张

概述让自己陷入棘手的境地.将aufs挂载在/ mnt / 1 aufs on /mnt/1 type aufs (rw,relatime,si=daab1cec23213eea) 我无法卸下这件事: sudo umount -f /mnt/1umount2: Stale NFS file handleumount: /mnt/1: Stale NFS file handleumount2: St 让自己陷入棘手的境地.将aufs挂载在/ mnt / 1
aufs on /mnt/1 type aufs (rw,relatime,si=daab1cec23213eea)

我无法卸下这件事:

sudo umount -f /mnt/1umount2: Stale NFS file handleumount: /mnt/1: Stale NFS file handleumount2: Stale NFS file handleumount2: Stale NFS file handle

如何卸载挂载点? (无需重启系统)

(注意:aufs位于openafs系统之上,而不是NFS.)

解决方法 来自man 8 umount:
-f     Force   unmount   (in  case  of  an  unreachable  NFS  system).          (Requires kernel 2.1.116 or later.)   -l     Lazy unmount. Detach the filesystem from the filesystem hIErar-          chy  Now,and cleanup all references to the filesystem as soon          as it is not busy anymore.  (Requires kernel 2.4.11 or  later.)

如果sudo umount -f / mnt / 1不起作用,你可以试试sudo umount -l / mnt / 1.

总结

以上是内存溢出为你收集整理的linux – 当我收到陈旧的nfs文件句柄时,如何强行卸载?全部内容,希望文章能够帮你解决linux – 当我收到陈旧的nfs文件句柄时,如何强行卸载?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/1044929.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存