[systemd-devel] "primary" Condition for drbd?

Cristian Rodríguez crrodriguez at opensuse.org
Tue Jun 11 16:25:19 UTC 2024


On Tue, Jun 11, 2024 at 5:13 AM Harald Dunkel <harald.dunkel at aixigo.com> wrote:
>
> Hi folks,
>
> would it be possible to add a Condition to check if a drbd
> resource ( a virtual block device with replication via network,
> see https://linbit.com/drbd/) is primary? I checked
>
>         /sys/devices/virtual/block/drbd1
>
> for example, but I haven't found a way to distinguish primary
> from secondary block devices yet. Apparently there is no directory
> element showing up only for primary mode.


Did you ask the DRBD developers on what to check for AND if you are
really asking the right question to begin with?
Otherwise such a way to "distinguish primary from secondary" would
have been clearly described on some doc.


More information about the systemd-devel mailing list