HP 3PAR OS 3.1.3 Command Line Interface Reference

9 Compact Commands
compactcpg
DESCRIPTION
The compactcpg command consolidates logical disk space in Common Provisioning Groups
(CPGs) into as few logical disks as possible, allowing unused logical disks to be removed and
their space reclaimed.
SYNTAX
compactcpg [options] <CPG_name>...
compactcpg -pat [options] <pattern>...
AUTHORITY
Super, Edit
Any role granted the cpg_compact right.
OPTIONS
-pat
Compacts CPGs that match any of the specified patterns.
-waittask
Waits for any created tasks to complete.
-trimonly
Removes unused logical disks after consolidating the space. This option will not perform any region
moves.
-nomatch
Removes only unused logical disks whose characteristics do not match the growth characteristics
of the CPG. Must be used with the -trimonly option. If all logical disks match the CPG growth
characteristics, this option has no effect.
-dr
Specifies that the operation is a dry run, and the tasks will not actually be performed.
-f
Does not ask for confirmation before compacting the logical disks. Unless the -f option is specified,
the command asks for confirmation before compacting each CPG.
SPECIFIERS
<pattern>...
Specifies a glob-style pattern. This specifier can be repeated to compact multiple CPGs. If this
specifier is not used, the <CPG_name> specifier must be used. Refer to “Glob-Style Pattern”
(page 12) for further information.
<CPG_name>...
Specifies the name of the CPG. Multiple CPGs can be specified.
RESTRICTIONS
None
compactcpg 77