Open brylie opened 10 years ago
Anxiously waiting for the answer to this one , i have multiple vms i also need to resize ...
Assuming you're using LVM inside of your guest, this link may be of assistance.
Alternatively, you could simply attach a second disk to the guest.
Definitely need an automated way to take the system offline and resize its disk and file system. LVM wouldnt be of any help if the OS resides on it if you are trying to do it live.
You could try using the following design scenario ...... just make sure your storage partitions reside in an LVM of the underlying host ,that way you wont have to take it offline ....
chamambom, thats obviously not how must VM's are setup and not relevant to the request. I would never recommend LVM within a VM. Makes maintenance a pain. When you resize a VM's storage, you take it offline, resize the img file or logical volume its in, then resize its file system. Obviously it has to be scripted and will only work with file systems you have created a process for, but this is how its done with other cloud systems.
What are a couple of good examples we can look at, so that we can envision how WebVirtMgr can provide resizing functionality?
some examples of cli commands that could be scripted to accomplish this? I mean, thats the only way they could do it. I know Cloudmin heavily uses bash scripts to resize guests and reset root passwords on guests.
OK, cool. What are some tools that we can use as comparison?
Also, there may be some reasons for admins to use LVM for host/guest systems, such as live backup: http://vitobotta.com/kvm-lvm-virtual-machines-backup-cloning/
It would indeed be very nice to have this feature. Either with lvm or with image files. Preferable lvm of course. There are some cli ways to accomplish it of course.
http://blog.oneiroi.co.uk/linux/kvm/virt-resize/RHEL/LVM/kvm-linux-expanding-a-lvm-guest-file-system-using-virt-resize/ http://chr4.org/blog/2014/08/28/online-resizing-lvm-guest-partitions-on-opennebula-slash-libvirt-guests/
Since its been months since the last comment, I'd like to ask if there is a roadmap on this.
User story
As an administrator I sometimes need to resize Virtual Machine disk images So that I can grow or shrink the storage capacity and manage resources
User flow
Initial question
How does one resize a disk image or volume? E.g. we install an OS with 20GB of disk space and decide to double the storage to 40GB.