Set-SmDisasterRecovery
Contributors
Suggest changes
Enables storage disaster recovery.
Syntax
Set-SmDisasterRecovery [-Enable] <> [-Disable] <>
Detailed Description
Enables or disables storage disaster recovery.
Parameters
Name | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|
Enable |
Specifies the SnapCenter Server to enable storage disaster recovery. |
true |
false |
|
Disable |
Specifies the SnapCenter Server to disable storage disaster recovery. |
true |
false |
Examples
Example 1: Enabling storage disaster recovery
Set-SmDisasterRecovery -Enable
This example syntax enables storage disaster recovery.
Set-SmDisasterRecovery Before enabling this option, make sure all the SCSQL resources are online and active on the secondary storage.Are you sure you want to enable disaster recovery?? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Name: Id : 1971 StartTime : EndTime : IsCancellable : False IsRestartable : False IsCompleted : False IsVisible : True IsScheduled : False PercentageCompleted : 0 Description : Status : Running Owner : Error : Priority: None Tasks : {} ParentJobID : 0 EventId : 0 JobTypeId : ApisJobKey : ObjectId: 0 PluginCode : NONE PluginName : HostId : 0 RoleId : JobIds : ErrorRecords : {} _message : _errorCode : 0
Example 2: Disabling storage disaster recovery
Set-SmDisasterRecovery -Disable
This example syntax disables storage disaster recovery.
Name: Id : 1970 StartTime : EndTime : IsCancellable : False IsRestartable : False IsCompleted : False IsVisible : True IsScheduled : False PercentageCompleted : 0 Description : Status : Running Owner : Error : Priority: None Tasks : {} ParentJobID : 0 EventId : 0 JobTypeId : ApisJobKey : ObjectId: 0 PluginCode : NONE PluginName : HostId : 0 RoleId : JobIds : ErrorRecords : {} _message : _errorCode : 0