Oops went with default partition settings

Red Squirrel

No Lifer
May 24, 2003
70,080
13,532
126
www.anyf.ca
.. and it made /home super huge when all I wanted was / all in one partition. My own fault I usually pick custom and make sure it's the way I need it.

It did the /dev/mapper style partitions too, really not sure how to deal with those and gparted live CD wont detect the drive because it's vmware so it probably needs some kind of driver. Not even sure if gparted would have worked anyway. I tried to see if I can install gparted so I can run it through an X session but it's not in the yum repository for CentOS, but doubt I'd be able to do that live given it's the OS drive/partition I'm dealing with.

Is there a way to fix this? Something that requires rebooting is an option at this point as it's only really doing DNS anyway and old DNS server is still live so very worse case I switch back to it.
 

ninaholic37

Golden Member
Apr 13, 2012
1,883
31
91
I wonder if you can you boot off the gparted live CD inside the CentOS vmware image? From the first link I found, it sounds possible... looks like a fun experiment :awe:
 

Red Squirrel

No Lifer
May 24, 2003
70,080
13,532
126
www.anyf.ca
That's what I tried, but it would not recognize the drive. I think I might go ahead and reinstall though. There are lot of quirky things with this install that I had to do a work around for, like named not working at first boot and having to restart the service for it to work, and other weird stuff like that. So I'm hoping a reinstall might fix those issues too and make sure I create a standard partition scheme. May as well just do it right while I can.

I really need to read up and figure out a way to make a custom distro/installer so I can make all my servers more consistent as I constantly have to deal with different issues each time and it probably has to do with slight package selection differences or other things that I might not pick the same way from one install to the next.
 
Last edited:

Fallen Kell

Diamond Member
Oct 9, 1999
6,164
515
126
Which version of CentOS did you do this on and what filesystem did you use on the disks (well I guess if you used default it will use ext3 on CentOS 5.x, and ext4 on CentOS 6.x, probably ext4 on CentOS 7.x)?

I know you can fix it on CentOS 5.x and CentOS 6.x just boot from the CentOS install DVD iso image in Vmware and type "linux rescue". From there you can tar up the contents of you "/home", and resize the ext3 or ext4 filesystem, and then resize the LVM logical volume via command line. That will free up the space allowing you to then grow your other logical volume(s) that you wanted the space to be located within. No need to reinstall.

Here is a link to the first hit on google for resizing LVM filesystems (glancing it over they go pretty detailed and seem pretty thorough, but you can search on the web and see other tutorials that are probably more of a step by step, but this goes over the real guts of how/why, not just a simple run this command):
http://www.tecmint.com/extend-and-reduce-lvms-in-linux/

Also, if you simply want to get rid of "/home" as a separate volume, you can simply tar up the contents into some other volume, umount it, delete the lvm volume, grow the "/" lvm volume, grow the "/" filesystem, delete the entry in "/etc/fstab" for mounting "/home", and untar the tarball of "/home" into "/".

Really there is no issue at all shifting LVM volumes around. Just make certain that if you are shrinking one that you first shrink the filesystem before shrinking the LVM logical volume, otherwise you risk data lose or corruption in the case that data was kept at the end of the filesystem (which for some types of data, there will be).

On a side note, I would stay away from CentOS 7.x if it acts anything like how RHEL 7.x does (which it should since it is based on it). It is nothing but a buggy/crashy mess. I have put it on 4 test systems so far and all of them can't last 24 hours without crashing when using gnome desktop, with 3 of them not even able to survive a screenlock without crashing.
 
Last edited:

Red Squirrel

No Lifer
May 24, 2003
70,080
13,532
126
www.anyf.ca
Yeah was really not sure how to deal with those volumes so why I was asking, but I ended up reinstalling anyway to do it right from get go.

And yeah not a fan of CentOS 7. I tried it, everything changed, it's just weird and it did feel very buggy too. Lot of standard stuff like the service command and chkconfig don't really work the same anymore, and lot of other weird stuff. I find lot of distros now are moving towards overcomplicating stuff for nothing. For now I'll stick to 6.5 though I imagine at some point that will stop updating and I'll have to move to 7. And yeah I'll have to read up on using kickstarter files, that's probably my best bet to getting installations to be more consistent.
 

mv2devnull

Golden Member
Apr 13, 2010
1,526
160
106