Executing the AWS enablement script for LSF

Before you begin

LSF should already be installed on an AWS AMI and already installed on the on-premise management host.

Before updating LSF configuration for resource connector, you must apply the latest LSF Fix Pack, manually move the required configuration files to the appropriate directory under LSF_TOP/conf/resource_connector/<provider_name>/conf, and change the ownership of those new files and directories to the cluster administrator.

For more information about applying Fix Packs to LSF resource connector, see Use the LSF fix installer to update resource connector.

The LSB_RC_EXTERNAL_HOST_FLAG parameter in the lsf.conf enables the resource connector feature. The value of the parameter must be set to a Boolean resource name in the lsf.shared file to identify borrowed hosts, for example, LSB_RC_EXTERNAL_HOST_FLAG=conductorhost for borrowing through EGO.

You must make sure that the module schmod_demand is enabled in the PluginModule section of the lsb.modules file (it is commented out in the file at installation by default).

Fast path: If you use the aws_enable.sh script and the aws_enable.config file to automate AWS setup, the schmod_demand plug in is uncommented in the lsb.modules file.

About this task

Fast path: For AWS resources only, you can use the aws_enable.sh script and the aws_enable.config file to automate AWS setup for steps 3 to 8. The steps for using the aws_enable.sh script are described in the aws_enable.config file. After installation, the aws_enable.sh and aws_enable.config files are located in <LSF_TOP>/lsf_version/install.

To use the aws_enable.sh script, follow these steps.

Procedure

  1. Source the LSF profile (for example, <LSF_TOP>/conf/profile.lsf).
  2. Edit the <LSF_TOP>/<LSF_VERSION>/install/aws_enable.config file to configure the installation parameters.
  3. Run ./aws_enable.sh -f aws_enable.config.

    If live configuration in LSF is enabled, the lsb.queues and lsf.cluster.cluster_name under the LSF_LIVE_CONFDIR directory is updated by the aws_enable.sh script.

    Note: To disable the LSF resource connector for AWS after you run the aws_enable.sh script, comment out or remove the line in the lsf.conf where the AWS host resource is defined (in the LSB_RC_EXTERNAL_HOST_FLAG=awshost parameter).