<div dir="ltr">Hi Nuno,<div><br></div><div>What version of OpenNebula are you using?</div><div><br></div><div>Best,</div><div><br></div><div>-Tino</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div>--<br>

OpenNebula - Flexible Enterprise Cloud Made Simple<br><br>--<br>Constantino Vázquez Blanco, PhD, MSc<br>Senior Infrastructure Architect at C12G Labs<br><a href="http://www.c12g.com" target="_blank">www.c12g.com</a> | @C12G | <a href="http://es.linkedin.com/in/tinova" target="_blank">es.linkedin.com/in/tinova</a><br>

<br>--<br>Confidentiality Warning: The information contained in this e-mail and any accompanying documents, unless otherwise expressly indicated, is confidential and privileged, and is intended solely for the person and/or entity to whom it is addressed (i.e. those identified in the "To" and "cc" box). They are the property of C12G Labs S.L.. Unauthorized distribution, review, use, disclosure, or copying of this communication, or any part thereof, is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify us immediately by e-mail at <a href="mailto:abuse@c12g.com" target="_blank">abuse@c12g.com</a> and delete the e-mail and attachments and any copy from your system. C12G thanks you for your cooperation.</div>


<br><br><div class="gmail_quote">On 26 March 2014 17:29, Nuno Serro <span dir="ltr"><<a href="mailto:nserro@reitoria.ulisboa.pt" target="_blank">nserro@reitoria.ulisboa.pt</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


  

    
  
  <div 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>-- <br>
      
      
      <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" height="165" width="170"></span><span style="font-size:9.0pt;color:#1f497d"><u></u><u></u></span></p>


              </td>
              <td style="padding:.75pt .75pt .75pt .75pt" valign="top">
                <p style="margin-top:24.75pt;line-height:11.0pt"><span>Nuno Serro</span><span><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. <a href="tel:%2B351%20210%20443%20566" value="+351210443566" target="_blank">+351 210 443 566</a> - Ext. 19816<br>
                    E. <a href="mailto:nserro@reitoria.ulisboa.pt" target="_blank"><span style="color:windowtext">nserro@reitoria.ulisboa.pt</span></a>
                    <br>
                    <a href="http://www.ulisboa.pt/" target="_blank"><span style="color:windowtext">www.ulisboa.pt</span></a>
                  </span><span><u></u><u></u></span></p>
              </td>
            </tr>
          </tbody>
        </table>
        <p><u></u> <u></u></p>
        <p><u></u> <u></u></p>
      </div>
    </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></div>