Este contenido no está disponible en el idioma seleccionado.

7.8. Migrating VMs from an Overcloud Compute Node


In some situations, you might perform maintenance on an Overcloud Compute node. To prevent downtime, migrate the VMs on the Compute node to another Compute node in the Overcloud using the following procedures.
The director configures all Compute nodes to provide secure migration. All Compute nodes also require a shared SSH key to provide each host's nova user with access to other Compute nodes during the migration process. The director creates this key automatically.

Important

The latest update of Red Hat OpenStack Platform 7 includes patches required for live migration capabilities. The director's core template collection did not include this functionality in the initial release but is now included in the openstack-tripleo-heat-templates-0.8.6-135.el7ost package and later versions.
Update your environment to use the Heat templates from the openstack-tripleo-heat-templates-0.8.6-135.el7ost package or later versions.

Procedure 7.1. Migrating Virtual Machines from the Compute Node

  1. From the director, source the overcloudrc and obtain a list of the current Nova services:
    $ source ~/stack/overcloudrc
    $ nova service-list
    
    Copy to Clipboard Toggle word wrap
  2. Disable the nova-compute service on the node to migrate.
    $ nova service-disable [hostname] nova-compute
    
    Copy to Clipboard Toggle word wrap
    This prevents new VMs from being scheduled on it.
  3. Begin the process of migrating VMs off the node:
    $ nova host-servers-migrate [hostname]
    
    Copy to Clipboard Toggle word wrap
  4. The current status of the migration process can be retrieved with the command:
    $ nova migration-list
    
    Copy to Clipboard Toggle word wrap
  5. When migration of each VM completes, its state in Nova will change to VERIFY_RESIZE. This gives you an opportunity to confirm that the migration completed successfully, or to roll it back. To confirm the migration, use the command:
    $ nova resize-confirm [server-name]
    
    Copy to Clipboard Toggle word wrap
This migrates all VMs from a host. You can now perform maintenance on the host without any instance downtime. To return the host to an enabled state, run the following command:
$ nova service-enable [hostname] nova-compute
Copy to Clipboard Toggle word wrap
Volver arriba
Red Hat logoGithubredditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

Theme

© 2025 Red Hat