Opposite of "failover"

The strict opposite of “failover” is “failback”. Both can be hyphenated or not; just be consistent about it.

Note that failback means that B will switch back to A automatically when A is available again. If B remains active until it fails, then your system doesn’t have failback; it has double failover.