強制 umount nfs文件系統
root@ubuntu:/# umount /app/nfs/
umount.nfs: /app/nfs: device is busy
umount.nfs: /app/nfs: device is busy
提示文件系統設置busy
root@ubuntu:/# fuser -km /app/nfs/
先使用這條命令
/data/nfs/: 8119c
root@ubuntu:/# umount /app/nfs/
在umount 就能夠了
root@ubuntu:/#
也可以使用 umount -f /app/nfs
[root@dzxt ~]# fuser
usage: fuser [ -a | -s ] [ -n space ] [ -signal ] [ -kimuv ] name ...
[ - ] [ -n space ] [ -signal ] [ -kimuv ] name ...
fuser -l
fuser -V
-a display unused files too -k kill processes accessing that file -i ask before killing (ignored without -k) -l list signal names -m mounted FS -n space search in the specified name space (file, udp, or tcp) -s silent operation -signal send signal instead of SIGKILL -u display user ids -v verbose output -V display version information -4 search IPv4 sockets only -6 search IPv6 sockets only - reset options