and should not be used while AppRS jobs are running.
% apprs_clean all
For jobs submitted to non-AppRS queues, the user's job submission script should include
commands to remove files that are no longer needed when the job completes. In the event
that the job fails to run to completion it may be necessary to remove these files manually. To
find out what hosts the job executed on use the command:
% bhist -l <jobid>
Included in the output is the list of hosts that the job executed on and the working directory
used for execution. This information can be used to manually delete files from a job that was
unable to complete successfully.
References:
z
3.7.9 How do I access the Clusterware Pro V5.1 Command Line Interface?
Back to Top
2.3.5 Prepare application for checkpoint restart
Any job submitted to an AppRS enabled queue is restarted on a new set of hosts if:
z
Any host allocated to the job becomes unavailable or unreachable by the
other hosts while the job is executing.
z
The job is explicitly migrated using the LSF command bmig.
z
The user's job exits with exit code 3.
(For more information on exit values, see the HP Application ReStart User's Guide)
As long as an application can generate restart files and be restarted from those files, AppRS
will ensure that files marked as Highly Available are present when the application is
restarted. AppRS will requeue any application that exits with a status of either 2 or 3. If the
application (or script that invokes the application) should not be requeued, an exit status
other than 2 or 3 should be used.
A job submission script for a checkpoint/restart application should follow the example
in /opt/apprs/examples/job_template:
#!/bin/sh
#BSUB -n 2 # Number of processors requested
#BSUB -e test.stderr # Standard error file
#BSUB -o test.stdout # Standard output file
#BSUB -q normal_apprs
#APPRS INPUT # list input files separated by spaces
#APPRS HIGHLYVISIBLE # list HV (progress) files
#APPRS HIGHLYAVAILABLE # list HA (restart) files