umount 时报错 :device is busy.

[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]# 

猜你喜欢

转载自blog.csdn.net/a53878617/article/details/84648640