25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 39<br />

Job Email, and Job File Spooling<br />

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

Files<br />

About job file spooling<br />

Specifying job input files<br />

<strong>LSF</strong> enables spooling of job input, output, and command files by creating<br />

directories and files for buffering input and output for a job. <strong>LSF</strong> removes these<br />

files when the job completes.<br />

You can make use of file spooling when submitting jobs with the -is and -Zs<br />

options to bsub. Use similar options in bmod to modify or cancel the spool file<br />

specification for the job. Use the file spooling options if you need to modify or<br />

remove the original job input or command files before the job completes.<br />

Removing or modifying the original input file does not affect the submitted job.<br />

File spooling is not supported across MultiClusters.<br />

Use the bsub -i input_file and bsub -is input_file commands to get<br />

the standard input for the job from the file path name specified by input_file.<br />

The path can be an absolute path or a relative path to the current working<br />

directory. The input file can be any type of file, though it is typically a shell<br />

script text file.<br />

<strong>LSF</strong> first checks the execution host to see if the input file exists. If the file exists<br />

on the execution host, <strong>LSF</strong> uses this file as the input file for the job.<br />

If the file does not exist on the execution host, <strong>LSF</strong> attempts to copy the file<br />

from the submission host to the execution host. For the file copy to be<br />

successful, you must allow remote copy (rcp) access, or you must submit the<br />

job from a server host where RES is running. The file is copied from the<br />

submission host to a temporary file in the directory specified by the<br />

JOB_SPOOL_DIR parameter in lsb.params, or your $HOME/.lsbatch<br />

directory on the execution host. <strong>LSF</strong> removes this file when the job completes.<br />

The -is option of bsub spools the input file to the directory specified by the<br />

JOB_SPOOL_DIR parameter in lsb.params, and uses the spooled file as the<br />

input file for the job.<br />

Use the bsub -is command if you need to change the original input file<br />

before the job completes. Removing or modifying the original input file does<br />

not affect the submitted job.<br />

Unless you use -is, you can use the special characters %J and %I in the name<br />

of the input file. %J is replaced by the job ID. %I is replaced by the index of<br />

the job in the array, if the job is a member of an array, otherwise by 0 (zero).<br />

The special characters %J and %I are not valid with the -is option.<br />

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

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

Saved successfully!

Ooh no, something went wrong!