25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 4<br />

Working with Hosts<br />

Adding dynamic hosts in a shared file system<br />

If the new dynamically added hosts share the same set of configuration and<br />

binary files with normal hosts, you only need to start the <strong>LSF</strong> daemons on that<br />

host and the host is recognized by the master as an <strong>LSF</strong> host.<br />

New installation 1 Specify the installation options in install.config.<br />

The following parameters are required:<br />

❖ <strong>LSF</strong>_TOP="/path"<br />

❖ <strong>LSF</strong>_ADMINS="user_name [user_name ...]"<br />

❖ <strong>LSF</strong>_CLUSTER_NAME="cluster_name"<br />

Existing<br />

installation<br />

❖ <strong>LSF</strong>_MASTER_LIST="host_name [host_name ...]"<br />

List the hosts that are candidates to become the master host for the<br />

cluster.<br />

2 Use lsfinstall -f install.config to install <strong>LSF</strong>.<br />

1 On the master host, configure the following parameters:<br />

❖ lsf.conf:<br />

✧ <strong>LSF</strong>_MASTER_LIST="host_name [host_name ...]"<br />

List the hosts that are candidates to become the master host for the<br />

cluster.<br />

✧ <strong>LSF</strong>_DYNAMIC_HOST_TIMEOUT=timeout[m | M] (optional)<br />

Set an optional timeout value in hours or minutes. If the dynamic<br />

host is unavailable for longer than the time specified, it is removed<br />

from the cluster. To specify a value in minutes, append “m” or “M”<br />

to the timeout value.<br />

❖ lsf.cluster.cluster_name (optional)<br />

✧ <strong>LSF</strong>_HOST_ADDR_RANGE=IP_address ...<br />

2 Log on as root to each host you want to join a cluster.<br />

3 Use one of the following to set the <strong>LSF</strong> environment:<br />

❖ For csh or tcsh:<br />

% source <strong>LSF</strong>_TOP/conf/cshrc.lsf<br />

❖<br />

For sh, ksh, or bash:<br />

$ . <strong>LSF</strong>_TOP/conf/profile.lsf<br />

4 Optionally, run hostsetup on each <strong>LSF</strong> server host.<br />

You only need to run hostsetup if you want <strong>LSF</strong> to automatically start<br />

when the host is rebooted. For example:<br />

# cd /usr/share/lsf/5.1/install<br />

# ./hostsetup --top="/usr/share/lsf" --boot="y"<br />

For complete hostsetup usage, enter hostsetup -h.<br />

5 Use the following commands start <strong>LSF</strong>:<br />

# lsadmin limstartup<br />

# lsadmin resstartup<br />

# badmin hstartup<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong> 81

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!