DRBD.SERVICE(7)

✨ NAME ✨

drbd.service β€” the system unit that goes and configures "all" the DRBD resources πŸ’…

so basically, hi bestie, this is the manual for the drbd.service unit, from the DRBD Manual (yes that's the manual name, we're fancy here πŸŽ€)


🌸 SYNOPSIS 🌸

drbd.service

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so FIRST of all: do not confuse this with the templated, resource-specific drbd@RESNAME.service. Different girl. Different vibe. 🫢

This unit is basically a wrapper for the old style init script, and what it does is attempt to configure all DRBD resources as defined in the global configuration files. All of them. Every single one. No filter. 😭

And here's the thing:

  • It can not be parameterized πŸ’€
  • There is no useful way to wait for any or all DRBD resources to become "ready" 🧚
You should usually disable this unit. like, fr fr. that's the takeaway. that's the whole vibe. πŸ™ˆ

If you use a cluster manager like pacemaker, that should bring up the DRBD resources instead, and via the DRBD ocf resource agent integration it also notices when DRBD is "ready" to be used. iconic behaviour honestly ✨

If you use LINSTOR and/or drbd-reactor, LINSTOR will bring up the resources, and drbd-reactor will attempt to bring up the services once DRBD becomes ready. team work makes the dream work 🌈

If you want to "hardcode" a promotion/mount attempt of specific DRBD resources into your boot sequence, you should be using:

  • drbd@RESNAME.target (go read that one, it's right there πŸ‘€)
  • drbd-wait-promotable@RESNAME.service
  • implicitly drbdRESNAME.service
  • and maybe, optionally, drbd-lvchange@RESNAME.service

If you think you want to enable this unit, you probably still should disable this unit, because this unit may not do what you think it does, and there likely are better ways to do what you expected this unit to do. the way that this unit is not the moment you think it is πŸ’…

Usually you are better off with:

systemctl enable drbd-configured.target
for res in $(drbdadm sh-resources); do
    systemctl enable drbd@$(systemd-escape "$res").target
done

slay. look at that little for loop. she's doing so much πŸ“


🌟 SEE ALSO 🌟

  • drbd-reactor(1)
  • drbd-reactor.promoter(5)
  • drbd@.target(7)

πŸ‘‘ AUTHORS πŸ‘‘

LINBIT HA Solutions GmbH https://linbit.com


drbd-utils Β· 2026-08-15 Β· DRBD.SERVICE(7) β€” okay bestie that's the whole page, you ate that, go disable the unit and hydrate πŸ’–πŸ§šβœ¨

πŸ“¦ where this page comes from