Use lsb_mig() to migrate a job from one host to another.
If the call fails, (**askedHosts)[*badHostIdx] is not a host known to the LSF system.
lsf.batch.h defines the struct submig to hold the details of the job to be migrated. It has the following fields:
struct submig {LS_LONG_INT jobId; Job ID to be migratedint options;int numAskedHosts; Number of hosts supplied for migrationchar **askedHosts; Array of pointers to the hosts};
For the values of options, see the options field of struct submit used in lsb_submit() function call.
On success, lsb_mig() returns 0. On failure, it returns -1 and sets lsberrno to the usual error.