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.

Having problems with disk space

Discussion in 'General Discussion' started by dnoe, Jul 15, 2012.

  1. dnoe

    dnoe Registered

    Joined:
    Jun 21, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I am having problems with running out of space on /var. What is the best way to go about cleaning that up, without messing stuff up.
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    The best way to do it would be to move /var/lib/mysql to /home after ensuring you have a full backup of all databases, then symlinking it back to /var/lib/mysql

    http://forums.cpanel.net/f354/how-move-mysql-data-folder-110481.html#post709306

    Of note, you'll want to also stop tailwatchd before doing this so it doesn't try to restart MySQL while you are moving things:

    Code:
    /usr/local/cpanel/scripts/restartsrv_tailwatchd --stop
    After you complete the steps noted in that post, then start tailwatchd again:

    Code:
    /usr/local/cpanel/scripts/restartsrv_tailwatchd --start
    If you do that, you don't have to uncheck MySQL in WHM for monitoring.

    Thanks!
     
Loading...

Share This Page