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.

Problem with partition disk

Discussion in 'General Discussion' started by metrop, Feb 16, 2002.

  1. metrop

    metrop Member

    Joined:
    Sep 23, 2001
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    0
    I have a problem with /dev/hda7 --& /var

    Disk full

    How i can free space for this partition??

    Info from server:
    Current Disk Usage
    Filesystem Size Used Avail Use% Mounted on
    /dev/hda8 251M 114M 124M 48% /
    /dev/hda1 53M 4.9M 45M 10% /boot
    /dev/hda6 6.0G 1.9G 3.8G 33% /home
    /dev/hda5 6.0G 1.4G 4.3G 25% /usr
    /dev/hda7 251M 251M 0 100% /var ************

    Thanks for any help....
     
  2. AlaskanWolf

    AlaskanWolf Well-Known Member

    Joined:
    Aug 11, 2001
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Fremont CA
    go in and delete your /var/logs/* files

    if that doesnt help next to look at is your /var/spool/exim/ files / folders

    I usually delete in that order...if you end up deleting exim files (input is the exact folder) u need to restart exim in WHM
     
  3. shaun

    shaun Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    698
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Clemente, Ca
    umm, i dont recommend just going into the /var/log dir and just removing the logs. Alot of times services wont recreate the log files and this results in things not being log'd. If you want to do it try somthing like this

    cd /var/log
    for i in *;do rm -f $i;touch $i;done

    This will remove and create every file(not directories) in the /var/log directory


    You can delete the /var/spool/exim/input/* files but this will delete all mail in the queue. Usually this dir doesnt take up much space either (unless you have a spammer who's filling it up with a thousands of messages that are pretty big allready)



    They problem really is that you made /var very small.

    You can do this.
    cd /var
    du -h --max-depth=1

    and see what directory is takeing up the most space. Then if you want you can move that directory to say somewhere in /usr and create a symbolic link to it.

    Hope that helps.
     
  4. metrop

    metrop Member

    Joined:
    Sep 23, 2001
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    0
    How i Can make This??

    How i Can make This??



    &They problem really is that you made /var very small.

    You can do this.
    cd /var
    du -h --max-depth=1

    and see what directory is takeing up the most space. Then if you want you can move that directory to say somewhere in /usr and create a symbolic link to it. &
     
  5. shaun

    shaun Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    698
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Clemente, Ca
    cd /var
    cp -a &directory name in var thats comsuming all space& /usr/local/
    mv &directory name in var thats comsuming all space& &directory name in var thats comsuming all space&-old
    ln -s /usr/local/&directory name in var thats comsuming all space& /var/&directory name in var thats comsuming all space&

    That should do it. here's a real example.

    cd /var
    cp -a /var/lib /usr/local/
    mv /var/lib /var/lib-old
    ln -s /usr/local/lib /var/lib


    Now just let it run for a cupple days like that. Make sure everything is ok. If it is them you can remove the /var/lib-old directory.
     
Loading...

Share This Page