-
Book Overview & Buying
-
Table Of Contents
PostgreSQL 9 High Availability Cookbook
By :
DRBD is actually one of the most difficult resources to manage with Pacemaker. Unlike a regular service that is started or stopped depending on where it is active, DRBD is always active. The only thing that changes between two nodes running DRBD is the Primary or Secondary state ascribed to each.
Due to this complication, DRBD is not one resource, but two:
PrimaryIn this recipe, we'll allocate both of these resources so that Pacemaker can manage DRBD properly.
As we're continuing to configure Pacemaker, make sure you've followed all previous recipes.
In the previous chapter, we created a DRBD resource named pg. With this in mind, follow these steps as the root user to add DRBD to Pacemaker:
primitive for DRBD with this command:crm configure primitive drbd_pg ocf:linbit:drbd \ params...