Primary maintenance must be carried out when the Primary has been switched to a Replica, and then shunned. The Primary can be temporarily switched to a Replica, taken out of the dataservice through shunning, and then added back to the dataservice and then switched back again to be the Primary.
Maintenance on the dataserver should be performed directly on the corresponding server, not through the connector.
The complete sequence and commands required to perform maintenance on an active Primary are shown in the table below. The table assumes a dataservice with three datasources:
|2||Set the maintenance policy||set policy maintenance||Primary||Replica||Replica|
|3||Switch Primary||switch to host2||Replica||Primary||Replica|
Shun ||datasource host1 shun||Shunned||Primary||Replica|
Validate the ||tpm validate||Shunned||Primary||Replica|
Recover the Replica ( ||datasource host1 recover||Replica||Primary||Replica|
|8||Ensure the Replica has caught up||Replica||Primary||Replica|
Switch Primary back to
||switch to host1||Primary||Replica||Replica|
|10||Set automatic policy||set policy automatic||Primary||Replica||Replica|