<div dir="ltr">Hi All,<div><br></div><div>Can anyone suggest me the good way to achieve this....or any script which i can put in to cloud-init...to modify the root partition..</div><div><br></div><div>Thanks,</div><div>Punit</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 29, 2014 at 9:25 AM, Punit Dambiwal <span dir="ltr">&lt;<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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/" target="_blank">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="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 28, 2014 at 10:33 PM, Michal Skrivanek <span dir="ltr">&lt;<a href="mailto:michal.skrivanek@redhat.com" target="_blank">michal.skrivanek@redhat.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br>
On Aug 27, 2014, at 13:52 , Punit Dambiwal &lt;<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi Itamar,<br>
&gt;<br>
&gt; It&#39;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>


&gt;<br>
&gt; 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>
&gt;<br>
&gt; 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 &quot;lvresize --resizefs …&quot;<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><div><br>
Thanks,<br>
michal<br>
<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Punit<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Aug 27, 2014 at 6:11 PM, Itamar Heim &lt;<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a>&gt; wrote:<br>
&gt; On 08/27/2014 12:47 PM, Punit Dambiwal wrote:<br>
&gt; Hi Itamar,<br>
&gt;<br>
&gt; To edit the disk size are you referring this &quot;Another way i got is<br>
&gt; create the VM with 1GB virtual template and expand the disk size after<br>
&gt; deployment...but the problem here is disk will expand...but it will not<br>
&gt; done any changes in the existing partition table..that means after<br>
&gt; expand disk you need to manual login in to server and make the changes<br>
&gt; with the help of fdisk and lvm commands...&quot;<br>
&gt;<br>
&gt; Or it&#39;s different then the upper one...please let me know how to perform<br>
&gt; this...if any screen shot you can provide for better understanding..<br>
&gt;<br>
&gt; <a href="http://www.ovirt.org/Features/Online_Virtual_Drive_Resize" target="_blank">http://www.ovirt.org/Features/Online_Virtual_Drive_Resize</a><br>
&gt; adding derez for follow up questions<br>
&gt;<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Punit<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Aug 27, 2014 at 5:15 PM, Itamar Heim &lt;<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a><br>
&gt; &lt;mailto:<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     On 08/27/2014 12:08 PM, Punit Dambiwal wrote:<br>
&gt;<br>
&gt;         Hi Itamar,<br>
&gt;<br>
&gt;         Thanks for the update....Yes.. i want to create different size<br>
&gt;         VM with<br>
&gt;         the same OS template...<br>
&gt;<br>
&gt;         ------------<br>
&gt;         3. we support &quot;disk resize&quot; since 3.4 (iirc), which you can do<br>
&gt;         post VM<br>
&gt;         provisioning.<br>
&gt;<br>
&gt;         considering #3, then #1 should be easy to support as well these<br>
&gt;         days.<br>
&gt;         please open an RFE.<br>
&gt;         ------------<br>
&gt;<br>
&gt;         Could you please more elaborate point number 3...how to use<br>
&gt;         it..i will<br>
&gt;         go with this one ...<br>
&gt;<br>
&gt;<br>
&gt;     iirc, you just need to edit the disk size when vm is down or up (for<br>
&gt;     up, only for specific disk interfaces, virtio-blk, not ide, iirc)<br>
&gt;<br>
&gt;         Thanks,<br>
&gt;         Punit<br>
&gt;<br>
&gt;<br>
&gt;         On Wed, Aug 27, 2014 at 4:37 PM, Itamar Heim &lt;<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a><br>
&gt;         &lt;mailto:<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a>&gt;<br>
&gt;         &lt;mailto:<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a> &lt;mailto:<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a>&gt;&gt;&gt; wrote:<br>
&gt;<br>
&gt;              On 08/27/2014 04:18 AM, Punit Dambiwal wrote:<br>
&gt;<br>
&gt;                  Hi Michal,<br>
&gt;<br>
&gt;                  I want to deploy the VM with the template but the<br>
&gt;         problem is in<br>
&gt;                  ovirt<br>
&gt;                  when you deploy the VM by template it copy the whole<br>
&gt;         image(even<br>
&gt;                  thin or<br>
&gt;                  thick disk)...like if i have 40GB virtual size (actual<br>
&gt;         size 1GB)<br>
&gt;                  disk....it will copy the whole 40GB to provision the<br>
&gt;         virtual<br>
&gt;                  machine....so if i want to deploy 10 VM simultaneous<br>
&gt;         then it<br>
&gt;                  will copy<br>
&gt;                  4TB data and take long time to provision....<br>
&gt;<br>
&gt;                  I want the way i can make the template with small<br>
&gt;         size....and once i<br>
&gt;                  choose to create the virtual machine with 40GB...the VM<br>
&gt;         deploy<br>
&gt;                  with the<br>
&gt;                  small template on the 40GB disk... is it possible with<br>
&gt;         ovirt.. ??<br>
&gt;<br>
&gt;<br>
&gt;              so you want to provision a VM with a different disk size<br>
&gt;         than template.<br>
&gt;              good point. some thoughts:<br>
&gt;              1. for thinly provisioned (qcow2) - its COW, hence the same<br>
&gt;         size.<br>
&gt;              2. for clone - actually, no reason shouldn&#39;t be supported<br>
&gt;         easily.<br>
&gt;              3. we support &quot;disk resize&quot; since 3.4 (iirc), which you can<br>
&gt;         do post<br>
&gt;              VM provisioning.<br>
&gt;<br>
&gt;              considering #3, then #1 should be easy to support as well these<br>
&gt;              days. please open an RFE.<br>
&gt;<br>
&gt;<br>
&gt;                  Thanks,<br>
&gt;                  Punit<br>
&gt;<br>
&gt;<br>
&gt;                  On Tue, Aug 26, 2014 at 9:01 PM, Michal Skrivanek<br>
&gt;                  &lt;<a href="mailto:michal.skrivanek@redhat.com" target="_blank">michal.skrivanek@redhat.com</a><br>
&gt;         &lt;mailto:<a href="mailto:michal.skrivanek@redhat.com" target="_blank">michal.skrivanek@redhat.com</a>&gt;<br>
&gt;                  &lt;mailto:<a href="mailto:michal.skrivanek@" target="_blank">michal.skrivanek@</a>__<a href="http://redhat.com" target="_blank">redhat.com</a><br>
&gt;         &lt;mailto:<a href="mailto:michal.skrivanek@redhat.com" target="_blank">michal.skrivanek@redhat.com</a>&gt;&gt;<br>
&gt;                  &lt;mailto:<a href="mailto:michal.skrivanek@" target="_blank">michal.skrivanek@</a><br>
&gt;         &lt;mailto:<a href="mailto:michal.skrivanek@" target="_blank">michal.skrivanek@</a>&gt;__<a href="http://red__hat.com" target="_blank">red__hat.com</a> &lt;<a href="http://redhat.com" target="_blank">http://redhat.com</a>&gt;<br>


&gt;<br>
&gt;<br>
&gt;                  &lt;mailto:<a href="mailto:michal.skrivanek@" target="_blank">michal.skrivanek@</a>__<a href="http://redhat.com" target="_blank">redhat.com</a><br>
&gt;         &lt;mailto:<a href="mailto:michal.skrivanek@redhat.com" target="_blank">michal.skrivanek@redhat.com</a>&gt;&gt;&gt;&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;                       On Aug 26, 2014, at 12:01 , Punit Dambiwal<br>
&gt;                  &lt;<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a> &lt;mailto:<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a>&gt;<br>
&gt;         &lt;mailto:<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a> &lt;mailto:<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a>&gt;&gt;<br>
&gt;                       &lt;mailto:<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a><br>
&gt;         &lt;mailto:<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a>&gt; &lt;mailto:<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a><br>
&gt;         &lt;mailto:<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a>&gt;&gt;&gt;&gt; wrote:<br>
&gt;<br>
&gt;                        &gt; Hi Michal,<br>
&gt;                        &gt;<br>
&gt;                        &gt; 2. I find disk size can not modify at the time<br>
&gt;         of VM<br>
&gt;                       provisioning,is there any way to modify the VM<br>
&gt;         disk size ??<br>
&gt;                        &gt;<br>
&gt;                        &gt; well, not really, AFAIK.<br>
&gt;                        &gt; create another disk, move your data, remove the<br>
&gt;         original Or<br>
&gt;                       create a bigger thin provisioned disk at the<br>
&gt;         beginning...<br>
&gt;                        &gt;<br>
&gt;                        &gt; I didn&#39;t understand the mean...i can create the<br>
&gt;         another<br>
&gt;                       disk...it&#39;s ok...but how to move the data from the<br>
&gt;         existing<br>
&gt;                  disk to<br>
&gt;                       new disk at the time of the VM deployment... ?? is<br>
&gt;         there<br>
&gt;                  any way to<br>
&gt;                       move the data.. ??<br>
&gt;                       Hi,<br>
&gt;<br>
&gt;                       You would have to do that inside the guest…the<br>
&gt;         same way as<br>
&gt;                  you would<br>
&gt;                       do it on real hardware…mount both disks, move the<br>
&gt;         relevant data<br>
&gt;                       not trivial and not automated<br>
&gt;<br>
&gt;                        &gt;<br>
&gt;                        &gt; Another question is there any way to mount the<br>
&gt;         img like<br>
&gt;                  i will<br>
&gt;                       create the VM with blank template with my<br>
&gt;         preferred disk<br>
&gt;                  size and<br>
&gt;                       leter on install the OS through any OS template<br>
&gt;         ??? i know<br>
&gt;                  i can<br>
&gt;                       install the OS through CD-ISO but i don&#39;t want the<br>
&gt;         manual<br>
&gt;                  installation…<br>
&gt;<br>
&gt;                       so you want to have a preinstalled OS…so how did<br>
&gt;         you want<br>
&gt;                  to use it?<br>
&gt;                       I probably don&#39;t understand what are you trying to<br>
&gt;         achieve.<br>
&gt;                       Anything else than having a Template with OS and<br>
&gt;         you deploy<br>
&gt;                  VMs from<br>
&gt;                       that….you need to change disk sizes for each such<br>
&gt;         VM? Could<br>
&gt;                  it be<br>
&gt;                       done by adding an additional disk?<br>
&gt;<br>
&gt;                       Thanks,<br>
&gt;                       michal<br>
&gt;<br>
&gt;                        &gt;<br>
&gt;                        &gt; Thanks,<br>
&gt;                        &gt; Punit<br>
&gt;                        &gt;<br>
&gt;                        &gt;<br>
&gt;                        &gt; On Tue, Aug 26, 2014 at 5:51 PM, Michal Skrivanek<br>
&gt;                       &lt;<a href="mailto:michal.skrivanek@redhat.com" target="_blank">michal.skrivanek@redhat.com</a><br>
&gt;         &lt;mailto:<a href="mailto:michal.skrivanek@redhat.com" target="_blank">michal.skrivanek@redhat.com</a>&gt;<br>
&gt;                  &lt;mailto:<a href="mailto:michal.skrivanek@" target="_blank">michal.skrivanek@</a>__<a href="http://redhat.com" target="_blank">redhat.com</a><br>
&gt;         &lt;mailto:<a href="mailto:michal.skrivanek@redhat.com" target="_blank">michal.skrivanek@redhat.com</a>&gt;&gt;<br>
&gt;                  &lt;mailto:<a href="mailto:michal.skrivanek@" target="_blank">michal.skrivanek@</a><br>
&gt;         &lt;mailto:<a href="mailto:michal.skrivanek@" target="_blank">michal.skrivanek@</a>&gt;__<a href="http://red__hat.com" target="_blank">red__hat.com</a> &lt;<a href="http://redhat.com" target="_blank">http://redhat.com</a>&gt;<br>


&gt;<br>
&gt;<br>
&gt;                  &lt;mailto:<a href="mailto:michal.skrivanek@" target="_blank">michal.skrivanek@</a>__<a href="http://redhat.com" target="_blank">redhat.com</a><br>
&gt;         &lt;mailto:<a href="mailto:michal.skrivanek@redhat.com" target="_blank">michal.skrivanek@redhat.com</a>&gt;&gt;&gt;&gt;<br>
&gt;<br>
&gt;                       wrote:<br>
&gt;                        &gt;<br>
&gt;                        &gt; On Aug 26, 2014, at 05:26 , Punit Dambiwal<br>
&gt;                  &lt;<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a> &lt;mailto:<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a>&gt;<br>
&gt;         &lt;mailto:<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a> &lt;mailto:<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a>&gt;&gt;<br>
&gt;                       &lt;mailto:<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a><br>
&gt;         &lt;mailto:<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a>&gt; &lt;mailto:<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a><br>
&gt;         &lt;mailto:<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a>&gt;&gt;&gt;&gt; wrote:<br>
&gt;                        &gt;<br>
&gt;                        &gt; &gt; Hi All,<br>
&gt;                        &gt; &gt;<br>
&gt;                        &gt; &gt; I have some questions regarding the VM deployment<br>
&gt;                  through OS<br>
&gt;                       template...<br>
&gt;                        &gt; &gt;<br>
&gt;                        &gt; &gt; 1. I have imported centos template from openstack<br>
&gt;                  glance (the<br>
&gt;                       actual size of the template is 16GB but used is<br>
&gt;         1GB)...now my<br>
&gt;                       question is if i deploy the new VM with this<br>
&gt;         template,the<br>
&gt;                  process<br>
&gt;                       will copy the whole 16GB or just 1 GB to create<br>
&gt;         the new VM ??<br>
&gt;                        &gt;<br>
&gt;                        &gt; if you deploy with thin provisioned disks it<br>
&gt;         should be 1GB<br>
&gt;                        &gt;<br>
&gt;                        &gt; &gt;<br>
&gt;                        &gt; &gt; 2. I find disk size can not modify at the<br>
&gt;         time of VM<br>
&gt;                       provisioning,is there any way to modify the VM<br>
&gt;         disk size ??<br>
&gt;                        &gt;<br>
&gt;                        &gt; well, not really, AFAIK.<br>
&gt;                        &gt; create another disk, move your data, remove the<br>
&gt;         original.<br>
&gt;                        &gt; Or create a bigger thin provisioned disk at the<br>
&gt;         beginning<br>
&gt;                        &gt;<br>
&gt;                        &gt; &gt;<br>
&gt;                        &gt; &gt; Thanks,<br>
&gt;                        &gt; &gt; Punit<br>
&gt;                        &gt; &gt;<br>
&gt;                        &gt; &gt;<br>
&gt;                        &gt; &gt; On Mon, Aug 25, 2014 at 5:42 PM, Punit Dambiwal<br>
&gt;                       &lt;<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a> &lt;mailto:<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a>&gt;<br>
&gt;         &lt;mailto:<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a> &lt;mailto:<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a>&gt;&gt;<br>
&gt;                  &lt;mailto:<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a> &lt;mailto:<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a>&gt;<br>
&gt;<br>
&gt;         &lt;mailto:<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a> &lt;mailto:<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a>&gt;&gt;&gt;&gt; wrote:<br>
&gt;                        &gt; &gt; Hi All,<br>
&gt;                        &gt; &gt;<br>
&gt;                        &gt; &gt; I have some questions regarding the VM deployment<br>
&gt;                  through OS<br>
&gt;                       template...<br>
&gt;                        &gt; &gt;<br>
&gt;                        &gt; &gt; 1. I have imported centos template from openstack<br>
&gt;                  glance (the<br>
&gt;                       actual size of the template is 16GB but used is<br>
&gt;         1GB)...now my<br>
&gt;                       question is if i deploy the new VM with this<br>
&gt;         template,the<br>
&gt;                  process<br>
&gt;                       will copy the whole 16GB or just 1 GB to create<br>
&gt;         the new VM ??<br>
&gt;                        &gt; &gt;<br>
&gt;                        &gt; &gt; 2. I find disk size can not modify at the<br>
&gt;         time of VM<br>
&gt;                       provisioning,is there any way to modify the VM<br>
&gt;         disk size ??<br>
&gt;                        &gt; &gt;<br>
&gt;                        &gt; &gt; Thanks,<br>
&gt;                        &gt; &gt; Punit<br>
&gt;                        &gt; &gt;<br>
&gt;                        &gt;<br>
&gt;                        &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>