Add a host

Procedure

You use the lsfinstallcommand to add a host to an LSF cluster.

Add a host of an existing type using lsfinstall

About this task

Restriction:

lsfinstall is not compatible with clusters installed with lsfsetup. To add a host to a cluster originally installed with lsfsetup, you must upgrade your cluster.

Procedure

  1. Verify that the host type already exists in your cluster:
    1. Log on to any host in the cluster. You do not need to be root.
    2. List the contents of the LSF_TOP/9.1 directory and confirm there is already a subdirectory with the name of the host type.

      The default LSF_TOP/9.1 directory is /usr/share/lsf/9.1.

  2. Add the host information to lsf.cluster.cluster_name:
    1. Log on to the LSF master host as root.
    2. Edit LSF_CONFDIR/lsf.cluster.cluster_name, and specify the following in the Host section:
      • The name of the host.

      • The model and type, or specify! to automatically detect the type or model.

      • Specify 1 for LSF server or 0 for LSF client.

      Begin Host
      HOSTNAME  model  type      server  r1m  mem  RESOURCES  REXPRI
      hosta     !      SUNSOL6   1       1.0  4    ()         0
      hostb     !      SUNSOL6   0       1.0  4    ()         0
      hostc     !      HPPA1132  1       1.0  4    ()         0
      hostd     !      HPPA1164  1       1.0  4    ()         0
      End Host
    3. Save your changes.
  3. Run lsadmin reconfig to reconfigure LIM.
  4. Run badmin mbdrestart to restart mbatchd.
  5. Run hostsetup to set up the new host and configure the daemons to start automatically at boot from /usr/share/lsf/9.1/install:
    ./hostsetup --top="/usr/share/lsf" --boot="y"
  6. Start LSF on the new host:
    lsadmin limstartup
    lsadmin resstartup
    badmin hstartup
  7. Run bhosts and lshosts to verify your changes.

Add a host of a new type using lsfinstall

About this task

Restriction:

lsfinstall is not compatible with clusters installed with lsfsetup. To add a host to a cluster originally installed with lsfsetup, you must upgrade your cluster.

Procedure

  1. Verify that the host type does not already exist in your cluster:
    1. Log on to any host in the cluster. You do not need to be root.
    2. List the contents of the LSF_TOP/9.1 directory. The default is /usr/share/lsf/9.1. If the host type currently exists, there is a subdirectory with the name of the host type.
  2. Get the LSF distribution tar file for the host type you want to add.
  3. Log on as root to any host that can access the LSF install directory.
  4. Change to the LSF install directory. The default is
    /usr/share/lsf/9.1/install
  5. Edit install.config:
    1. For LSF_TARDIR, specify the path to the tar file. For example:
      LSF_TARDIR="/usr/share/lsf_distrib/9.1"
    2. For LSF_ADD_SERVERS, list the new host names that are enclosed in quotes and separated by spaces. For example:
      LSF_ADD_SERVERS="hosta hostb"
    3. Run ./lsfinstall -f install.config. This automatically creates the host information in lsf.cluster.cluster_name.
  6. Run lsadmin reconfig to reconfigure LIM.
  7. Run badmin reconfig to reconfigure mbatchd.
  8. Run hostsetup to set up the new host and configure the daemons to start automatically at boot from /usr/share/lsf/9.1/install:
    ./hostsetup --top="/usr/share/lsf" --boot="y"
  9. Start LSF on the new host:
    lsadmin limstartup
    lsadmin resstartup
    badmin hstartup
  10. Run bhosts and lshosts to verify your changes.