Closed nenominal closed 1 year ago
Hi @nenominal ; thanks for your interest in pg_auto_failover. What happens here is that the new node "volta" with system identifier "7000752489655012967" is being registered in the formation "default" where another node has been registered already in the same group, and with system identifier "6950947499912605210".
In other words, you're trying to add a standby node to an existing primary node, and the standby node has its own PGDATA that is NOT a copy of the primary node's PGDATA. It was not done from a primary's backup, with the pg_basebackup tool, or with another way to create a physical copy of the primary data directory.
Please make sure that this node should be a standby in the same formation and group as the pre-existing node, and if that's your intention you could permanently remove the data directory on the "volta" node and then try again. I will see how to improve our error message there.
Hi @DimCitus, thanks for taking the time to explain in detail.
I've found the issue, my mistake was that I forgot that I don't need to initialize the postgres db server before adding the node to the cluster.
I emptied the folders in the PGDATA and now I successfully added the new node.
Rookie mistake but thanks for clarifications, this is how I remembered :)
Hi Dimcitus, Hope you are doing well! Thanks for the clarification.
Quick question:
If yes, thn how can we achieve kindly put your comments on it ..
Thanks
I had some issues with adding a new node and it seems that the data is registered in the pg_autofaiolver database. I failed to find where is located so I can delete it and try to add the node again.
Can someone point me to right direction?