By default, only LSF administrators or root can add or delete advance reservations. To allow other users to use brsvadd to create advance reservations and brsvdel to delete advance reservations, you need to configure advance reservation user policies.
A ResourceReservation section specifies:
Each advance reservation policy is defined in a separate ResourceReservation section, so it is normal to have multiple ResourceReservation sections in lsb.resources.
Begin ResourceReservationNAME = dayPolicyUSERS = user1 user2 # optionalHOSTS = hostA hostB # optionalTIME_WINDOW = 8:00-18:00 # weekly recurring reservationEnd ResourceReservation
brsvadd -m "hostA" -n 1 -u "user2" -t "5:9:0-5:11:0"Reservation "user2#2" is created
Users can only delete reservations they created themselves. In the example, only user user1 can delete the reservation; user2 cannot. Administrators can delete any reservations created by users.
User user1 creates a reservation matching the policy (the creator is user1, the user is user2):
User user1 modifies the policy to remove user1 from the users list:
As the creator, user1 can modify the reservation with the brsvmod options rmhost, -u, -o, -on, and -d, but user1 cannot add hosts or modify the time window of the reservation.