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.

Disk full - dont know why

Discussion in 'General Discussion' started by Thinlinedata, Nov 17, 2013.

  1. Thinlinedata

    Thinlinedata Member

    Joined:
    Jul 17, 2013
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I have a 60GB disk with CentOs6, on a Godaddy VPS, running WHM and cPanel.

    The disk is full, as in 100% full. How can I see what is actually using all this storage? This is causing quite alot of problems on the server, and I am not sure what is taking up all this disk space exactly.

    I am doing weekly backups through the WHM interface, maybe this is why? Maybe its storing multiple instances of backup, and thus clogging the disk with alot of data?

    Question is just how I can pin point exactly what is using all the disk space.

    FYI. I know it is not a manual thing, since I am not really uploading anything new on the server, this has come by itself. So some process is using the disk space.

    I ran the following command:
    df -k

    And got this output:

    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/vzfs 62914560 62914560 0 100% /
    none 1048576 4 1048572 1% /dev

    What is the /dev/vzfs folder for? And I dont really see anything odd in there...
     
    #1 Thinlinedata, Nov 17, 2013
    Last edited: Nov 17, 2013
  2. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    Check the /backup directory (as root) and delete older backups.
     
  3. Thinlinedata

    Thinlinedata Member

    Joined:
    Jul 17, 2013
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Where is that? I dont know the structure of Centos6 that well. Where can I prevent all this from happening. Any tutorial anywhere that shows how to keep max backup to a certain size and where the backup folder resides?

    I still have not found the reason for the used space and what is actually using this space up. And the backup folder, I cant find either.
     
  4. anupkumar

    anupkumar Member

    Joined:
    May 20, 2011
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    You can check the disk space by running below command in /
    du -sch *
    It will show the disk space used by particular folder. If you have configured backup in /backup then it will show the disk usage of that folder. Go inside that backup folder and run the same command again. Once you got the file and folder who is eating the disk space jut delete it.

    Note. Before deleting make sure you are not removing system files.

    Check /etc/cpbackup.conf to know the backup configuration path.
     
  5. Thinlinedata

    Thinlinedata Member

    Joined:
    Jul 17, 2013
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I found it! The best command ever is to start on top in home folder and drill down. This was a life saver:

    du -h --max-depth=1

    After that, ls -la does the rest.

    A log file of 42GB was apparently hammering my server :)
     
  6. anupkumar

    anupkumar Member

    Joined:
    May 20, 2011
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    ok, you can clean that log file to free up disk space.
     
Loading...

Share This Page