LSF administrators may manually request a live migration of VM jobs from one hypervisor (the source hypervisor) to another hypervisor (the target hypervisor) by using the bmig command. The VM jobs remain running after the live migration. This is useful for removing running jobs from a hypervisor, for example, to prepare the hypervisor for maintenance.
To prevent other jobs from being dispatched onto the hypervisor being prepared for maintenance, keep the hypervisor closed by running the following command:
badmin hclose source_hypervisor_name
Manual live migration only applies to VM jobs running on the source hypervisor at the time of the live migration request. If the source hypervisor is a KVM hypervisor running both PM and VM jobs, only VM jobs are live-migrated. Manual live migration occurs after the scheduler finds space on a target hypervisor to place the VM jobs, and only the VM jobs that were running at the time of the request are actually live-migrated. In addition, a manual live migration only succeeds if there are available hypervisors to accept VM jobs.
To manually live migrate VM, run bmig with the -dc_vmaction livemigvm option:
bmig -dc_vmaction livemigvm [-M source_hypervisor_name]
Note that you cannot specify a target hypervisor using the -m option. The scheduler automatically finds any target hypervisor capable of hosting the VM jobs from the source hypervisor.
A manual live migration is not guaranteed, since there may not be available hypervisors to accept VM jobs, and there is no way to cancel a manual live migration once you requested it. You can set limits on the live migration request by specifying arguments in the -dc_vmaction livemigvm option:
-dc_vmaction "livemigvm[arguments]"
Specify any of the following optional arguments:
When using any of the optional arguments, separate multiple arguments with a colon, enclose the arguments in square brackets ([]), then enclose the entire livemigvm subcommand string in quotation marks.
For example,
bmig "livemigvm[wait_trigger_time=600:livemig_max_downtime=0:livemig_max_exectime=600]"