umount 时报错 :device is busy.

本文记录了在尝试卸载Cloudera SCM Agent过程中遇到的设备忙错误,并详细展示了如何通过查找占用进程、强制停止进程最终成功卸载的具体步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

[root@cdh opt]# umount /opt/cm-5.13.2/run/cloudera-scm-agent/process/
umount: /opt/cm-5.13.2/run/cloudera-scm-agent/process: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))

umount  /opt/..  -f  失败

[root@cdh opt]# umount /opt/cm-5.13.2/run/cloudera-scm-agent/process/ -f
umount2: Device or resource busy
umount: /opt/cm-5.13.2/run/cloudera-scm-agent/process: 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
 

fuser -m 

[root@cdh opt]# fuser -m /opt/cm-5.13.2/run/cloudera-scm-agent/process/
/opt/cm-5.13.2/run/cloudera-scm-agent/process/:  2547  


[root@cdh opt]# ps -aux|grep 2547
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
root       2547  0.2  0.1 203076 13412 ?        Ss   12:23   0:14 /opt/cm-5.13.2/lib64/cmf/agent/build/env/bin/python /opt/cm-5.13.2/lib64/cmf/agent/build/env/bin/supervisord

[root@cdh opt]# kill -9 2547

[root@cdh opt]# fuser -m /opt/cm-5.13.2/run/cloudera-scm-agent/process/
[root@cdh opt]# 
[root@cdh opt]# umount /opt/cm-5.13.2/run/cloudera-scm-agent/process/
[root@cdh opt]# 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值