LINBIT / drbd-utils

DRBD userspace utilities (for 9.x, 8.4, 8.3)
GNU General Public License v2.0
79 stars 47 forks source link

Split-brain notification script not working #20

Closed miro-igov closed 2 years ago

miro-igov commented 2 years ago

Hello, notify-split-brain.sh is not sending email when SB occurs. There is missing environment variable $DRBD_PEER

From syslog:

notify-split-brain.sh[16322]: Environment variable $DRBD_PEER not found (this is normally passed in by drbdadm)

rck commented 2 years ago

Sorry for the long delay. AFAIK setting this environment variable was already deprecated with 8.3, and 9.0 finally stopped exposing it. I'd assume that this never worked with DRBD9.

So long story short: thanks for reporting, I assume this needs some refactoring in all the scripts that are supposed to work with DRBD9, that don't already have fallbacks for finding the peer via "something else".

rck commented 2 years ago

This should be fixed now. You can test by just overwriting the script, or you can wait for 9.21.0-rc.1, which should be out today or tomorrow.

https://github.com/LINBIT/drbd-utils/commit/81aa507659fa47fdd8232e49368fd59e2a82aae5