Forum Discussion
Azure Site Recovery failover/failback with in-guest iSCSI?
To fail back to on-premises, a method that seems to work in a simple lab environment -- although not ideal -- is:
- Delete the source VM (maybe unregistering the VM will work, but I didn't try that).
- Re-protect the Azure VM. (it still needs to be be registered with ASR.)
- The Config Server/Master Target Server will create a new VM and replicate the disks, including the VHD that had been converted from iSCSI (on the failover to Azure).
- After protection has completed full synchronization, fail back to on-premises.
The new VM will be created in ESX with the hostname of the VM. In my test, the VMDK (of the iSCSI disk) will be mounted, while the iSCSI target's volume was offline, even though there was connectivity to the target. Aside from choosing the Master Target server, VCenter and
The iSCSI volume can then be mounted, and the data copied from the VMDK to the iSCSI volume, if needed. Alternatively, keep it as a VMDK.
This definitely isn't ideal, as it makes the failback process much more difficult since enough space for the iSCSI disk is now needed on the VMFS datastore, and the entire VM needs to be fully replicated back to on-premises. However, it does still serve its purpose by providing simple disaster recovery to Azure (it's just a little harder to get it back on-prem).