[Openstack] Auto sizing filesystem using cloud-init is not always working
mad Engineer
themadengin33r at gmail.com
Thu Jan 15 10:28:52 UTC 2015
i have
cloud-utils.x86_64
cloud-init.x86_64
cloud-utils-growpart.x86_64 installed
i think the other is for debian distros as i can not find in yum
repos.I am using centos6.6.
One strange thing is if i restart instance after creating,its
working,But not during the first boot.
On Thu, Jan 15, 2015 at 3:24 PM, gustavo panizzo (gfa) <gfa at zumbi.com.ar> wrote:
> do you have installed dracut-module-growpart in the image?
> have you rebuild the initramfs after installing it?
>
> On January 15, 2015 5:32:54 PM GMT+08:00, mad Engineer <themadengin33r at gmail.com> wrote:
>>hi i am using cloud-init on Centos6.6 instances.
>>Issue is instance's disk size is increasing but partition size not
>>expanding according to flavor size
>>
>>i have growpart installed.
>>
>>growpart /dev/vda 1 shows following error
>>NOCHANGE: partition 1 is 83883776.It can not be grown.
>>
>>But if i resize its working but not completely.
>>
>>Actual qcow2 disk is 2G size and allocated is ~1G.
>>
>>Strange Behaviour:
>>With flavor disk size of 20G,fdisk shows disk size of 20G, but
>>partition is still 2G.
>>If resized to different flavor with disk size of 40G,fdisk shows 40G
>>and partition is 20G!!
>>if resized to larger flavor with disk size 80G,fdisk shows 80G and
>>partition is 40G !!
>>
>>So the issue from first flavor continues,if start with 40G disk then
>>difference will always be 40G
>>
>>Why is cloud-init behaving like this
>>
>>_______________________________________________
>>Mailing list:
>>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>Post to : openstack at lists.openstack.org
>>Unsubscribe :
>>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
> --
> 1AE0 322E B8F7 4717 BDEA BF1D 44BB 1BA7 9F6C 6333
>
> Sent from mobile.
More information about the Openstack
mailing list