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.

/dev/hda1 gets full

Discussion in 'General Discussion' started by MikeMc, Oct 30, 2002.

  1. MikeMc

    MikeMc Well-Known Member

    Joined:
    May 8, 2002
    Messages:
    161
    Likes Received:
    0
    Trophy Points:
    16
    I have a server at Fastservers.net, with 60GB hd, Cpanel server.
    /dev/hda1 2.9G 2.2G 582M 80% /
    /dev/hda2 44G 2.5G 39G 6% /home
    none 250M 0 250M 0% /dev/shm
    /dev/hda3 7.7G 120M 7.1G 2% /var

    and this is the current disk usage, which I believe it was the standard configuration (at least in August) for the 60GB of Fastservers.net

    Now I have noticed that almost with every cpanel upgrade (and I don't do them very often) the hda1 gets full.

    Ok, you'll say the hda1 is small on your server..yes..maybe you're right and then upgrades are normal to add things...yes, that's right....but the fact that with every upgrade I almost get 1% up it's a source of worries thinking of the future, and the server is up for almost 2 months+ .

    The only think I found to empty were the apache logs...
    Could you indicate me any other cleaning that I could do?
    (domlogs are in /home).

    Then for sure I could ask Fastservers to help, but it's not my way really, I mean that I would bother my provider only for really critical issues. So please give me some help.

    Thank you for your answers.
    Regards
    Mike
     
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Sounds like your hda1 is being used for more than it should be. Here's what my setup looks like:
    Filesystem Size Used Avail Use% Mounted on
    /dev/hda6 494M 103M 365M 22% /
    /dev/hda1 30M 4.4M 24M 16% /boot
    /dev/hda7 13G 505M 11G 5% /home
    none 121M 0 120M 0% /dev/shm
    /dev/hda2 3.0G 1.6G 1.2G 57% /usr
    /dev/hda3 2.0G 96M 1.7G 6% /var

    It looks like your hda1 is being used for cpanel and for apache logs which are on a seperate partition &/usr& in my system.
    You will notice my /usr partition is 1.6G and I keep it fairly clean.

    What I suggest is if you have log files in there, make a logs directory in /home and move them there, then use a symbolic link so the system still gets to them.
    You should have a seperate partition for the logs, but it's too much work to change it now.
     
  3. MikeMc

    MikeMc Well-Known Member

    Joined:
    May 8, 2002
    Messages:
    161
    Likes Received:
    0
    Trophy Points:
    16
    Yes, Mike you're right. I had noticed what you said from the beginning...but since they provided me the server partitioned that way, I thought that it was their way to do things. :) At the end they know more than I do. ;)

    The problem is that even if I clean the apache logs...I don't earn too much space...I believe that other components fill the hda1 and that is what scares me more. I mean if the hda1 gets filled with things that are necessary...then...

    I'll symlink tha apache logs directory and maybe the man and doc directories if necessary...to the home partition since I have space there, just to earn some MB. A good clean up to the cpanel from the developers could also give to me and others some space...but this is another story.

    Anything else that I could move?

    Thanks
     
  4. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    If you move each of them, you'll probably have enough free space to relax. ;)
     
Loading...

Share This Page