背景

云服务突然报警磁盘占用满了,服务器没有排查出大文件。

1
2
3
4
# 查看服务磁盘占用
df -h
# 逐层占用排查
du -sh *

解决方案

查询未释放空间的进程,然后杀掉

1
lsof -n |grep deleted