When upgrading a vCenter Server, it may be required for an administrator to choose to create a new vCenter database, instead of upgrading the existing one. This action has a negative effect on Zerto Virtual Replication, as it relies highly on the vCenter database for tracking references to virtual infrastructure components and configurations. This article outlines the steps necessary to plan to recover Zerto Virtual Replication to a functional state, before creating a new vCenter database, as well as to go through the recovery procedure.
In order to plan to recover a Zerto Virtual Replication installation from a situation where a vCenter database will be recreated, follow these steps: (PLEASE NOTE, export the VPG settings from the ZVM GUI and the Zerto Diagnostic Tool)
- Login to the vSphere Client for the other site and navigate to the VPG List screen of the Zerto Virtual Replication GUI.
- Choose the Export to CSV option in order to export a file to the local computer which will contain all VPG configuration settings, including datastore locations of Target Disks. This will be useful when recreating VPGs later in the procedure.
- Export the VPG settings in ZVM dashboard just incase If we need to preseed the disk later.
- For each VPG in the VPG List, click on the Delete (trash can) icon and choose to "Keep the target disks at the peer site."
- Once all VPGs have been deleted and all target disks preserved, open a console or RDP session to each site ZVM VMs.
- Navigate to Control Panel > Programs & Features and choose to uninstall Zerto Virtual Replication.
- Perform the upgrade on the vCenter servers, choosing to recreate the databases as required.
- Locate the newest Zerto Virtual Replication installer files. These are accessible via the Zerto Self-Service Portal's Zerto Downloads section.
- Download the installers to both site ZVM VMs.
- Install the Zerto Virtual Replication software on both sites.
- Via the vSphere Clients connected to both peer sites, insert the license key, pair the sites, and deploy VRAs.
- Using the previously exported VPG configuration CSV file, go through the process of recreating each VPG. With the datastore locations of all of the previously protected target disks, which are included in the CSV file, choose to preseed the VPG volumes as described in the Preseeding Volumes KB article.
- Instead of going through an Initial Sync, the recreated VPGs will instead go through a shorter-duration Delta Sync.