hostsetup example

The following example sets up a host to use the cluster installed in /usr/share/lsf. It also configures the LSF daemons to start automatically (--boot="y"):

#hostsetup --top="/usr/share/lsf" --boot="y"

Running host setup remotely (rhostsetup)

Use the rhostsetup script to launch hostsetup on remote hosts.

rhostsetup uses either ssh or rsh. It is included in the installation script tar file lsf7Update3_lsfinstall.tar.Z and is located in the lsf7Update3_lsfinstall directory created when you uncompress and extract installation script tar file.

After installation, rhostsetup is located in LSF_TOP/7.0/install/.

rhostsetup parameters

Before using rhostsetup, you must configure the following parameters at the top of the script:

LSF_RSHCMD—the remote shell command (e.g, rsh or ssh) accessing the remote host

LSF_HOSTS—list of hosts to run hostsetup on

LSF_TOPDIR—sets the hostsetup --topoption. Specify the full path to the top-level installation directory. rhostsetup tries to detect this from lsf.conf if it is not defined here.

LSF_BOOT—sets the hostsetup --bootoption. Default is no (n).

LSF_QUIET—sets the hostsetup --quietoption. Default is no (n).

Example rshostsetup configuration

LSF_RSHCMD="ssh -n"

LSF_HOSTS="hostA hostB hostC"

LSF_TOPDIR=/usr/local/ls

LSF_BOOT=y

LSF_QUIET=n

Options

-foption_file Name of the file containing the installation options. The file can be any name you choose. The name of the default template file for normal installation is install.config. To install slave hosts for dynamic host configuration, use the template file slave.config.

-sInstall a dynamic slave host.

Specify installation options in the slave.config file.

Required parameters:

LSF_SERVER_HOSTS="host_name [host_name ...]"

LSF_TOP="/path"

LSF_TARDIR="/path"

Platform LSF Command Reference 237