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