Add a dynamic host in a shared file system environment

About this task

In a shared file system environment, you do not need to install LSF on each dynamic host. The master host will recognize a dynamic host as an LSF host when you start the daemons on the dynamic host.

Procedure

  1. In lsf.conf on the master host, define the parameter LSF_DYNAMIC_HOST_WAIT_TIME, in seconds, and assign a value greater than zero.

    LSF_DYNAMIC_HOST_WAIT_TIME specifies the length of time a dynamic host waits before sending a request to the master LIM to add the host to the cluster.

    For example:
    LSF_DYNAMIC_HOST_WAIT_TIME=60
  2. In lsf.conf on the master host, define the parameter LSF_DYNAMIC_HOST_TIMEOUT.
    LSF_DYNAMIC_HOST_TIMEOUT specifies the length of time (minimum 10 minutes) a dynamic host is unavailable before the master host removes it from the cluster. Each time LSF removes a dynamic host, mbatchd automatically reconfigures itself.
    Note:

    For very large clusters, defining this parameter could decrease system performance.

    For example:
    LSF_DYNAMIC_HOST_TIMEOUT=60m
  3. In lsf.cluster.cluster_name on the master host, define the parameter LSF_HOST_ADDR_RANGE.
    LSF_HOST_ADDR_RANGE enables security by defining a list of hosts that can join the cluster. Specify IP addresses or address ranges for hosts that you want to allow in the cluster.
    Note:

    If you define the parameter LSF_ENABLE_SUPPORT_IPV6 in lsf.conf, IP addresses can have either a dotted quad notation (IPv4) or IP Next Generation (IPv6) format; you do not have to map IPv4 addresses to an IPv6 format.

    For example:
    LSF_HOST_ADDR_RANGE=100-110.34.1-10.4-56

    All hosts belonging to a domain with an address having the first number between 100 and 110, then 34, then a number between 1 and 10, then, a number between 4 and 56 will be allowed access. In this example, no IPv6 hosts are allowed.

  4. Log on as root to each host you want to join the cluster.
  5. Source the LSF environment:
    • For csh or tcsh:
      source LSF_TOP/conf/cshrc.lsf
    • For sh, ksh, or bash:
      . LSF_TOP/conf/profile.lsf
  6. Do you want LSF to start automatically when the host reboots?
    • If no, go to the next step.

    • If yes, run the hostsetup command. For example:

      cd /usr/share/lsf/9.1/install
      ./hostsetup --top="/usr/share/lsf" --boot="y"

    For complete hostsetup usage, enter hostsetup -h.

  7. Use the following commands to start LSF:
    lsadmin limstartup
    lsadmin resstartup
    badmin hstartup