umount nfs device is busy
發表於 : 2015-05-05 09:09:57
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
强制 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