resize disk down
Can Openstack rezise instances down?
First time here? Check out the FAQ!
Here's a blueprint discussing this:
https://blueprints.launchpad.net/nova...
The most relevant part:
Resize to a smaller disk can never work if the user already has more data than the new flavor allows - so for consistency any resize to a smaller flavour should be treated as an error.
The question is... will it let you do it via the API -- Maybe, but it should give you an error if it fails. This also may depend on the Hypervisor type and specific configuration options in nova.conf.
More helpful information:
So it resizes it down based on the flavor, but then the disk just stays the same. Is this the outcome you are seeing?
libvirt: logs it cannot resize to smaller and just keeps the larger disk
xen: tries to copy contents to a smaller disk, fails if too large
hyperv: always errors out if new disk size is smaller
powervm: silently keeps the larger disk
vmware: (couldn't find where migration code handled resize)
Makes sense. You need to edit a few settings in your .conf to allow same host migrations, otherwise it's trying to migrate to other hosts. If you aren't using distributed storage then this fails due to an SSH session opening. Check your error logs for nova on the compute node the instance is on.
Asked: 2014-06-25 13:34:15 -0500
Seen: 2,368 times
Last updated: Jun 25 '14