The brsvadd command returns a reservation ID that you use when you submit a job that uses the reserved hosts. Any single user or user group can have a maximum of 100 reservation IDs.
The -m option lists the hosts needed for the reservation. The hosts listed by the -m option can be local to the cluster or hosts leased from remote clusters. At job submission, LSF considers the hosts in the specified order. If you also specify a resource requirement string with the -R option, -m is optional.
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.
If LSF_STRICT_RESREQ=Y in lsf.conf, the selection string must conform to the stricter resource requirement string syntax. The strict resource requirement syntax only applies to the select section. It does not apply to the other resource requirement sections (order, rusage, same, span, or cu).
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.
brsvadd -n 1024 -m hostA -u user1 -b 6:0 -e 8:0Reservation "user1#0" is created
The hosts specified by -m can be local to the cluster or hosts leased from remote clusters.
You must specify at least the hour. Day of the week and minute are optional. Both the start time and end time values must use the same syntax. If you do not specify a minute, LSF assumes the first minute of the hour (:00). If you do not specify a day, LSF assumes every day of the week. If you do specify the day, you must also specify the minute.
If the current time when the reservation is created is within the time window of the reservation. the reservation becomes active immediately.
When the job starts running, the termination time of the advance reservation job is determined by the minimum of the job run limit (if specified), the queue run limit (if specified), or the duration of the reservation time window.
brsvadd -n 1024 -m "hostA hostB" -g groupA -t "3:0:0-3:3:0"Reservation "groupA#0" is created
brsvadd -n 1024 -m "hostA" -u user2 -t "12:0-14:0"Reservation "user2#0" is created
brsvadd -n 1024 -m hostA -s -t "5:18:0-5:20:0"Reservation "system#0" is created
While the system reservation is active, no other jobs can use the reserved hosts, and LSF does not dispatch jobs to the specified hosts.
The reservation name is a string of letters, numeric characters, underscores, and dashes beginning with a letter. The maximum length of the name is 39 characters.
user_name#sequence
brsvadd -n 3 -M "hostA hostB" -u user2 -b 16:0 -e 17:0 -d "Production AR test"Reservation user2#0 (Production AR test) is createdbrsvadd -n 2 -N Production_AR -M hostA -u user2 -b 16:0 -e 17:0 -d "Production AR test"Reservation Production_AR (Production AR test) is created
If a job already exists that references a reservation with the specified name, an error message is returned: The specified reservation name is referenced by a job.
Administrators and root can modify any reservations. Users listed in the ResourceReservation section of lsb.resources, can only modify reservations they created themselves.