Platform LSF Reference Version 6.2
bsub
Platform LSF Reference
154
successfully. bsub will exit with the same exit code as the job so that job scripts can take
appropriate actions based on the exit codes.
bsub exits with value 126 if the job was
terminated while pending.
You cannot use the
-K option with the -I, -Ip, or -Is options.
-N
Sends the job report to you by mail when the job finishes. When used without any other
options, behaves the same as the default.
Use only with
-o, -oo, -I, -Ip, and -Is options, which do not send mail, to force LSF
to send you a mail message when the job is done.
-r
If the execution host becomes unavailable while a job is running, specifies that the job
will rerun on another host. LSF requeues the job in the same job queue with the same
job ID. When an available execution host is found, reruns the job as if it were submitted
new, even if the job has been checkpointed. You receive a mail message informing you
of the host failure and requeuing of the job.
If the system goes down while a job is running, specifies that the job will be requeued
when the system restarts.
Reruns a job if the execution host or the system fails; it does not rerun a job if the job
itself fails.
Members of a chunk job can be rerunnable. If the execution host becomes unavailable,
rerunnable chunk job members are removed from the queue and dispatched to a
different execution host.
Interactive jobs (
bsub -I) cannot be rerunnable.
-x
Puts the host running your job into exclusive execution mode.
In exclusive execution mode, your job runs by itself on a host. It is dispatched only to a
host with no other jobs running, and LSF does not send any other jobs to the host until
the job completes.
To submit a job in exclusive execution mode, the queue must be configured to allow
exclusive jobs.
When the job is dispatched,
bhosts(1) reports the host status as closed_Excl, and
lsload(1) reports the host status as lockU.
Until your job is complete, the host is not selected by LIM in response to placement
requests made by
lsplace(1), lsrun(1) or lsgrun(1) or any other load sharing
applications.
You can force other batch jobs to run on the host by using the
-m host_name option of
brun(1) to explicitly specify the locked host.
You can force LIM to run other interactive jobs on the host by using the
-m host_name
option of
lsrun(1) or lsgrun(1) to explicitly specify the locked host.