DRBD - Stop DRBD Sync for backups

Steps to run on a secondary node for a cold backup. It will stop the cluster services, bring DRBD up, mount the partition, perform a cold backup and revert the process to bring the cluster services back up:

/etc/init.d/pacemaker stop
/etc/init.d/drbd start
drbdadm disconnect r0
drbdadm primary r0
mount /dev/drbd0 /mnt/drbd0
cp /mnt/drbd0/* ...
umount /mnt/drbd0/
drbdadm secondary r0
drbdadm connect --discard-my-data r0
drbd-overview
/etc/init.d/drbd stop
/etc/init.d/pacemaker start
sudo crm status