New-EmcReplicaLink

Creates a new replica link between two replica copies.

 

Syntax

 

Parameters

-SourceCopy <ReplicaCopy>

Attributes: Required, Position: 1

Specifies the source replica copy of the link.

 

-TargetCopy <ReplicaCopy>

Attributes: Required, Position: 2

Specifies the target replica copy of the link.

 

-Synchronous <SwitchParameter>

Attributes: Required, Position: named

If specified, ESI performs synchronous replication.

 

-Silent <SwitchParameter>

Attributes: Optional, Position: named

Turns off all the informational and verbose messages. However, it still displays errors.

 

-Asynchronous <SwitchParameter>

Attributes: Required, Position: named

If specified, ESI performs asynchronous replication.

 

<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*

$cluster = Get-EmcReplicationServiceCluster -ReplicationService $service

$prodCopy = Get-EmcReplicaCopy -ReplicationServiceCluster $cluster -ID RP_PS_TEST_CP

$locCopy = Get-EmcReplicaCopy -ReplicationServiceCluster $cluster -ID RP_PS_TEST_CL

$link = New-EmcReplicaLink -SourceCopy $prodCopy -TargetCopy $locCopy -Synchronous

This example creates a new synchronous replica link.

 

-------------- Example 2 --------------

C:\PS>$service = Get-EmcReplicationService -ID *60*

$cluster = Get-EmcReplicationServiceCluster -ReplicationService $service

$prodCopy = Get-EmcReplicaCopy -ReplicationServiceCluster $cluster -ID RP_PS_TEST_CP

$remCopy = Get-EmcReplicaCopy -ReplicationServiceCluster $cluster -ID RP_PS_TEST_CR

$link = New-EmcReplicaLink -SourceCopy $prodCopy -TargetCopy $remCopy -Asynchronous

This example creates a new asynchronous replica link.