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 40<br />

Non-Shared File Systems<br />

bsub -i<br />

> and then the < operation. The file local_file is<br />

copied to remote_file before the job executes, and remote_file is copied<br />

back, overwriting local_file, after the job completes. is the same as ><<br />

If the submission and execution hosts have different directory structures, you<br />

must ensure that the directory where remote_file and local_file will be<br />

placed exists. <strong>LSF</strong> tries to change the directory to the same path name as the<br />

directory where the bsub command was run. If this directory does not exist,<br />

the job is run in your home directory on the execution host.<br />

You should specify remote_file as a file name with no path when running in<br />

non-shared file systems; this places the file in the job’s current working<br />

directory on the execution host. This way the job will work correctly even if<br />

the directory where the bsub command is run does not exist on the execution<br />

host. Be careful not to overwrite an existing file in your home directory.<br />

bsub -o and bsub -e<br />

Example<br />

If the input file specified with bsub -i is not found on the execution host, the<br />

file is copied from the submission host using the <strong>LSF</strong> remote file access facility<br />

and is removed from the execution host after the job finishes.<br />

The output files specified with the -o and -e arguments to bsub are created<br />

on the execution host, and are not copied back to the submission host by<br />

default. You can use the remote file access facility to copy these files back to<br />

the submission host if they are not on a shared file system.<br />

For example, the following command stores the job output in the job_out file<br />

and copies the file back to the submission host:<br />

% bsub -o job_out -f "job_out data3" -f "/data/out3 < out3" myjob data3 out3<br />

To run the job batch_update, which updates the batch_data file in place,<br />

you need to copy the file to the execution host before the job runs and copy<br />

it back after the job completes:<br />

% bsub -f "batch_data " batch_update batch_data<br />

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

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

Saved successfully!

Ooh no, something went wrong!