[one-users] Live migrate error, disk.0 does not exists at destination

Nicolas Bélan nicolas.belan at gmail.com
Wed Aug 14 06:15:06 PDT 2013


hum ...
I tried the next case; shutdown one HV ..

I shared DS 0 using HA NAS.
I got now:
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

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

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

Wed Aug 14 15:09:12 2013 [TM][D]: Message received: LOG E 77 Error
creating ISO symbolic link

Wed Aug 14 15:09:12 2013 [TM][D]: Message received: LOG I 77 ExitCode: 1

Wed Aug 14 15:09:12 2013 [TM][D]: Message received: TRANSFER FAILURE 77
Error creating ISO symbolic link

Wed Aug 14 15:09:12 2013 [ReM][D]: Req:8048 UID:0 VirtualMachineAction
invoked, "delete-recreate", 77
Wed Aug 14 15:09:12 2013 [ReM][D]: Req:4592 UID:0 VirtualMachineAction
invoked, "delete", 77
Wed Aug 14 15:09:12 2013 [DiM][D]: Finalizing VM 77

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 ...

The log was generated because I activated the hook to restart VMs on
other HV ...
 
Then, my VMs was deleted ...

Best regards,
Nicolas

Le 14/08/13 14:46, Jaime Melis a écrit :
> Hi Nicolas,
>
> it's more or less explicitely stated by this section:
> http://opennebula.org/documentation:rel4.2:system_ds#host_configuration
>
> cheers,
> Jaime
>
>
> On Wed, Aug 14, 2013 at 7:54 AM, Nicolas Bélan
> <nicolas.belan at gmail.com <mailto:nicolas.belan at gmail.com>> wrote:
>
>     Hum, that's not very clear in the doc.
>     I though that DS 0 was local to all ALL hypervisors ...
>
>     Thank you
>
>     Le 14/08/13 13:51, Jaime Melis a écrit :
>>     Hi Nicolas,
>>
>>     /var/lib/one/datastores/0 should be shared (using NFS for
>>     example) across all the hosts.
>>
>>     regards,
>>     Jaime
>>
>>
>>     On Mon, Aug 12, 2013 at 7:40 AM, Nicolas Bélan
>>     <nicolas.belan at gmail.com <mailto:nicolas.belan at gmail.com>> wrote:
>>
>>         Hello the list,
>>
>>         I am using OpenNebula 4.2 with a shared (qcow2) storage + kvm.
>>         I am trying to livre migrate a vm from hostA to hostB.
>>         It fails with the following message:
>>
>>         Mon Aug 12 13:30:57 2013 [DiM][D]: Live-migrating VM 45
>>         Mon Aug 12 13:30:57 2013 [ReM][D]: Req:656 UID:0
>>         VirtualMachineMigrate result SUCCESS, 45
>>         Mon Aug 12 13:30:57 2013 [ReM][D]: Req:5920 UID:0
>>         VirtualMachineInfo invoked, 45
>>         Mon Aug 12 13:30:57 2013 [ReM][D]: Req:5920 UID:0
>>         VirtualMachineInfo result SUCCESS, "<VM><ID>45</ID><UID>..."
>>         Mon Aug 12 13:30:57 2013 [VMM][D]: Message received: LOG I 45
>>         Successfully execute transfer manager driver operation:
>>         tm_premigrate.
>>         Mon Aug 12 13:30:58 2013 [VMM][D]: Message received: LOG I 45
>>         ExitCode: 0
>>         Mon Aug 12 13:30:58 2013 [VMM][D]: Message received: LOG I 45
>>         Successfully execute network driver operation: pre.
>>         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
>>
>>         *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* (tra: No such file or directory)
>>
>>         Mon Aug 12 13:30:58 2013 [VMM][D]: Message received: LOG E 45
>>         Could not migrate one-45 to hostB
>>         Mon Aug 12 13:30:58 2013 [VMM][D]: Message received: LOG I 45
>>         ExitCode: 1
>>         Mon Aug 12 13:30:58 2013 [VMM][D]: Message received: LOG I 45
>>         Failed to execute virtualization driver operation: migrate.
>>         Mon Aug 12 13:30:58 2013 [VMM][D]: Message received: MIGRATE
>>         FAILURE 45 Could not migrate one-45 to hostB
>>
>>         As I understand, using a shared datastore, One create a
>>         symlink to the real shared DS into the DS 0 (for system images).
>>         But, It seems that on target hostB, the symlink is not
>>         created before migration....
>>         Am I missing something ?
>>
>>         Thank you
>>
>>         Best regards,
>>         Nicolas.
>>
>>         _______________________________________________
>>         Users mailing list
>>         Users at lists.opennebula.org <mailto:Users at lists.opennebula.org>
>>         http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>>
>>
>>     -- 
>>     Join us at OpenNebulaConf2013 <http://opennebulaconf.com/> in
>>     Berlin, 24-26 September, 2013
>>     -- 
>>     Jaime Melis
>>     Project Engineer
>>     OpenNebula - The Open Source Toolkit for Cloud Computing
>>     www.OpenNebula.org <http://www.OpenNebula.org> |
>>     jmelis at opennebula.org <mailto:jmelis at opennebula.org>
>
>
>
>
> -- 
> Join us at OpenNebulaConf2013 <http://opennebulaconf.com/> in
> Berlin, 24-26 September, 2013
> -- 
> Jaime Melis
> Project Engineer
> OpenNebula - The Open Source Toolkit for Cloud Computing
> www.OpenNebula.org <http://www.OpenNebula.org> | jmelis at opennebula.org
> <mailto:jmelis at opennebula.org>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130814/6c671962/attachment-0002.htm>


More information about the Users mailing list