Hi Grzegorz, Starting the migration from a shared-fs host to a host using ssh staging is doomed to failure since, as you said, the shared TM won't do anything as it is assuming that the target host shares the filesystem. This is documented nowhere (apologies about that, I've just opened a ticket to fix it [1]), but have in our roadmap a redesign of the image management system which I think will solve this issue.
Regards, -Tino [1] http://dev.opennebula.org/issues/1065 -- Constantino Vázquez Blanco, MSc Project Engineer OpenNebula - The Open Source Toolkit for Data Center Virtualization www.OpenNebula.org | @tinova79 | @OpenNebula On Sat, Dec 24, 2011 at 3:21 AM, Grzegorz Kocur <[email protected]> wrote: > Hi, > > Scenario: > Host A - uses tm_ssh, id 1 > Host B - uses tm_shared, id 2 > VM running on host A > > onevm migrate <vmid> 2 > and I have error: > > Sat Dec 24 04:42:26 2011 [VMM][D]: Message received: LOG I 1093 save: > Executed "virsh --connect qemu:///system save one-1093 > /var/lib/one//1093/images > /checkpoint". > Sat Dec 24 04:42:26 2011 [VMM][D]: Message received: LOG I 1093 ExitCode: 0 > Sat Dec 24 04:42:26 2011 [VMM][D]: Message received: SAVE SUCCESS 1093 - > Sat Dec 24 04:42:27 2011 [TM][D]: Message received: LOG I 1093 tm_mv.sh: > Will not move, source and destination are equal > Sat Dec 24 04:42:27 2011 [TM][D]: Message received: LOG I 1093 ExitCode: 0 > Sat Dec 24 04:42:27 2011 [TM][D]: Message received: TRANSFER SUCCESS 1093 - > Sat Dec 24 04:42:27 2011 [VMM][D]: Message received: LOG I 1093 Command > execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/restore" ]; then > /var/tmp/one/v > mm/kvm/restore /var/lib/one//1093/images/checkpoint phoenix 1093 phoenix; > else exit 42; fi' > Sat Dec 24 04:42:27 2011 [VMM][D]: Message received: LOG E 1093 restore: > Command "virsh --connect qemu:///system restore > /var/lib/one//1093/images/che > ckpoint" failed. > Sat Dec 24 04:42:27 2011 [VMM][D]: Message received: LOG E 1093 restore: > error: Failed to restore domain from /var/lib/one//1093/images/checkpoint > Sat Dec 24 04:42:27 2011 [VMM][D]: Message received: LOG I 1093 error: > Failed to create file '/var/lib/one//1093/images/checkpoint': No such file > or d > irectory > Sat Dec 24 04:42:27 2011 [VMM][D]: Message received: LOG E 1093 Could not > restore from /var/lib/one//1093/images/checkpoint > > IMO the problem is migration uses host B TM (shared), and doesn't scp disk > image and checkpoint to host B. > Is it a bug? Any workaround? > > > -- > Grzegorz Kocur > Ux Systems http://www.ux.pl/ > _______________________________________________ > Users mailing list > [email protected] > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org _______________________________________________ Users mailing list [email protected] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
