Platform LSF Administration Guide Version 6.2
Chapter 4
Working with Hosts
Administering Platform LSF
99
Controlling Hosts
Hosts are opened and closed by an LSF Administrator or root issuing a command or
through configured dispatch windows.
Closing a host
Run badmin hclose:
%
badmin hclose hostB
Close <hostB> ...... done
If the command fails, it may be because the host is unreachable through network
problems, or because the daemons on the host are not running.
Opening a host
Run badmin hopen:
%
badmin hopen hostB
Open <hostB> ...... done
Dispatch Windows
A dispatch window specifies one or more time periods during which a host will receive
new jobs. The host will not receive jobs outside of the configured windows. Dispatch
windows do not affect job submission and running jobs (they are allowed to run until
completion). By default, dispatch windows are not configured.
To configure dispatch windows:
1
Edit lsb.hosts.
2
Specify on or more time windows in the DISPATCH_WINDOW column. For
example:
Begin Host
HOST_NAME r1m pg ls tmp DISPATCH_WINDOW
...
hostB 3.5/4.5 15/ 12/15 0 (4:30-12:00)
...
End Host
3
Reconfigure the cluster:
a
Run lsadmin reconfig to reconfigure LIM.
b
Run badmin reconfig to reconfigure mbatchd.
4
Run bhosts -l to display the dispatch windows.
Logging a comment when closing or opening a host
Use the -C option of badmin hclose and badmin hopen to log an administrator
comment in
lsb.events. For example,
% badmin hclose -C "Weekly backup" hostB
The comment text Weekly backup is recorded in lsb.events. If you close or open
a host group, each host group member displays with the same comment string.
A new event record is recorded for each host open or host close event. For example:
%
badmin hclose -C "backup" hostA