openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #21536
Re: How to create a Image which can extend the partition automatically.
If you look at
http://www.pixelbeat.org/docs/openstack_libvirt_images/#1361764412,
you'll see that resize2fs is performed. But there is a caveat with RHEL6
which is Linux 2.6 (contrary to Ubuntu 12.04 which is Linux 3.0).
If you look at "man resize2fs" :
The resize2fs program will resize ext2, ext3, or ext4 file
systems. It
can be used to enlarge or shrink an unmounted file system
located on
device. If the filesystem is mounted, it can be used to
expand the
size of the mounted filesystem, assuming the kernel supports
on-line
resizing. (As of this writing, the Linux 2.6 kernel supports
on-line
resize for filesystems mounted using ext3 only.).
You absolutely need to create ext3 root partition for that working.
-Sylvain
Le 05/03/2013 05:59, Lei Zhang a écrit :
Hi all,
I am making the RHEL Image for the Openstack. But what type of
partition layout is preferred?
The question is that when resize the image, the FS can be aware of the
expansion and enlarge automatically. I found the ubuntu image from the
http://cloud-images.ubuntu.com/precise/ have this feature. But the
image I create can not.
So how to make the image created can re-partitioned in resize process
automatically and how the re-partitioned implemented?
--
Lei Zhang
Blog: http://jeffrey4l.github.com
twitter/weibo: @jeffrey4l
_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp
Follow ups
References