...
To migrate an instance from a compute node to another one, you can use the "openstack server migrate" command with the '–block-migration' option, after having sourced the admin openrc script. E.g.:
Code Block |
---|
|
openstack server migrate --live cld-np-14.cloud.pd.infn.it --block-migration e1914906-7e33-4d30-88f0-785130fdd85d
|
This will live migrate the instance with uuid e1914906-7e33-4d30-88f0-785130fdd85d to the compute node cld-np-14.cloud.pd.infn.it.
The command doesn't work if source and target hypervisor aren't compatible. The error would be something like:
Code Block |
---|
Unacceptable CPU info: CPU doesn't have compatibility
|
In this case, please find another compatible hypervisor, or you can use cold migration (i.e. the VM will be powered off during the migration). E.g.:
Code Block |
---|
|
nova migrate e1914906-7e33-4d30-88f0-785130fdd85d --host cld-np-14.cloud.pd.infn.it
|
When the migration has been completed, the status of the server is "VERIFY_RESIZE". You will then need to confirm the operation:
Code Block |
---|
|
nova resize-confirm e1914906-7e33-4d30-88f0-785130fdd85d |
Related articles
Content by Label |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | CV |
---|
showSpace | false |
---|
sort | modified |
---|
reverse | true |
---|
type | page |
---|
cql | label in ("instance","migrate","vm") and type = "page" and space = "CV" |
---|
labels | migrate instance vm |
---|
|
...