<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Just use sed and some bashing : <div><span class="Apple-tab-span" style="white-space:pre">    </span>virsh shutdown</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>virsh edit XXXXX</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>sed -> /var/lib/nova/instances -> /your/new/dir<span class="Apple-tab-span" style="white-space:pre">       </span></div><div><span class="Apple-tab-span" style="white-space:pre">     </span>cd /var/lib/nova/instances/</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>sed every libvirt.xml file</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>qemu img-convert -> /var/lib/nova/instances/_base/XXXX -f qcow2 -O /your/new/dir<span class="Apple-tab-span" style="white-space:pre"> </span></div><div><span class="Apple-tab-span" style="white-space:pre">     </span>cp /var/lib/nova/instances/instance-XXX/disk /your/new/dir</div><div>make a prayer then   :</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>virsh start everything</div><div><br></div><div><br></div><div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="color: rgb(0, 0, 0); font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; font-family: 'Lucida Grande'; border-spacing: 0px; -webkit-text-decorations-in-effect: none; "><span class="Apple-style-span" style="font-weight: normal; font-family: Helvetica; "><b style="color: rgb(19, 112, 138); ">Razique Mahroua</b></span><span class="Apple-style-span" style="font-weight: normal; font-family: Helvetica; color: rgb(19, 112, 138); "><b> - </b></span><span class="Apple-style-span" style="font-family: Helvetica; "><span class="Apple-style-span" style="font-weight: normal; font-family: Helvetica; "><b style="color: rgb(19, 112, 138); ">Nuage & Co</b></span><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; border-spacing: 0px; -webkit-text-decorations-in-effect: none; "><span class="Apple-style-span" style="border-collapse: separate; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="font-weight: normal; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; "><font class="Apple-style-span" color="#13708a"><a href="mailto:razique.mahroua@gmail.com">razique.mahroua@gmail.com</a></font></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; "><font class="Apple-style-span" color="#13708a">Tel : +33 9 72 37 94 15</font></div></span></span></span></span></span><br class="Apple-interchange-newline" style="color: rgb(0, 0, 0); font-family: Arial; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span><img height="125" width="125" id="2aebeec1-c5ce-4a33-a012-79c98bde879d" apple-width="yes" apple-height="yes" src="cid:0A2450C8-6A0D-42D0-8035-743CAD564432@fabrique.lan"></span>
</div>
<br><div><div>Le 15 mai 2013 à 15:36, "Mac Innes, Kiall" <<a href="mailto:kiall@hp.com">kiall@hp.com</a>> a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite">On 15/05/13 14:22, Daniel Ellison wrote:<br><blockquote type="cite">On May 15, 2013, at 9:08 AM, "Mac Innes, Kiall" <<a href="mailto:kiall@hp.com">kiall@hp.com</a>> wrote:<br><blockquote type="cite">Personally, I would make use of a bind mount[1] rather than trying to relocate..<br><br>A bind mount is just like a symlink, with the exception of AppArmor (and I presume SELinux) will handle it "correctly"..<br></blockquote>Ok, so I would move the entire /var/lib/nova directory to /home/storage, then do a bind mount back to /var/lib/nova? And that would require no config changes at all. Nice! Thanks for the tip, Kiall.<br><br>Regards,<br>Daniel<br></blockquote>Yup - Or, you could just bind mount /var/lib/nova/instances, leaving the<br>rest on the local disks (I have *no clue* if Nova will handle that<br>nicely.. But bind mounts certainly will ;))<br><br>I use them pretty heavily inside instances to transparently re-locate<br>data (e.g. MySQL DB's, /var/log etc) the the instances second disk.<br>Doing this with a symlink, or by updating my.cnf would require<br>additional AppArmor config changes for the relocation to work. Using a<br>bind mount get's past this issue..<br><br>Anyway - As always, read up and experiment before deciding to go to<br>production!<br><br>Thanks,<br>Kiall<br><br>_______________________________________________<br>Mailing list: <a href="https://launchpad.net/~openstack">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">https://launchpad.net/~openstack</a><br>More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br></blockquote></div><br></div></body></html>