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!

Partition nearing full use, how to expand?

Discussion in 'General Discussion' started by kjtocool, Feb 17, 2014.

  1. kjtocool

    kjtocool Registered

    Joined:
    Oct 28, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    Hey everyone,

    I have an issue with a dedicated server I manage. I have 6 different devices:

    /dev/sda1 -> /boot (97M 45% used)
    /dev/sda2 -> /usr (9.9G 59% used)
    /dev/sda3 -> /var (9.9G 89% used)
    /dev/sda5 -> / (2G 19% used)
    /dev/sda8 -> /home (890G 3% used)

    As you can see, /var is getting full due to some growing MySQL databases. I'm going to need to expand the size allocated to /var, but I have no experience doing so, and am concerned.

    Is this an easy fix, or something I should look to hire out?

    Thanks!
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    834
    Likes Received:
    28
    Trophy Points:
    178
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    You probably won't be able to expand the partition size for /var - this really depends on how the partitions are laid out on the disk, but regardless, it's not a good idea. Since you have plenty of space on /home, I would just relocate your MySQL databases there and call it a day:

    How to Change the Location of MySQL on cPanel :: The cPanel Admin
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Increasing the size of that partition will likely involve reinstalling the operating system. In the future, if you decide to do this, ensure you follow the recommended partition setup documented here:

    Step 5: Configure Your Operating System - Partitions

    You can find instructions for moving your MySQL directory to another partition on the following thread:

    Moving MySQL Data Directory

    Thank you.
     
    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