DRBD - Split Brain Standalone

In case of Split Brain cs:StandAlone which can happen at any time:

Run this on secondary node:

drbdadm disconnect r0
drbdadm secondary r0 #This set the current node as secondary for r0
drbdadm connect --discard-my-data r0

Run this on primary node:

drbdadm disconnect r0
drbdadm primary r0 #This set the current node as primary for r0
drbdadm connect r0

Sources:

  • https://serverfault.com/questions/870213/how-to-get-drbd-nodes-out-of-connection-state-standalone-and-wfconnection