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.

Disk hda6 (/usr) DMA+ 100% full

Discussion in 'General Discussion' started by alexz, Sep 10, 2005.

  1. alexz

    alexz Member

    Joined:
    Jun 20, 2005
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Whm is showing me that my /usr partition is 100% full :(
    Is there anything I can do? Which files can I safely delete in there? Or mybe I can transfer some of the files to other partitions?
    Thank you
    Alex
     
  2. chrissy

    chrissy Member

    Joined:
    Mar 17, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
  3. linuxrouter

    linuxrouter Member

    Joined:
    Nov 10, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Check /usr/src and /usr/local/src for file size

    du -sm /usr/src
    du -sm /usr/local/src

    or check all /usr directories

    du -sm /usr/src/*

    You could move /usr/local to a separate partition. Make a new partition, format, and copy files from /usr/local over. Edit /etc/fstab and add a new line for /usr/local.

    Example:

    /dev/sda2 /usr/local xfs defaults 1 2

    Set the file system to the filesystem you formatted the partition with and the correct device.

    Verify copy and remove files from the original partition for local and then `mount -a` You could move just about any other directory under /usr over to its own partition as well. Just make sure that the files you move do not have any running processes and if so, stop those services first.
     
  4. linuxrouter

    linuxrouter Member

    Joined:
    Nov 10, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    du -sm /usr/src/* in my previous post is meant to be

    du -sm /usr/*
     
  5. Sinewy

    Sinewy Well-Known Member

    Joined:
    May 15, 2004
    Messages:
    367
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney, Australia
    cPanel Access Level:
    DataCenter Provider
    Try clearing the domlogs.

    rm -f /usr/local/apache/domlogs/*
    /scrips/restartsrv_httpd

    Then go into WHM and go to tweak settings and select "delete logs after each stats run".

    This is usually the culprit on most servers.

    Regards,
    Alan
     
Loading...

Share This Page