加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

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

发布时间:2020-12-13 18:29:26 所属栏目:Linux 来源:网络整理
导读:让自己陷入棘手的境地.将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 handle
让自己陷入棘手的境地.将aufs挂载在/ mnt / 1
aufs on /mnt/1 type aufs (rw,relatime,si=daab1cec23213eea)

我无法卸下这件事:

sudo umount -f /mnt/1
umount2: Stale NFS file handle
umount: /mnt/1: Stale NFS file handle
umount2: Stale NFS file handle
umount2: 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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读