[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] [Solved] XCP 1.6 Storage XenMotion cannot move virtual disks between local SRs

On 3 Jan 2013, at 03:19, George Shuklin <george.shuklin@xxxxxxxxx> wrote:
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.

offline croos-pool migration is not supported, AFAIK. Sad, yep.
Yep, already found it in the list archive:
http://lists.xen.org/archives/html/xen-api/2012-11/msg00017.html :
"[...] but we don't provide an option to migrate a stopped guest. We're planning on making this work in the next release."

This is the reference of the manual process, based on XenServer Administration Guide "Section Copying Individual VDIs to a Different SR" :

xe vm-shutdown vm=<VM uuid | VM name>
xe vdi-copy uuid=<origin VDI uuid> sr-uuid=<target hosts's SR uuid>
# returns the new UUID for the storage on target host
xe vbd-list device=xvda vm-name-label=<migrating VM name, to filter results>
xe vbd-destroy uuid=<VBD before detach>
# not sure if the VDI still need to be deleted,
# VDB's default "other-config:owner=true" is supposed
# to trigger the removal of VDI just after the VBD
xe vm-param-set uuid=<VM uuid> affinity=<new host uuid>
xe vbd-create device=xvda bootable=true \
   vdi-uuid=<new VDI uuid> vm-uuid=<VM uuid>
# vdi attached to VM via a new VBD
xe vm-start vm=<VM uuid | VM name>

El 03/01/13 06:36, Rob Hoes escribió:
You should be able to perform an in-pool storage migration using
'xe vm-migrate', when you specify the
remote-master/remote-username/remote-password  parameters for the
master of the same pool. A bit weird, but it should work that way…
I confirm.
The same command that migrate VM between pools, works to migrate within the same pool. Remote master/username/password are still needed, even if the destination is within the same pool.

Xen is honoring it's name... Wonderful! XenCenter is cute, but I don't feel ready for marriage yet.

An upgrade from XenCenter 6.0 to to XenCenter 6.1 allowed me to do the migration to the other host within the same pool from GUI.

After upgrade, I also was able to move the detached disk from one host to another. Wondering, if that detached disk movement is the same as running vdi-copy and then vdi-destroy, or there is a more direct way.

Thank you.

Alexandre Kouznetsov

Xen-api mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.