Hi Michael, <div><br></div><div>Could you send us the doc link? Thanks a lot.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 6, 2012 at 6:47 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 12/05/2012 06:59 PM, Marco CONSONNI wrote:<br>
<br>
> To be honest it seems like I missed something because, from your<br>
> investigation, the storage is kept under _base. Strange. I didn't know that.<br>
<br>
</div>Hi! The following description is libvirt specific. Bearing in mind that<br>
this code is a moving target and has been re-written at least three<br>
times in the last year [1], it works a bit like this...<br>
<br>
- you request an instance using a given image<br>
- that image is fetched to _base from glance (if its not already there)<br>
- that image is format converted if required, and then resized to the<br>
requested size<br>
- the instance disk image is a copy-on-write layer on top of that<br>
resized image in _base and is stored in the instance's directory<br>
- the instance is booted using the COW layer<br>
<br>
If another instance with the same image / disk size starts, it can short<br>
circuit the process and use the already existing image, which is cool.<br>
<br>
When an instance is terminated, the instance directory is removed, but<br>
files in _base remain.<br>
<br>
If you have image cache management turned on, then the files in _base<br>
are periodically cleaned up. The files in _base are also checksummed to<br>
try and detect file corruption, although that hasn't been the most loved<br>
feature ever implemented.<br>
<br>
Hope this helps,<br>
Michael<br>
<br>
1: Several times I have gone to write a blog post about how this works,<br>
and then realized the code has changed again.<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">Lei Zhang</span></div><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><br>

</span></div><div><font face="arial, sans-serif">Blog: <a href="http://jeffrey4l.github.com" target="_blank">http://jeffrey4l.github.com</a></font></div><div>twitter/weibo: @jeffrey4l</div><br>
</div>