There's more...

When we're done with this recipe, it's important to ensure the configuration files on each system match. Since we added the net block to /etc/drbd.d/pg.res on pg1, we should do the same on pg2. After making any changes to a DRBD configuration file, run this command to enable them:

drbdadm adjust pg

 

Get PostgreSQL High Availability Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.