-
Notifications
You must be signed in to change notification settings - Fork 581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WARNING: Can't get <node-name> xlog location. #1846
Comments
Here's an old example of how to do this setup: https://wiki.clusterlabs.org/wiki/PgSQL_Replicated_Cluster From what I recall there was a couple of keywords that are outdated, but I think you can just remove them from the config file when you get the error until it starts without errors. |
Thanks for your reply. I referred to this example and it worked in my environment. I'm a little bit curious why it is the vip-rep rather than vip-master. pcs -f pgsql_cfg resource create pgsql pgsql |
vip-rep is for replication, so it's on it's own network in the example. |
I understand it is in its own network environment. In below 3 commands, the 3rd command with master_ip="192.168.2.3", why the value of master_ip is not the value of ip="192.168.0.3" from the first command? pcs -f pgsql_cfg resource create vip-master IPaddr2 pcs -f pgsql_cfg resource create vip-rep IPaddr2 pcs -f pgsql_cfg resource create pgsql pgsql |
Ah. That's probably due to the devs not thinking of a better name for the parameter when they made the pgsql agent, but at least the metadata says it's for replication: |
Thank you for quoting the description from metadata Master's floating IP address to be connected from hot standby. |
Hello,
I attempted to create an HA postgres cluster but the primary resource won't come to alive.
PostgreSQL version: 11.19
Pacemaker version: 2.1.4
OS Distribution: AlmaLinux 9.1
##############################
Cluster and Resource status:
Node Attributes:
##############################
pacemaker.log is repeating below lines,
Mar 09 10:31:16 pgsql(pgsql)[3290789]: INFO: Master does not exist.
Mar 09 10:31:16 pgsql(pgsql)[3290789]: INFO: My data status=LATEST.
Mar 09 10:31:16 pgsql(pgsql)[3290789]: WARNING: Can't get node-1 xlog location.
Mar 09 10:31:16 pgsql(pgsql)[3290789]: WARNING: Can't get node-2 xlog location.
Mar 09 10:31:20 pgsql(pgsql)[3290995]: INFO: Master does not exist.
Mar 09 10:31:20 pgsql(pgsql)[3290995]: INFO: My data status=LATEST.
Mar 09 10:31:20 pgsql(pgsql)[3290995]: WARNING: Can't get node-1 xlog location.
Mar 09 10:31:20 pgsql(pgsql)[3290995]: WARNING: Can't get node-2 xlog location.
I'm sure that the xlog's location is correct when I created the resource.
Am I using the wrong packages?
Do you have any example commands to create this cluster?
The text was updated successfully, but these errors were encountered: