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.

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:
    1
    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:
    817
    Likes Received:
    22
    Trophy Points:
    18
    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
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page