HP 3PAR InForm OS 3.1.1 CLI Administrator's Manual

If both of the retention time and expiration time are specified, the retention time cannot be
greater than the expiration time.
The retention time can be set in hours or days. The minimum retention time is 1 hour and the
maximum retention time is 43800 hours (1,825 days or 5 years). The default is 336 hours
(14 days). The vvMaxRetentionTime system parameter determines the maximum retention.
This parameter can be set with the setsys command.
The maximum retention time for a volume in a domain can be set during the domain creation
time or applied to an existing domain with the createdomain or setdomain commands.
If the volume belongs to a domain, then volume’s retention time cannot exceed the domain's
maximum retention time.
A volume with retention time cannot be removed until end of retention time period.
You can use the -retain option to set volume retention times with the following commands:
createvv
setvv
createsv
creategroupsv
To create a virtual volume that cannot be deleted for a specified number of hours, issue the
createvv -retain <time> d|D|h|H <CPG_name> -snp_cpg <CPG_name>
<user_CPG> <VV_name> <VV_size g|G|t|T> command, where:
-retain <time> d|D|h|H specifies the volume cannot be removed from the system
for the specified number of hours or days. The value for <time> must be a positive integer
in the range of 1 hour to 43,800 hours (1,825 days). The value for <time> can be
specified in days with d|D or hours with h|H. For example, 14d specifies 14 days.
<CPG_name> is the name of the CPG from which the volume will draw its snapshot space
and administration space.
<user_CPG> is the name of the CPG from which the created virtual volume will draw
its user space.
<VV_name> is the name of the volume being created. The name can be up to 31
characters.
<VV_size g|G|t|T> is the size of the volume in MB, GB, or TB. If g|G|t|T is not
specified, VV_size is the number of MBs. For example, 50g specifies 50 GBs.
Removing Virtual Volumes
To remove virtual volumes, issue the removevv <VV_name> or removevv <pattern>
command, where:
<VV_name> is the name(s) of the virtual volume(s) to be removed.
<pattern> is the name of the pattern according to which virtual volumes are to be
removed.
For a complete list of options available for the removevv command, see the HP 3PAR InForm OS
Command Line Interface Reference and InForm OS CLI Help.
92 Managing CPGs and Virtual Volumes