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-li...@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@lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to