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!

/var partition, how to get rid of it?

Discussion in 'General Discussion' started by jols, Aug 6, 2008.

  1. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    3
    Trophy Points:
    168
    Some of our cPanel servers have a /var partition that is limited to only 8GB or so. Others do not have a /var partition. But of course these include a /var directory that is included as a part of the overall/main disk partition.

    How can I get rid of the /var partition without of course deleting the included /var directory?

    We have some hosted customers that are starting to use really large MySQL databases, and this /var partition is being over run.

    Is it as easy as editing the fstab and rebooting?
     
  2. FreedomBI

    FreedomBI Well-Known Member

    Joined:
    Jul 7, 2008
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    56
    I believe you would need to do the following - this requires you to be physically at the machine (always a good idea when editing a critical file such as fstab anyway)

    1) Reboot into single user mode
    2) Mount the var partition somewhere else and copy the contents to /var
    3) Edit fstab, comment out /var
    4) Unmount the var partition and reboot
     
  3. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    3
    Trophy Points:
    168
    Thanks much for your responses. It is really apprecaited.

    Problem is, I am approximately 2,000 miles away from being physically at the machine.
     
  4. RobertNikic

    RobertNikic Active Member

    Joined:
    Jun 20, 2008
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    56
    Location:
    Tampa Bay
    Hello,

    I would contact your web hosting provider to further assist you with this issue.

    If you have any further questions, feel free to contact me.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. minotauro

    minotauro Well-Known Member

    Joined:
    Jan 19, 2004
    Messages:
    89
    Likes Received:
    0
    Trophy Points:
    156
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