IBM Support

LSF Job File

Question & Answer


Question

What's the LSF job file?

Answer

The job file contains job command and user environment variables which will be used by the job itself when it runs on execution host.


How is the job file named?

    <EpochJobSubmissionTimeStamp>.<jobID> ex. 1464190108.101

What process is responsible for its creation?
    The root sbatchd on the execution host forks a child sbatchd to setup job environment and create the job file after it receives a job dispatched by mbatchd.

When and what removes the job file?
    The root sbatchd on the execution host forks a child sbatchd to clean up the job file when the job finishes.

Where is the job file location?
    The JOB_SPOOL_DIR defined in lsb.params.
    If the JOB_SPOOL_DIR is not defined, LSF creates the job file to the below directories by default:
    • For non-root user, the job file is created under the /home/user/.lsbatch/
    • For root, the job file is created under the /root/.lsbatch/

What happened if the file does not exist?
    If the job file doesn't exit when the job res starts to use it, then the job exits with code 127 which means Command Not Found.

[{"Product":{"code":"SSETD4","label":"Platform LSF"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF016","label":"Linux"}],"Version":"Version Independent","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
17 June 2018

UID

isg3T1023909