[Openstack] Root disk resize down

Mārtiņš Jakubovičs martins-lists at hostnet.lv
Wed Feb 10 07:51:10 UTC 2016


Thanks,

But how at least I can setup that if I change offering to lower it 
change just CPU and RAM and if root disk size in offering is smaller 
than actually in instance, nova don't try to change it to smaller?

Best regards,
Martins

On 2016.02.10. 03:23, Remo Mattei wrote:
> Resize down on drives is a nono! CPU and ram that can be done
>
> My 2 cents.
>
> Remo
>
> Inviato da iPhone
>
> Il giorno 09 feb 2016, alle ore 16:09, Chris Buccella 
> <chris.buccella at verilume.com <mailto:chris.buccella at verilume.com>> ha 
> scritto:
>
>> I don't think it's possible, or at least I haven't been able to 
>> resize down for disk.
>>
>> It isn't the size of the image that matters, but the virtual size of 
>> the disk. If the flavor's disk is 10GB, and the image is 2GB, 
>> cloud-init will try to expand the file system to the full 10GB on 
>> boot. That would prevent resizing down to a flavor with a smaller 
>> disk size, even if you only have a couple gigs of data on the disk.
>>
>> I think the ceph driver disallows resizing down out of an abundance 
>> of caution; it's too likely that data could be lost.
>>
>>
>> -Chris
>>
>> On Tue, Feb 9, 2016 at 6:00 AM, Mārtiņš Jakubovičs 
>> <martins-lists at hostnet.lv <mailto:martins-lists at hostnet.lv>> wrote:
>>
>>     Hello,
>>
>>     I can't find documentation about this.
>>     Is it possible to resize instance down when use CEPH as storage?
>>     Right now I try to resize down and I receive error:
>>
>>     Flavor's disk is too small for requested image. Flavor disk is
>>     42949672960 bytes, image is 21474836480 bytes.
>>
>>     OS Liberty,
>>     Ubuntu 14.04 x64,
>>     CEPH 0.94.5
>>
>>     _______________________________________________
>>     Mailing list:
>>     http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>     Post to     : openstack at lists.openstack.org
>>     <mailto:openstack at lists.openstack.org>
>>     Unsubscribe :
>>     http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>
>>
>> !DSPAM:1,56ba829b256051035217590!
>> _______________________________________________
>> Mailing list: 
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>> Post to     : openstack at lists.openstack.org 
>> <mailto:openstack at lists.openstack.org>
>> Unsubscribe : 
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>
>>
>> !DSPAM:1,56ba829b256051035217590!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160210/805965f5/attachment.html>


More information about the Openstack mailing list