Creates a new replica copy for a consistency group.
Syntax
New-EmcReplicaCopy -ConsistencyGroup <ConsistencyGroup> -Name <String> [-ProductionCopy] -Site <ReplicationServiceSite> -JournalPool <LunStoragePool> -JournalSize <UInt64> [-Silent] [<CommonParameters>]
New-EmcReplicaCopy -ConsistencyGroup <ConsistencyGroup> -Name <String> [-ProductionCopy] -Site <ReplicationServiceSite> -JournalPool <LunStoragePool> -JournalSize <UInt64> [-Silent] -PoolsByReplicaSetName <Hashtable> [<CommonParameters>]
New-EmcReplicaCopy -ConsistencyGroup <ConsistencyGroup> -Name <String> [-ProductionCopy] -Site <ReplicationServiceSite> -JournalPool <LunStoragePool> -JournalSize <UInt64> [-Silent] -LunsByReplicaSetName <Hashtable> [<CommonParameters>]
Parameters
-ConsistencyGroup <ConsistencyGroup>
Attributes: Required, Position: named
Specifies the consistency group from which to create the replica copy.
-Name <String>
Attributes: Required, Position: named
Specifies the name for the replica copy.
-ProductionCopy <SwitchParameter>
Attributes: Optional, Position: named
If specified, this replica becomes the production copy.
-Site <ReplicationServiceSite>
Attributes: Required, Position: named
Specifies the replication site for the replica copy.
-JournalPool <LunStoragePool>
Attributes: Required, Position: named
Specifies the LUN storage pool that will be used to create the journal LUN for the copy.
-JournalSize <UInt64>
Attributes: Required, Position: named
Specifies the size of the journal LUN for the copy.
-Silent <SwitchParameter>
Attributes: Optional, Position: named
Turns off all the informational and verbose messages. However, it still displays errors.
-PoolsByReplicaSetName <Hashtable>
Attributes: Required, Position: named
Specifies a hash table where each key is a replica set name and each value is a storage pool. ESI uses this table to create the LUN that protects the replica set for the new replica copy.
-LunsByReplicaSetName <Hashtable>
Attributes: Required, Position: named
Specifies a hash table where each key is a replica set name and each value is a LUN. ESI uses this table to protect the replica set for the new replica copy.
<CommonParameters>
This cmdlet supports these common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. Type get-help about_commonparameters for more details.
Examples
-------------- Example 1 --------------
C:\PS>$service = Get-EmcReplicationService -ID *60*
C:\PS>$cluster = Get-EmcReplicationServiceCluster -ReplicationService $service
C:\PS>$site = Get-EmcReplicationServiceSite -ReplicationService $service -ID *Site4*
C:\PS>$group = Get-EmcConsistencyGroup -ReplicationServiceCluster $cluster -ID RP_PS_TEST
C:\PS>$storageSystem = Get-EmcStorageSystem -ID *6439
C:\PS>$storagePool = Get-EmcStoragePool -StorageSystem $storageSystem -ID *RaidGroup*0*
C:\PS>$prodCopy = New-EmcReplicaCopy -ConsistencyGroup $group -Name "RP_PS_TEST_CP" -ProductionCopy -Site $site -JournalPool $storagePool -JournalSize 10240mb
This example creates a new replica copy.
-------------- Example 2 --------------
C:\PS>$service = Get-EmcReplicationService -ID *60*
C:\PS>$cluster = Get-EmcReplicationServiceCluster -ReplicationService $service
C:\PS>$site = Get-EmcReplicationServiceSite -ReplicationService $service -ID *Site4*
C:\PS>$group = Get-EmcConsistencyGroup -ReplicationServiceCluster $cluster -ID RP_PS_TEST
C:\PS>$storageSystem = Get-EmcStorageSystem -ID *6439
C:\PS>$storagePool = Get-EmcStoragePool -StorageSystem $storageSystem -ID *RaidGroup*0*
C:\PS>$storagePoolLoc = Get-EmcStoragePool -StorageSystem $storageSystem -ID *RaidGroup*2*
C:\PS>$storageSystemRem = Get-EmcStorageSystem -ID *6440
C:\PS>$storagePoolRem = Get-EmcStoragePool -StorageSystem $storageSystemRem[0] -ID *RaidGroup*0*
C:\PS>$hashTable = @{RP_PS_TEST_CL=$storagePoolLoc;RP_PS_TEST_CR=$storagePoolRem}
C:\PS>$prodCopy = New-EmcReplicaCopy -ConsistencyGroup $group -Name "RP_PS_TEST_CP" -ProductionCopy -Site $site -JournalPool $storagePool -JournalSize 10240mb -PoolsByReplicaSetName $hashTable
This example creates a replica copy using the PoolsByReplicaSetName parameter.