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 capacity full with no reason to that!

Discussion in 'General Discussion' started by asturmas, Jul 14, 2008.

  1. asturmas

    asturmas Well-Known Member
    PartnerNOC

    Joined:
    Jun 19, 2006
    Messages:
    138
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Portugal
    cPanel Access Level:
    DataCenter Provider
    Hello,

    One of my servers has /usr partition full:

    /dev/sda3 9.7G 8.4G 837M 92% /usr

    And I cannot see any reason to that. MySQL is at /var. And the rest ist at /home. I don't have anything in /usr ate least the default CentOS.

    Regards,
    Francisco
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    10 GB is too small for the /usr partition. Check what is consuming the most space by using the du command:

    Code:
    dtest ~ # du -hs /usr
    3.6G	/usr
    dtest ~ # du -hs /usr/*
    12K	/usr/X11R6
    61M	/usr/bin
    76K	/usr/doc
    8.0K	/usr/etc
    4.0K	/usr/games
    197M	/usr/home
    28M	/usr/include
    0	/usr/java
    132K	/usr/kerberos
    543M	/usr/lib
    12M	/usr/libexec
    1.9G	/usr/local
    116K	/usr/man
    28M	/usr/sbin
    327M	/usr/share
    52K	/usr/src
    0	/usr/tmp
    501M	/usr/tmpDSK
    
     
  3. asturmas

    asturmas Well-Known Member
    PartnerNOC

    Joined:
    Jun 19, 2006
    Messages:
    138
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Portugal
    cPanel Access Level:
    DataCenter Provider
    Is there any log going to /usr??
     
  4. asturmas

    asturmas Well-Known Member
    PartnerNOC

    Joined:
    Jun 19, 2006
    Messages:
    138
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Portugal
    cPanel Access Level:
    DataCenter Provider
    root@servidor [/usr/local/apache]# du -hs *
    3.3M bin
    288K build
    12K cgi-bin
    1.1M conf
    364K conf_pre_ea3
    6.6G domlogs
    208K error
    68K htdocs
    944K icons
    1.4M include
    2.3M lib
    88M logs
    96K man
    12M manual
    16M modules

    Can I delete all files on domlogs?

    Regards,
    asturmas
     
  5. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    It contains log information of users. Rather deleting it, I would suggest to configure something like logwatch to archive of your domlogs on regular basis. It will help you a bit.
     
  6. asturmas

    asturmas Well-Known Member
    PartnerNOC

    Joined:
    Jun 19, 2006
    Messages:
    138
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Portugal
    cPanel Access Level:
    DataCenter Provider
    Do you have any tutorial or somethin like that?
     
  7. shashank

    shashank Well-Known Member
    PartnerNOC

    Joined:
    Apr 12, 2003
    Messages:
    159
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hello,

    Sorry I thought :

    dtest ~ # du -hs /usr
    3.6G /usr
    dtest ~ # du -hs /usr/*
    12K /usr/X11R6
    61M /usr/bin
    76K /usr/doc
    8.0K /usr/etc
    4.0K /usr/games
    197M /usr/home
    28M /usr/include
    0 /usr/java
    132K /usr/kerberos
    543M /usr/lib
    12M /usr/libexec
    1.9G /usr/local
    116K /usr/man
    28M /usr/sbin
    327M /usr/share
    52K /usr/src
    0 /usr/tmp
    501M /usr/tmpDSK

    was your output. You need to empty those big domlogs in your case.
     
    #7 shashank, Jul 16, 2008
    Last edited: Jul 16, 2008
  8. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
Loading...

Share This Page