强制 umount nfs文件系统(转载)
文章来自:http://cqfish.blog.51cto.com/622299/166287,谢谢作者。
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://cqfish.blog.51cto.com/622299/166287
强制 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
本文出自 “网海过客” 博客,请务必保留此出处http://cqfish.blog.51cto.com/622299/166287