<div dir="ltr">Hi All,<div><br></div><div>I read this article...can this help...</div><div><br></div><div><a href="https://catn.com/2013/06/03/resize-a-centos-virtual-machine-image/">https://catn.com/2013/06/03/resize-a-centos-virtual-machine-image/</a><br>
</div><div><br></div><div>Thanks,</div><div>Punit</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 28, 2014 at 10:33 PM, Michal Skrivanek <span dir="ltr"><<a href="mailto:michal.skrivanek@redhat.com" target="_blank">michal.skrivanek@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><br>
On Aug 27, 2014, at 13:52 , Punit Dambiwal <<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>> wrote:<br>
<br>
> Hi Itamar,<br>
><br>
> It's the same as i used and discussed in last reply...create the VM with 1GB virtual template and expand the disk size after deployment...but the problem here is disk will expand or resize...but it will not make any changes in the existing partition table..that means after expand disk all the existing partition will remain same....then you need to manual login in to server and make the changes with the help of fdisk and lvm commands..<br>
><br>
> I am looking for the way we can resize the disk...and at the same time when the disk will expand...it should be resize the partition table...<br>
><br>
> Is the cloud-init...custom script can do this or not ??<br>
<br>
</div>needs to be a custom script specific to the particular guest OS, I suppose.<br>
something like "lvresize --resizefs …"<br>
Maybe some rescan of partitions (if the missing piece is indeed the missing qemu-ga notification) - then just force it with fdisk<br>
<div class="HOEnZb"><div class="h5"><br>
Thanks,<br>
michal<br>
<br>
><br>
> Thanks,<br>
> Punit<br>
><br>
><br>
> On Wed, Aug 27, 2014 at 6:11 PM, Itamar Heim <<a href="mailto:iheim@redhat.com">iheim@redhat.com</a>> wrote:<br>
> On 08/27/2014 12:47 PM, Punit Dambiwal wrote:<br>
> Hi Itamar,<br>
><br>
> To edit the disk size are you referring this "Another way i got is<br>
> create the VM with 1GB virtual template and expand the disk size after<br>
> deployment...but the problem here is disk will expand...but it will not<br>
> done any changes in the existing partition table..that means after<br>
> expand disk you need to manual login in to server and make the changes<br>
> with the help of fdisk and lvm commands..."<br>
><br>
> Or it's different then the upper one...please let me know how to perform<br>
> this...if any screen shot you can provide for better understanding..<br>
><br>
> <a href="http://www.ovirt.org/Features/Online_Virtual_Drive_Resize" target="_blank">http://www.ovirt.org/Features/Online_Virtual_Drive_Resize</a><br>
> adding derez for follow up questions<br>
><br>
><br>
> Thanks,<br>
> Punit<br>
><br>
><br>
> On Wed, Aug 27, 2014 at 5:15 PM, Itamar Heim <<a href="mailto:iheim@redhat.com">iheim@redhat.com</a><br>
> <mailto:<a href="mailto:iheim@redhat.com">iheim@redhat.com</a>>> wrote:<br>
><br>
> On 08/27/2014 12:08 PM, Punit Dambiwal wrote:<br>
><br>
> Hi Itamar,<br>
><br>
> Thanks for the update....Yes.. i want to create different size<br>
> VM with<br>
> the same OS template...<br>
><br>
> ------------<br>
> 3. we support "disk resize" since 3.4 (iirc), which you can do<br>
> post VM<br>
> provisioning.<br>
><br>
> considering #3, then #1 should be easy to support as well these<br>
> days.<br>
> please open an RFE.<br>
> ------------<br>
><br>
> Could you please more elaborate point number 3...how to use<br>
> it..i will<br>
> go with this one ...<br>
><br>
><br>
> iirc, you just need to edit the disk size when vm is down or up (for<br>
> up, only for specific disk interfaces, virtio-blk, not ide, iirc)<br>
><br>
> Thanks,<br>
> Punit<br>
><br>
><br>
> On Wed, Aug 27, 2014 at 4:37 PM, Itamar Heim <<a href="mailto:iheim@redhat.com">iheim@redhat.com</a><br>
> <mailto:<a href="mailto:iheim@redhat.com">iheim@redhat.com</a>><br>
> <mailto:<a href="mailto:iheim@redhat.com">iheim@redhat.com</a> <mailto:<a href="mailto:iheim@redhat.com">iheim@redhat.com</a>>>> wrote:<br>
><br>
> On 08/27/2014 04:18 AM, Punit Dambiwal wrote:<br>
><br>
> Hi Michal,<br>
><br>
> I want to deploy the VM with the template but the<br>
> problem is in<br>
> ovirt<br>
> when you deploy the VM by template it copy the whole<br>
> image(even<br>
> thin or<br>
> thick disk)...like if i have 40GB virtual size (actual<br>
> size 1GB)<br>
> disk....it will copy the whole 40GB to provision the<br>
> virtual<br>
> machine....so if i want to deploy 10 VM simultaneous<br>
> then it<br>
> will copy<br>
> 4TB data and take long time to provision....<br>
><br>
> I want the way i can make the template with small<br>
> size....and once i<br>
> choose to create the virtual machine with 40GB...the VM<br>
> deploy<br>
> with the<br>
> small template on the 40GB disk... is it possible with<br>
> ovirt.. ??<br>
><br>
><br>
> so you want to provision a VM with a different disk size<br>
> than template.<br>
> good point. some thoughts:<br>
> 1. for thinly provisioned (qcow2) - its COW, hence the same<br>
> size.<br>
> 2. for clone - actually, no reason shouldn't be supported<br>
> easily.<br>
> 3. we support "disk resize" since 3.4 (iirc), which you can<br>
> do post<br>
> VM provisioning.<br>
><br>
> considering #3, then #1 should be easy to support as well these<br>
> days. please open an RFE.<br>
><br>
><br>
> Thanks,<br>
> Punit<br>
><br>
><br>
> On Tue, Aug 26, 2014 at 9:01 PM, Michal Skrivanek<br>
> <<a href="mailto:michal.skrivanek@redhat.com">michal.skrivanek@redhat.com</a><br>
> <mailto:<a href="mailto:michal.skrivanek@redhat.com">michal.skrivanek@redhat.com</a>><br>
> <mailto:<a href="mailto:michal.skrivanek@">michal.skrivanek@</a>__<a href="http://redhat.com" target="_blank">redhat.com</a><br>
> <mailto:<a href="mailto:michal.skrivanek@redhat.com">michal.skrivanek@redhat.com</a>>><br>
> <mailto:<a href="mailto:michal.skrivanek@">michal.skrivanek@</a><br>
> <mailto:<a href="mailto:michal.skrivanek@">michal.skrivanek@</a>>__<a href="http://red__hat.com" target="_blank">red__hat.com</a> <<a href="http://redhat.com" target="_blank">http://redhat.com</a>><br>
><br>
><br>
> <mailto:<a href="mailto:michal.skrivanek@">michal.skrivanek@</a>__<a href="http://redhat.com" target="_blank">redhat.com</a><br>
> <mailto:<a href="mailto:michal.skrivanek@redhat.com">michal.skrivanek@redhat.com</a>>>>> wrote:<br>
><br>
><br>
> On Aug 26, 2014, at 12:01 , Punit Dambiwal<br>
> <<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a> <mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>><br>
> <mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a> <mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>>><br>
> <mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a><br>
> <mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>> <mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a><br>
> <mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>>>>> wrote:<br>
><br>
> > Hi Michal,<br>
> ><br>
> > 2. I find disk size can not modify at the time<br>
> of VM<br>
> provisioning,is there any way to modify the VM<br>
> disk size ??<br>
> ><br>
> > well, not really, AFAIK.<br>
> > create another disk, move your data, remove the<br>
> original Or<br>
> create a bigger thin provisioned disk at the<br>
> beginning...<br>
> ><br>
> > I didn't understand the mean...i can create the<br>
> another<br>
> disk...it's ok...but how to move the data from the<br>
> existing<br>
> disk to<br>
> new disk at the time of the VM deployment... ?? is<br>
> there<br>
> any way to<br>
> move the data.. ??<br>
> Hi,<br>
><br>
> You would have to do that inside the guest…the<br>
> same way as<br>
> you would<br>
> do it on real hardware…mount both disks, move the<br>
> relevant data<br>
> not trivial and not automated<br>
><br>
> ><br>
> > Another question is there any way to mount the<br>
> img like<br>
> i will<br>
> create the VM with blank template with my<br>
> preferred disk<br>
> size and<br>
> leter on install the OS through any OS template<br>
> ??? i know<br>
> i can<br>
> install the OS through CD-ISO but i don't want the<br>
> manual<br>
> installation…<br>
><br>
> so you want to have a preinstalled OS…so how did<br>
> you want<br>
> to use it?<br>
> I probably don't understand what are you trying to<br>
> achieve.<br>
> Anything else than having a Template with OS and<br>
> you deploy<br>
> VMs from<br>
> that….you need to change disk sizes for each such<br>
> VM? Could<br>
> it be<br>
> done by adding an additional disk?<br>
><br>
> Thanks,<br>
> michal<br>
><br>
> ><br>
> > Thanks,<br>
> > Punit<br>
> ><br>
> ><br>
> > On Tue, Aug 26, 2014 at 5:51 PM, Michal Skrivanek<br>
> <<a href="mailto:michal.skrivanek@redhat.com">michal.skrivanek@redhat.com</a><br>
> <mailto:<a href="mailto:michal.skrivanek@redhat.com">michal.skrivanek@redhat.com</a>><br>
> <mailto:<a href="mailto:michal.skrivanek@">michal.skrivanek@</a>__<a href="http://redhat.com" target="_blank">redhat.com</a><br>
> <mailto:<a href="mailto:michal.skrivanek@redhat.com">michal.skrivanek@redhat.com</a>>><br>
> <mailto:<a href="mailto:michal.skrivanek@">michal.skrivanek@</a><br>
> <mailto:<a href="mailto:michal.skrivanek@">michal.skrivanek@</a>>__<a href="http://red__hat.com" target="_blank">red__hat.com</a> <<a href="http://redhat.com" target="_blank">http://redhat.com</a>><br>
><br>
><br>
> <mailto:<a href="mailto:michal.skrivanek@">michal.skrivanek@</a>__<a href="http://redhat.com" target="_blank">redhat.com</a><br>
> <mailto:<a href="mailto:michal.skrivanek@redhat.com">michal.skrivanek@redhat.com</a>>>>><br>
><br>
> wrote:<br>
> ><br>
> > On Aug 26, 2014, at 05:26 , Punit Dambiwal<br>
> <<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a> <mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>><br>
> <mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a> <mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>>><br>
> <mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a><br>
> <mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>> <mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a><br>
> <mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>>>>> wrote:<br>
> ><br>
> > > Hi All,<br>
> > ><br>
> > > I have some questions regarding the VM deployment<br>
> through OS<br>
> template...<br>
> > ><br>
> > > 1. I have imported centos template from openstack<br>
> glance (the<br>
> actual size of the template is 16GB but used is<br>
> 1GB)...now my<br>
> question is if i deploy the new VM with this<br>
> template,the<br>
> process<br>
> will copy the whole 16GB or just 1 GB to create<br>
> the new VM ??<br>
> ><br>
> > if you deploy with thin provisioned disks it<br>
> should be 1GB<br>
> ><br>
> > ><br>
> > > 2. I find disk size can not modify at the<br>
> time of VM<br>
> provisioning,is there any way to modify the VM<br>
> disk size ??<br>
> ><br>
> > well, not really, AFAIK.<br>
> > create another disk, move your data, remove the<br>
> original.<br>
> > Or create a bigger thin provisioned disk at the<br>
> beginning<br>
> ><br>
> > ><br>
> > > Thanks,<br>
> > > Punit<br>
> > ><br>
> > ><br>
> > > On Mon, Aug 25, 2014 at 5:42 PM, Punit Dambiwal<br>
> <<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a> <mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>><br>
> <mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a> <mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>>><br>
> <mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a> <mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>><br>
><br>
> <mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a> <mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>>>>> wrote:<br>
> > > Hi All,<br>
> > ><br>
> > > I have some questions regarding the VM deployment<br>
> through OS<br>
> template...<br>
> > ><br>
> > > 1. I have imported centos template from openstack<br>
> glance (the<br>
> actual size of the template is 16GB but used is<br>
> 1GB)...now my<br>
> question is if i deploy the new VM with this<br>
> template,the<br>
> process<br>
> will copy the whole 16GB or just 1 GB to create<br>
> the new VM ??<br>
> > ><br>
> > > 2. I find disk size can not modify at the<br>
> time of VM<br>
> provisioning,is there any way to modify the VM<br>
> disk size ??<br>
> > ><br>
> > > Thanks,<br>
> > > Punit<br>
> > ><br>
> ><br>
> ><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div>