February 2017
Intermediate to advanced
536 pages
28h 47m
English
For this recipe, we will need two PostgreSQL servers, pg1 and pg2, where pg1 is the currently active node. Follow these steps as the root user on the system indicated to move an active PostgreSQL service from one node to another:
pg_ctl -D /db/pgdata stop -m fast
umount /db
vgchange -a n VG_POSTGRES
drbdadm secondary pg
drbdadm primary pg
vgchange -a y VG_POSTGRES
Read now
Unlock full access