Fedora comes with NetworkManager enabled out of the box. AFAICT it starts the network as part of a service script in init.d, then later on after logging in it reconnects as a user. At least, that’s what it looks like to me.
The problem is, I just came home, and for some reason the media server was down. The media server also has the primary of my new DRBD setup, and bringing the machine back up didn’t bring back the DRBD sync.
Digging deeper into /var/log/messages, it turned out the network wasn’t active when drbd got started, and so it failed to connect to the peer.
Obviously, if this machine reboots I want drbd to Just Work.
NetworkManager’s init script is S27, drbd is S70, I would have expected the network to be up by the time drbd kicks in. It looks like this wasn’t the case. And I can foresee situations where NetworkManager re-connecting after my (automatic) user login not helping either if anything in the background is trying to connect to the network.
What should I be doing instead on a machine like this ? Remove NetworkManager entirely ? Is that even still possible today ? How do you set it up?