Question 1
A system administrator manages a three-node Pacemaker cluster hosting a critical database. The cluster uses a 'shared-nothing' architecture with DRBD replication. The administrator needs to configure a constraint to ensure the database service only starts on the node that is currently the DRBD Primary. Which specific constraint type and configuration logic should be applied?
Answer and explanation
Correct answer: B
DRBD is managed in Pacemaker as a promotable clone of the ocf:linbit:drbd agent (older documentation calls this multi-state or master/slave; "promiscuous clone" is not a Pacemaker term). A colocation constraint of the database with the Promoted (Master) role of that clone, e.g. pcs constraint colocation add Database with Promoted DRBD-clone or in crmsh colocation db_on_drbd inf: Database ms_drbd:Master, allows the database to run only on the node where DRBD is currently Primary. Colocation affects placement only, so it is normally paired with an order constraint (promote DRBD-clone then start Database) to make the database start after the promotion. A location constraint cannot point at another resource's role, promoting DRBD after the database has started is the wrong order, and symmetric-cluster=false only turns the cluster into an opt-in cluster.