Adding a host to your cluster
Use the LSF installation script lsfinstall to add new hosts and host types to your cluster.
Before you begin
Make sure that you have the LSF distribution files for the host types you want to add.
Distribution packages for all supported LSF releases are available for download through IBM Passport Advantage.
About this task
- Install LSF binary files for the host type.
- Add host information to the lsf.cluster.cluster_name file.
- Set up the new host.
Procedure
-
Install the binary files for a new host type.
Use the lsfinstall command to add new host types to your cluster. If you already have the distribution files for the host types you want to add, you can skip these steps.
- Log on as root to any host that can access the LSF installation script directory.
-
Change to the installation script directory.
# cd /usr/share/lsf/cluster1/10.1.0/install -
Edit the install.config file to specify the
options you want for new host types.
For more information about the install.config file, see the IBM® Spectrum LSF configuration reference. For information about the lsfinstall command, see Installing IBM Spectrum LSF on UNIX and Linux and the IBM Spectrum LSF command reference.
- Run the ./lsfinstall -f install.config command.
- Follow the steps for host setup in After Installing LSF in Installing IBM Spectrum LSF on UNIX and Linux (or in the lsf_getting_started.html file that is generated by the lsfinstall script) to set up the new hosts.
-
Add host information to the
lsf.cluster.cluster_name
file.
- Log on to the LSF management host as the primary LSF administrator.
-
Edit the
LSF_CONFDIR/lsf.cluster.cluster_name
file, and add host information for the new host to the Host
section.
- Add the name of the host.
- Add model or type.
If you enter the ! keyword in the model and type columns, the host model is automatically detected by lim running on the host.
You might want to use the default values for that host type now, and change them later on when you have more experience or more information.
- Specify LSF server or client in the server column:
- 1 (one) indicates an LSF server host.
- 0 (zero) indicates an LSF client-only host.
By default, all hosts are considered LSF server hosts.
HOSTNAME model type server r1m mem RESOURCES REXPRI hosta ! SUNSOL 1 1.0 4 () 0 hostb ! LINUX 0 1.0 4 () 0 hostc ! HPPA 1 1.0 4 () 0 End Host - Save the changes to LSF_CONFDIR/lsf.cluster.cluster_name.
-
Reconfigure lim to enable the new host in the
cluster.
% lsadmin reconfig Checking configuration files ... No errors found. Do you really want to restart LIMs on all hosts? [y/n] y Restart LIM on <hosta> ...... done Restart LIM on <hostc> ...... done Restart LIM on <hostd> ...... doneThe lsadmin reconfig command checks for configuration errors. If no unrecoverable errors are found, you are asked to confirm that you want to restart lim on all hosts and lim is reconfigured. If unrecoverable errors are found, reconfiguration exits.
-
Reconfigure mbatchd.
% badmin reconfig Checking configuration files ... No errors found. Do you want to reconfigure? [y/n] y Reconfiguration initiatedThe badmin reconfig command checks for configuration errors. If no unrecoverable errors are found, you are asked to confirm reconfiguration. If unrecoverable errors are found, reconfiguration exits.
-
(Optional) Use the hostsetup command to set up the new
host.
- Log on as root to any host that can access the LSF installation script directory.
-
Change to the installation script directory.
# cd /usr/share/lsf/cluster1/10.1.0/install -
Run the hostsetup command to set up the new host.
# ./hostsetup --top="/usr/share/lsf/lsf_62" --boot="y"For information about the hostsetup command, see Installing IBM Spectrum LSF on UNIX and Linux and the IBM Spectrum LSF command reference. -
Start LSF on the new host.
Run the following commands:
# bctrld start lim # bctrld start res # bctrld start sbd -
Run the bhosts and lshosts
commands to verify your changes.
If any host type or host model is UNKNOWN or DEFAULT, see Working with hosts in IBM Spectrum LSF cluster management and operations to fix the problem.
Results
- Use dynamic host configuration to add hosts to the cluster without manually changing the LSF configuration. For more information about adding hosts dynamically, see IBM Spectrum LSF Cluster management and operations.
- If you get errors, see Troubleshooting LSF problems for help with some common configuration errors.