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.