Linux umout -fl

linux 服务器挂载了一个nfs路径192.168.0.12:/backup 做备份,后来192.168.0.12关闭了,但服务器没有先进行umont.
于是进入Linux服务器,使用df -h 就没有反应了。
先使用了 umount -f 192.168.0.12:/backup  一点效果也没有
使用fl参数,
umount -fl  192.168.0.12:/backup ,终于有了效果。

两个参数的含义:
-f, --force
 Force an unmount (in case of an unreachable NFS system).
Note that this option does not guarantee that umount command  does not hang.  It's strongly recommended to use absolute paths without symlinks to avoid unwanted readlink and stat  system calls on unreachable NFS in umount.

 -l, --lazy
Lazy unmount.

Detach the filesystem from the file hierarchy  now, and clean up all references to this filesystem as soon as  it is not busy anymore.
 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值