NAME
Remove-DcsReplication
SYNOPSIS
Removes (splits) a replication relationship between two virtual disks on different servers. This operation can also be performed on a virtual disk group.
SYNTAX
Remove-DcsReplication -Replication <Object> [ -Force] [ -Yes] [ -Connection <String> ] [ -PipelineVariable <String> ] [ -WhatIf] [ -Confirm]
Remove-DcsReplication -VirtualDiskGroup <Object> [ -Force] [ -Yes] [ -Connection <String> ] [ -PipelineVariable <String> ] [ -WhatIf] [ -Confirm]
DESCRIPTION
Removes (splits) a replication relationship between two virtual disks on different servers. This operation can also be performed on a virtual disk group. The virtual disks will exist, but data changes will no longer be asynchronously mirrored between them.
PARAMETERS
- -Replication<Object>
- AsyncReplicationData object, VirtualDiskData object, Async Replication ID, virtual disk name, or virtual disk ID that identifies the active virtual disk in the replication. The active virtual disk must be a local virtual disk for the connection. The AsyncReplicationData object can be obtained from Get-DcsReplication.
-
- Required: true
- Position: 1
- Default value:
- Accept pipeline input: true (ByValue)
- Accept wildcard characters: false
-
- -Force<SwitchParameter>
- If the destination server is unreachable and Remove-DcsReplication is invoked, the replication cannot be removed. The Force parameter can be specified to force the operation. (Also see Yes parameter description.)WARNING: THIS PARAMETER SHOULD ONLY BE SPECIFIED IN CASE OF EMERGENCY. If data files exist in the replication buffer when the operation is forced, those changes will be lost.
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -Yes<SwitchParameter>
- Removing a replication is an operation that requires confirmation. Specify this parameter to confirm your intention to remove the replication and prevent user interaction during scripted scenarios.
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -Connection<String>
- Alias of the connection to the server group. If not specified, the default connection is used.
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -PipelineVariable<String>
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -WhatIf<SwitchParameter>
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -Confirm<SwitchParameter>
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -VirtualDiskGroup<Object>
- VirtualDiskGroupData object, name or ID that identifies a virtual disk group. Use this parameter to remove the replication relationships for all eligible virtual disks in the virtual disk group. Eligibility may not apply to all virtual disks in the group. The VirtualDiskGroupData object can be obtained with Get-DcsVirtualDiskGroup.
-
- Required: true
- Position: 1
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
INPUTS
AsyncReplicationData or VirtualDiskData : The AsyncReplicationData object describes the replication relationship and can be used to identify the virtual disk. The VirtualDiskData object can also be used to identify the active (local) virtual disk in the replication.
OUTPUTS
AsyncReplicationData : Object that identifies and describes the replication relationship.
NOTES
Also see Stop-DcsDeleteReplication, Get-DcsReplication, Remove-DcsReplicationPartnerGroup, Get-DcsReplicationPartnerGroup, Get-DcsReplication, Get-DcsVirtualDiskGroup.
EXAMPLES
Remove-DcsReplication -Replication "Virtual disk 6"
Removes the replication involving the source virtual disk named "Virtual disk 6".
FirstServerId | : | D3D14D3A-67A2-4E5F-9FA4-262B812EFFA0 |
FirstVirtualDiskId | : | df1ee028a1824b7b9c2bcaac2e582340 |
SecondServerId | : | a6c68fe8-ea6f-420f-b791-278a02a176eb:AA56BE97-83F3-45B0-B81C-2184A8083E68 |
SecondVirtualDiskId | : | 537cd02923d7487bb8371da08d5bcf8e |
IsActiveSide | : | True |
ReplicationState | : | Active |
FailureStatus | : | NoFailure |
TransferStatus | : | Enabled |
Paused | : | False |
CheckpointSnapshotId | : | |
AutoAsyncReplicationLicense | : | Enabled |
OfflineInitializationSupported | : | True |
InitializationType | : | Online |
OfflineInitializationBuffer | : | |
OfflineInitStatus | : | NoOfflineInit |
InitializationFailureStatus | : | NoFailure |
TestModeStatus | : | Disabled |
Id | : | f04b5aa4-0985-4fdc-95a3-453effb69a7c |
Caption | : | Virtual disk 6 |
ExtendedCaption | : | Virtual disk 6 on SSVVM3 |
Internal | : | False |
Get-DcsReplication -ShowOnlyLocalSide | Remove-DcsReplication
The cmdlet Get-DcsReplication is used to obtain the AsyncReplicationData objects for all replications for the server group. The switch parameter ShowOnlyLocalSide ensures that only replications for the local server group are included. The results are piped to Remove-DcsReplication resulting in the removal of all replication configurations from the server group.
FirstServerId | : | D3D14D3A-67A2-4E5F-9FA4-262B812EFFA0 |
FirstVirtualDiskId | : | b71e83f78bb947268981e235598e7bff |
SecondServerId | : | a6c68fe8-ea6f-420f-b791-278a02a176eb:AA56BE97-83F3-45B0-B81C-2184A8083E68 |
SecondVirtualDiskId | : | d3a0fbdd7eae488a936cea47d31ddfd9 |
IsActiveSide | : | False |
ReplicationState | : | Standby |
FailureStatus | : | NoFailure |
TransferStatus | : | Enabled |
Paused | : | False |
CheckpointSnapshotId | : | |
AutoAsyncReplicationLicense | : | Enabled |
OfflineInitializationSupported | : | True |
InitializationType | : | Online |
OfflineInitializationBuffer | : | |
OfflineInitStatus | : | NoOfflineInit |
InitializationFailureStatus | : | NoFailure |
TestModeStatus | : | Disabled |
Id | : | 176821e1-9d98-4308-ac6c-457a33921a4f |
Caption | : | Virtual disk 1 |
ExtendedCaption | : | Virtual disk 1 on SSVVM3 |
Internal | : | False |
Remove-DcsReplication -VirtualDiskGroup VDGroup2
Removes all eligible replications in the virtual disk group named "VDGroup2".
FirstServerId | : | D3D14D3A-67A2-4E5F-9FA4-262B812EFFA0 |
FirstVirtualDiskId | : | 14454ab447634aa880c102df9827db72 |
SecondServerId | : | a6c68fe8-ea6f-420f-b791-278a02a176eb:AA56BE97-83F3-45B0-B81C-2184A8083E68 |
SecondVirtualDiskId | : | 77192956a71845ebb9f214c167d8f2bf |
IsActiveSide | : | True |
ReplicationState | : | Active |
FailureStatus | : | NoFailure |
TransferStatus | : | Enabled |
Paused | : | False |
CheckpointSnapshotId | : | |
AutoAsyncReplicationLicense | : | Enabled |
OfflineInitializationSupported | : | True |
InitializationType | : | Online |
OfflineInitializationBuffer | : | |
OfflineInitStatus | : | NoOfflineInit |
InitializationFailureStatus | : | NoFailure |
TestModeStatus | : | Disabled |
Id | : | 7932cf6f-8857-4702-82b7-61878f2ead2b |
Caption | : | Virtual disk 4 |
ExtendedCaption | : | Virtual disk 4 on SSVVM3 |
Internal | : | False |
FirstServerId | : | D3D14D3A-67A2-4E5F-9FA4-262B812EFFA0 |
FirstVirtualDiskId | : | 1a2ff247d5aa4b0596eedf8d5835e857 |
SecondServerId | : | a6c68fe8-ea6f-420f-b791-278a02a176eb:AA56BE97-83F3-45B0-B81C-2184A8083E68 |
SecondVirtualDiskId | : | 9b1763a132cb41389c57a287bfc23414 |
IsActiveSide | : | True |
ReplicationState | : | Active |
FailureStatus | : | NoFailure |
TransferStatus | : | Enabled |
Paused | : | False |
CheckpointSnapshotId | : | |
AutoAsyncReplicationLicense | : | Enabled |
OfflineInitializationSupported | : | True |
InitializationType | : | Online |
OfflineInitializationBuffer | : | |
OfflineInitStatus | : | NoOfflineInit |
InitializationFailureStatus | : | NoFailure |
TestModeStatus | : | Disabled |
Id | : | 0b342a3c-48a4-45fb-8773-2a398e1cac32 |
Caption | : | Virtual disk 5 |
ExtendedCaption | : | Virtual disk 5 on SSVVM3 |
Internal | : | False |