...
- During CloudStack upgrade operation, 'cloud'.'legacy_zones' table is populated. This table will legacy zones in cloudstack deployment.
- Migration support
- Existing CloudStack deployments with clusters from multiple DCs/vCenters require consolidation of clusters into single DC.
- Following are options to migrate VM across datacenters
- Cold migrate each of the instance to this new cluster in chosen DC.
- Hot migrate the VMs by using disconnecting all hosts from source cluster followed by deletion of source cluster from source DC and adding all hosts to cluster in target DC.
- Hot migrate the VMs after suspending the VMs. Need to power on (mean resume) VMs after migration is complete. This needs the virtual disks of VM to be placed on shared storage before triggering the migration operation.
- Pre-requisite checker tool - This tool should go through existing CloudStack deployment and VMware deployment to check if prerequisites are met. Following are list of prerequisites would be convered during upgrade to new version of product with this feature built-in,
- A CloudStack zone should encompass only 1 VMware DC
- The VMware DC encompassed by CloudStack zone should not be shared by multiple CloudStack deployments.
- Guidelines of CloudStack version upgrade
- Migration would be offline operation before CloudStack version upgrade operation.
- Prerequisite checker tool would be run as part of CloudStack upgrade
- Choice of migration procedure is above option 1.b.(ii) - migration of host across DC by disconnecting from cluster in source DC, followed by connecting it to target cluster in another DC. Following are detailed steps,
- Handle the case of clusters from multiple vCenter
- To be investigated.
- Handle the case of clusters from single vCenter but different DCs
- Handle the case of deployment using distributed virtual switch (Nexus 1000v or vDS)
- Deploy Nexus 1000v or vDS on target DC with same credentials (user/password)
- Ensure if 'cloud'.'virtual_supervisor_module' table has the new IP of Nexus 1000v VSM instance.
- Create all dvPortgroups required by VMs on the host that is moving across DCs. Make sure all properties of dvPortGroups are in sync, e.g. shaping policy should be same as that of original dvPortGroup in source DC. External switch configuration for trunking/routes is assumed to be taken care of by admin.
- Decide a DC as the final DC that contains all clusters.
- Create a cluster, in target DC, with same properties as that of original cluster
- Unmanage the cluster in CloudStack
- Disconnect each host in source cluster
- Remove each host from source cluster
- Add each host to target cluster
- Create all custom properties
- Each VM will have custom properties like cloud.nic.mask. This will be lost during above migration operations. Hence need to re-create after adding to target cluster
- Each template (user VM and system VM templates) will have custom properties like cloud.uuid. This need to be restored.
- Add the target cluster to CloudStack
- Make sure that guid field of 'cloud'.'host' table has the valid reference because when host is added to target cluster, it will acquire new unique reference.
- Make sure the field 'cloud'.'cluster'.'name' in database reflect new DC name in cluster name.
- Make sure the field 'cloud'.'cluster_details'.'url' in database reflect new DC name in cluster name.
Assumptions
- Sharing of resources (datastores, virtual switches like vDS, N1kv and ASA1kv etc.) with other entity (cloudstack or non-cloudstack entity) is not allowed.
- Cloudstack zone doesn't contain multiple hypervisors. A cloudstack zone will have only 1 hypervisor.
...
{"serverDuration": 350, "requestCorrelationId": "49dba41cab212bee"}