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

2013-03-06 Thread Scott Moser
On Wed, 6 Mar 2013, Lei Zhang wrote: > On Tue, Mar 5, 2013 at 10:04 PM, Scott Moser wrote: > > > cloud-init > 0.7 (cloud-init invokes resize2fs) > > > How this is possible to just call `resize2fs` to re-partition. As I know, > this tool will not modify the partition information. Right? in curren

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

2013-03-06 Thread Mark Lehrer
but the resize2fs tools is not working and raise following error $ resize2fs rhel6.3-x86_64.img You will probably want to have a "firstboot" kind of script that does this from inside the VM. resize2fs can run while the VM is live but you may have to reboot after running growpart before you

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

2013-03-05 Thread Lei Zhang
On Tue, Mar 5, 2013 at 10:04 PM, Scott Moser wrote: > cloud-init > 0.7 (cloud-init invokes resize2fs) How this is possible to just call `resize2fs` to re-partition. As I know, this tool will not modify the partition information. Right? -- Lei Zhang Blog: http://jeffrey4l.github.com twitter/

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

2013-03-05 Thread Lei Zhang
Thanks for Scott, Padraig, Juerg. I have the whole image of this feature. But, who knows what's the implementation in AWS cloud when using RHEL OS? On Wed, Mar 6, 2013 at 9:15 AM, Joshua Harlow wrote: > +1 I think cloud-init can do this all in a more correct manner and in a > manner that works a

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

2013-03-05 Thread Joshua Harlow
+1 I think cloud-init can do this all in a more correct manner and in a manner that works across more distributions and file system types in the long term. On 3/5/13 5:08 PM, "Scott Moser" wrote: >On Wed, 6 Mar 2013, Pádraig Brady wrote: > >> On 03/05/2013 02:04 PM, Scott Moser wrote: >> > On Tu

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

2013-03-05 Thread Scott Moser
On Wed, 6 Mar 2013, Pádraig Brady wrote: > On 03/05/2013 02:04 PM, Scott Moser wrote: > > On Tue, 5 Mar 2013, Sylvain Bauza wrote: > > > >> If you look at > >> http://www.pixelbeat.org/docs/openstack_libvirt_images/#1361764412, you'll > >> see > >> that resize2fs is performed. But there is a cave

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

2013-03-05 Thread Pádraig Brady
On 03/05/2013 02:04 PM, Scott Moser wrote: > On Tue, 5 Mar 2013, Sylvain Bauza wrote: > >> 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

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

2013-03-05 Thread Scott Moser
On Tue, 5 Mar 2013, Sylvain Bauza wrote: > 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 resiz

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

2013-03-05 Thread Lei Zhang
On Tue, Mar 5, 2013 at 4:24 PM, Sylvain Bauza 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 fi

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

2013-03-05 Thread Sylvain Bauza
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 resiz

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

2013-03-04 Thread Wangpan
+1 I have the same question! 2013-03-05 Wangpan 发件人:Lei Zhang 发送时间:2013-03-05 13:01 主题:[Openstack] How to create a Image which can extend the partition automatically. 收件人:"openstack@lists.launchpad.net" 抄送: Hi all, I am making the RHEL Image for the Openstack. But what type of

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

2013-03-04 Thread Lei Zhang
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 feat