disk space is full by `vda` files, how to clear them?

时光总嘲笑我的痴心妄想 提交于 2019-11-28 12:01:38

问题


So I have a VPS and it has whm / cpanel installed. For some reason its giving an error when ever I login to cpanel or visit a site on my server which says the disk space is full.

When i check the desk space in WHM it says /dev/vda3 is 100% full.

I don't know how to track that folder or what files i need to delete.

Also on SSH it says

root@server [~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda3        48G   47G     0 100% /
tmpfs           939M     0  939M   0% /dev/shm
/dev/vda1       485M  112M  348M  25% /boot
/usr/tmpDSK     1.6G   35M  1.5G   3% /tmp

Please can someone help me resolve this issue, thanks


回答1:


From the above output of 'df -h' the disk space is used by some file or folders in '/' location. As you are able to SSH in to the server follow the below steps and that will show the files that are using more space.

  • cd /
  • ls -lSr | tail -10

The first command [cd space slash] will direct you to the '/' folder and second command will list files based on its size. Please post the output of the above command. This will show the files that are using more space on the current directory. Once you can find this you will be able to remove the unused files (if any). Or you can contact the hosting provider to mount another harddisk space to '/' to migrate those files and free more space.




回答2:


It could be coming from Jenkins, Docker or any other process. To solve that, you should clean logs and set it's size.



来源:https://stackoverflow.com/questions/25713773/disk-space-is-full-by-vda-files-how-to-clear-them

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!