LSF Version 7.3 - Administering Platform LSF
Administering Platform LSF 427
Advance Reservation
❖ The -R option selects hosts for the reservation according to a resource
requirements string. Only hosts that satisfy the resource requirement
expression are reserved.
-R accepts any valid resource requirement string,
but only the select string takes effect. If you also specify a host list with the
-m option, -R is optional.
Add a one-time reservation
1 Use the -b and -e options of brsvadd to specify the begin time and end time of
a one-time advance reservation. One-time reservations are useful for
dedicating hosts to a specific user or group for critical projects.
The day and time are in the form:
[[[year:]month:]day:]hour:minute
with the following ranges:
◆ year: any year after 1900 (YYYY)
◆ month: 1-12 (MM)
◆ day of the month: 1-31 (dd)
◆ hour: 0-23 (hh)
◆ minute: 0-59 (mm)
You must specify at least hour
:minute. Year, month, and day are optional.
Three fields are assumed to be day
:hour:minute, four fields are assumed to be
month
:day:hour:minute, and five fields are year:month:day:hour:minute.
If you do not specify a day, LSF assumes the current day. If you do not specify
a month, LSF assumes the current month. If you specify a year, you must
specify a month.
You must specify a begin and an end time. The time value for
-b must use the
same syntax as the time value for
-e. The begin time must be earlier than the
time value for
-e. The begin time cannot be earlier than the current time.
The following command creates a one-time advance reservation for 1024 job
slots on host
hostA for user user1 between 6:00 a.m. and 8:00 a.m. today:
brsvadd -n 1024 -m hostA -u user1 -b 6:0 -e 8:0
Reservation "user1#0" is created
The hosts specified by -m can be local to the cluster or hosts leased from remote
clusters.
The following command creates a one-time advance reservation for 1024 job
slots on a host of any type for user
user1 between 6:00 a.m. and 8:00 a.m. today:
brsvadd -n 1024 -R "type==any" -u user1 -b 6:0 -e 8:0
Reservation "user1#1" is created