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.

need space on /usr & /var

Discussion in 'General Discussion' started by PPNSteve, Mar 23, 2003.

  1. PPNSteve

    PPNSteve Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    393
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Somewhere in Ilex Forest
    cPanel Access Level:
    Root Administrator
    Twitter:
    i'm trying to either add a new account or edit an existing one and recieve this error message: "The /usr, /, or /var partition on this server is running out of disk space. This WHM 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."

    Now i'm fairly sure it's the log files.. Question is how do I get rid of this problem and clear up some space?

    what can be deleted? is there a log rotaion script that i'm not seeing?
    or what solution is there to prevent this in the first place?

    any help you can provide will help.. as we can't do anything right now with our boxes..

    edited..
    PS - I saw the thread about the temp files and they were removed about a week ago.. I'm fairly sure it's the logs...
     
    #1 PPNSteve, Mar 23, 2003
    Last edited: Mar 23, 2003
  2. WeMasterz5

    WeMasterz5 Well-Known Member

    Joined:
    Feb 24, 2003
    Messages:
    361
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Miami
    Default Home Directory:
    Enter the location where you desire to have new user's home directories created. By default, it will select the disk or partition with the least usage.



    where is it you have WHM set to place the accounts
     
  3. PPNSteve

    PPNSteve Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    393
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Somewhere in Ilex Forest
    cPanel Access Level:
    Root Administrator
    Twitter:
    nothing is wrong in the /home partition.. it's only at 46% usage... it's the /usr and /var partitions that keep filling up.. mostly the /usr (logs i suspect) i just need a way to clear them every week or so.. but not damage files that HAVE to be in there..
     
  4. WeMasterz5

    WeMasterz5 Well-Known Member

    Joined:
    Feb 24, 2003
    Messages:
    361
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Miami
    oh....I kinda new to this so bare or ignore me :)

    what do you have in the Show Current Disk Usage



    Filesystem Type Size Used Avail Use% Mounted on
    /dev/hda5 ext3 494M 147M 321M 32% /
    /dev/hda1 ext3 99M 19M 74M 20% /boot
    /dev/hda3 ext3 36G 569M 33G 2% /home
    none tmpfs 251M 0 250M 0% /dev/shm
    /dev/hdb1 ext3 37G 1.1G 33G 4% /usr
    /dev/hdb2 ext3 1004M 146M 807M 16% /var
     
  5. PPNSteve

    PPNSteve Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    393
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Somewhere in Ilex Forest
    cPanel Access Level:
    Root Administrator
    Twitter:
    Filesystem Type Size Used Avail Use% Mounted on
    /dev/hda6 ext3 1011M 296M 664M 31% /
    /dev/hda1 ext3 30M 6.9M 21M 24% /boot
    /dev/hda8 ext3 47G 21G 23G 47% /home
    none tmpfs 440M 0 439M 0% /dev/shm
    /dev/hda7 ext3 494M 20M 448M 5% /tmp
    /dev/hda2 ext3 3.9G 3.8G 0 100% /usr
    /dev/hda3 ext3 2.0G 1.8G 164M 92% /var

    is what's currently shown....
     
  6. WeMasterz5

    WeMasterz5 Well-Known Member

    Joined:
    Feb 24, 2003
    Messages:
    361
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Miami
    what if I may ask is is the /var of your system

    thanks
     
  7. PPNSteve

    PPNSteve Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    393
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Somewhere in Ilex Forest
    cPanel Access Level:
    Root Administrator
    Twitter:
    it's all default cPanel6 setup's..
     
  8. WeMasterz5

    WeMasterz5 Well-Known Member

    Joined:
    Feb 24, 2003
    Messages:
    361
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Miami
    drwxr-xr-x 22 root root 4096 Feb 27 02:57 ./
    drwxr-xr-x 21 root root 1024 Mar 17 09:06 ../
    -rwxr--r-- 1 root root 9216 Mar 23 17:44 aquota.user*
    drwxr-xr-x 4 root root 4096 Feb 24 15:01 cache/
    drwxr-xr-x 14 root root 4096 Mar 11 03:49 cpanel/
    drwxr-xr-x 2 root root 4096 Aug 5 1998 db/
    drwxr-xr-x 3 root root 4096 Feb 24 14:59 empty/
    drwxr-xr-x 12 root root 4096 Mar 8 03:50 lib/
    drwxr-xr-x 2 root root 4096 Feb 6 1996 local/
    drwxrwxr-x 3 root lock 4096 Mar 23 04:22 lock/
    drwxr-xr-x 7 root root 4096 Mar 23 04:02 log/
    drwx------ 2 root root 16384 Feb 24 14:55 lost+found/
    lrwxrwxrwx 1 root root 10 Feb 24 14:56 mail -> spool/mail/
    drwxr-xr-x 3 named named 4096 Mar 22 03:19 named/
    drwxr-xr-x 2 root root 4096 Feb 6 1996 nis/
    drwxr-xr-x 2 root root 4096 Apr 13 2000 opt/
    drwx------ 2 root root 4096 Mar 17 09:07 portsentry/
    drwxr-xr-x 2 root root 4096 Feb 6 1996 preserve/
    ----r---w- 1 root proftpd 6 Feb 24 20:57 proftpd.pid
    -rwxr--r-- 1 root root 2097120 Feb 27 02:57 quota.user*
    drwxr-xr-x 9 root root 4096 Mar 23 16:45 run/
    drwxr-xr-x 13 root root 4096 Feb 24 20:44 spool/
    drwxrwxrwt 2 root root 4096 Mar 23 19:55 tmp/
    drwx------ 2 root root 4096 Jun 23 2002 tux/
    drwxr-xr-x 8 root root 4096 Feb 24 21:10 www/
    drwxr-xr-x 3 root root 4096 Feb 24 15:01 yp/
     
  9. PPNSteve

    PPNSteve Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    393
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Somewhere in Ilex Forest
    cPanel Access Level:
    Root Administrator
    Twitter:
    ./ cache/ local/ mail@ portsentry/ run/ yp/
    ../ cpanel/ lock/ named/ preserve/ spool/
    aquota.user* db/ log/ nis/ proftpd.pid tmp/
    arpwatch/ lib/ lost+found/ opt/ quota.user* www/

    BTW how did you get that file/dir listing?? ftp?
     
    #9 PPNSteve, Mar 23, 2003
    Last edited: Mar 23, 2003
  10. WeMasterz5

    WeMasterz5 Well-Known Member

    Joined:
    Feb 24, 2003
    Messages:
    361
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Miami
    I am logged in as root in shell
     
  11. PPNSteve

    PPNSteve Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    393
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Somewhere in Ilex Forest
    cPanel Access Level:
    Root Administrator
    Twitter:
    what command?
     
  12. WeMasterz5

    WeMasterz5 Well-Known Member

    Joined:
    Feb 24, 2003
    Messages:
    361
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Miami
    oh sorry

    ls -l
     
  13. Curious Too

    Curious Too Well-Known Member

    Joined:
    Aug 31, 2001
    Messages:
    427
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    It's probably the /var/cpanel/bandwidth directory - with the change in how cpanel calculates bandwidth that directory is almost 200MB in size now -- I had to move it to another partition on some machines.
     
  14. haider

    haider Member

    Joined:
    Feb 25, 2002
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1

    Yes these are logs eating up all your space. These may be located in apache/domlogs

    del these files freely and your space will be free.

    Or you can hire me as an admin to do these things on your boxes ;-). I am doing these jobs for a long time now. :rolleyes:
     
  15. PPNSteve

    PPNSteve Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    393
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Somewhere in Ilex Forest
    cPanel Access Level:
    Root Administrator
    Twitter:
    root@cpanel1 [/var]# ls -l
    total 132
    drwxr-xr-x 21 root root 4096 Mar 23 21:21 ./
    drwxr-xr-x 20 root root 4096 Mar 23 21:28 ../
    -rwxr--r-- 1 root root 8192 Oct 4 03:49 aquota.user*
    drwxr-xr-x 3 pcap pcap 4096 Oct 4 00:51 arpwatch/
    drwxr-xr-x 5 root root 4096 May 15 2002 cache/
    drwxr-xr-x 17 root root 4096 Mar 22 00:01 cpanel/
    drwxr-xr-x 2 root root 4096 Aug 5 1998 db/
    drwxr-xr-x 11 root root 4096 Feb 17 04:12 lib/
    drwxr-xr-x 2 root root 4096 Feb 6 1996 local/
    drwxrwxr-x 3 root lock 4096 Mar 23 04:25 lock/
    drwxr-xr-x 8 root root 4096 Mar 23 21:28 log/
    drwx------ 2 root root 16384 May 15 2002 lost+found/
    lrwxrwxrwx 1 root root 10 May 15 2002 mail -> spool/mail/
    drwxr-xr-x 3 named named 8192 Mar 23 14:00 named/
    drwxr-xr-x 2 root root 4096 Feb 6 1996 nis/
    drwxr-xr-x 2 root root 4096 Apr 13 2000 opt/
    drwx------ 2 root root 4096 Mar 23 21:29 portsentry/
    drwxr-xr-x 2 root root 4096 Feb 6 1996 preserve/
    --------w- 1 root proftpd 6 Mar 23 21:28 proftpd.pid
    -rwxr--r-- 1 root root 2097120 Mar 23 21:42 quota.user*
    drwxr-xr-x 8 root root 4096 Mar 23 21:28 run/
    drwxr-xr-x 12 root root 4096 Oct 4 00:33 spool/
    drwxrwxrwt 2 root root 4096 Mar 24 01:33 tmp/
    drwxr-xr-x 4 root root 4096 Oct 19 19:52 www/
    drwxr-xr-x 3 root root 4096 Oct 25 01:52 yp/


    hmmm, let me check that too...

    lots of 94Kb files....

    this is so fustrating.. i can't use these server any more....
     
  16. Curious Too

    Curious Too Well-Known Member

    Joined:
    Aug 31, 2001
    Messages:
    427
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Go to /var/cpanel and type du -hS -- how much space is the "bandwidth" folder using?
     
  17. WeMasterz5

    WeMasterz5 Well-Known Member

    Joined:
    Feb 24, 2003
    Messages:
    361
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Miami
    I would think about doing that or adding another HDD
     
  18. haider

    haider Member

    Joined:
    Feb 25, 2002
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    u r doing it the wrong way.

    Do it like that :):

    cd /usr/local/apache/domlogs/

    rm -rf *.*

    /scripts/restartsrv httpd

    check the space now ;-)
     
  19. WeMasterz5

    WeMasterz5 Well-Known Member

    Joined:
    Feb 24, 2003
    Messages:
    361
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Miami
    7.1M ./bandwidth
    :D
     
  20. Curious Too

    Curious Too Well-Known Member

    Joined:
    Aug 31, 2001
    Messages:
    427
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Check /usr/local/cpanel/logs/stats_log and /var/cpanel/bandwidth

    There are a couple of threads about the stats_log problem, search the forum.
     
Loading...

Share This Page