LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Resizing KVM instance on fedora20 (https://www.linuxquestions.org/questions/linux-software-2/resizing-kvm-instance-on-fedora20-4175508215/)

gosssamer 06-16-2014 09:44 PM

Resizing KVM instance on fedora20
 
Hi,
I have a 40G qemu/kvm guest running fedora20 on fedora20 and having trouble resizing it. According to the steps I've seen online, it involves appending some data on to the end of the image then using fdisk from within it to extend the partition. This is the part that fails. I've deleted the LVM partition and recreated it, but it only recreates it the same size as it was.

Here's one example page I tried:

https://gist.github.com/larsks/3933980

Is this still the supported way of doing it, or is there now a new way?

Perhaps you have a link to an existing document that worked for you?

Is fdisk the proper tool to use, or should I be using parted these days?

Please let me know if there's any other information I can provide to help.

syg00 06-17-2014 12:52 AM

Quote:

Originally Posted by that_link
This process assumes the following:

. You're using legacy disk partitions. The process for LVM is similar and I will describe that in another post.

LVM adds several steps - perhaps you should look for the follow-up post from the author.
You might also have issues with the newer fdisk aligning to a megabyte boundary - might be ok though as that should be the way the original partition(s) allocated.

Doug G 06-17-2014 03:25 PM

virt-resize will let you resize the kvm image and lvm inside all at once.


All times are GMT -5. The time now is 01:58 AM.