lsb.reasons
The lsb.reasons file allows for individual configuration of pending reason messages. This enables administrators to make messages clear and may inform users on which action they may take to allow the job to run. Messages may be customized for one or more pending reasons as well as priority given to particular resources.
This file is optional. It is installed by default in config/lsbatch/<cluster_name>/configdir/lsb.reasons.
After making any changes to lsb.reasons, run badmin reconfig
#INCLUDE
Syntax
#INCLUDE "path-to-file"
Description
Inserts a configuration setting from another file to the current location. Use this directive to dedicate control of a portion of the configuration to other users or user groups by providing write access for the included file to specific users or user groups, and to ensure consistency of configuration file settings in different clusters (if you are using the LSF multicluster capability).
For more information, see Shared configuration file content.
#INCLUDE can be inserted anywhere in the local configuration file.
Default
Not defined.
CustomPendingReason section
Configurable message for one or more pending reasons
In the lsb.reasons configuration file, each CustomPendingReason section may be configured with a message to describe one or more pending reason messages. The pending reason messages are identified with a REASON_ID number. All pending reasons and their associated ID numbers are included at the end of the lsb.reasons file. Both main reasons and host pending reasons can be specified in the REASON_ID list.
Begin CustomPendingReason
REASON_ID=1603 1604 1605 1606
MESSAGE=There is something wrong with the allocated host, ∖
try another with bmod -m 'host (group) list'
End CustomPendingReason
In
this case, if a job is pending for any of the reasons listed in REASON_ID, the user gets a pending
reason message telling them to specify another host.Configurable message and priority for a particular resource
Begin CustomPendingReason
RESOURCE=emu_a
MESSAGE=No type A emulators available
PRIORITY=107
End CustomPendingReason
Begin CustomPendingReason
RESOURCE=lic_a
MESSAGE=No license for SimWorkBench
PRIORITY=10
End CustomPendingReason
Begin CustomPendingReason
RESOURCE=gpu
MESSAGE=All GPUs are in use
PRIORITY=5
End CustomPendingReason
Interaction
A custom message for a resource takes priority over a custom message for pending reason.
Support for the LSF multicluster capability
When using the LSF multicluster capability, if both the submission cluster and the execution cluster have a custom pending reason message configured, the message is shown according to the submission cluster configuration. If both the submission cluster and the execution cluster have priority for a resource configured, the priority of the resource in the execution cluster applies to the selection of the single reason.