Adding a dynamic host in a shared file system environment
In a shared file system environment, you do not need to install LSF on each dynamic host. The management host will recognize a dynamic host as an LSF host when you start the daemons on the dynamic host.
Procedure
- In the lsf.conf configuration file on the
management host,
define the LSF_DYNAMIC_HOST_WAIT_TIME parameter, in seconds, and assign a value
greater than zero.
LSF_DYNAMIC_HOST_WAIT_TIME specifies how long a dynamic host waits before sending a request to the management host
LIM
to add the host to the cluster.For example:LSF_DYNAMIC_HOST_WAIT_TIME=60
- Define the LSF_DYNAMIC_HOST_TIMEOUT
parameter.
LSF_DYNAMIC_HOST_TIMEOUT specifies how long LSF waits before the management host automatically removes unavailable dynamic host. Each time LSF removes a dynamic host,
mbatchd
daemon automatically reconfigures itself.Note: For very large clusters, defining this parameter could decrease system performanceFor example:LSF_DYNAMIC_HOST_TIMEOUT=60m
- In the
lsf.cluster.cluster_name configuration file on the management host, define the
LSF_HOST_ADDR_RANGE parameter.
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 LSF_ENABLE_SUPPORT_IPV6 parameter in the lsf.conf file, IP addresses can have either a dotted quad notation (
IPv4
) or IP Next Generation (IPv6
) format; you do not have to mapIPv4
addresses to anIPv6
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 one and ten, and then a number between four and 56, will be allowed access. In this example, no
IPv6
hosts are allowed. - Log on as root to each host you want to join the cluster.
- Source the LSF
environment:
-
For csh or tcsh:
source LSF_TOP/conf/cshrc.lsf
-
For sh, ksh, or bash:
. LSF_TOP/conf/profile.lsf
-
- Consider if you want LSF to
start automatically when the host reboots.
-
If do not want automatic restarting, go to the next step.
-
If you want automatic restarting, run the hostsetup command. For example:
cd /usr/share/lsf/10.1.0/install ./hostsetup --top="/usr/share/lsf" --boot="y"
For complete hostsetup usage, enter hostsetup -h.
-
- Use the following commands to start LSF:
bctrld start lim bctrld start res bctrld start sbd