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

Lennart Poettering lennart at poettering.net
Tue Jun 11 13:02:50 UTC 2024


On Di, 11.06.24 11:13, 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.

No idea what a "primary" or "secondary" block device is, but I sense
this is some drbd specific concept, and that sounds waaaaaay too
specific for use to add a new ConditionXYZ= type for, if that's what
you are asking.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list