Previous Topic: Suspend-Scenario - Suspend Updates on a ReplicaNext Topic: Sync-Scenario - Initiate a Synchronization


Switchover-Scenario - Perform a Switchover

The Switchover-Scenario command enables you to start the switchover process for a given HA scenario. To switch back the roles between the Master and the Replica, use the Switchover-Scenario command again.

Syntax
Switchover-Scenario [-Name] <String> -WaitJournal [<Boolean>] -run_reverse_scenario <string>

Parameters
Name

The scenario name.

WaitJournal

Whether to wait for journals.

0: Do not wait for journals. You cannot run the reverse scenario if you choose 0.
1: Wait for journals.

Run_reverse_scenario

Specifies whether to automatically run the reverse scenario.

Value 1 or True automatically runs the reverse scenario.

Value 0 or False do not automatically run the reverse scenario.

Example: Perform switchover

Switchover-Scenario "SQL Server 1" 1
Outcome
Scenario SQL Server 1 switching over to <Hostname>.
Done!