February 2020
Intermediate to advanced
734 pages
38h 13m
English
We will assume that the 10.0.30.150 IP address exists as a predefined target for our PostgreSQL cluster. Users and applications will connect to it instead of the actual addresses of pg1 or pg2.
Perform these steps on any Pacemaker node as the root user:
crm configure primitive pg_vip ocf:heartbeat:IPaddr2 \
params ip="10.0.30.150" \
iflabel="pgvip" \
op monitor interval="5"
ip addr | grep -A1 :pgvip
crm resource cleanup pg_vip
crm resource status
Read now
Unlock full access