Hi,<div><br></div><div>Probably this is not very well explained in the documentation. Notes on premigrate/postmigrate:</div><div><br></div><div>1.- These scripts are to be executed before and after calling the live-migrate operation of the hypervisor</div>
<div><br></div><div>2.- The pre/post migrate scripts are place holders to put all the operations needed to work with the VM disks before/after the live-migration</div><div><br></div><div>3.- The scripts are not called for each DISK but just once for the whole VM. Within the scripts you can iterate over the disks.</div>
<div><br></div><div>4.- As the VM is running, it is homed in the system datastore, so the scripts invoked are those of the TM used by the system datastore (shared in your case)</div><div><br></div><div>As you suggest, in you case you just need to copy the pre/postmigrate scripts from the eqliscsi TM to the shared one.</div>
<div><br></div><div>Hope it is a bit clearer now</div><div><br></div><div>Cheers</div><div><br></div><div>Ruben<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 19, 2012 at 11:15 AM, Joaquin Villanueva <span dir="ltr"><<a href="mailto:jvillanueva@acb.es" target="_blank">jvillanueva@acb.es</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 text="#000000" bgcolor="#FFFFFF">
Hi all,<br>
<br>
After succesful update from 3.6 to 3.8.1, we're testing the
premigrate/postmigrate feature. We're using a shared system
datastore, and all the VM have iscsi volumes attached. The
premigrate feature is really useful for this scenario, letting us to
login into the iscsi volumes before migration without need for a
more complex setup involving qemu scripts at the hosts.<br>
<br>
We're using a modified version of the iscsi DATASTORE / TM drivers,
adapted to our Equallogic setup. These drivers are added to the
opennebula config as new driver (eqliscsi), and all the other
features run as expected.<br>
<br>
But there's some questions about the premigrate/postmigrate feature:<br>
<br>
- There's premigrate/postmigrate scripts at every TM driver, but the
only one called when doing a VM migration was the shared TM.<br>
- The eqliscsi TM premigrate scripts must be called from the shared
TM?<br>
- It's planed to call every premigrate script from every datastore
used inside the VM?<br>
<br>
I'm thinking in a scenario where one VM has different disks from
different datastores attached and need to do some operations
before/after migration. The premigrate/postmigrate scripts must be
called at least for every different TM driver needed.<br>
<br>
Maybe I'm mixing some concepts between datastore and tm drivers, but
some help to define the correct way to manage this scenario wil be
grealty appreciated.<br>
<br>
Best regards,<br>
<br>
<br>
<div>-- <br>
<p style="border-top-width:1px;border-top-style:solid;border-top-color:rgb(0,0,0)"><br>
</p>
<table style="border:none" cellpadding="0" cellspacing="0" width="408">
<tbody>
<tr>
<td colspan="4" width="408">
<p style="font-size:12pt"><b>Joaquín Villanueva Adrián</b></p>
</td>
</tr>
<tr>
<td colspan="4">
<p>Director Técnico <a href="http://ACB.COM" target="_blank">ACB.COM</a></p>
</td>
</tr>
<tr>
<td colspan="4" height="20"><br>
</td>
</tr>
<tr>
<td rowspan="8" width="56">
<p><a href="http://www.acb.com/" target="_blank"><img></a></p>
</td>
<td colspan="2">
<p><b>ASOCIACIÓN CLUBS DE BALONCESTO</b></p>
</td>
<td rowspan="8" width="72">
<p><a href="http://www.acb.com/" target="_blank"><img></a></p>
</td>
</tr>
<tr>
<td colspan="2" height="8"><br>
</td>
</tr>
<tr>
<td width="48">
<p>Tel</p>
</td>
<td>
<p><a href="tel:%2B34%20934%2017%2024%2004" value="+34934172404" target="_blank">+34 934 17 24 04</a></p>
</td>
</tr>
<tr>
<td>
<p>Móvil</p>
</td>
<td>
<p><a href="tel:%2B34%20678%2047%2038%2068" value="+34678473868" target="_blank">+34 678 47 38 68</a></p>
</td>
</tr>
<tr>
<td>
<p>Fax</p>
</td>
<td>
<p><a href="tel:%2B34%20934%2018%2023%2094" value="+34934182394" target="_blank">+34 934 18 23 94</a></p>
</td>
</tr>
<tr>
<td colspan="2" height="8"><br>
</td>
</tr>
<tr>
<td colspan="2">
<p><a href="http://www.acb.com/" target="_blank">www.acb.com</a></p>
</td>
</tr>
<tr>
<td colspan="2">
<p>Iradier, 37 - E 08017 - Barcelona</p>
</td>
</tr>
</tbody>
</table>
<p style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)"><br>
</p>
<p style="font-size:8pt"><span><i>Advertencia
de privacidad: Este mensaje y los documentos que en su caso
consten
como anexos, son confidenciales. Así pues, si lo reciben por
error,
les solicitamos nos lo comuniquen y se abstengan de realizar
copias
del mismo o entregarlo a otro destinatario. A los efectos de
la Ley
15/1999, de Protección de Datos de Carácter Personal, les
informamos que los datos de carácter personal que figuran en
esta
comunicación están incluidos en un fichero automatizado cuyo
responsable es ACB. Si desea ejercitar los derechos de
acceso,
rectificación, cancelación y oposición, diríjanse por
escrito a
la dirección de c/ Iradier, 37 - 08017 (Barcelona) o al
siguiente
correo electrónico: <a href="mailto:secretaria@acb.es" target="_blank">secretaria@acb.es</a></i></span></p>
<br>
<p style="font-size:8pt"><span lang="en-GB"><i>Privacy
warning: This message and any attachments are confidential.
Therefore, if you are not the intended addressee of this
message,
please delete it immediately without copying or forwarding
it and
inform the sender. For the purpose of the Law 15/1999, about
protection of personal data, we inform you that the personal
data
contained in this message are included in a database,
responsibility
of ACB. In order to access, rectify, cancel and opposite any
of these
data, please write to C/ Iradier, 37 - 08017 (Barcelona) or
to: <a href="mailto:secretaria@acb.es" target="_blank">secretaria@acb.es</a></i></span></p>
</div>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">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>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br><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<br>
</div></div>