The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Diskspace usage

Discussion in 'General Discussion' started by loicb, Dec 26, 2014.

  1. loicb

    loicb Member

    Joined:
    Jun 26, 2013
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    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 :

    Code:
    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
    Code:
    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.
     
  2. danrussell

    danrussell Well-Known Member

    Joined:
    Nov 5, 2014
    Messages:
    60
    Likes Received:
    3
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hi :),

    Check if the logs are consuming space in below directories:
    /var/log
    /usr/local/apache/logs
    /usr/local/cpanel/logs
     
  3. loicb

    loicb Member

    Joined:
    Jun 26, 2013
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Not so much :/
    Code:
    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/
    
     
  4. tank

    tank Well-Known Member

    Joined:
    Apr 12, 2011
    Messages:
    236
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Chicago, IL
    cPanel Access Level:
    Root Administrator
    where are you storing your backups? On the server or somewhere else?
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  6. KmanProdz

    KmanProdz Registered

    Joined:
    Feb 18, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London, United Kingdom, United
    cPanel Access Level:
    Root Administrator
    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.
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    The following document should help you examine your server to determine where the disk space usage originates from:

    cPanel - Manage HD Space

    Thank you.
     
Loading...

Share This Page