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.

How can I move /usr & /var to a seperate drive?

Discussion in 'General Discussion' started by AbeFroman, Aug 12, 2004.

  1. AbeFroman

    AbeFroman BANNED

    Joined:
    Feb 16, 2002
    Messages:
    654
    Likes Received:
    1
    Trophy Points:
    0
    /usr and /var a full and I have deleted everything I can, how can I move them to a seperate drive?
    /dev/sda5 3028080 2808456 65804 98% /usr
    /dev/sda6 3028080 2641632 232628 92% /var
     
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Probably easiest to just move the log files to a seperate drive.

    Have a logs partition on the new drive, make the following directories (suggestion only):
    /logs/apache/logs
    /logs/apache/domlogs
    /logs/cpanel
    /logs/var
    then move the current log files:
    /usr/local/apache/logs
    /usr/local/apache/domlogs
    /usr/local/cpanel/logs
    /var/logs
    and symlink them.

    You want to shut down the various services before you move the log files.

    Have you tried cleaning the log files? I have a script for WHM for that, and a script to view them in WHM. The "view log files" script is redesigned and I will be posting about it shortly.

    See my sig for the scripts.
     
Loading...

Share This Page