<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hello,</tt><tt><br>
    </tt><tt><br>
    </tt><tt>We've started using a system datastore whith a shared
      storage in a clustered fs, so we could start testing the live
      migrate functionality. The live migrate is working as expected,
      but when testing the fault tolerance using the host_hook, we
      noticed the following error:</tt><tt><br>
    </tt><tt><br>
    </tt><tt>[TM][I]:  ln -s "/dev/vg-nebula/lv-one-144"
      "/var/lib/one/datastores/109/393/disk.0"" failed: ln: failed to
      create symbolic link `/var/lib/one/datastores/109/393/disk.0':
      File exists</tt><tt><br>
    </tt><tt>[TM][E]: Error linking /dev/vg-nebula/lv-one-144</tt><tt><br>
    </tt><tt><br>
    </tt><tt>I understand the error. When I kill one node and host_hook
      kicks in, being the storage shared between nodes, the symlinks to
      the images are already there.</tt><tt><br>
    </tt><tt><br>
    </tt><tt>My question is regarding the hook definition:</tt><tt><br>
    </tt><tt><br>
    </tt><tt>HOST_HOOK = [</tt><tt><br>
    </tt><tt>    name      = "error",</tt><tt><br>
    </tt><tt>    on        = "ERROR",</tt><tt><br>
    </tt><tt>    command   = "ft/host_error.rb",</tt><tt><br>
    </tt><tt>    arguments = "$ID -r",</tt><tt><br>
    </tt><tt>    remote    = "no" ]</tt><tt><br>
    </tt><tt><br>
      Is it possible to configure the hook to delete the VM, and
      afterwards creating it? We tried combining "-d" and "-r" flags but
      only one flag seems to be used.<br>
      <br>
      Thanks in advance.<br>
      <br>
      Regards,<br>
      <br>
    </tt>
    <div class="moz-signature">-- <br>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <style type="text/css">@media print{table{font: 6pt/7pt Times New Roman, serif !important;}span{font-size: 7pt !important;}img{width: 100px !important;}.pad{padding-top: 17px !important;}}</style>
      <div>
        <table border="0" cellpadding="0">
          <tbody>
            <tr>
              <td style="padding:.75pt .75pt .75pt .75pt">
                <p style="line-height:11.0pt"><span
                    style="font-size:9.0pt;color:#1F497D"> <img
                      src="cid:part1.09080902.09040508@reitoria.ulisboa.pt"
                      v:shapes="_x0000_i1025" height="165" width="170"></span><span
                    style="font-size:9.0pt;color:#1F497D"><o:p></o:p></span></p>
              </td>
              <td style="padding:.75pt .75pt .75pt .75pt" valign="top">
                <p style="margin-top:24.75pt;line-height:11.0pt"><span
                    style="font-family:"Times New
                    Roman","serif"">Nuno Serro</span><span
                    style="font-size:9.0pt;font-family:"Times New
                    Roman","serif""><br>
                    Coordenador<br>
                    Núcleo de Infraestruturas e Telecomunicações<br>
                    Departamento de Informática <br>
                    <br>
                    Alameda da Universidade  -  Cidade Universitária<br>
                    1649-004 Lisboa    PORTUGAL<br>
                    T. +351 210 443 566 - Ext. 19816<br>
                    E. <a href="mailto:nserro@reitoria.ulisboa.pt"><span
                        style="color:windowtext">nserro@reitoria.ulisboa.pt</span></a>
                    <br>
                    <a href="http://www.ulisboa.pt/"><span
                        style="color:windowtext">www.ulisboa.pt</span></a>
                  </span><span
                    style="font-size:9.0pt;font-family:"Times New
                    Roman","serif""><o:p></o:p></span></p>
              </td>
            </tr>
          </tbody>
        </table>
        <p><o:p> </o:p></p>
        <p><o:p> </o:p></p>
      </div>
    </div>
  </body>
</html>