Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    318
    /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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice