How to identify and remove duplicate server_id records in Distributed Vaults environment

How to identify and remove duplicate server_id records in Distributed Vaults environment

84
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 16:12 PM


Objective


The  duplicated IP in DiagnoseDBreport >>vault_topology   looks like
+------------+---------------+-----------+-------------+ 
| server_id       |       IP      | bIsMaster | VirtualPort | 
+------------+---------------+-----------+-------------+ 
| 1487264396 | 1.1.1.1 | 0 | 33065 | 
| 1491857255 | 1.1.1.1 | 0 | 33066 | 
| 1491933964 | 1.1.1.1 | 0 | 33067 | 
|1464167510 |  2.2.2.2 | 1 | 33061 | 

Server_id is unique vault identifier, the numeric value equals to the timestamp when the Vault was installed  in unixtime.
So possible different vaults were installed with the same IP and configured and configured as Satellites

Question 1 :How to detect which server_id record is correct?

Question 2: How to remove additional server_ids?



Environment


10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;12.6;13.0;13.2;13.1;14.4 Privileged Access Manager (PAM, self-hosted) Vault Server;Distributed Vault;Vault

Procedure


How to detect which server_id record is correct?  
On the Vault with IP 1.1.1.1:
- run  DiagnoseDBreport >> go to  vault_topology section >> server_id 
or
- in  my.ini >> server-id 

How to remove additional server_ids?
  1. Bring down Vault services via CVM on the affected satellite (passive first, then active). Ensure that the Vault and DR services have stopped on both nodes.
  2. On the active node of the master Vault, open an admin command prompt at the "...Program Files (x86)\PrivateArk\Server" path and run "cavaultmanager.exe ExcludeSatellite /SatelliteVaultIP <satellite to exclude>"
  3. Confirm the Vault.ini on the satellite you just removed is pointing to the master Vault.
  4. On the node you want to be passive of the affected satellite, bring the shared storage online and start the PrivateArk database service.
  5. Open PADR.ini and set "NextBinaryLogNumberToStartAt=-1".
  6. Run "CAVaultManager.exe ConfigureAsSatellite" then stop the PrivateArk database service after and take the shared storage disk offline.
  7. On the second node (will become active), bring the shared storage online and start the PrivateArk database service.
  8. Run "CAVaultManager.exe ConfigureAsSatellite" then start the node from CVM.
  9. Start the second node from CVM to resume as passive.
  10. Check padr.log and watch for successive "metadata replication has completed successfully" messages in subsequent replications (first is full replication, then incremental).
  11. Run "cavaultmanager.exe diagnosedbreport" on master and satellite to confirm the table has been updated correctly
-----If this fails for some reason, a DBScript can be created to manually remove the duplicate----


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001dddCAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail