Perform post-failover operations

After the failover, when the source site A is up and running, perform the recovery operation.

On completing the recovery, the primary site A becomes the new secondary site and the secondary site B becomes the new primary site. Data is synced from B to A.