Showing posts with label Networking. Show all posts
Showing posts with label Networking. Show all posts

Monday, November 2, 2026

Two Protected Sites, One Recovery Site: Why Protection and Recovery 9.1.1 Needs a Scale-Out (and the Two-Step Pairing Trick)

Two protected sites replicating to one shared recovery site with a combined and a scale-out appliance.

Seen in the field and fixed in a lab on Protection and Recovery 9.1.1 (build 9.1.1.0100). Field notes, not official guidance. Part 2 of a short series: Part 1 covers the DNS and hostname gotchas to check before you deploy.

TL;DR
  • You can have one combined Protection and Recovery appliance per vCenter. A second protected site that shares the same recovery vCenter needs a scale-out appliance, not another combined one.
  • Two combined appliances on one recovery vCenter fight over a single HMS extension (com.vmware.vcHms). The last one to register wins, and the other pair quietly breaks.
  • With a combined + scale-out recovery site, pair in two steps from the protected side: first vSphere Replication only, then Actions ▸ Add Pairs for Protection and Recovery (SRM).

The scenario

Two protected sites, Site A and Site C, each with its own vCenter. Both replicate to one shared recovery site, Site B, which has a single vCenter. This is the classic fan-in (shared recovery site) topology.

Since 9.0.3 the old Site Recovery Manager, vSphere Replication (VR) and vSAN snapshot appliances are merged into a single Protection and Recovery (P&R) appliance. In the old world you deployed one VR plus one SRM per protected site on the recovery side. In the new world the obvious first idea is: “I have two protected sites, so I deploy two P&R appliances on the recovery vCenter.” That is exactly what I did first, and it does not work.

What went wrong

I deployed the combined OVA twice on the recovery vCenter, each with its own extension ID (X for the A pair, Y for the C pair). The IDs were right. The topology was not. The symptoms were confusing:

  • The recovery vCenter showed only one vSphere Replication entry instead of two.
  • Reconnect Pair on one of the pairs failed with “Unknown SSL certificate error”.
  • Pairing from the recovery side showed some tabs and not others, depending on which direction I started from.

The SSL error is a red herring. Every pairing starts with an SSL probe that logs certificate verify failed until the certificate is trusted, even in pairings that end up working. The real cause was in the SRM log (/var/log/vmware/srm/vmware-dr.log) of the affected recovery appliance. Its idea of “where is my HMS” moved from one appliance to the other:

HmsProxy  UpdateHmsExtension: Received updated HMS extension with server URL='https://dr-combined-1.example.com:443/vrms'
HmsProxy  FindHmsEndpointDone: Found HMS server at URL 'https://dr-combined-1.example.com:443/vrms'
   ... a few hours later ...
HmsProxy  UpdateHmsExtension: Received updated HMS extension with server URL='https://dr-combined-2.example.com:443/vrms'
HmsProxy  FindHmsEndpointDone: Found HMS server at URL 'https://dr-combined-2.example.com:443/vrms'

A vCenter has one HMS extension, com.vmware.vcHms, and its ID is fixed. SRM instances find “their” vSphere Replication through that extension. Every time a combined appliance is configured or re-paired, it registers itself there and overwrites whoever was there before. The Broadcom documentation says it plainly: if you deploy more than one appliance on the shared recovery site, each new appliance overwrites the registration of the previous one.

Site A · protected vCenter A Combined appliance Site C · protected vCenter C Combined appliance Site B · shared recovery vCenter Combined #1 SRM + VR (HMS) ID: X Combined #2 SRM + VR (HMS) ID: Y com.vmware.vcHms one slot per vCenter last writer wins SRM pair SRM pair registers registers
What not to do: two combined appliances on the same recovery vCenter both register com.vmware.vcHms. Only one survives, and the SRM of the other pair follows the wrong VR.

The design that works: one combined + scale-out

The 9.1 documentation is clear once you read the right chapters: only one combined appliance per vCenter, and up to nine scale-out appliances per vCenter. The scale-out appliance contains only the Protection and Recovery (SRM) component and is meant for fan-in and fan-out topologies. (The 9.0.x KBs call it the add-on appliance; it is the same thing.) It is a separate OVA on the Broadcom support portal (Protection-and-recovery-scale-out-9.1.x.x.<build>.ova), and it is much smaller:

AspectCombinedScale-out
ComponentsP&R (SRM) + vSphere Replication + vSAN snapshots/replicationP&R (SRM) only
Sizing8 vCPU, 24 GB RAM, ~800 GB4 vCPU, 8 GB RAM, ~110 GB
Per vCenter1up to 9
Upgrade path to the other typeNone from scale-out to combined. If you may ever need VR or vSAN replication on that vCenter, deploy the combined one.

For two protected sites the recovery vCenter therefore gets one combined appliance (it owns VR/HMS for everybody) and one scale-out appliance (it only carries the second SRM). Extension IDs follow one rule: each pair uses the same ID on both ends, and different pairs use different IDs. The first pair may use the default ID; the others need a custom one, which you set on the Name and Extension page of Configure appliance.

Site A · protected Combined appliance extension ID: X Site C · protected Combined appliance extension ID: Y Site B · shared recovery vCenter Scale-out appliance SRM only extension ID: X Combined appliance SRM + VR (HMS) extension ID: Y com.vmware.vcHms owned by this one SRM · ID X SRM · ID Y replication (VR ↔ VR) SRM pair replication
The working design. Each SRM pair is matched by extension ID (A with the scale-out, C with the combined appliance). Replication from both protected sites goes to the single VR/HMS that lives on the combined appliance.

Note that the two kinds of pairs do not go to the same appliance: Site A’s SRM pairs with the scale-out, but Site A’s replication pairs with the combined appliance, because that is the only one with an HMS. This is why the order and the way you pair matter so much.

Rebuilding the recovery side

  1. Take snapshots of both vCenters and of the appliances you are about to remove.
  2. Decide which recovery appliance stays combined (I kept the one that already owned com.vmware.vcHms).
  3. Remove the other combined appliance and clean up what it registered in the recovery vCenter: its com.vmware.vcDr-* extension and its solution users (vr-sa-*, SRM-*, dr-backup-*, aps-remote-*). This cleanup is my own practice; the docs do not describe it.
  4. Deploy the scale-out OVA with the same FQDN/IP plan, and in Configure appliance choose Custom extension ID with the same ID as its protected-site partner.

The pairing trick: two steps, always from the protected side

The documented procedure for a shared recovery site is: on the protected vCenter, New Site Pair, type the recovery vCenter address (exactly as used at install time), and the wizard connects to the instance with the matching extension ID. Repeat for every protected site. That is what I tried. With a combined + scale-out recovery site it did not fully work for me. Three things made the difference:

  1. Direction matters. Start every pairing from the protected vCenter toward the recovery vCenter (A→B, C→B). When I started from the recovery vCenter (B→C), I got tabs in the recovery vCenter but the pair was created in the reverse direction: B as protected, C as recovery. Nothing useful showed in C.
  2. Do not pair both services at once. Selecting vSphere Replication and Protection and Recovery together in one wizard connected only one of them. When only the VR half connected, the protected vCenter had no Protection Groups tab at all, because the SRM pair simply did not exist.
  3. Add the SRM pair afterwards. First create the site pair with vSphere Replication only (it connects to the combined appliance). Then open the site pair and use Actions ▸ Add Pairs to add Protection and Recovery (it connects to the scale-out whose extension ID matches).
1 · Pair Sites vSphere Replication only from the protected vCenter lands on the combined 2 · Actions ▸ Add Pairs Protection and Recovery on the same site pair lands on the scale-out (same ID) 3 · Verify Protection Groups tab visible on the protected vCenter one VR entry on recovery Protected vCenter Recovery vCenter ✓ initiate here (A→B, C→B) Recovery vCenter Protected vCenter ✗ creates the reverse pair
The three-step pairing that worked, and the direction pitfall. Add Pairs lives in the Actions menu of the site pair you created in step 1.

One more thing from the release notes: pairing a full appliance to a full appliance and to a scale-out at the same time can fail. The documented workaround is to pair sequentially, one site pair at a time. I did the same: A first, verify, then C.

Checklist

  1. Recovery vCenter: exactly one combined appliance, plus one scale-out per additional protected site.
  2. Extension IDs: same ID on both ends of each pair, different IDs between pairs, and the scale-out configured with a custom ID.
  3. Pair one protected site at a time, always initiated from the protected vCenter.
  4. Per protected site: step 1 vSphere Replication only, step 2 Actions ▸ Add Pairs for Protection and Recovery.
  5. Verify before moving to the next site (below).

How I verified it

  • The Protection and Recovery tabs (Protection Groups, Recovery Plans) show up on the protected vCenter and on the recovery vCenter, with the pair in the expected direction.
  • The recovery vCenter lists a single vSphere Replication instance, shared by every protected site.
  • In vmware-dr.log of every SRM, UpdateHmsExtension and FindHmsEndpointDone point at the combined recovery appliance, and stay there after you configure or re-pair anything else.
  • The recovery vCenter has one com.vmware.vcDr-* extension per pair and a single com.vmware.vcHms.
Caveats. This was validated in a lab on 9.1.1 (the only 9.1.1 build I have seen is 9.1.1.0100). The two-step pairing and the Add Pairs action are not described in the 9.1 guide I searched, so treat them as a field observation until Broadcom documents or confirms them. Use snapshots, and test in a lab before you touch a production recovery site.

References

Before You Deploy Protection and Recovery 9.1.1: DNS, Hostname and PTR Gotchas

Checklist of four DNS checks before deploying a Protection and Recovery appliance: valid hostname, forward DNS, reverse DNS and DNS reachable at boot.

Notes from deploying Protection and Recovery 9.1.1 (build 9.1.1.0100). Field notes, not official guidance. Part 1 of a short series; Part 2 will cover pairing two protected sites to one shared recovery vCenter.

TL;DR
  • Name the appliance with lowercase letters, digits and hyphens only. An underscore in the hostname (dr_appliance_01) is the kind of mistake that costs you a redeploy.
  • Give every appliance FQDN a forward (A) and a reverse (PTR) record, and use that same FQDN everywhere: deployment, vCenter registration, pairing.
  • The appliance needs a working DNS at first boot. If it does not, you can get a ~15 minute boot delay and an empty /etc/resolv.conf (Broadcom KB 429918, with a workaround).
  • If your domain ends in .local, add it to the appliance’s DNS search domains (KB 415597).

Why this is worth a post

Protection and Recovery (P&R) 9.1 merges Site Recovery Manager, vSphere Replication and vSAN snapshots into one appliance. You deploy it once per site, register it with a vCenter, and later pair it with its peer. Almost every step in that chain goes through names, not IPs. The 9.1 guide says to use FQDNs rather than IP addresses wherever possible, and when you create a site pair it requires that the vCenter address you type is an exact match of the address used when the appliance on the other site was installed.

So a bad hostname or a missing DNS record does not fail where you made the mistake. It fails two steps later, as a pairing error or an appliance that never comes up. Everything below was observed on the combined appliance. I expect the same rules to hold for the scale-out appliance, but the KBs I cite do not say so explicitly.

1 · Valid hostname a-z, 0-9, hyphen no underscores 2 · Forward DNS A record for the appliance FQDN 3 · Reverse DNS PTR record for the appliance IP 4 · DNS at boot reachable at first boot (and .local search domain) If skipped: appliance never takes its IP, VRMS errors If skipped: registration and pairing by name fail If skipped: blank-hostname deploy gets no usable name If skipped: ~15 min boot delay, empty resolv.conf
Four things to check before you click Finish in the deployment wizard, and what you get if you skip each one.

1. The hostname: lowercase letters, digits and hyphens

A valid hostname label uses letters, digits and hyphens (RFC 1123). Keep it lowercase to be safe: the 9.1 guide asks for the vCenter host name in Configure appliance to be typed in lowercase, and certificates can only cover letters, digits, periods and hyphens (as KB 389711 points out).

No underscores. In my case an appliance deployed with an underscore in its name (something like dr_appliance_01) simply never took its IP address after the first boot. I did not find a Protection and Recovery KB that describes that exact symptom, so take it as a field observation. There is, however, a closely related Broadcom article for the older vSphere Replication appliance: KB 389711. With an underscore in the hostname the appliance cannot be reconfigured (“Failed to register VRMS”) and the HMS log shows java.net.URISyntaxException: Illegal character in hostname. The KB’s own fix is to recreate the DNS record without the underscore, update the appliance hostname to the FQDN, change the certificate from the VAMI, reconfigure the appliance and reconnect the site pair.

For a freshly deployed appliance that never got its IP, my advice is simpler: fix the name in DNS and redeploy with a valid one. The name ends up in certificates and registrations, and a clean redeploy is cheaper than chasing leftovers.

2. Forward and reverse DNS for every FQDN

The deployment wizard lets you leave the hostname field blank. In that case, the guide says, the DNS server performs a reverse lookup of the appliance’s IP to get its host name, or the appliance registers with its IP as its host name. If you give it a static IP, you are asked to enter an FQDN for that IP. Either way, the safe baseline is the same:

WhatNeeds
Appliance FQDNA record and PTR record, both pointing at each other
Local and remote vCenterResolvable from the appliance, by the same FQDN you use at registration
Peer P&R appliancesResolvable from each other
ESXi hostsResolvable from the appliance (it talks to the hosts by name)

The PTR requirement is a recommendation of mine, not a sentence I found in a Broadcom KB. It is cheap, and a missing PTR is exactly the kind of problem that shows up as a confusing error three steps later. Check both directions from a machine in the same network as the appliance:

nslookup dr-appliance-01.example.com        # forward: must return the appliance IP
nslookup 192.0.2.25                          # reverse: must return the same FQDN

Then use exactly that FQDN from now on. The site-pair wizard compares the address you type with the one used during installation of the other appliance, so a short name in one place and an FQDN in another is a self-inflicted failure.

3. DNS must be reachable at first boot (KB 429918)

This one is a known issue and it has a KB: KB 429918, DNS Resolution Fails and 15-Minute Network Delay on newly deployed 9.0.5 or 9.0.4 VMware Live Recovery Appliances. The article also lists Protection and Recovery 9.1. It does not distinguish combined from scale-out.

What you see on a newly deployed appliance:

  • Roughly 15 minutes pass before networking comes up after boot.
  • DNS resolution then fails. The VAMI shows the correct DNS servers, but /etc/resolv.conf is empty or points at the local stub listener 127.0.0.53.
  • Manual edits to /etc/resolv.conf disappear after a reboot or after restarting systemd-networkd.
  • Tasks that need names fail, for example a plan task with “Failed to connect to NFC service: Temporary failure in name resolution”.

According to the KB, the appliance uses the systemd-resolved stub file by default. If the DNS servers cannot be reached during boot, the stub is not populated from the network configuration, and the OS waits for network resources, which explains the delay. The workaround is to point /etc/resolv.conf at the static file that systemd maintains, so the stub listener is bypassed. As root on the appliance:

unlink /etc/resolv.conf
ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
systemctl restart systemd-networkd     # or reboot
cat /etc/resolv.conf                    # your DNS servers must be listed

Note that the KB says you still need to fix the underlying reason the DNS servers were unreachable at boot (firewall, wrong VLAN, DNS server not answering from that network). The symlink only stops the appliance from being so fragile about it.

4. If your domain ends in .local

KB 415597 describes VMware Live Recovery 9.x appliances that cannot resolve names ending in .local: nslookup answers REFUSED from 127.0.0.53 and the vCenter connection fails with “Unable to connect to host” during configuration. It is a known Photon OS behavior, because .local is reserved for link-local/mDNS use (RFC 6762). The KB does not mention Protection and Recovery by name, so treat its applicability as likely but unconfirmed. The fix is to add your domain to the appliance’s DNS search domains. SSH as admin, switch to root, and run:

nmctl show-domains
nmctl set-dns-domains dev eth0 domains example.local
nmctl show-domains
nslookup vcenter.example.local          # should answer, not REFUSED

If you have a say in the naming, a real routable domain name avoids this whole class of problems.

Pre-deployment checklist

  1. Hostname: lowercase letters, digits and hyphens. No underscores.
  2. A and PTR records created for every appliance FQDN, verified in both directions.
  3. The vCenters (local and remote) and the ESXi hosts resolve from the appliance network.
  4. DNS servers are reachable from the appliance network at boot time (firewall, VLAN, routing).
  5. Domain ends in .local? Plan to add it to the search domains.
  6. Decide the FQDN you will use for registration and pairing, and use that exact string everywhere.
  7. After the first boot, check /etc/resolv.conf and apply the KB 429918 workaround if it is empty or points at 127.0.0.53.
Caveats. KB 429918 and KB 415597 describe appliance versions and wording that may change as Broadcom updates them; check the current text. The underscore symptom (appliance never taking its IP) and the PTR advice are my own field notes, not statements from a Protection and Recovery KB. Test on a lab appliance before you apply any workaround in production.

References