mergepartition

Use the mergepartition command to merge the source partition into the target partition and delete the source partition.

Syntax

Read syntax diagramSkip visual syntax diagram mergepartition -targetpartition target_partition_idtarget_partition_name source_partition_idsource_partition_name

Parameters

-targetpartition target_partition_id | target_partition_name
(Required) Specifies the target storage partition, either by ID or by name.
source_partition_id | source_partition_name
(Required) Specifies the source storage partition, either by ID or by name.

Description

The mergepartition command merges the source partition into the target partition, and the source partition will be deleted. The source partition is identified by the command object and the target is identified as a parameter. The command works with both local-only and HA storage partitions; if the storage partition is configured as HA then the changes are applied to both systems.

Note: It is not permitted to merge from a storage partition with a DR link, the command will fail if the source storage partition has a DR link.
Note: A storage partition that contains volume groups with 2-site-async-dr replication policies cannot be merged into a storage partition that has a DR link. If both the source and target partitions contain 2-site-async-dr volume groups, they can only be merged if they are all configured for replication to the same remote system.

An invocation example

Command to merge 2 partitions:

mergepartition -targetpartition mypartition1 mypartition2