Platform LSF Administrator's Primer Version 6.2

Chapter 3
Managing Your Cluster
Platform LSF Administrator’s Primer
35
Removing a host from your cluster
CAUTION
Never remove the master host from LSF. If you want to remove your current
default master from LSF, change lsf.cluster.cluster_name to assign a
different default master host. Then remove the host that was once the
master host.
1
Log on to the host as root or the primary LSF administrator.
2
Run badmin hclose to close the host. This prevents jobs from being dispatched
to the host and allows running jobs to finish.
3
When all dispatched jobs are finished, run lsfshutdown to stop the LSF daemons
on the host to be removed.
4
Edit LSF_CONFDIR/lsf.cluster.cluster_name and remove the host
from the
Host section.
5
Remove any other references to the host, if applicable, from the following LSF
configuration files:
LSF_CONFDIR/lsf.shared
LSB_CONFDIR/cluster_name/configdir/lsb.hosts
LSB_CONFDIR/cluster_name/configdir/lsb.queues
6
Log off the host to be removed, and log on as root or the primary LSF
administrator to any other host in the cluster.
7
Reconfigure lim:
% 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
The lsadmin reconfig command checks for configuration errors.
If no errors are found, you are asked to confirm that you want to restart
lim on all
hosts and
lim is reconfigured. If fatal errors are found, reconfiguration is aborted.
8
Reconfigure mbatchd:
% badmin reconfig
Checking configuration files ...
No errors found.
Do you want to reconfigure? [y/n] y
Reconfiguration initiated
The badmin reconfig command checks for configuration errors.
If no fatal errors are found, you are asked to confirm reconfiguration. If fatal errors
are found, reconfiguration is aborted.
9
If you configured LSF daemons to start automatically as system startup, remove the
LSF section from the host’s system startup files. See “Setting up automatic LSF
startup” on page 38 for details.
10
If any users of the host use lstcsh as their login shell, change their login shell to
tcsh or csh. Remove lstcsh from the /etc/shells file.