[Openstack] How to create a Image which can extend the partition automatically.

Lei Zhang zhang.lei.fly at gmail.com
Tue Mar 5 09:23:12 UTC 2013


On Tue, Mar 5, 2013 at 4:24 PM, Sylvain Bauza <sylvain.bauza at digimind.com>
wrote:

resize2fs

but the resize2fs tools is not working and raise following error

$ resize2fs rhel6.3-x86_64.img
resize2fs 1.42.5 (29-Jul-2012)
resize2fs: Bad magic number in super-block while trying to open
rhel6.3-x86_64.img
Couldn't find valid filesystem superblock.

In fact, I have found the partition-resize is implemented in the ubuntu OS.
It is related to could-utils package.
the could-utils has a command tool name growpart, which can rewrite the
partition table and extend space.
When the ubuntu is boot, there are scrips in the initrd.img that can call
the growpart and resize2fs to re-partition.

But on the RHEL, I didn't found the could-utils( it is under development) ,
and no kernel that can call the something like grouppart. So what should I
do on the RHEL to implement re-partition?
-- 
Lei Zhang

Blog: http://jeffrey4l.github.com
twitter/weibo: @jeffrey4l
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130305/f3613c41/attachment.html>


More information about the Openstack mailing list