<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    hum ...<br>
    I tried the next case; shutdown one HV ..<br>
    <br>
    I shared DS 0 using HA NAS.<br>
    I got now:<br>
    Wed Aug 14 15:09:12 2013 [TM][D]: Message received: LOG I 77 Command
    execution fail: /var/lib/one/remotes/tm/shared/context
    /var/lib/one/vms/77/context.sh
    hostB:/var/lib/one//datastores/0/77/disk.1 77 0<br>
    <br>
    Wed Aug 14 15:09:12 2013 [TM][D]: Message received: LOG I 77
    context: Generating context block device at
    hostB:/var/lib/one//datastores/0/77/disk.1<br>
    <br>
    Wed Aug 14 15:09:12 2013 [TM][D]: Message received: LOG E 77
    context: Command "ln -s /var/lib/one/datastores/0/77/disk.1
    /var/lib/one/datastores/0/77/disk.1.iso" failed: ln: creating
    symbolic link `/var/lib/one/datastores/0/77/disk.1.iso': File exists<br>
    <br>
    Wed Aug 14 15:09:12 2013 [TM][D]: Message received: LOG E 77 Error
    creating ISO symbolic link<br>
    <br>
    Wed Aug 14 15:09:12 2013 [TM][D]: Message received: LOG I 77
    ExitCode: 1<br>
    <br>
    Wed Aug 14 15:09:12 2013 [TM][D]: Message received: TRANSFER FAILURE
    77 Error creating ISO symbolic link<br>
    <br>
    Wed Aug 14 15:09:12 2013 [ReM][D]: Req:8048 UID:0
    VirtualMachineAction invoked, "delete-recreate", 77<br>
    Wed Aug 14 15:09:12 2013 [ReM][D]: Req:4592 UID:0
    VirtualMachineAction invoked, "delete", 77<br>
    Wed Aug 14 15:09:12 2013 [DiM][D]: Finalizing VM 77<br>
    <br>
    This is logical, because disk.1.iso was created on hostA, then,
    retrying to restart VM 77 to hostB encounters an error, because file
    already exists ...<br>
    <br>
    The log was generated because I activated the hook to restart VMs on
    other HV ...<br>
     <br>
    Then, my VMs was deleted ...<br>
    <br>
    Best regards, <br>
    Nicolas<br>
    <br>
    <div class="moz-cite-prefix">Le 14/08/13 14:46, Jaime Melis a
      écrit :<br>
    </div>
    <blockquote
cite="mid:CA+HrgRpdPVQSTCxZLW2UOVVp_c2U5TujuMnEVM7u=CuaWuQS8g@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Nicolas,
        <div><br>
        </div>
        <div>it's more or less explicitely stated by this section:</div>
        <div><a moz-do-not-send="true"
href="http://opennebula.org/documentation:rel4.2:system_ds#host_configuration">http://opennebula.org/documentation:rel4.2:system_ds#host_configuration</a></div>
        <div><br>
        </div>
        <div>cheers,<br>
          Jaime</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Wed, Aug 14, 2013 at 7:54 AM,
          Nicolas Bélan <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:nicolas.belan@gmail.com" target="_blank">nicolas.belan@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Hum, that's not very
              clear in the doc.<br>
              I though that DS 0 was local to all ALL hypervisors ...<br>
              <br>
              Thank you<br>
              <br>
              <div>Le 14/08/13 13:51, Jaime Melis a écrit :<br>
              </div>
              <div>
                <div class="h5">
                  <blockquote type="cite">
                    <div dir="ltr">Hi Nicolas,
                      <div><br>
                      </div>
                      <div>/var/lib/one/datastores/0 should be shared
                        (using NFS for example) across all the hosts.</div>
                      <div><br>
                      </div>
                      <div>regards,<br>
                        Jaime</div>
                    </div>
                    <div class="gmail_extra"><br>
                      <br>
                      <div class="gmail_quote">On Mon, Aug 12, 2013 at
                        7:40 AM, Nicolas Bélan <span dir="ltr"><<a
                            moz-do-not-send="true"
                            href="mailto:nicolas.belan@gmail.com"
                            target="_blank">nicolas.belan@gmail.com</a>></span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div bgcolor="#FFFFFF" text="#000000"> Hello
                            the list,<br>
                            <br>
                            I am using OpenNebula 4.2 with a shared
                            (qcow2) storage + kvm.<br>
                            I am trying to livre migrate a vm from hostA
                            to hostB.<br>
                            It fails with the following message:<br>
                            <br>
                            Mon Aug 12 13:30:57 2013 [DiM][D]:
                            Live-migrating VM 45<br>
                            Mon Aug 12 13:30:57 2013 [ReM][D]: Req:656
                            UID:0 VirtualMachineMigrate result SUCCESS,
                            45<br>
                            Mon Aug 12 13:30:57 2013 [ReM][D]: Req:5920
                            UID:0 VirtualMachineInfo invoked, 45<br>
                            Mon Aug 12 13:30:57 2013 [ReM][D]: Req:5920
                            UID:0 VirtualMachineInfo result SUCCESS,
                            "<VM><ID>45</ID><UID>..."<br>
                            Mon Aug 12 13:30:57 2013 [VMM][D]: Message
                            received: LOG I 45 Successfully execute
                            transfer manager driver operation:
                            tm_premigrate.<br>
                            Mon Aug 12 13:30:58 2013 [VMM][D]: Message
                            received: LOG I 45 ExitCode: 0<br>
                            Mon Aug 12 13:30:58 2013 [VMM][D]: Message
                            received: LOG I 45 Successfully execute
                            network driver operation: pre.<br>
                            Mon Aug 12 13:30:58 2013 [VMM][D]: Message
                            received: LOG I 45 Command execution fail:
                            /var/tmp/one/vmm/kvm/migrate 'one-45'
                            'hostB' 'hostA' 45 hostB<br>
                            <br>
                            <b>Mon Aug 12 13:30:58 2013 [VMM][D]:
                              Message received: LOG E 45 migrate:
                              Command "virsh --connect qemu:///system
                              migrate --live one-45
                              qemu+ssh://hostB/system" failed: error:
                              cannot open file
                              '/var/lib/one//datastores/0/45/disk.0':
                              Aucun fichier ou dossier de ce type</b>
                            (tra: No such file or directory)<br>
                            <br>
                            Mon Aug 12 13:30:58 2013 [VMM][D]: Message
                            received: LOG E 45 Could not migrate one-45
                            to hostB<br>
                            Mon Aug 12 13:30:58 2013 [VMM][D]: Message
                            received: LOG I 45 ExitCode: 1<br>
                            Mon Aug 12 13:30:58 2013 [VMM][D]: Message
                            received: LOG I 45 Failed to execute
                            virtualization driver operation: migrate.<br>
                            Mon Aug 12 13:30:58 2013 [VMM][D]: Message
                            received: MIGRATE FAILURE 45 Could not
                            migrate one-45 to hostB<br>
                            <br>
                            As I understand, using a shared datastore,
                            One create a symlink to the real shared DS
                            into the DS 0 (for system images).<br>
                            But, It seems that on target hostB, the
                            symlink is not created before migration....<br>
                            Am I missing something ?<br>
                            <br>
                            Thank you<br>
                            <br>
                            Best regards,<br>
                            Nicolas.<br>
                          </div>
                          <br>
_______________________________________________<br>
                          Users mailing list<br>
                          <a moz-do-not-send="true"
                            href="mailto:Users@lists.opennebula.org"
                            target="_blank">Users@lists.opennebula.org</a><br>
                          <a moz-do-not-send="true"
                            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>
                      <div dir="ltr">Join us at <a
                          moz-do-not-send="true"
                          href="http://opennebulaconf.com/"
                          style="color:rgb(17,85,204)" target="_blank">OpenNebulaConf2013</a> in

                        Berlin, <span><span>24-26 September, 2013</span></span><br>
                        --
                        <div>Jaime Melis<br>
                          Project Engineer<br>
                          OpenNebula - The Open Source Toolkit for Cloud
                          Computing<br>
                          <a moz-do-not-send="true"
                            href="http://www.OpenNebula.org"
                            target="_blank">www.OpenNebula.org</a> | <a
                            moz-do-not-send="true"
                            href="mailto:jmelis@opennebula.org"
                            target="_blank">jmelis@opennebula.org</a></div>
                      </div>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div dir="ltr">Join us at <a moz-do-not-send="true"
            href="http://opennebulaconf.com/"
            style="color:rgb(17,85,204)" target="_blank">OpenNebulaConf2013</a> in
          Berlin, <span><span>24-26 September, 2013</span></span><br>
          --
          <div>Jaime Melis<br>
            Project Engineer<br>
            OpenNebula - The Open Source Toolkit for Cloud Computing<br>
            <a moz-do-not-send="true" href="http://www.OpenNebula.org"
              target="_blank">www.OpenNebula.org</a> | <a
              moz-do-not-send="true" href="mailto:jmelis@opennebula.org"
              target="_blank">jmelis@opennebula.org</a></div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>