I have upgraded a node in a two-node DRBD cluster as follows:
- reinstall Debian
apt-get install drbd-utils
systemctl start drbd
- configure block device (
disk) and IP address for DRBD resource
systemctl reload drbd
At this point DRBD starts to resync and the cluster becomes operational again.
My question is this: what determines if the node acts as DRBD primary or secondary at this point. In my case the opposite node was the primary, so it was important that the upgraded node started as secondary. Is this the default?