Hello.
I have made more tests and got a successful migration using Storage
XenMotion. It happened only after I have removed the destination XCP
host from the actual pool, and moved it to a new one.
It seems like "destination-sr-uuid=" option is recognized correctly only
when a "remote-master=" and other connection details are specified. The
neighbor thread
http://lists.xen.org/archives/html/xen-api/2012-12/msg00162.html was
helpful. Yes, they fly between pools like magic. The option
"live=<false|true>" does not make any visible difference: a Debian VM
with default 8GB hdd and no activity pauses for around 2 seconds and my
shell connection to it is not lost, in both cases, "live=false" and
"live=true".
Still not clear how to migrate VM's in the following cases:
- When VM is not online (vm-migrate insists it should be "running").
- When origin and destination hosts are within the same pool.
The first operation seems to be achievable by detaching the storage,
changing the "home host" for the VM, copying the storage to the
destination host's SR (xenapi can do?), attach the storage back to the
VM on the new host. I hoped this could be done by a single instruction,
seems much less complicated operation than a online migration.
About the second one, I have no clue. vm-motion keeps complaining about
"You attempted to run a VM on a host which doesn't have access to an SR
needed by the VM". Am I supposed to always migrate the VM's to a
temporal host, and then to the real destination?
Thank you.
El 28/12/12 11:35, Alexandre Kouznetsov escribió:
Hello.
I have 2-nodes (xcp47 and xcp48 in my setup) XCP 1.6 pool, using only
local storage for VM's, and trying to move a VM "DebianStorage" from
xcp47 to xcp48. The nodes are physically identical, configured in the
same way and belongs to the same pool.
I'm trying to use xe vm-migrate, but unsuccessful:
[root@xcp47 ~]# xe vm-migrate vm=DebianStorage host=xcp48 \
destination-sr-uuid=f778b43b-4263-7883-e626-09997d711d60
Error: Unknown field 'destination-sr-uuid'
For reference, the parameter "destination-sr-uuid=" expands using <Tab>
while I type it, it's value does not. I have checked the uuid of the SR
on destination host, it is correct:
[root@xcp47 ~]# xe sr-list host=xcp48 content-type=user
uuid ( RO) : f778b43b-4263-7883-e626-09997d711d60
name-label ( RW): Local storage
name-description ( RW):
host ( RO): xcp48
type ( RO): lvm
content-type ( RO): user
I must add, that XenCenter does not allows me to move the VM
"DebianStorage" to the other storage, the menu option is grayed with the
legend "Cannot see required storage". Also, can't move the Virtual Disk,
even if I halt the machine and detach the Virtual Disk.
If I just omit "destination-sr-uuid=", XCP complains about power state
if the machine is halted, and if the machine is running it complains
about "access to an SR needed by the VM".
As I understand http://wiki.xen.org/wiki/Storage_XenMotion , it's
supposed to be possible, but since I'm new in XCP I can't tell if it's a
bug or I'm doing it wrong. My goal is to move the VM from one host to
another, using only local storage in both of them. Would be great to do
it online, but offline would work also.
Thank you.
--
Alexandre Kouznetsov
_______________________________________________
Xen-api mailing list
Xen-api@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api