强制卸载NFS挂载的目录 [英] Force unmount of NFS-mounted directory
本文介绍了强制卸载NFS挂载的目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在挂起的Linux机器上有一个NFS挂载目录.我试图强行卸下,但似乎不起作用:
I have an NFS-mounted directory on a Linux machine that has hung. I've tried to force an unmount, but it doesn't seem to work:
$ umount -f /mnt/data
$ umount2: Device or resource busy
$ umount: /mnt/data: device is busy
如果键入"mount
",则似乎目录已不再挂载,但是如果执行"ls /mnt/data
",则目录将挂起,并且如果尝试删除安装点,则会得到:
If I type "mount
", it appears that the directory is no longer mounted, but it hangs if I do "ls /mnt/data
", and if I try to remove the mountpoint, I get:
$ rmdir /mnt/data
rmdir: /mnt/data: Device or resource busy
除了重新启动计算机外,我还能做些什么吗?
Is there anything I can do other than reboot the machine?
推荐答案
您可以尝试延迟卸载:
umount -l
这篇关于强制卸载NFS挂载的目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文