You can exchange the roles of Primary and Secondary nodes when the Secondary, or Backup, node is in the "Joined" state. When the Secondary node is in the "Waiting" state, switching is disabled.
After the roles are switched, the former Primary node is in the "Waiting" state. To recover the cluster configuration, join the "Waiting" node as the Backup.
See Recover a Cluster .