How it works...
Most of the resources we create in subsequent sections are called primitives. These should be considered the base resource element that Pacemaker controls as they have a one-to-one relationship with each service. The first one we create is for our DRBD service.
When creating new configuration entries with crm, we declare them with configure primitive, and then we must supply a name. To keep things simple, we named this resource drbd_pg. After the name, we must supply a resource agent to actually manage this service. Pacemaker is shipped with several, but we are specifically interested in the ocf:linbit:drbd agent, as it was written by the makers of DRBD themselves.
Next, we can configure the resource agent by specifying
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access