Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dpm-reservespace(1) [debian man page]

DPM-RESERVESPACE(1)						   DPM Commands 					       DPM-RESERVESPACE(1)

NAME
dpm-reservespace - reserve space SYNOPSIS
dpm-reservespace --gspace size_guaranteed_space [ --ac_latency access_latency ] [ --gid group_ids ] [ --group group_names ] [ --help ] [ --lifetime space_lifetime ] [ --poolname pool_name ] [ --ret_policy retention_policy ] [ --s_type space_type ] [ --si ] [ --token_desc u_token ] DESCRIPTION
dpm-reservespace reserves space. OPTIONS
size_guaranteed_space desired size of guaranteed space in bytes. The number may also have a suffix k, M, G, T or P to indicate kB, MB, GB, TB or PB respectively. access_latency specifies the access latency requested. It can be O (for ONLINE) or N (for NEARLINE). group_ids if not zero, the space is restricted to this comma separated list of group gids. If the caller does not belong to the group, it must have ADMIN privileges. By default, the space is reserved for the user if the requester has a proxy without VOMS extension or for the group if the requester has a proxy with VOMS extension. group_names if set, the space is restricted to this comma separated list of group names. If the caller does not belong to the group, it must have ADMIN privileges. space_lifetime specifies the desired space lifetime relative to the current time. It can be "Inf" (for infinite) or expressed in years (suffix 'y'), months (suffix 'm'), days (suffix 'd'), hours (suffix 'h') or seconds (no suffix). pool_name if set, the space is reserved in that disk pool. retention_policy specifies the retention policy requested. It can be R (for Replica), O (for Output) or C (for Custodial). s_type specifies the type of space requested. It can be V (for Volatile), D (for Durable), P (for Permanent) or - (for any). u_token specifies the user provided description associated with the request. --si use powers of 1000 not 1024 for sizes. EXAMPLE
dpm-reservespace --gspace 10G --lifetime 1d --token_desc myspace fe869590-b771-4002-b11a-8e7430d72911 EXIT STATUS
This program returns 0 if the operation was successful or >0 if the operation failed. SEE ALSO
dpm_reservespace(3) LCG
$Date: 2011-04-04 08:49:00 +0200 (Mon, 04 Apr 2011) $ DPM-RESERVESPACE(1)

Check Out this Related Man Page

DPM_ADDPOOL(3)						       DPM Library Functions						    DPM_ADDPOOL(3)

NAME
dpm_addpool - define a new disk pool SYNOPSIS
#include <sys/types.h> #include "dpm_api.h" int dpm_addpool (struct dpm_pool *dpm_pool) DESCRIPTION
dpm_addpool defines a new disk pool. dpm_pool contains the pool definition. struct dpm_pool { char poolname[CA_MAXPOOLNAMELEN+1]; u_signed64 defsize; int gc_start_thresh; int gc_stop_thresh; int def_lifetime; int defpintime; int max_lifetime; int maxpintime; char fss_policy[CA_MAXPOLICYLEN+1]; char gc_policy[CA_MAXPOLICYLEN+1]; char mig_policy[CA_MAXPOLICYLEN+1]; char rs_policy[CA_MAXPOLICYLEN+1]; int nbgids; gid_t *gids; char ret_policy; char s_type; u_signed64 capacity; u_signed64 free; int nbelem; }; poolname specifies the disk pool name. defsize specifies the default amount of space reserved for a file (in bytes). gc_start_thresh specifies the minimum free space in the pool. If the percentage of free space goes below this value, the garbage collector is started. Default is 0. gc_stop_thresh specifies the percentage of free space in the pool above which the garbage collector is stopped. Default is 0. def_lifetime specifies the default time a space or volatile file is kept in the system (in seconds). defpintime specifies the default time a file is kept on a given disk (in seconds). max_lifetime specifies the maximum time a space or volatile file is kept in the system (in seconds). maxpintime specifies the maximum time a file is kept on a given disk (in seconds). nbgids is the size of the array of group ids gids. gids The disk pool is restricted to this set of gids unless the group gid is zero. ret_policy specifies the retention policy supported by the disk pool. It can be R (for Replica), O (for Output) or C (for Custodial). s_type indicates the type of space supported in the disk pool. It can be V (for Volatile), D (for Durable), P (for Permanent) or - (to accept any type). This function requires ADMIN privilege. RETURN VALUE
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately. ERRORS
EACCES The caller does not have ADMIN privilege. EFAULT dpm_pool is a NULL pointer. EEXIST This pool exists already. ENOMEM Memory could not be allocated for storing the pool definition. EINVAL The length of poolname exceeds CA_MAXPOOLNAMELEN or the number of gids is too big. SENOSHOST Host unknown. SEINTERNAL Database error. SECOMERR Communication error. LCG
$Date: 2011-05-23 14:22:57 +0200 (Mon, 23 May 2011) $ DPM_ADDPOOL(3)
Man Page