DRBD-GRACEFUL-SHUT(7)
π
DRBD-GRACEFUL-SHUT β the page for drbd-graceful-shutdown.service β¨
okay bestie, this is section 7 of the DRBD manual, and it's about the little service that makes your DRBD resources leave the party politely instead of just ghosting everyone. π
π¦ NAME π¦
drbd-graceful-shutdown.service β the attempt to shut down a DRBD resource gracefully when the system itself is shutting down π
πΈ SYNOPSIS πΈ
drbd-graceful-shutdown.service
β¨ DESCRIPTION β¨
So here's the vibe: this service is the attempt to shut down DRBD resources while they still have a chance to communicate that to their peers, so the resources can "gracefully" leave the DRBD replication. Like, waving goodbye on the way out instead of vanishing mid-sentence. π
For this reason, this unit is ordered after network-online.target: when the system shuts down, this service gets stopped before the network is torn down. The way that it needs the network still up to say bye? iconic, honestly. π«Ά
Resources that are explicitly managed by other systemd services should be stopped there.</purl> So this is also ordered before resource-agents-deps.target and drbd.service and the per-resource drbd@.service templates β which means it only gets stopped after those are stopped. Yes, the ordering is doing a whole little choreography. π
If you have some other foo.service that starts and stops DRBD resources, you should add a drop-in at /etc/systemd/system/drbd-graceful-shutdown.service.d/foo.conf:
[Unit]
Before=foo.service
(Or the inverse β just add After=drbd-graceful-shutdown.service to your foo.service instead. Either direction works, pick your fighter. π₯)
If you for some reason want to opt out of this service, you can still systemctl mask it. No hard feelings, bestie. π
quick vibe check: the drop-in path is/etc/systemd/system/drbd-graceful-shutdown.service.d/foo.confβ copy it exactly,foo.confand all, or systemd will simply not see you. π
π AUTHORS π
LINBIT HA Solutions GmbH β https://linbit.com π
and that's the whole page, no cap. This one came out of drbd-utils and it's dated 2026-08-15 β thanks for reading all the way to the bottom, you're literally the main character. ππ¦β¨
π¦ where this page comes from
- fedora 43: drbd-utils 9.34.0-2.fc43 Β· GPL-2.0-or-later
- fedora 44: drbd-utils 9.34.0-2.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms