Ask Your Question

Partition is not expanding even with cloud-init during first boot

asked 2015-01-15 04:36:39 -0500

zarp gravatar image

i am running centos6.6 as guest with cloud-utils.x86_64 cloud-init.x86_64 cloud-utils-growpart.x86_64 installed but instances are not expanding partition even with cloud-init running.

Only standard partition with no swap,no lvm But if i restart instance after creation,its expanding disks.This is the case with all flavors.

using qcow2 with max size of 2G and allocated of 1G.Any idea why filesystem expansion is not happening in first boot.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-01-15 07:56:03 -0500

anantha gravatar image

This issue can be specific to rhel/centos,try dracut module for altering the partition table,during the first boot itself.Regenerate initrd using "dracut -f".And see whether it works.

edit flag offensive delete link more


thanks this is working,regenerating initrd was a bit painful,but it works

zarp gravatar imagezarp ( 2015-01-16 00:38:44 -0500 )edit

answered 2015-01-15 09:17:30 -0500

NoNoNoo gravatar image

updated 2015-01-15 09:17:45 -0500

Other people had similar problem with centos 6.5 ( and there are some script that you can test.

There is another alternative in order to expand disk for Centos openstack images. It's using linux-rootfs-resize as reported in this tutorial about creating centos image by RDO (

edit flag offensive delete link more


Thanks NoNoNoo

zarp gravatar imagezarp ( 2015-01-16 00:38:13 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2015-01-15 04:36:39 -0500

Seen: 2,953 times

Last updated: Jan 15 '15