(Click to open topic with navigation)
A usage lien can be used to place a hold on the user's fund before usage starts to ensure that the credits will be there when it completes. The replace option may be specified if you want the new lien to replace existing liens of the same instance name (associated with the same usage record). The modify option may be specified to dynamically extend any existing lien with the same instance name with the specified characteristics instead of creating a new one. See Managing liens for more information about these options.
To create a usage lien use the command greserve:
greserve [-T usage_record_type] [-S service_id] [-u user_name] [-g group_name] [-a account_name] [-o organization] [-c class_name] [-Q quality_of_service] [-m machine_name] [-N nodes] [-P processors] [-C cpu_time] [-M memory] [-D disk] [-X, --extension property=value]... [-t lien_duration [-G grace_duration]] [-s lien_start_time] [-e lien_end_time] [-d lien_description] [-z lien_amount] [--modify|--replace] [-R charge_rate_name [{charge_rate_value}]=charge_rate_amount,...]... [-h, --hours] [--itemize] [--debug] [--site site_name] [--help] [--man] [--quiet] [--verbose] [--version] [[-j] usage_record_id] [-q quote_id] {-J instance_name|job_id}
Example 10-7: Creating a lien
$ greserve -J PBS.1234.0 -a chemistry -u amy -m colony -P 2 -t 3600
Successfully reserved 7200 credits with lien id 37 for instance PBS.1234.0 and created usage record id 87
Related topics