<html><body><div style="font-family: trebuchet ms,sans-serif; font-size: 12pt; color: #000000"><div>Hi,<br></div><div><br></div><div>I've bypassed this for now by adding a line to "deploy" that says;</div><div><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">/var/lib/one/remotes/hooks/vdc/deploy.py $domain</span></div><div><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">#(just below cat > $domain)</span></div><div><br></div><div>And adding the python script;</div><div><p><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">#!/usr/bin/python</span></p><p><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">import xml.etree.ElementTree as ET</span><br><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">from sys import argv<br></span><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 12pt;">original = ET.parse(argv[1])<br></span><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 12pt;">params = original.findall(".//disk")<br></span><span style="font-size: 12pt; font-family: 'courier new', courier, monaco, monospace, sans-serif;">for p in params: </span><span style="font-size: 12pt; font-family: 'courier new', courier, monaco, monospace, sans-serif;">if p.get('device') == 'disk': p.insert(0,ET.Element("shareable",{}))<br></span><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 12pt;">original.write(argv[1])</span></p></div><div>This makes all devices of type "disk" shareable.</div><div><br></div><div>I *think* anyone using current versions of KVM/libvirt who want to do live migration will need this ... unless</div><div>they set "cache=none", which doesn't always do great things for your performance ...</div><div><br></div><div><br></div><div><span name="x"></span><div><div><span size="2" style="font-size: small;" data-mce-style="font-size: small;">--</span></div><div><table class="mceItemTable"><tbody><tr><td><img src="http://linuxforums.org.uk/index.php?action=dlattach;attach=262;type=avatar" data-mce-src="http://linuxforums.org.uk/index.php?action=dlattach;attach=262;type=avatar"></td><td><b style="font-family: verdana, Helvetica, sans-serif; font-size: 11px; line-height: 14px;" data-mce-style="font-family: verdana, Helvetica, sans-serif; font-size: 11px; line-height: 14px;">Gareth Bult</b><br><span color="#666666" style="color: #666666;" data-mce-style="color: #666666;"><span face="verdana, Helvetica, sans-serif" style="font-family: verdana, Helvetica, sans-serif;" data-mce-style="font-family: verdana, Helvetica, sans-serif;"><span style="font-size: 11px; line-height: 14px;" data-mce-style="font-size: 11px; line-height: 14px;">“The odds of hitting your target go up dramatically when you aim at it.”</span></span></span><span color="#666666" style="color: #666666;" data-mce-style="color: #666666;"><br></span><span color="#666666" style="color: #666666;" data-mce-style="color: #666666;"><br></span><span color="#666666" style="color: #666666;" data-mce-style="color: #666666;"><br></span></td></tr></tbody></table></div></div><span name="x"></span><br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Javier Fontan" <jfontan@opennebula.org><br><b>To: </b>"Gareth Bult" <gareth@linux.co.uk><br><b>Cc: </b>users@lists.opennebula.org<br><b>Sent: </b>Tuesday, 19 November, 2013 11:54:07 AM<br><b>Subject: </b>Re: [one-users] Setting the "SHAREABLE" attribute<br><div><br></div><div dir="ltr">Right now there is no way to set this value as the deployment file (libvirt xml file) is generated in the core and lacks this functionality.<div><br></div><div>We are evaluating the best way to fix. Adding a "raw" parameter for DISKS will be enough or would it be better to have also a default RAW section for all the disks?</div>
<div><br></div><div>There are more generic and maybe better ways to add this feature but we are really near to the 4.4 release and we are not sure if they can make the feature cut.</div><div><br></div><div>Cheers</div></div>
<div class="gmail_extra"><br><div><br></div><div class="gmail_quote">On Mon, Nov 18, 2013 at 11:57 AM, Gareth Bult <span dir="ltr"><<a href="mailto:gareth@linux.co.uk" target="_blank">gareth@linux.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:trebuchet ms,sans-serif"><div>Hi,</div><div><br></div><div>For the most recent versions of libvirt, in order to do a live migration with writethru cache turned</div><div>on, the "<SHAREABLE/>" attribute needs to be set in the DISK section of the configuration. "virt-manager"</div>
<div>has a tick box for this in it's disk setup section .. is there an easy way to implement this in OpenNebula?</div><div><br></div><div>tia</div><div><br></div><div><span></span><div><div><span style="font-size:small">--</span></div>
<div><span class="HOEnZb"><span color="#888888" data-mce-style="color: #888888;" style="color: #888888;"></span></span><table class="mceItemTable"><tbody><tr><td><img></td><td><b style="font-family:verdana,Helvetica,sans-serif;font-size:11px;line-height:14px">Gareth Bult</b><br><span style="color:#666666"><span style="font-family:verdana,Helvetica,sans-serif"><span style="font-size:11px;line-height:14px">“The odds of hitting your target go up dramatically when you aim at it.”</span></span></span><span style="color:#666666"><br>
</span><span style="color:#666666"><br></span><span style="color:#666666"><br></span></td></tr></tbody></table></div></div><span></span></div><div><br></div></div></div><br>_______________________________________________<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/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Javier Fontán Muiños<br>Developer<br>OpenNebula - The Open Source Toolkit for Data Center Virtualization<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @OpenNebula | <a href="http://github.com/jfontan" target="_blank">github.com/jfontan</a>
</div>
</div><div><br></div></div></body></html>