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.

Out of disk space error on /

Discussion in 'General Discussion' started by metal_cd, Aug 27, 2007.

  1. metal_cd

    metal_cd Member

    Joined:
    Jan 21, 2004
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Have a server giving;
    THE FILESYSTEM MOUNTED AT / ON THIS SERVER IS RUNNING OUT OF DISK
    SPACE. CPANEL OPERATION HAS BEEN TEMPORARILY SUSPENDED TO PREVENT
    SOMETHING BAD FROM HAPPENING. PLEASE ASK YOUR SYSTEM ADMIN TO REMOVE
    ANY FILES NOT IN USE ON THAT PARTITION.

    Need help finding out why that partition is now filled up. What files fill up for that partition and can they be deleted?

    It is an older Redhat 9 os

    Current disk usage;
    /dev/hda1 5.8G 5.5G 0 100% /
    /dev/hdb1 74G 35G 36G 49% /backup
    /dev/hda4 60G 50G 7.8G 87% /home
    none 1007M 0 1007M 0% /dev/shm
    /dev/hda2 5.8G 4.0G 1.6G 73% /var
    /usr/tmpDSK 243M 48M 183M 21% /tmp
    /tmp 243M 48M 183M 21% /var/tmp

    Thank you
     
  2. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    From the command prompt do this:

    cd /
    du -x | sort -nr |more

    This will give you a sorted list of the folders to quickly see what is filled up where in the root partition. This should help you get a quick idea where to start looking.
    Once you see what folders have the most junk you can then see if some of it can be quickly deleted to give you some breathing room.
     
  3. PanelGuy

    PanelGuy Well-Known Member

    Joined:
    Oct 13, 2004
    Messages:
    106
    Likes Received:
    0
    Trophy Points:
    16
    core.* files?

    Are you using PHP actively on any site on your server? If so, look for a bunch of core.xxx files in the directory you are running your PHP programs in. Also look for an extremely long error_log file. This started happening to me yesterday and filled my drive. The PHP run sites will now not work and I have yet to find the problem, but I am guessing it is related to a CPanel update, as I had not changed anything and the file dates of those PHP files are correct.
     
  4. metal_cd

    metal_cd Member

    Joined:
    Jan 21, 2004
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Hello nyjimbo,
    Ran the commands
    cd /
    du -x | sort -nr | more
    and it just kind of sat there and did nothing. What may be wrong?


    PanelGuy,
    When you say 'directory you are running your PHP programs in' do you mean the
    individual user accounts or the actual php itself?
    And yes, my error_log is currently at .5 gb It seems it is not rotating out (ie. .1,
    .2, .3...) Could that be a problem behind this as well?

    Thanks again
     
  5. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    How long did you wait, it has to add up all the file space usage, could take a minute or so. But you must use the "-x" so it doesnt traverse the other mount points.

    As a side note, I dont see a "/usr" mount point so is it possible your /usr is also part of your "/" mount ?. The /usr mount point usually fills up with alot of stuff and that is why your "du" might be taking so long.
     
  6. PanelGuy

    PanelGuy Well-Known Member

    Joined:
    Oct 13, 2004
    Messages:
    106
    Likes Received:
    0
    Trophy Points:
    16
    In the directory of the PHP program, for instancce if you are running Gallery, you would look in th Gallery directory, same with any other .php programs. What I found is that, for some reason, any of my programs that used a sessions table, the sessions table became corrupt. With an error_log file that large, you probably do have a problem. Were you able to locate any core.* (* meaning random number such as core.1282, etc.) files?
     
  7. metal_cd

    metal_cd Member

    Joined:
    Jan 21, 2004
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    nyjimbo,
    Yes, ran it again and ws a little more patient this time and it did pop up with results.
    You are also correct about usr, most of thel first page results are ./usr/local/cpanel-rollback Is this something that could have older files removed or ? In fact, as I scroll through all pages I would say 99% of the listings are ./usr Is there any place else in /usr that has a deletable bunch of files? or if the cpanel-rollback is deletable then I guess we might be fine.

    Thanks again

    root@host [/]# du -x | sort -nr | more
    4298036 .
    4141856 ./usr
    3088476 ./usr/local
    1350472 ./usr/local/cpanel
    821512 ./usr/local/cpanel-rollback
    795708 ./usr/local/apache
    771212 ./usr/local/apache/logs
    358944 ./usr/lib
    305920 ./usr/share
    305144 ./usr/local/cpanel/src
    304296 ./usr/local/cpanel/src/3rdparty
    269516 ./usr/local/cpanel/src/3rdparty/gpl
    254872 ./usr/local/cpanel/3rdparty
    252536 ./usr/local/cpanel/base
    192860 ./usr/local/cpanel-rollback/1164199367
    192296 ./usr/local/cpanel-rollback/1161344202
    192128 ./usr/local/cpanel-rollback/1164458070
    191628 ./usr/local/cpanel-rollback/1163334895
    185644 ./usr/local/cpanel/3rdparty/mailman
    170268 ./usr/local/cpanel/cpaddons
    170180 ./usr/local/cpanel/cpaddons/CPSkins
    111792 ./usr/share/doc
    105896 ./usr/local/cpanel/base/horde
    101944 ./usr/lib/perl5
    98800 ./usr/local/cpanel/3rdparty/mailman/data
    94980 ./usr/local/cpanel/base/frontend
    94132 ./usr/local/cpanel/bin
    91016
    ./usr/local/cpanel-rollback/1161344202/_usr_local_cpanel_bin
    90928
    ./usr/local/cpanel-rollback/1164199367/_usr_local_cpanel_bin
    90896
    ./usr/local/cpanel-rollback/1164458070/_usr_local_cpanel_bin
    90440
    ./usr/local/cpanel-rollback/1163334895/_usr_local_cpanel_bin
    79992 ./lib
    78912 ./usr/local/cpanel/logs
    67900 ./usr/lib/locale
    60452 ./usr/bin
    59624 ./lib/modules
    54836 ./usr/local/cpanel/addons
    52892
    ./usr/local/cpanel-rollback/1164199367/_usr_local_cpanel
    52652
    ./usr/local/cpanel-rollback/1161344202/_usr_local_cpanel
    52644 ./usr/local/cpanel/base/horde/imp
    52596
    ./usr/local/cpanel-rollback/1164458070/_usr_local_cpanel
    52596 ./usr/local/cpanel-rollback/1161689588
    52532
    ./usr/local/cpanel-rollback/1163334895/_usr_local_cpanel
    48492 ./usr/local/lib
     
  8. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
  9. metal_cd

    metal_cd Member

    Joined:
    Jan 21, 2004
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    PanelGuy,
    I am running a search now for core.* and it is displaying a lot of results but none with numbers. Does .* (* display only numbered results?
    With the error log, it appears it is not rotating out which may be a cause of its hugeness. (the .1 version is dated 1/2006) Could this be more of a reason for the size rather than any type of problem?

    Thanks again
     
  10. PanelGuy

    PanelGuy Well-Known Member

    Joined:
    Oct 13, 2004
    Messages:
    106
    Likes Received:
    0
    Trophy Points:
    16
    Can you post one or two examples of the files showing up in your search?

    Also, the error_log for a particular directory running programs such as PHP wouldn't rotate. What I do is download large ones and put blank ones in their place and then date the one I downloaded and read it in a text editor.
     
Loading...

Share This Page