Hi Michael,<br><br>Thanks for your reply.<br><br>Another thing I would like to know is whether it uses snapshot mechanism over time.<br>I mean how does the copy on write functionality works. Does it keep the diff snapshots over time ( or something else ).<br>
And does the diff work at the level of file or block level?<br><br>What is the format that the image is converted to after it is fetched from glance.<br><br>I am fairly new to openstack.<br>Can you point me to the specific files in the code where all these things are coded. I want to know the details of the<br>
present state.<br><br>Thanks again for your help.<br><br>Regards,<br>Gaurab<br><br><div class="gmail_quote">On Sat, Jul 28, 2012 at 11:52 AM, Michael Still <span dir="ltr"><<a href="mailto:michael.still@canonical.com" target="_blank">michael.still@canonical.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="im">On 28/07/12 05:42, Gaurab Basu wrote:<br>
> Hi,<br>
><br>
> I am trying to figure out the technology that openstack uses when<br>
</div>> multiple VM's having the*same *base image (OS) are provisioned on a<br>
<div class="im">> physical server.<br>
> Does it use as many copy as the number of VM's or does it use the same<br>
> base image and then copy on write.<br>
><br>
> I need to understand the complete details. Can anybody share some<br>
> details or point me to some place where I can find the details.<br>
<br>
</div>Its pretty hard to provide a complete description of what happens,<br>
because the code keeps changing. However, assuming you have copy on<br>
write turned on (which is the default IIRC), and assuming that all of<br>
the instances have the same disk size, then you end up with:<br>
<br>
 - the image as fetched from glance, with possible format conversion<br>
 - that image resized to the size the instance requested<br>
 - a cow on write layer for each instance that is using that sized image<br>
<br>
The first should be smallish, the second can be quite large, and the<br>
third will really depend on how much writing the instances are doing.<br>
<br>
Note that this all falls apart if instances are migrated, because as<br>
part of the migration the copy on write layer is transformed into a full<br>
disk image, which is what is shipped over to the new machine.<br>
<br>
Hope this helps,<br>
Mikal<br>
<br>
</blockquote></div><br><br>