Please see the below commands details.
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>...
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.
-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.
To Reclaim the Freed space on the CPG -R5, you can run the below command.
===> compactcpg –pat CPG -R5 name
Node: - This is a background low priority task and run when the system is idle. If there is any overlapping or parallel task running like AO, DO, or Tunesys, than the task may fail.
Ensure no paralelle task is running. If it fails you may need to run it again. There is no significance of the task failure on the system.
The following command will set up a job to run weekly (Sundays, 0000 hours): createsched -no_alert "compactcpg -f -pat *" @weekly Compact_All_CPGs
String
Meaning
@yearly
Run every January 1st, "0 0 1 1 *"
@monthly
Run the first day of every month, "0 0 1 * *"
@weekly
Run every Sunday, "0 0 * * 0"
@daily
Run every midnight, "0 0 * * *"
@hourly
Run every hour, on the hour, "0 * * * *"
For more details: Please refer the below link for HP 3PAR Command Line Interface Reference.
http://h10032.www1.hp.com/ctg/Manual/c03618134
compactcpg –pat ESXi_VM_CPG_R5
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>...
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.
-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.
To Reclaim the Freed space on the CPG -R5, you can run the below command.
===> compactcpg –pat CPG -R5 name
Node: - This is a background low priority task and run when the system is idle. If there is any overlapping or parallel task running like AO, DO, or Tunesys, than the task may fail.
Ensure no paralelle task is running. If it fails you may need to run it again. There is no significance of the task failure on the system.
The following command will set up a job to run weekly (Sundays, 0000 hours): createsched -no_alert "compactcpg -f -pat *" @weekly Compact_All_CPGs
String
Meaning
@yearly
Run every January 1st, "0 0 1 1 *"
@monthly
Run the first day of every month, "0 0 1 * *"
@weekly
Run every Sunday, "0 0 * * 0"
@daily
Run every midnight, "0 0 * * *"
@hourly
Run every hour, on the hour, "0 * * * *"
For more details: Please refer the below link for HP 3PAR Command Line Interface Reference.
http://h10032.www1.hp.com/ctg/Manual/c03618134
compactcpg –pat ESXi_VM_CPG_R5
No comments:
Post a Comment