Once a reservation is disabled for a period, it cannot be enabled; that is, the disabled periods remain fixed. Before a reservation is disabled, you are prompted to confirm whether to continue disabling the reservation. Use the -foption to silently force the command to run without prompting for confirmation; for example, to allow for automating disabling reservations from a script.

rmhost [-njob_slots] [-m "host_name ... host_group ..."] reservation_ID

Removes hosts or slots on hosts from the original reservation allocation. You must specify either -nor -m. Use -nto specify the number of slots to be released from reserved hosts. Removing a host without -nreleases all reserved free slots on the host. The new slot specification must be less than or equal to the actual reserved slot number of the host.

You can only remove a whole host from a system AR.

How many slots or hosts can be removed depends on the number of slots that are free as long as the reservation is active. rmhost cannot remove more slots than are free on the host. This applies to removing hosts on both one-time and recurring reservations that are active. If you want to remove more slots from the reservation, you must wait until running jobs finish or the reservation is inactive.

Options

-oChanges a closed advance reservation to open, or cancels an open reservation.

Changes the type of a reservation to be open or closed. If the reservation is open, all jobs in the reservation become normal jobs, not subject to termination when the reservation window closes. -on closes the reservation when it expires.

The running jobs of an open reservation are terminated when the reservation is changed into closed. The termination times of running jobs of a closed reservation are removed if the reservation is changed to open.

The termination time of running jobs is set by mbatchd but checked by sbatchd. Termination time is an absolute time based on master host, so all hosts in the cluster should be synchronized with the local time on the master host. If sbatchd and mbatchd are not synchronized, termination may not occur at the correct time.

-bbegin_time [+ -]minutes

Replaces the begin time for a one-time reservation, or gives an offset in minutes to the current begin time.

RESTRICTION: You cannot modify the begin time of an active reservation.

The begin time is 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)

Platform LSF Command Reference 159