6.5. Basic Manual Fail-over

If not using Pacemaker and looking to handle fail-overs manually in a passive/active configuration the process is as follows.

On the current primary node stop any applications or services using the DRBD device, unmount the DRBD device, and demote the resource to secondary.

# umount /dev/drbd/by-res/<resource>
# drbdadm secondary <resource>

Now on the node we wish to make primary promote the resource and mount the device.

# drbdadm primary <resource>
# mount /dev/drbd/by-res/<resource> <mountpoint>