Hey,
You will need to perform failover to server B and then configure reverse replication to get data back to original server. The following article should help: https://www.red-gate.com/simple-talk/devops/containers-and-virtualization/a-practical-guide-to-microsoft-hyper-v-replica-part-ii/
As another option, you can also consider using StarWind VSAN to create replicated shared storage pools between your servers and create Failover Cluster to make your VMs highly available. The following guide covers the configuration process: https://www.starwindsoftware.com/resource-library/starwind-virtual-san-for-hyper-v-2-node-hyperconverged-scenario-with-windows-server-2016/
Cheers,
Alex Bykovskyi
StarWind Software
Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.