Categories

ID #1385

How to live migrate CoD clusters in Bright OpenStack

For the purpose of this document the following is required :


  1. All the hypervisors are of a homogeneous nature ( the same cpu, arch, type and model )

  2. All virtual machines are volume backed, since we are not going to do live block migration.

  3. Bright OpenStack 7.3 or 8.0 is installed.

  4. The instances being migrated does not have SR-IOV ports.



To get a list of all hypervisors :


#nova hypervisor-list


To identify virtual machines running on a hypervisor :


#nova hypervisor-servers <node>


To disable the hypervisor from being scheduled any virtual machines :


#nova service-disable --reason "Host is drained" <node> nova-compute


To live evacuate all instances in a host :


nova host-evacuate-live <node>


To live migrate an instance from one host to another host :


#nova live-migration <instance id> <node>


To verify that the machine has been migrated :


  1. If you are evacuating a hypervisor, you need to make sure that the following list is empty:
    #nova hypervisor-servers <node>

  2. If you are migrating only a single instance :
    #openstack server show <instance-id> | grep host





Note :


  1. Do not perform the following step till you verify that your machines have been migrated.

  2. Do not perform following step if you have any virtual machines on that host that you want to keep alive.

To disable starting any OpenStack services on the node :


#cmsh ; device ; use <node> ; set useexclusivelyfor hpc ; commit


To enable the node once more :


#cmsh ; device ; use <node> ; clear useexclusivelyfor ; commit



#nova service-enable --reason "Host is back" <node> nova-compute


To verify that the migration has been completed


Tags: -

Related entries:

You cannot comment on this entry