After this error, I could’t login the system any more…
But I could still use SSH to login the server.
Then, used the following guideline to clean the disk.
After that, I could login the server normally.
1.查询磁盘空间占用情况
df -h
2.进入根目录,查询大文件与目录
cd /
du -sh * | sort -n
查看上GB的目录并且排序,可以用这个命令
du -h --max-depth=1 |grep 'G' |sort
3 然后不断执行上面的过程,进入大文件目录,定位大文件并删除
4.如果删除大文件,df -h查看磁盘空间并没有释放,那么就是被删除的文件关联的进程还在执行,那么需要我们将相关进程kill掉或重启,可以用这个命令来查看进程
lsof |grep delete