About the LSF Integration for Rational ClearCase

Use the cleartool command to start a ClearCase view.

After the view is created, you are presented with a file system containing your sources and binaries. The file system is not accessible outside the view. The cleartool command has an option to start a view and run a command under the view.

Integration components

The LSF integration for ClearCase consists of the following daemon wrapper files in LSF_SERVERDIR:
daemons.wrap
Daemon wrapper for ClearCase on UNIX and Linux
daemons.wrap.exe
Daemon wrapper for ClearCase on Windows

The source code for the daemon wrapper is in the LSF examples directory, LSF_TOP/10.1/misc/examples/clearcase/daemons.wrap.c.

Retry the cleartool setview command if it fails

In the ClearCase daemon wrapper, the cleartool setview command creates a process that is set to a specified ClearCase view for sbatchd daemons. If the setview command fails, sbatchd cannot start and the job will fail or exit.

You can enable a retry mechanism to resolve failures with the cleartool setview command so that LSF can tolerate temporary cleartool setview command failures. To control setview retry, set both of the following parameters in the lsf.conf file:
  • The LSF_CLEARCASE_WRAPPER_RETRY parameter specifies the maximum number of times that daemon wrapper retries the setview command in case of failure.
  • The LSF_CLEARCASE_WRAPPER_RETRY_INTERVAL parameter specifies a time interval, in seconds, between retries.

After setting or changing the value of these parameters, run the badmin mbdrestart and bctrld restart sbd all commands to apply your changes

Debug ClearCase issues

To enable debugging of ClearCase issues, set the DAEMON_WRAP_DEBUG environment variable. When the DAEMON_WRAP_DEBUG environment variable is set to 1, the daemon wrapper captures and logs the ClearCase stdout and stderr streams to /tmp/daemons.wrap.log.