LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 12-17-2016, 07:39 AM   #1
AdultFoundry
Member
 
Registered: Jun 2015
Posts: 282

Rep: Reputation: Disabled
ibdata1 too large and enlarging root partition in Centos 7


I have an issue on my Centos 7 system, and I will be trying to find the best way to go after coming back from a break. I've been already working on it for 6+ so far.

I have a root partition of 20G in size and it is running out of space because the /var/lib/mysql/ibdata1 is getting too large (13G now, the whole /var/lib is 15G in size).

lsblk command shows something like this:

sda
-sda1
-sda2 (mountpoint /)
-sda3
--volgroup1-lvol0 (mountpoint /home)
-sda4 ([swap])
sdb
-volgroup1-lvol0 (mountpoint /home)

So basically the sda2 is the / partition with the 20G of space and sda3 + sdb is /home partition with space of 3.6T created with LVM.

1) Is it possible to enlarge the / partition (to lets say 100G or maybe more would be needed) and what would be the best way of doing that.

2) Is there any way of mitigating the problem of the /var/lib/mysql/ibdata1 getting too large?

I still have a lot of space on the /home partition and I can easily expand the / partition from the 20G to 200G if this would be a good thing to do. I will be still able to work on what I am working on with something like this.

I would like to solve this as good as I can, and dont have any problems related to this when I work on my site on this hosing plan.

Thanks.

Edit:
/dev/sda2 and /dev/mapper/volgroup1-lvol0 are both ext4, I run df -T to get the info about that.

Edit2:
This is on a working system, so I would need to do it while everything works. I am not able to disable the websites for some time on order to work on this. Is this all a doable thing?

Last edited by AdultFoundry; 12-17-2016 at 09:40 AM.
 
Old 12-17-2016, 01:39 PM   #2
AdultFoundry
Member
 
Registered: Jun 2015
Posts: 282

Original Poster
Rep: Reputation: Disabled
http://www.linuxquestions.org/questi...on-4175595636/

This topic can be closed or deleted, I think.

Last edited by AdultFoundry; 12-17-2016 at 01:40 PM.
 
Old 12-17-2016, 01:41 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,733

Rep: Reputation: 5596Reputation: 5596Reputation: 5596Reputation: 5596Reputation: 5596Reputation: 5596Reputation: 5596Reputation: 5596Reputation: 5596Reputation: 5596Reputation: 5596
As a reminder please post your thread in only one forum...
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] CentOS 5.3 cant mount large partition cciardi Linux - Server 4 11-16-2012 09:12 AM
mysql ibdata1 is very large 95% drive in use - dropped tables but size ibdata remains guest Linux - Server 2 03-20-2009 12:53 PM
Enlarging Slackware partition yuchankit Slackware 6 04-22-2008 11:28 PM
enlarging /var partition freebies Linux - General 1 05-05-2005 10:36 AM
Enlarging existing partition wrangler Linux - Newbie 1 03-14-2005 08:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration