<div dir="ltr"><div>Hi Martinx,</div><div>currently nova only supports "fallocate" to preallocate space.</div><div>Use the confirmation option "preallocate_images=space".</div><div><br></div><div>"preallocation=metadata" is mentioned in </div>
<div><a href="https://blueprints.launchpad.net/nova/+spec/preallocated-images">https://blueprints.launchpad.net/nova/+spec/preallocated-images</a></div><div>as future work.</div><div><br></div><div>Belmiro</div><div><br></div>
<div>-----------------------</div><div>Belmiro Moreira</div><div>CERN</div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jul 12, 2014 at 3:04 AM, Martinx - ジェームズ <span dir="ltr"><<a href="mailto:thiagocmartinsc@gmail.com" target="_blank">thiagocmartinsc@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">When I said "which is slower", I meant that it makes that running Instance slower later... With preallocatoin=metadata, the running instances will be a bit faster without losing storage space with lots of zeros...<div>
<br></div><div>My /var/lib/nova/insntances subdir in a XFS File System on top of a hardware RAID...<div><div class="h5"><br><div class="gmail_extra"><br><div class="gmail_quote">On 11 July 2014 20:54, Martinx - ジェームズ <span dir="ltr"><<a href="mailto:thiagocmartinsc@gmail.com" target="_blank">thiagocmartinsc@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Guys,<div><br></div><div> How can I configure the Compute Node, to create its qcow2 images, using preallocation?</div>
<div><br></div><div> Currently, OpenStack Nova Compute creates the instance image, using "qemu-img create" without passing the option "-o preallocation=metadata" to it, which is slower.</div>
<div><br></div><div> So, how can I reconfigure nova compute to make use of preallocation?!</div><div><br></div><div> Libvirt supports it, commits:</div><div><br></div><div> <a href="http://libvirt.org/git/?p=libvirt.git;a=commit;h=1c9a2fb1aef1729ac86cd6648b5c2b7584f5f698" target="_blank">http://libvirt.org/git/?p=libvirt.git;a=commit;h=1c9a2fb1aef1729ac86cd6648b5c2b7584f5f698</a><br>
</div><div><br></div><div> <a href="http://libvirt.org/git/?p=libvirt.git;a=commit;h=790dfee5eaf8600282da5a3d61bf807516f1b87e" target="_blank">http://libvirt.org/git/?p=libvirt.git;a=commit;h=790dfee5eaf8600282da5a3d61bf807516f1b87e</a><br>
</div><div><br></div><div>Tks!</div><div>Thiago</div></div>
</blockquote></div><br></div></div></div></div></div>
<br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div>