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.

Using Advance Reservation<br />

Adding a one-time<br />

reservation (-b<br />

and -e)<br />

Use the -b and -e options of brsvadd to specify the begin time and end time<br />

of a one-time advance reservation. One-time reservations are useful for<br />

dedicating hosts to a specific user or group for critical projects.<br />

The day and time are in the form:<br />

[[[year:]month:]day:]hour:minute<br />

with the following ranges:<br />

◆ year: any year after 1900 (YYYY)<br />

◆ month: 1-12 (MM)<br />

◆ day of the month: 1-31 (dd)<br />

◆ hour: 0-23 (hh)<br />

◆ minute: 0-59 (mm)<br />

You must specify at least hour:minute. Year, month, and day are optional.<br />

Three fields are assumed to be day:hour:minute, four fields are assumed to<br />

be month:day:hour:minute, and five fields are<br />

year:month:day:hour:minute.<br />

If you do not specify a day, <strong>LSF</strong> assumes the current day. If you do not specify<br />

a month, <strong>LSF</strong> assumes the current month. If you specify a year, you must<br />

specify a month.<br />

You must specify a begin and an end time. The time value for -b must use the<br />

same syntax as the time value for -e. It must be earlier than the time value for<br />

-e, and cannot be earlier than the current time.<br />

Examples ◆ The following command creates a one-time advance reservation for 1024<br />

processors on host hostA for user user1 between 6:00 a.m. and 8:00 a.m.<br />

today:<br />

% brsvadd -n 1024 -m hostA -u user1 -b 6:0 -e 8:0<br />

Reservation "user1#0" is created<br />

The hosts specified by -m can be local to the cluster or hosts leased from<br />

remote clusters.<br />

◆ The following command creates a one-time advance reservation for 1024<br />

processors on a host of any type for user user1 between 6:00 a.m. and<br />

8:00 a.m. today:<br />

% brsvadd -n 1024 -R "type==any" -u user1 -b 6:0 -e 8:0<br />

Reservation "user1#1" is created<br />

◆ The following command creates a one-time advance reservation that<br />

reserves 12 CPUs on hostA between 6:00 p.m. on 01 December 2003 and<br />

6:00 a.m. on 31 January 2004:<br />

% brsvadd -n 12 -m hostA -u user1 -b 2003:12:01:18:00 -e<br />

2004:01:31:06:00<br />

Reservation user1#2 is created<br />

Adding a<br />

recurring<br />

reservation (-t)<br />

Use the -t option of brsvadd to specify a recurring advance reservation. The<br />

-t option specifies a time window for the reservation. Recurring reservations<br />

are useful for scheduling regular system maintenance jobs.<br />

The day and time are in the form:<br />

466<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!