Linux存储挂载后,没法正常卸载的解决方法

明明设备没有任何人在操做,却没法使用umount正常卸载 进程

# umount /dev/sdd1 方法

umount: /TomcatLog: device is busy.
        (In some cases useful info about processes that use

         the device is found by lsof(8) or fuser(1)) vi

umount -f 强制卸载也是无能为力 process

[root@gj2 ~]# umount -f /TomcatLog
umount2: Device or resource busy
umount: /TomcatLog: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))

umount2: Device or resource busy sse

解决方法: cas

# fuser -cu /TomcatLog/
/TomcatLog/:          9590c(root) ab

# fuser -ck /TomcatLog/

# umount /TomcatLog

能够正常卸载了。

说明:

-c表示显示全部挂载该设备的进程;

-u表示显示正在操做该设备的用户名;

-k表示杀死全部访问该设备的进程(注意:这将杀死访问该设备的进程,若是有其余设备也在用这个进程,记得卸载后重启该服务进程避免影响正常业务);

相关文章
相关标签/搜索