背景:
机器根目录下磁盘使用率100%,通过命令:
- du -sh /usr/bin/* | sort -rn
复制代码
查看具体使用情况,然后进行清理操作,发现磁盘空间未释放。查看文件是否被删除。
- gearmand 22377 gearmand 3w REG 253,1 32753639424 201505632 /var/log/gearmand/gearmand.log (deleted)
- gearmand 22377 22413 gearmand 3w REG 253,1 32753639424 201505632 /var/log/gearmand/gearmand.log (deleted)
- gearmand 22377 22414 gearmand 3w REG 253,1 32753639424 201505632 /var/log/gearmand/gearmand.log (deleted)
- gearmand 22377 22415 gearmand 3w REG 253,1 32753639424 201505632 /var/log/gearmand/gearmand.log (deleted)
- gearmand 22377 22416 gearmand 3w REG 253,1 32753639424 201505632 /var/log/gearmand/gearmand.log (deleted)
- gearmand 22377 22417 gearmand 3w REG 253,1 32753639424 201505632 /var/log/gearmand/gearmand.log (deleted)
- gearmand 22377 22418 gearmand 3w REG 253,1 32753639424 201505632 /var/log/gearmand/gearmand.log (deleted)
复制代码
文件未被真正删除,处于deleted状态,磁盘空间不会释放。需要将相关进程停止掉,文件所占磁盘空间才会释放。
|