If you don't have lvm, cloud-init will do the resize automatically. Otherwise you will have to do it manually. This is for qcow2 disk format (maybe others, i only did it with this.)
To change disk size, you have to change the flavor: http://docs.openstack.org/trunk/openstack-compute/admin/content/nova_cli_resize.html If you use lvm, those are the steps I performed to resize a disk from 50GB to 750GB: - boot in linux - delete the partition you want to resize (I did it with the root partition) - recreate it from the exact same start point and put the end point where you want - reboot - pvresize PVNAME - lvresize /path/to/lvm -l +100%FREE - resize2fs /path/to/lvm Best regards, Cristian Falcas On Mon, Sep 2, 2013 at 4:59 PM, Bob Ball <[email protected]> wrote: > https://wiki.openstack.org/wiki/HypervisorSupportMatrix suggest that this > feature only works with XenServer. > > Bob > >> -----Original Message----- >> From: Mark Chaney [mailto:[email protected]] >> Sent: 02 September 2013 14:56 >> To: Bob Ball >> Cc: [email protected] >> Subject: RE: [Openstack] can instances be resized? >> >> Ok, there seems to be a lot of conflicting information out there. Some >> people are saying its possible, some people are saying the kvm gets >> destroyed first and pretty much created from scratch, and others are >> saying its possible with xenserver. FYI, I will be using KVM. >> >> Without any crazy workarounds or custom templates, can Openstack resize >> kvm linux guests and keep data in tack? This is something I have to do >> quite often with my xen (xen.org) cluster that is managed with cloudmin, >> so its a very important feature to me that I can continue to be able to >> do it when switching to kvm/openstack. >> >> Thanks everyone for your time! >> >> -Mark >> >> On 2013-09-02 03:31, Bob Ball wrote: >> > Hi Mark, >> > >> > Just to add to this - if you use XenServer as the underlying >> > hypervisor then yes, it can perform automatic resize of the partitions >> > when you resize an instance between two flavors. >> > >> > I believe you need to set auto_disk_config=True for the instance - at >> > which point the expectation is that you have a single partition and >> > are using EXT3 or EXT4. See >> > >> https://github.com/openstack/nova/blob/master/nova/virt/xenapi/vm_util >> s.py#L798 for the technical details. >> > >> > This occurs when you issue the nova command to resize an instance >> > between the flavors and requires you to be running XenServer with the >> > EXT3 SR type - see >> > http://docs.openstack.org/trunk/openstack- >> compute/admin/content/introduction-to-xen.html for more details on >> setting up XenServer. >> > >> > Thanks, >> > >> > Bob >> > >> >> -----Original Message----- >> >> From: Mark Chaney [mailto:[email protected]] >> >> Sent: 30 August 2013 07:15 >> >> To: [email protected] >> >> Subject: [Openstack] can instances be resized? >> >> >> >> I am going to be hosting mainly Ubuntu, CentOS, and some Debian >> >> instances with my openstack "cloud". Can instances be resized when it >> >> comes to their storage? Obviously not only does its disk need to be >> >> resized, but its FS as well. I am hoping openstack can take care of >> >> all >> >> of that. >> >> >> >> Thanks, >> >> Mark >> >> >> >> _______________________________________________ >> >> Mailing list: >> >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack >> >> Post to : [email protected] >> >> Unsubscribe : http://lists.openstack.org/cgi- >> >> bin/mailman/listinfo/openstack > _______________________________________________ > Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack > Post to : [email protected] > Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack _______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : [email protected] Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
