Managing a DRBD resource with systemd lets a standalone node start, stop, enable, reload, and inspect the per-resource units shipped by drbd-utils. Use this approach when Pacemaker, DRBD Reactor, or LINSTOR is not already the control plane for the same resource.
The per-resource target drbd@webdata.target pulls in drbd@webdata.service, which runs the drbd-utils service shim to adjust the live resource. The older aggregate drbd.service controls all configured resources and is a rougher tool when one resource needs a specific boot or maintenance decision.
Keep dependent mount units and application services in the same ownership model. If another manager owns promotion, mounts, or failover, inspect that manager first and avoid mixing manual drbdadm actions with systemd state that still thinks the resource is active.
Related: How to check DRBD resource status
Related: How to check DRBD after reboot
Related: How to configure DRBD auto-promote
$ sudo drbdadm status webdata
webdata role:Secondary
disk:UpToDate
node-b role:Secondary
replication:Established peer-disk:UpToDate
Replace webdata with the resource name from the matching /etc/drbd.d/ file. Resolve missing resources, disconnected peers, or unhealthy disk states before handing control to systemd.
Related: How to check DRBD resource status
$ sudo systemctl start drbd@webdata.target
drbd@webdata.target requires drbd@webdata.service, which adjusts this resource instead of starting every resource in /etc/drbd.d/.
$ sudo systemctl status drbd@webdata.service
● drbd@webdata.service - (Re)configure DRBD resource webdata
Active: active (exited)
Main PID: 943 (code=exited, status=0/SUCCESS)
active (exited) is expected for this oneshot unit after the resource adjustment succeeds.
$ sudo drbdadm status webdata
webdata role:Secondary
volume:0 disk:UpToDate
node-b role:Secondary
volume:0 replication:Established peer-disk:UpToDate
The resource target configures DRBD. It does not make the node Primary unless promotion is handled by auto-promote, drbd-promote@webdata.service, DRBD Reactor, or another service chain.
Related: How to promote a DRBD resource to primary
$ sudo systemctl enable drbd@webdata.target Created symlink /etc/systemd/system/multi-user.target.wants/drbd@webdata.target -> /usr/lib/systemd/system/drbd@.target.
Do not enable the unit on a node where a cluster manager should decide whether the resource starts, promotes, mounts, or stays down.
$ sudo systemctl reload drbd@webdata.service
The reload path calls the same adjustment logic used by drbdadm adjust webdata. Validate changed resource files first when syntax, peers, disks, or handlers changed.
Related: How to validate DRBD configuration
$ sudo systemctl stop drbd-services@webdata.target
Use this target only when application services or mounts are grouped under drbd-services@webdata.target. Stop the application or mount unit directly when the node does not use that target.
$ sudo systemctl stop drbd@webdata.target
This runs the drbd@webdata.service stop path and can take the local DRBD resource down after dependent services release it.
$ sudo systemctl is-active drbd@webdata.target inactive
$ sudo drbdsetup status webdata webdata: resource not found
The exact wording can vary by drbd-utils version. The resource should not show live volumes, connections, role, or disk state after the target is stopped.
Related: How to disable a DRBD resource
$ sudo systemctl disable drbd@webdata.target Removed "/etc/systemd/system/multi-user.target.wants/drbd@webdata.target".