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.

Cpanel not working - filesystem outof disk space

Discussion in 'General Discussion' started by websupport, Jul 3, 2006.

  1. websupport

    websupport Well-Known Member

    Joined:
    Jun 24, 2006
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    Hi

    My server was down and I am not able to login into cpanel from WHM.

    It giving error as :

    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.

    Please help :(
     
  2. avijit

    avijit Well-Known Member

    Joined:
    Jul 26, 2004
    Messages:
    116
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Any of the major system partition is out od disk space. login to the shell and check what has taken so much space suddenly.

    run du -kh to find the partition that has used the space and then you have to check the hierarchy to find where the space was consumed.
     
  3. websupport

    websupport Well-Known Member

    Joined:
    Jun 24, 2006
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    filesystem outof disk space

    Above command gives me a list of used disk space and files. But how can I find which one is running out of disk space?
     
  4. websupport

    websupport Well-Known Member

    Joined:
    Jun 24, 2006
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    Urgent help

    Any one there ?

    I have tried following cmd:
    /scripts/upcp --force

    Got error in last line as follows:
    Failed to create spool file /var/spool/exim/input/R/1FxdZR-0001YH-5D-D: Disk quota exceeded
    Scanning suexec_log...Done
     
  5. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    526
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brno, Czech Republic
    try php -v and paste the output please
     
  6. websupport

    websupport Well-Known Member

    Joined:
    Jun 24, 2006
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    php version

    Following is the output for php -v

    PHP 4.4.2 (cli) (built: Jul 2 2006 23:35:47)
    Copyright (c) 1997-2006 The PHP Group
    Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
     
  7. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    526
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Brno, Czech Republic
    cd /
    du -s -h *

    start tracking the big folders on the server.
     
  8. websupport

    websupport Well-Known Member

    Joined:
    Jun 24, 2006
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    Output to du -s -h *

    Following is the output of the du -s -h * command

    180K chkrootkit-0.46a
    40K chkrootkit.tar.gz
    12K cpanel3-skel
    4.0K cpmove
    200M installd
    780K latest
    0 man
    4.0K public_ftp
    8.0K public_html
    688K unixbench-4.1.0-wht
    9.3M webmin.rpm
    9.3M webmin.rpm.1
    4.0K wget-log
     
  9. firexit

    firexit Active Member

    Joined:
    Nov 4, 2004
    Messages:
    29
    Likes Received:
    1
    Trophy Points:
    8
    i have the same issue in /var/spool/exim/

    hi...
    i have the same issue in /var/spool/exim --> input or scan dir
    its fills up /var and stucks the mysql and email of the server
    and the services fail,...
    what can we do ??!
     
  10. rachweb

    rachweb Well-Known Member

    Joined:
    Jun 26, 2004
    Messages:
    268
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    amsterdam
    what is the output df -h?
     
  11. firexit

    firexit Active Member

    Joined:
    Nov 4, 2004
    Messages:
    29
    Likes Received:
    1
    Trophy Points:
    8
    output

    Filesystem Size Used Avail Use% Mounted on
    /dev/sda6 2.0G 572M 1.4G 30% /
    /dev/sda1 244M 17M 214M 8% /boot
    none 2.0G 0 2.0G 0% /dev/shm
    /dev/sda2 49G 38G 7.7G 84% /home
    /dev/sda3 4.9G 2.5G 2.1G 55% /usr
    /dev/sda5 4.0G 3.8G 0 100% /var
     
  12. rachweb

    rachweb Well-Known Member

    Joined:
    Jun 26, 2004
    Messages:
    268
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    amsterdam

    The disk partition is not good divided. The /var partition is to small and is now full. /Var must have minimal 10GB.

    You must remove files that not needed anymore
     
  13. firexit

    firexit Active Member

    Joined:
    Nov 4, 2004
    Messages:
    29
    Likes Received:
    1
    Trophy Points:
    8
    hi...
    it worked like this over 2 years.. it began to misbehave. only after the migration to CPANEL11
    what can we do ..
    plz help me out here...
    10x
     
  14. rachweb

    rachweb Well-Known Member

    Joined:
    Jun 26, 2004
    Messages:
    268
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    amsterdam
    The resolution is do a reload os with good partitions divided.
    In partition var has many important files like cpanel files, user configuration, mysql db, system logs, system packages etc.
     
  15. jrehmer

    jrehmer Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    287
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Denver, CO
    Hello,

    There is absolutely no need to reload your OS. Your /var partition doesn't need to be 10GB as stated above. You just need to implement some log rotation it sounds like.

    Take a look under /var/log and see how much space is being taken up there. My guess is the majority of the space will be there and most of it is probably logs that you've never deleted that are taking up space.

    Regards,

    Jesse
     
  16. jrehmer

    jrehmer Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    287
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Denver, CO
    Hello,

    Another place to look is /var/lib/mysql. You may have some databases that have grown in size recently that could be accounting for the disk space usage. If you are seeing a lot of data in there then the only solution would be to move the MySQL data directory to a different partition on the server.

    Regards,

    Jesse
     
  17. firexit

    firexit Active Member

    Joined:
    Nov 4, 2004
    Messages:
    29
    Likes Received:
    1
    Trophy Points:
    8
    hi...
    10x for the reply.. but only /var/spool/exim/ fills up,, all the rest are quiet static in the size
    i really donno y its like that
    never encountered with this issue - and i searched all over the forum...
    if someone can help... plz!
    10x in advance.
     
  18. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    Whenever I see a partition filling up I do this at the command prompt:

    cd /var
    du > alldu
    cat alldu | sort -nr |more

    Basically that will cd to the var mount then do a disk usage of all directorys and dump them to a file, then "cat" the file with a reverse sort and the "more" page pauser. This will show what folders are the biggest to the smallest. Its a pretty good way to quickly see what is sitting where. Of course you then have to go into the folders and "ls -l" or do smaller "du"'s
    to see whats there. Just be sure you do the "du >" to a filename that doesnt exist so you
    dont overwrite anything. I just do it to "alldu" out of habit. If you are totally full on that partition then you have to send the "du" output to a different mount point, just be sure you know where you are when you are doing all this stuff.

    I find logs or junk from some programs output or sometimes Cpanel updates will dump crap out there.

    This is also a good way for me to find users who have giant email boxes if I do it in the
    "home" directory. I see someone with :


    1351923402 ./someguy/mail/whatthef.com/dumbass

    So I prowl and see if its stuff I can delete or cleanup. Amazing how some people will
    just eat up space for no reason.

    But I do agree with the other poster that your partitions are too small on var and probably usr. If you can I would eventually partition a new disk and transfer stuff over.
     
    #18 nyjimbo, Jun 4, 2007
    Last edited: Jun 4, 2007
Loading...

Share This Page