Cluster Sync Problem nach entfernen einen Node

proxminent

Well-Known Member
Jan 15, 2019
71
15
48
47
Stuttgart, Germany
Servus miteinander!
Das Problem: Sync Problem nach entfernen einen Node.

daemon.log

Feb 16 17:34:06 pmg2 pmgmirror[1603]: starting cluster syncronization
Feb 16 17:34:06 pmg2 pmgmirror[1603]: syncing deleted node 2 from master '192.168.255.11'
Feb 16 17:34:07 pmg2 pmgmirror[1603]: database sync 'pmg1' failed - DBD::pg::st execute failed: ERROR: duplicate key value violates unique constraint "cstatistic_pkey"
DETAIL: Key (cid, rid)=(2, 31584) already exists. at /usr/share/perl5/PMG/DBTools.pm line 1044.
Feb 16 17:34:07 pmg2 pmgmirror[1603]: cluster syncronization finished (1 errors, 1.29 seconds (files 0.18, database 0.90, config 0.21))

Ich habe folgendes schon mal versucht.
* node löschen.
* cluster neu erstellen
* node wieder am cluster verbunden (jedes mal bekommt einen neuen node id!?

Und siehe da, das problem ist wieder da ....
So wie es aussieht, der node 2 existiert aber immer noch auf die Datenbank ?


pmgcm status
NAME(CID)--------------IPADDRESS----ROLE-STATE---------UPTIME---LOAD----MEM---DISK
pmg1(1) 192.168.255.11 master A 18 days 02:26 3.67 71% 13%
pmg2(4) 192.168.255.12 node S 00:39 0.33 80% 13%


Ideen ?

Vielen Dank im Voraus,
 
Servus !
Vermutlich habe ich selbst die lösung gefunden.
Key (cid, rid)=(2, 31584) ist das Stichwort, duplicate key .. bla bla bla :)
cid=2 -> node2, nach entfernen und neu hinzufügen im cluster ist aber cid=3 ! also
psql
Proxmox_ruledb=> delete from cstatistic where cid=2;
DELETE 1
und ... eureka ! ... sync funktioniert wieder :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!