25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Controlling Hosts<br />

Controlling Hosts<br />

Closing a host<br />

Opening a host<br />

Dispatch Windows<br />

Hosts are opened and closed by an <strong>LSF</strong> Administrator or root issuing a<br />

command or through configured dispatch windows.<br />

Run badmin hclose:<br />

% badmin hclose hostB<br />

Close ...... done<br />

If the command fails, it may be because the host is unreachable through<br />

network problems, or because the daemons on the host are not running.<br />

Run badmin hopen:<br />

% badmin hopen hostB<br />

Open ...... done<br />

A dispatch window specifies one or more time periods during which a host<br />

will receive new jobs. The host will not receive jobs outside of the configured<br />

windows. Dispatch windows do not affect job submission and running jobs<br />

(they are allowed to run until completion). By default, dispatch windows are<br />

not configured.<br />

To configure dispatch windows:<br />

1 Edit lsb.hosts.<br />

2 Specify on or more time windows in the DISPATCH_WINDOW column.<br />

For example:<br />

Begin Host<br />

HOST_NAME r1m pg ls tmp DISPATCH_WINDOW<br />

...<br />

hostB 3.5/4.5 15/ 12/15 0 (4:30-12:00)<br />

...<br />

End Host<br />

3 Reconfigure the cluster:<br />

a Run lsadmin reconfig to reconfigure LIM.<br />

b Run badmin reconfig to reconfigure mbatchd.<br />

4 Run bhosts -l to display the dispatch windows.<br />

Logging a comment when closing or opening a host<br />

Use the -C option of badmin hclose and badmin hopen to log an<br />

administrator comment in lsb.events. For example,<br />

% badmin hclose -C "Weekly backup" hostB<br />

The comment text Weekly backup is recorded in lsb.events. If you close or<br />

open a host group, each host group member displays with the same comment<br />

string.<br />

74<br />

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

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

Saved successfully!

Ooh no, something went wrong!