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?
- 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.
- 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>"
- Confirm the Vault.ini on the satellite you just removed is pointing to the master Vault.
- On the node you want to be passive of the affected satellite, bring the shared storage online and start the PrivateArk database service.
- Open PADR.ini and set "NextBinaryLogNumberToStartAt=-1".
- Run "CAVaultManager.exe ConfigureAsSatellite" then stop the PrivateArk database service after and take the shared storage disk offline.
- On the second node (will become active), bring the shared storage online and start the PrivateArk database service.
- Run "CAVaultManager.exe ConfigureAsSatellite" then start the node from CVM.
- Start the second node from CVM to resume as passive.
- Check padr.log and watch for successive "metadata replication has completed successfully" messages in subsequent replications (first is full replication, then incremental).
- Run "cavaultmanager.exe diagnosedbreport" on master and satellite to confirm the table has been updated correctly