How to Modify a VPG Configuration XML File to Accommodate for a Host-ID Change
Viewed 78 times
An administrator may need to update the Host-ID within the VPG Configuration XML file due to the Recovery Host ID changing or a need to import the VPG to a different Recovery Host entirely.
To find the old Moref of the Recovery Host, simply attempt an import of a VPG with the XML in question. The error dialog will provide the Moref (i.e. host-xxxx). Let's call this 'host-a'.
In order to locate the Moref of the desired host, use the vCenter’s Managed Object Browser as follows:
Navigate to https://<vcenter-IP>/mob.
Login with administrator credentials.
Click the "Content" link under the value for the "content" property.
Click the "group" link under the value for the "rootFolder" property.
Click the relevant "datacenter" link under the value for the "childEntity" property.
Click the relevant "group" link under the value for the "hostFolder" property.
Click the "domain" link for the relevant cluster (or standalone host) under the value for the "childEntity" property.
Check the values for the "host" property - the relevant hosts will be listed along with their Morefs - let’s call the relevant one 'host-b'.
Now that the old and new Morefs are available, proceed as follows:
On the source or target ZVM, navigate to the ZVR directory’s ExportedSettings folder, which contains ZVR VPG configuration XML files: \Program Files\Zerto\Zerto Virtual Replication\ExportedSettings.
Make a copy of one of the files, with a timestamp when the VPGs were configured as desired, and place it on the ZVM’s desktop.
In a text editor, open the XML file on the desktop.
Search the file to locate all instances of “host-a”.
Replace those instances with “host-b”.
Save a copy of the file.
Open the Zerto Diagnostics utility.
Choose “Import Protection Group Settings”.
Browse to locate the edited XML file, and follow the prompts to import it.