Fedora VM within Xen Expand Partition
-
@scottalanmiller This was a rebuild of our fog server and when my colleague set it up he wasn't thinking about partition size.
So it's a VM now, but we can't upload new images into it...
(He didn't add a second disk) and I really don't want to have to go through and change our images directory to a new partition.
Anyway I can schedule this to apply at a reboot?
-
You could setup a new drive for it and mount it at the same point where your images currently are.... you would just have to backup and move your images to this new location. Then expanding this in the future would be much easier.
-
@coliver That might be what I do, but I was attempting to keep the system as simple as possible, with limited vdisks.
-
@scottalanmiller said:
That's the best way Root partitions need to be offline to grow. Why so much data in /?
The images folder for fog is on the only partition that was built into this VM.
-
It looks like you need to resive the lvm partition? Or resizee2fs to resize the ext4 partition from 40gb to 80gb?
-
@dafyre Yep, I just booted into the LiveCD and resized, just confirming now..
-
I thought you could do that on a live partition... Maybe I am mistaken.
-
It would make things so much more simple, If I just thought about these damn VM's as physical... lol...
"Dustin, put the CD into it, and boot from the LiveCD" is what my brain was telling me. . .
-
Yep, issue appears to be resolved, I now have 30GB free space.
Gonna test my Fog Image Upload.
-
For anyone else who might need to know how to do this on Fedora 22.
First, take a backup of your VM, it never hurts. And now I've warned you.
Install the Fedora CD into your VM Disk drive, boot from CD.
Select Troubleshooting Rescue a Fedora System
At the console confirm your filesystem path. Mine is at /dev/mapper/fedora-root
Changing 10G to whatever file size you need. To decrease use a -#G.
lvm lvresize --verbose --resizefs -L 10G /dev/mapper/vgname-lvname
Let it complete, should only take a bit.
reboot
There you have it, your Fedora Root Partition should now be expanded to whatever size you need.