scharfshutze009
2[H]4U
- Joined
- May 22, 2010
- Messages
- 2,079
Just to restate my thoughts - IMO the fastest way for you (with your current skill set) to get back to a working system is to just wipe and start over, and being a bit more liberal with some of the space allocations. And that's not a knock.. everything is new to us at some point.
That being said, it never hurts to learn. It just matters if you're up for dealing with it at this particular moment or not.
based on your df output, (knowingly or not) you're using LVM to manage your volumes. This gives you flexibility to resize volumes, but adds a layer of complexity compared to standard partitions administered with just fdisk and mkfs. It also requires you to use a handful of utilities that you may not be familiar with. Check out the man pages for pvdisplay, vgdisplay, and lvdisplay. Try to understand the output for each utility. They also have a suite of related commands to create, resize, and delete physical volumes, volume groups, and logical volumes.
Essentially you have a "physical volume" (your actual drive like sda or confusingly a partition) added to a "volume group". That volume group can contain "logical volumes" and that's what those /dev/mapper/ol-home items are.
So you're going to look at the process to shrink a filesystem, and then shrink a logical volume. That space becomes free to the volume group and can be allocated to ol-var volume. You'll do that and then you'll expand the filesystem.
*note: you have to unmount filesystems to shrink them. that makes shrinking root to be particularly tricky and usually requires booting into a live usb/dvd/cd environment.
Could you do a little searching on Google for phrases like "how to shrink volume with lvm" and "how to expand volume with lvm"? You'll get a ton of results with examples for what you'd need to do. However, you'll probably have the best time if you practice on a Virtual Machine first. You can then snapshot and rollback to save time as you practice a few times.
No the problem is that Linux or this version of Redhat doesn't really resize a partition, but instead just has you delete it instead or so it seems and that's just dumb if it's true.
Last edited: