Mailing List Archive

drbdd v0.2.0-rc.1
Dear DRBD users,

This is RC1 of the upcoming 0.2.0 release of drbdd. The main new feature
is the "user mode helper" plugin, which allows users to define simple
filters for DRBD state changes that are then matched. A match triggers
the execution of a user defined script. Information is passed via
environment variables.

A quick example for a rule that sends an alert whenever a resource gets
diskless looks like this:

[[umh.device]]
name = "now Diskless"
command = "sms.sh $(uname -n): $DRBD_RES_NAME $DRBD_NEW_DISK_STATE"
event-type = "Change"
old.disk-state = { operator = "NotEquals", value = "Diskless" }
new.disk-state = "Diskless"

I think the umh plugin has great potential to remove many hackish
scripts that did some kind manual DRBD state tracking.

There is extensive documentation on rules, types, environment
variables,.. [1,2]. This brings me to the second, not that exciting
change since 0.1.0: drbdd now has proper man pages for the daemon, the
config, and all plugins [3].

Please test. As usual, if there is no feedback that would require
changes, I will release the final version in about a week from now.

Eventually this will also replace the helper scripts that are currently
triggered by the kernel, but that will require more work on the kernel
and low level user space parts.

[1] https://github.com/LINBIT/drbdd/blob/master/src/plugin/umh.md
[2] man drbdd.umh
[3] drbdd(1), drbdd.toml(5), drbdd.promoter(5), drbdd.umh(5),
drbdd.debugger(5)

Regards, rck
GIT: https://github.com/LINBIT/drbdd/releases/tag/v0.2.0-rc.1
PGKS:
https://transfer.sh/4szld/drbdd_0.2.0-rc.1-1_amd64.deb
https://transfer.sh/2AXWl/drbdd-0.2.0-rc.1-1.x86_64.rpm
c508064d0a0af8ab9a7066fce6a0a8bb9529e2e2e0d9bb57550841ad99d8f010
./drbdd_0.2.0~rc.1-1_amd64.deb
56cba78701b0f2fd07b16d939e89e37aaa3b01ca72de5fc50bac367c52f3b2bf
./drbdd-0.2.0~rc.1-1.x86_64.rpm
_______________________________________________
drbd-announce mailing list
drbd-announce@lists.linbit.com
https://lists.linbit.com/mailman/listinfo/drbd-announce
Re: drbdd v0.2.0-rc.1 [ In reply to ]
And let's better sign that part:

On Tue, Mar 16, 2021 at 10:06:32AM +0100, Roland Kammerer wrote:
> GIT: https://github.com/LINBIT/drbdd/releases/tag/v0.2.0-rc.1
> PGKS:
> https://transfer.sh/4szld/drbdd_0.2.0-rc.1-1_amd64.deb
> https://transfer.sh/2AXWl/drbdd-0.2.0-rc.1-1.x86_64.rpm
> c508064d0a0af8ab9a7066fce6a0a8bb9529e2e2e0d9bb57550841ad99d8f010
> ./drbdd_0.2.0~rc.1-1_amd64.deb
> 56cba78701b0f2fd07b16d939e89e37aaa3b01ca72de5fc50bac367c52f3b2bf
> ./drbdd-0.2.0~rc.1-1.x86_64.rpm

Regards, rck