rm: cannot remove `dir': Device or resource busy解决办法

使用df查看系统发现:

[ops@bs038 cm-5.4.0]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 1.1T 200G 814G 20% /
tmpfs 7.8G 0 7.8G 0% /dev/shm
/dev/sda1 1022M 63M 908M 7% /boot
cm_processes 7.8G 0 7.8G 0% /opt/cloudera-manager/cm-5.4.0/run/cloudera-scm-agent/process

解决办法:

umount /opt/cloudera-manager/cm-5.4.0/run/cloudera-scm-agent/process

之后再df查看

[ops@bs038 cm-5.4.0]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 1.1T 200G 814G 20% /
tmpfs 7.8G 0 7.8G 0% /dev/shm
/dev/sda1 1022M 63M 908M 7% /boot

之后删除之。。。

 

posted @ 2016-03-03 10:59  宝山方圆  阅读(11955)  评论(0编辑  收藏  举报