DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

CentOS服务器根目录空间被占满的解决方法


60和61服务器根目录(/)50G空间全被占满,用du -shx /*查看,非挂载目录的空间加起来远达不到50GB, 查了一下,怀疑原因是原来挂在/mnt下的data1和data2目录下的两块大容量磁盘由于某种原因没有挂载上, 但cloudera manager管理的hadoop和hdfs系统仍然在向这两个目录下存放大文件,导致空间被耗光, 验证方法是用mount命令检查/mnt下是否有挂载,如果有,将它们卸载掉,看/mnt下是否还有文件, 有的话删除掉就好了。

如果不是这个原因,还可能是被删除的大文件没有释放,用lsof|grep "deleted"检查;

参考:

Disk full, du tells different. How to further investigate?

du vs. df difference

How do I find out what is using up all the space on my / partition?

What do I do when my root filesystem is full?

Centos , /dev/root is getting full. Cannot find disk space usage



Published

Dec 24, 2014

Last Updated

Dec 24, 2014

Category

Tech

Tags

  • centos 25
  • df 1
  • du 1
  • mount 1
  • root 2

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor