25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

File Spooling for Job Input, Output, and Command Files<br />

Specifying a job command file (bsub -Zs)<br />

Use the bsub -Zs command to spool a job command file to the directory<br />

specified by the JOB_SPOOL_DIR parameter in lsb.params. <strong>LSF</strong> uses the<br />

spooled file as the command file for the job.<br />

Use the bmod -Zs command if you need to change the command file after the<br />

job has been submitted. Changing the original input file does not affect the<br />

submitted job. Use bmod -Zsn to cancel the last spooled command file and<br />

use the original spooled file.<br />

The bsub -Zs option is not supported for embedded job commands because<br />

<strong>LSF</strong> is unable to determine the first command to be spooled in an embedded<br />

job command.<br />

About the job spooling directory (JOB_SPOOL_DIR)<br />

If JOB_SPOOL_DIR is specified in lsb.params:<br />

◆ The job input file for bsub -is is spooled to<br />

JOB_SPOOL_DIR/lsf_indir. If the lsf_indir directory does not exist,<br />

<strong>LSF</strong> creates it before spooling the file. <strong>LSF</strong> removes the spooled file when<br />

the job completes.<br />

◆ The job command file for bsub -Zs is spooled to<br />

JOB_SPOOL_DIR/lsf_cmddir. If the lsf_cmddir directory does not exist,<br />

<strong>LSF</strong> creates it before spooling the file. <strong>LSF</strong> removes the spooled file when<br />

the job completes.<br />

The JOB_SPOOL_DIR directory should be a shared directory accessible from<br />

the master host and the submission host. The directory must be readable and<br />

writable by the job submission users.<br />

Except for bsub -is and bsub -Zs, if JOB_SPOOL_DIR is not accessible or<br />

does not exist, output is spooled to the default job output directory .lsbatch.<br />

For bsub -is and bsub -Zs, JOB_SPOOL_DIR must be readable and writable<br />

by the job submission user. If the specified directory is not accessible or does<br />

not exist, bsub -is and bsub -Zs cannot write to the default directory and<br />

the job will fail.<br />

If JOB_SPOOL_DIR is not specified in lsb.params:<br />

◆ The job input file for bsub -is is spooled to<br />

LSB_SHAREDIR/cluster_name/lsf_indir. If the lsf_indir directory<br />

does not exist, <strong>LSF</strong> creates it before spooling the file. <strong>LSF</strong> removes the<br />

spooled file when the job completes.<br />

◆ The job command file for bsub -Zs is spooled to<br />

LSB_SHAREDIR/cluster_name/lsf_cmddir. If the lsf_cmddir<br />

directory does not exist, <strong>LSF</strong> creates it before spooling the file. <strong>LSF</strong> removes<br />

the spooled file when the job completes.<br />

If you want to use job file spooling, but do not specify JOB_SPOOL_DIR, the<br />

LSB_SHAREDIR/cluster_name directory must be readable and writable by<br />

all the job submission users. If your site does not permit this, you must<br />

510<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!