mirror of
https://github.com/retspen/webvirtmgr.git
synced 2026-04-25 23:55:57 +03:00
[GH-ISSUE #431] Resize disk images through UI #323
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @brylie on GitHub (Sep 15, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/431
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.
@chamambom commented on GitHub (Sep 15, 2014):
Anxiously waiting for the answer to this one , i have multiple vms i also need to resize ...
@aprt5pr commented on GitHub (Sep 15, 2014):
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.
@MACscr commented on GitHub (Sep 25, 2014):
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.
@chamambom commented on GitHub (Oct 14, 2014):
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 ....
@MACscr commented on GitHub (Oct 14, 2014):
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.
@brylie commented on GitHub (Oct 20, 2014):
What are a couple of good examples we can look at, so that we can envision how WebVirtMgr can provide resizing functionality?
@MACscr commented on GitHub (Oct 20, 2014):
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.
@brylie commented on GitHub (Oct 20, 2014):
OK, cool. What are some tools that we can use as comparison?
@brylie commented on GitHub (Oct 22, 2014):
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/
@soraver commented on GitHub (Feb 19, 2015):
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.