Re: [Openstack] Root disk resize down

2016-02-10 Thread Mārtiņš Jakubovičs
I would be happy if resize is going to smaller flavor, nova just change 
CPU and RAM, didn't try to change disk to smaller. But it doesn't work. 
In search I found that it should work like that, resize with KVM just 
change CPU and RAM, but disk stay same, if flavor have smaller disk. 
Maybe this is a bug?


Best regards,
Martins

On 2016.02.10. 16:51, Ghe Rivero wrote:

There could be situations where resizing (up or down) an instance could be an 
option (like critical non-ha services although this is a real bad policy) but 
the proper way to operate a cloud is to spin up and kill as many instances as 
needed. But if you really need to shrink an instance, it's just not a problem 
of cloud capabilities. The filesystem of your instance must support it (a no go 
if it's XFS and in case you use ext4, it can be done in offline mode).

Ghe Rivero



___
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


Re: [Openstack] Root disk resize down

2016-02-10 Thread Mārtiņš Jakubovičs
Yes, with Cinder resize works, and volume resize is separated function. 
But my issue is when I use VM boot from image, without using cinder, 
using CEPH directly in nova.


On 2016.02.10. 16:49, Alberto Molina Coballes wrote:

Sorry Mārtiņš, my previous comment wasn't completely correct.

I'm assuming that you're using Ceph as a cinder backend and using
instances with the root filesystem defined in a volume, so you want
to resize your instances without modify the size of the volume, just
modify RAM and vCPU, right?

In that case you can define several flavors with 0 GiB of disk size
and resize up and down your instances between these flavors, but not
with other flavors with a disk size greater than 0 GiB defined.

Regards,

Alberto



___
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


Re: [Openstack] Root disk resize down

2016-02-10 Thread Alberto Molina Coballes
On mié, feb 10, 2016 at 12:41:42 +0200, Mārtiņš Jakubovičs wrote:
> Hello,
> 
> Looks like it is not working, when I try to resize instance I receive:
> Server disk was unable to be resized because: Resize to zero disk flavor is
> not allowed.
> 

Sorry Mārtiņš, my previous comment wasn't completely correct. 

I'm assuming that you're using Ceph as a cinder backend and using
instances with the root filesystem defined in a volume, so you want
to resize your instances without modify the size of the volume, just
modify RAM and vCPU, right?

In that case you can define several flavors with 0 GiB of disk size
and resize up and down your instances between these flavors, but not
with other flavors with a disk size greater than 0 GiB defined. 

Regards,

Alberto

___
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


Re: [Openstack] Root disk resize down

2016-02-10 Thread Ghe Rivero
There could be situations where resizing (up or down) an instance could be an 
option (like critical non-ha services although this is a real bad policy) but 
the proper way to operate a cloud is to spin up and kill as many instances as 
needed. But if you really need to shrink an instance, it's just not a problem 
of cloud capabilities. The filesystem of your instance must support it (a no go 
if it's XFS and in case you use ext4, it can be done in offline mode). 

Ghe Rivero

Quoting Mārtiņš Jakubovičs (2016-02-09 12:00:51)
> 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


Re: [Openstack] Root disk resize down

2016-02-10 Thread Remo Mattei
ick! yes Ghe, agree but I would not advice this process, even though I have 
done this many time and works a huge % of the time, it’s not a save solution. 
parted then will be better if he really needs to address this resize and yes to 
keep in mind that XFS does not resize down at all. So the best solution as it 
has been already advised is to spin up a new one and move the data there. 

Remo 
> On Feb 10, 2016, at 06:51, Ghe Rivero  wrote:
> 
> There could be situations where resizing (up or down) an instance could be an 
> option (like critical non-ha services although this is a real bad policy) but 
> the proper way to operate a cloud is to spin up and kill as many instances as 
> needed. But if you really need to shrink an instance, it's just not a problem 
> of cloud capabilities. The filesystem of your instance must support it (a no 
> go if it's XFS and in case you use ext4, it can be done in offline mode). 
> 
> Ghe Rivero
> 
> Quoting Mārtiņš Jakubovičs (2016-02-09 12:00:51)
>> 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
> 
> !DSPAM:1,56bb53ce33081451394549!
> 


___
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


Re: [Openstack] Root disk resize down

2016-02-10 Thread Mārtiņš Jakubovičs

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 
> 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 
> 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


!DSPAM:1,56ba829b256051035217590!
___
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



!DSPAM:1,56ba829b256051035217590!


___
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


Re: [Openstack] Root disk resize down

2016-02-10 Thread Mārtiņš Jakubovičs

Hello,

Looks like it is not working, when I try to resize instance I receive:
Server disk was unable to be resized because: Resize to zero disk flavor 
is not allowed.


Maybe there is some nova configuration which allow to scale down 
instance without shrinking root disk?


Best regards,
Martins

On 2016.02.10. 12:10, Alberto Molina Coballes wrote:
2016-02-10 8:51 GMT+01:00 Mārtiņš Jakubovičs >:


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?


Hi,

You can try defining a new flavor with a size of 0 GiB, then the 
instance can use the new flavor without any change in the size of the 
root filesystem.


Regards,

Alberto


___
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


Re: [Openstack] Root disk resize down

2016-02-09 Thread Chris Buccella
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  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


Re: [Openstack] Root disk resize down

2016-02-09 Thread Remo Mattei
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 
>  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 
>>  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
> 
> !DSPAM:1,56ba829b256051035217590!
> ___
> 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
> 
> 
> !DSPAM:1,56ba829b256051035217590!
___
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


Re: [Openstack] Root disk resize down

2016-02-09 Thread Clint Byrum
Excerpts from Mārtiņš Jakubovičs's message of 2016-02-09 03:00:51 -0800:
> 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

I know that sometimes clouds are really full, and create/test/delete
isn't the way you are able to use them. But in general, you'll be better
off if you can just create a new one, move the data, test it, then stop
and eventually delete the old one.

___
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