Platform LSF Administration Guide Version 6.2
File Spooling for Job Input, Output, and Command Files
Administering Platform LSF
582
Use the bmod -Zs command if you need to change the command file after the job has
been submitted. Changing the original input file does not affect the submitted job. Use
bmod -Zsn to cancel the last spooled command file and use the original spooled file.
The bsub -
Zs option is not supported for embedded job commands because LSF is
unable to determine the first command to be spooled in an embedded job command.
About the job spooling directory (JOB_SPOOL_DIR)
If JOB_SPOOL_DIR is specified in lsb.params:
◆
The job input file for bsub -is is spooled to JOB_SPOOL_DIR/lsf_indir. If
the
lsf_indir directory does not exist, LSF creates it before spooling the file.
LSF removes the spooled file when the job completes.
◆
The job command file for bsub -Zs is spooled to
JOB_SPOOL_DIR/lsf_cmddir. If the lsf_cmddir directory does not exist,
LSF creates it before spooling the file. LSF removes the spooled file when the job
completes.
The JOB_SPOOL_DIR directory should be a shared directory accessible from the
master host and the submission host. The directory must be readable and writable by
the job submission users.
Except for
bsub -is and bsub -Zs, if JOB_SPOOL_DIR is not accessible or does
not exist, output is spooled to the default job output directory
.lsbatch.
For
bsub -is and bsub -Zs, JOB_SPOOL_DIR must be readable and writable by
the job submission user. If the specified directory is not accessible or does not exist,
bsub -is and bsub -Zs cannot write to the default directory and the job will fail.
If JOB_SPOOL_DIR is not specified in
lsb.params:
◆
The job input file for bsub -is is spooled to
LSB_SHAREDIR/cluster_name/lsf_indir. If the lsf_indir directory
does not exist, LSF creates it before spooling the file. LSF removes the spooled file
when the job completes.
◆
The job command file for bsub -Zs is spooled to
LSB_SHAREDIR/cluster_name/lsf_cmddir. If the lsf_cmddir
directory does not exist, LSF creates it before spooling the file. LSF removes the
spooled file when the job completes.
If you want to use job file spooling, but do not specify JOB_SPOOL_DIR, the
LSB_SHAREDIR/cluster_name directory must be readable and writable by all the
job submission users. If your site does not permit this, you must manually create
lsf_indir and lsf_cmddir directories under LSB_SHAREDIR/cluster_name
that are readable and writable by all job submission users.
Modifying the job input file
Use the -i and -is options of bmod to specify a new job input file. The -in and -isn
options cancel the last job input file modification made with either
-i or -is.