<div dir="ltr">Hi,<div><br></div><div>You can set cache if you are using the CLI, just create a disk attachment file</div><div><br></div><div>with</div><div><br></div><div>DISK = [ IMAGE_ID = #{image_id}, TARGET = #{target}, CACHE=default ]<br>
</div><div><br></div><div>or</div><div><br></div><div>DISK = [ IMAGE_ID = #{image_id}, DEV_PREFIX = #{bus}, CACHE=default ]<br></div><div><br></div><div>and then use it for onevm attachdisk. I agree, that it should probably honor the default in vmm_exec_kvm.conf. </div>
<div><br></div><div>I've filled an issue to improve this...</div><div><br></div><div><a href="http://dev.opennebula.org/issues/1737" target="_blank">http://dev.opennebula.org/issues/1737</a><br></div><div>
<br></div><div>Cheers</div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 23, 2013 at 1:07 PM, Rolandas Naujikas <span dir="ltr"><<a href="mailto:rolandas.naujikas@mif.vu.lt" target="_blank">rolandas.naujikas@mif.vu.lt</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm testing disks hotplug for kvm VMs and I found that there are no way to setup cache mode for such disks. I tried to put CACHE="none" to image template, but it is not used in attach_disk (tested with "rm -f "$ATTACH_FILE"" commented out).<br>
<br>
We have CACHE="none" default in vmm_exec_kvm.conf, because for virtio disks it is fast. CACHE=default is about one order slower.<br>
<br>
Regards, Rolandas Naujikas<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/<u></u>listinfo.cgi/users-opennebula.<u></u>org<br clear="all"><div><br></div>-- <br>Ruben S. Montero, PhD<br>
Project co-Lead and Chief Architect<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br></a><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula
</blockquote></div></div></div>