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

2020-02-16 00:18发布

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

2条回答
小情绪 Triste *
2楼-- · 2020-02-16 00:34

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

查看更多
We Are One
3楼-- · 2020-02-16 00:52

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.

查看更多
登录 后发表回答