Get-EmcReplicaLun

Gets the replica LUNs for replication.

 

Syntax

 

Parameters

-ID <String>

Attributes: Optional, Position: 1

Specifies the name or world wide name (WWN) of the LUN. Wildcards are permitted.

 

-ReplicationService <IReplicationService>

Attributes: Optional, Position: named

Specifies the replication service that owns and manages the replica LUN.

 

-Role <ReplicaCopyRole>

Attributes: Optional, Position: named

Specifies the replica copy role type. This value can be any combination of the following roles with replica copies: production copy, local copy, remote copy, or unknown.

 

-Silent <SwitchParameter>

Attributes: Optional, Position: named

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

 

-ConsistencyGroup <ConsistencyGroup>

Attributes: Optional, Position: named

Specifies the consistency group that owns and manages the replica LUN.

 

-ReplicaSet <ReplicaSet>

Attributes: Optional, Position: named

Specifies the replica set that owns and manages the replica LUN.

 

-ReplicaCopy <ReplicaCopy>

Attributes: Optional, Position: named

Specifies the replica copy that owns and manages the replica LUN.

 

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

$lun = Get-EmcReplicaLun -ReplicationService $service -ID *RP_Set1*

This example gets a replica LUN for a specified replication service.

 

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

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

$cluster = Get-EmcReplicationServiceCluster -ReplicationService $service

$group = Get-EmcConsistencyGroup -ReplicationServiceCluster $cluster -ID CG_PSTest

$lun = Get-EmcReplicaLun -ConsistencyGroup $group -ID *RP_Set1*

This example gets a replica LUN for a specified consistency group.

 

-------------- Example 3 --------------

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

$cluster = Get-EmcReplicationServiceCluster -ReplicationService $service

$group = Get-EmcConsistencyGroup -ReplicationServiceCluster $cluster -ID CG_PSTest

$set = Get-EmcReplicaSet -ConsistencyGroup $group -ID Set_S1

$lun = Get-EmcReplicaLun -ReplicaSet $set -ID *RP_Set1*

This example gets a replica LUN for a specified replica set.

 

-------------- Example 4 --------------

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

$cluster = Get-EmcReplicationServiceCluster -ReplicationService $service

$group = Get-EmcConsistencyGroup -ReplicationServiceCluster $cluster -ID CG_PSTest

$copy = Get-EmcReplicaCopy -ConsistencyGroup $group -Role ProductionCopy,LocalCopy

$lun = Get-EmcReplicaLun -ReplicaCopy $copy[1] -ID *RP_Set1*

This example gets a replica LUN for a specified replica copy.