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.

/usr 95% full

Discussion in 'General Discussion' started by uacomm, Jun 3, 2011.

  1. uacomm

    uacomm Member

    Joined:
    Apr 15, 2011
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    MY server /usr directory is 95% full. When I investigated I found:

    -----------------------------------------------------
    24K aquota.user
    139M bin
    12K etc
    8.0K games
    38M include
    1.7M kerberos
    666M lib
    26M libexec
    6.5G local
    16K lost+found
    116K man
    16K quota.user
    49M sbin
    930M share
    130M src
    4.0K tmp
    24K X11R6
    -------------------------------------

    Means /usr/local is using most space i.e 6.5 G from total out of 8.8 G. Below is /usr/local result:

    --------------------------------------------
    1.3G apache
    37M apache.backup
    241M apache.backup_archive
    1.6G apache.bkp
    910M apache.bkp.mar10
    39M apache.ea3-buildok-confgen-failed
    66M apache.tar
    108K bandmin
    16M bin
    2.1M conf6476657510.tar
    1.8G cpanel
    485M cpanel-rollback
    12K etc
    12K flash.tar
    32M frontpage
    8.0K games
    2.8M include
    972K IonCube
    68M lib
    62M lib.bkp
    8.0K libexec
    18M maldetect
    0 maldetect.last
    28K man
    56K mytop
    208K prm
    1.1M sbin
    344K share
    344K sim
    40K spri
    8.0K src
    0 ssl
    1.4M Zend
    ----------------------------------------------------

    Can any one please guide how I can solve this issue?
     
  2. LinuxTechie

    LinuxTechie Well-Known Member

    Joined:
    Jan 22, 2011
    Messages:
    502
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hello,

    You can remove the below given directories to make more space in /usr partition.

    ==============

    37M apache.backup
    241M apache.backup_archive
    1.6G apache.bkp
    910M apache.bkp.mar10
    39M apache.ea3-buildok-confgen-failed
    66M apache.tar

    ==============

    Here goes some tips to free up /usr Partition.


    Step 1 : If domlogs is the main reason that /usr is large,

    cd /usr/local/apache
    mv /usr/local/apache/domlogs /home/
    ln -s /home/domlogs domlogs (you should still be in /usr/local/apache when running this command)



    Step 2 : If mailman is the main reason that /usr is large, you could try leaving the binaries in place and only move the space-consuming items such as the logs, messages, and so on.

    cp -R /usr/local/cpanel/3rdparty/mailman /home/mailman.bak



    After doing that, move only these directories in /usr/local/cpanel/3rdparty/mailman/ location:

    archives
    lists
    logs
    messages

    mkdir /home/mailman
    cd /usr/local/cpanel/3rdparty/mailman
    mv archives /home/mailman
    mv lists /home/mailman
    mv logs /home/mailman
    mv messages /home/mailman


    After that, symlink them back to /usr/local/cpanel/3rdparty/mailman location:

    ln -s /home/mailman/archives /usr/local/cpanel/3rdparty/mailman/archives
    ln -s /home/mailman/lists /usr/local/cpanel/3rdparty/mailman/lists
    ln -s /home/mailman/logs /usr/local/cpanel/3rdparty/mailman/logs
    ln -s /home/mailman/messages /usr/local/cpanel/3rdparty/mailman/messages



    Finally, chown for ownership to mailman:mailman:

    chown -R mailman:mailman /usr/local/cpanel/3rdparty/mailman/{archives,lists,logs,messages



    If anything doesn't work properly, then you can revert to your backup copy that you ensured to make and try to figure out another option such as only moving the archives instead.
     
  3. uacomm

    uacomm Member

    Joined:
    Apr 15, 2011
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    You stated:

    Step 1 : If domlogs is the main reason that /usr is large,

    Step 2 : If mailman is the main reason that /usr is large,

    So how can I ascertain that what is the main reason?
     
  4. uacomm

    uacomm Member

    Joined:
    Apr 15, 2011
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    I checked size of domlogs directory and found its only 191 M so its mean it is not causing issue.

    Also size of mailman is only 37 M so this is also not causing issue.

    At for now I have rmoved below folders so size of /usr has been reduced to 66%.

    ==============

    37M apache.backup
    241M apache.backup_archive
    1.6G apache.bkp
    910M apache.bkp.mar10
    39M apache.ea3-buildok-confgen-failed
    66M apache.tar

    ==============

    But will these above folder auto created again?
     
  5. k-planethost

    k-planethost Well-Known Member

    Joined:
    Sep 22, 2009
    Messages:
    199
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    Athens Greece
    i see you use maldet.
    maybe you issues come from /root partition
    on my root servers i observe sometimes maldet is crashing and filling up the /root partition with coredump files and /usr and /sda5 runs out of space
    check your /root for any core files such as
    core.12105
    core.12109
    core.12173
    core.20074 56.8M
    core.20096 56.8M
    and delete them
     
  6. LinuxTechie

    LinuxTechie Well-Known Member

    Joined:
    Jan 22, 2011
    Messages:
    502
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hello,

    They are apache backups which are taken manually and backup taken during easy apache. Manually taken backup will be always of huge size and the other won't be.

    When you do an easy apache , an apache backup will be auto created which is of less size. No need to worry.
     
  7. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You could also remove this folder:

    485M cpanel-rollback

    cPanel rollback does not work in 11.28 and 11.30 versions, and should be unchecked in WHM > Tweak Settings > Enable cPanel Software RollBack. so that the folder does not form again. If you are on 11.30 already, the option will not longer exist in Tweak Settings (only in 11.28).
     
Loading...

Share This Page