/How to remove a dead vSphere Replication from vCenter with JXplorer

How to remove a dead vSphere Replication from vCenter with JXplorer

While updating my homelab, particularly my vSphere Replication Appliance, one vCenter had a registered vSphere Replication that doesn’t exist anymore. In this blog post, How to remove a dead vSphere Replication from vCenter with JXplorer, we will understand how to do this.

Since early vCenter versions that, we know to remove any vCenter plugin or extensions, we should use https://vcenter-ip/mob , and if we remove the vSphere Replication from the vCenter extensions, this could be enough. This is not enough if the vSphere Replication is registered in your vCenter.

Since there are too many blog posts in the community on how to delete a vCenter extension, I will not go through all the steps to delete the vSphere Replication extension “com.vmware.vcHms“, but instead how to unregister the vSphere Replication when there is no vSphere Replication appliance to do this. Unregistering can be done in the vSphere Replication Appliance if you have the appliance.

After removing the vCenter extension and checking vCenter, I still have the vSphere Replication, and the Site Recovery still points to a vSphere Replication that doesn’t exist anymore.

In this case, we need to unregister the vSphere Replication manually from vCenter.

First, you need to check which vSphere Replication is registered in your vCenter.

To check that, run the following command: /usr/lib/vmware-lookupsvc/tools/lstool.py list –url https://localhost/lookupservice/sdk –no-check-cert >/tmp/services.txt

This command will list all the services that are registered in this vCenter.

Next, check the file created in /tmp/services.txt and search for any vSphere Replication service entries.

And in this case, I found two related to vSphere Replication and with the IP of the old register vSphere Replication.

So we have two services with vSphere Replication that we need to remove manually. And to do this, we need to use the LDAP JXplorer tool to connect to the SSO domain.

Download the Windows version, and install it. Then to connect, you add your vCenter SSO details.

Two Important Notes:

  • First, doing any deletes or adding entries in your SSO Domain using any tool should only be done if you have experience. If not, please contact VMware support and perform these tasks only with VMware support guidance.
  • Second, before using this tool and touching your SSO Domain, backup your vCenter VM or vCenter DB. For this case, I created a snapshot of the vCenter. In any problem, I will use the snapshot.

This is the structure for the options and login.

Use the protocol LDAP v3.
Base DN will be dc=vsphere,dc=local
The Security Level will be User + Password.
The Security User DN will be cn=administrator,cn=users,dc=vsphere,dc=local
The Security Password will be your administrator password for the Identity or SSO server.

Basically, it is your vCenter SSO credentials.

Note: Don’t forget if your vCenter SSO domain differs from the default vsphere.local, you need to use your domain name correctly. That is my case.

After you are connected, search for the Service ID you find in the services.txt file you created.

First I searched the Service ID: h5-dr-59ce78da-568f-4a46-8867-f9809b353c24 and found one entry.

It means I need to delete this entry, but I want to double-check all the subentries and check if has all the information about my unregistered vSphere Replication that I show in the first image.

Need to drolldonw Configuration->Sites->default-site->LookupService->ServiceRegistrations->Source ID

Check all sub-entries and all points to the right vSphere Replication IP: 192.168.1.38

The next step is to delete the main entry(not the sub-entries), and service registration and sub-entries are all deleted.

After deleting the first register service that I found previously, I will search and delete the second one, Source ID: 59ce78da-568f-4a46-8867-f9809b353c24

Don’t forget to double-check all the entries and see if they point to the proper vSphere Replication.

All checked, so I deleted the Source ID service entry.

Disconnect and reboot your vCenter and double-check if all vSphere Replication references have been clean and vSphere Replication has been unregistered from your vCenter.

Has we can see in the following image, there is no Site Recovery icon. Everything was clean.

I hope this blog post, How to remove a dead vSphere Replication from vCenter with JXplorer, will help you to remove a dead vSphere Replication. Again, follow these procedures carefully and always do a backup/snapshot of your vCenter before starting any tasks.

Share this article if you think it is worth sharing. If you have any questions or comments, comment here or contact me on Twitter.

©2022 ProVirtualzone. All Rights Reserved
By | 2022-09-19T21:09:25+02:00 September 19th, 2022|vCenter, VMware Posts, vSphere|0 Comments

About the Author:

I have over 20 years of experience in the IT industry. I have been working with Virtualization for more than 15 years (mainly VMware). I recently obtained certifications, including VCP DCV 2022, VCAP DCV Design 2023, and VCP Cloud 2023. Additionally, I have VCP6.5-DCV, VMware vSAN Specialist, vExpert vSAN, vExpert NSX, vExpert Cloud Provider for the last two years, and vExpert for the last 7 years and a old MCP. My specialties are Virtualization, Storage, and Virtual Backup. I am a Solutions Architect in the area VMware, Cloud and Backup / Storage. I am employed by ITQ, a VMware partner as a Senior Consultant. I am also a blogger and owner of the blog ProVirtualzone.com

Leave A Comment