DRBD.SERVICE(7)

NAME
drbd.service - System unit to configure "all" DRBD resources

SYNOPSIS

drbd.service

DESCRIPTION

Do not confuse this with the templated, resource specific drbd@RESNAME.service.

This unit is basically a wrapper for the old style init script that will attempt to configure all DRBD resources as defined in the global configuration files.

It can not be parameterized, and there is no useful way to wait for any or all DRBD resources to become "ready".

You should usually disable this unit.

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

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.

If you want to "hardcode" a promotion/mount attempt of specific DRBD resources into your boot sequence, you should be using drbd@RESNAME.target (see there) and 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, as 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.

Usually you are better of with

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

SEE ALSO

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

AUTHORS

LINBIT HA Solutions GmbH https://linbit.com