Ask Your Question
1

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
2

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

Comments

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

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

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 http://www.gossamer-threads.com/lists/openstack/operators/41678 (http://www.gossamer-threads.com/lists...) 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 https://openstack.redhat.com/Creating_CentOS_and_Fedora_images_ready_for_Openstack (https://openstack.redhat.com/Creating...)

edit flag offensive delete link more

Comments

Thanks NoNoNoo

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

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

Seen: 2,588 times

Last updated: Jan 15 '15