Skip to main content
SnapCenter 4.9 cmdlets

Remove-SmResourceDRMode

Contributors

Remove resources from disaster recovery mode.

Syntax

Remove-SmResourceDRMode [-HostNames]  <>  [-AppObjectIds]  <>

Detailed Description

Remove the resources from disaster recovery mode.

Parameters

Name Description Required? Pipeline Input Default Value

HostNames

Specifies one or more hosts (FQDN) to remove all the resources of the hosts from disaster recovery mode.

true

true (ByPropertyName)

AppObjectIds

Specifies one or more application object identifier of an SQL database to remove from disaster recovery mode.

true

true (ByPropertyName)

Examples

Example 1: Removing all resources of the host from disaster recovery mode

 Remove-SmResourceDRMode -HostNames host1.gdl.netapp.com

This example syntax removes all the resources of the host from disaster recovery mode.

			Result   : SMCoreContracts.SMResult
			TotalCount   : 0
			DisplayCount : 0
			Context  :
			Job  : SMCoreContracts.SmJob

Example 2: Removing all resources of multiple hosts from disaster recovery mode

 Remove-SmResourceDRMode -HostNames host1.gdl.netapp.com,host2.gdl.netapp.com

This example syntax removes all the resources of hosts from disaster recovery mode.

			Result   : SMCoreContracts.SMResult
			TotalCount   : 0
			DisplayCount : 0
			Context  :
			Job  : SMCoreContracts.SmJob

Example 3: Removing all resources of the cluster host from disaster recovery mode

 Remove-SmResourceDRMode -HostNames Clusterhost.netapp.com,Node1.netapp.com,Node2.netapp.com

This example syntax removes all the resources of cluster host from disaster recovery mode. Specify cluster host with all the nodes.

			Result   : SMCoreContracts.SMResult
			TotalCount   : 0
			DisplayCount : 0
			Context  :
			Job  : SMCoreContracts.SmJob

Example 4: Removing SQL resource from disaster recovery mode

 Remove-SmResourceDRMode -AppObjectIds Host1/Inst1/DB1

This example syntax removes SQL resource from disaster recovery mode.

			Result   : SMCoreContracts.SMResult
			TotalCount   : 0
			DisplayCount : 0
			Context  :
			Job  : SMCoreContracts.SmJob

Example 5: Removing multiple SQL resources from disaster recovery mode

 Remove-SmResourceDRMode -AppObjectIds Host1/Inst1/DB1,Host1/Inst1/DB2

This example syntax removes SQL resources from disaster recovery mode.

			Result   : SMCoreContracts.SMResult
			TotalCount   : 0
			DisplayCount : 0
			Context  :
			Job  : SMCoreContracts.SmJob