Diskspace usage
Hello there, I know this question has been asked a lot of time, but my free diskspace has fallen to 2.1G out of 20G, and I really don't know where this space is lost.
I ran both du and df commands :
As you can see, 17G are used on /, but it seems less space is used according to du command. Do you know how I can effectively find out where my free space is gone? Thank you.
root@ns [~]# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 20G 17G 2.1G 90% /
/dev/root 20G 17G 2.1G 90% /
devtmpfs 16G 460K 16G 1% /dev
/dev/md3 1.8T 165G 1.6T 10% /home
tmpfs 16G 0 16G 0% /dev/shm
/dev/loop0 485M 51M 409M 12% /tmp
/dev/loop0 485M 51M 409M 12% /var/tmp
root@ns [~]# du -sh /* | sort -h
du: cannot access `/proc/29395/task/29395/fd/4': No such file or directory
du: cannot access `/proc/29395/task/29395/fdinfo/4': No such file or directory
du: cannot access `/proc/29395/fd/4': No such file or directory
du: cannot access `/proc/29395/fdinfo/4': No such file or directory
0 /proc
0 /scripts
0 /sys
4.0K /backup_storage
4.0K /cgroup
4.0K /media
4.0K /mnt
4.0K /razor-agent.log
4.0K /selinux
4.0K /srv
16K /lost+found
16K /quota.user
268K /error_log
460K /dev
7.5M /bin
20M /sbin
27M /lib64
33M /etc
39M /boot
41M /tmp
140M /lib
622M /opt
953M /root
2.0G /var
6.2G /usr
164G /home
As you can see, 17G are used on /, but it seems less space is used according to du command. Do you know how I can effectively find out where my free space is gone? Thank you.
-
Hi :), Check if the logs are consuming space in below directories: /var/log /usr/local/apache/logs /usr/local/cpanel/logs 0 -
Not so much :/ root@ns [~]# du -sh /var/log 640M /var/log root@ns [~]# du -sh /usr/local/apache/logs/ 237M /usr/local/apache/logs/ root@ns [~]# du -sh /usr/local/cpanel/logs/ 289M /usr/local/cpanel/logs/
0 -
where are you storing your backups? On the server or somewhere else? 0 -
Hello :) It's possible some processes that were using files have not yet closed. A reboot is quick way to ensure those files are closed and to determine if the disk space usage is accurate. Thank you. 0 -
]Hello :) It's possible some processes that were using files have not yet closed. A reboot is quick way to ensure those files are closed and to determine if the disk space usage is accurate. Thank you.
Hey, I use cPanel I have access up to the root of the server, my server space is 1.5GB left which is strange since the fact each site on the cpanel uses about 300 - 400MB out of a 20GB space. Once one of my domains thefutbucks.com showed a usage of 9GB for about 4 months with it says 8.7GB of it was other usage, it's been a week now that it disappeared and now says 300MB where can that 8GB odd usage be I've used commands and it doesn't show any of that.0 -
]Hey, I use cPanel I have access up to the root of the server, my server space is 1.5GB left which is strange since the fact each site on the cpanel uses about 300 - 400MB out of a 20GB space. Once one of my domains thefutbucks.com showed a usage of 9GB for about 4 months with it says 8.7GB of it was other usage, it's been a week now that it disappeared and now says 300MB where can that 8GB odd usage be I've used commands and it doesn't show any of that.
The following document should help you examine your server to determine where the disk space usage originates from: cPanel - Manage HD Space Thank you.0
Please sign in to leave a comment.
Comments
6 comments