Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
509 views
in Technique[技术] by (71.8m points)

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

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...