Get-EmcConsistencyGroup

Retrieves consistency groups that are used to protect LUNs.

 

Syntax

 

Parameters

-ID <String>

Attributes: Optional, Position: 1

Specifies the name or ID of the consistency group. Wildcards are permitted.

 

-Silent <SwitchParameter>

Attributes: Optional, Position: named

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

 

-ReplicationServiceCluster <ReplicationServiceCluster>

Attributes: Required, Position: named

Specifies the replication cluster that owns and manages the consistency group.

 

-ReplicaLun <ReplicaLun>

Attributes: Required, Position: named

Specifies a replica LUN that is owned and managed by the consistency group.

 

-Lun <Lun>

Attributes: Required, Position: named

Specifies a storage system LUN that is owned and managed by the consistency group.

 

-MailboxDatabase <MailboxDatabase>

Attributes: Required, Position: named

Specifies a mailbox database that is owned and managed by the consistency group. You can get the MailBoxDatabase object with the Get-EmcMailBoxDatabase cmdlet.

 

<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

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

This example get a consistency group with a specified replication service cluster.

 

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

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

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

$group = Get-EmcConsistencyGroup -ReplicaLun $lun

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

 

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

C:\PS>$storageSystem = Get-EmcStorageSystem -ID *6439

$storagePool = Get-EmcStoragePool -StorageSystem $storageSystem -ID *RaidGroup*0*

$lun = Get-EmcLun -Pool $storagePool -ID *RP_Set1*

$group = Get-EmcConsistencyGroup -Lun $lun

This example gets a consistency group with a specified storage system LUN.

 

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

C:\PS>$db = Get-EmcMailboxDatabase -ID *mailboxID*  $group = Get-EmcConsistencyGroup -MailboxDatabase $db

This example gets a consistency group with a specified mailbox database.