[Drbd-dev] [PATCH] scripts/notify.sh: Fix event identification
YAMAGUCHI Masashi
yamagu-m at saturn.dti.ne.jp
Fri May 28 01:46:56 CEST 2010
Hi,
"notify.sh" cannot identify the events of "notify-pri-lost.sh" and
"notify-pri-lost-after-sb.sh" so the mails sent by these scripts are
treated as "Unspecified DRBD notification".
--- drbd/scripts/notify.sh
+++ drbd/scripts/notify.sh
@@ -53,14 +53,14 @@
on $DRBD_LOCAL_HOST.
Please see the system logs for details."
;;
- *pri-lost)
+ *pri-lost.sh)
SUBJECT="DRBD resource $DRBD_RESOURCE is currently Primary, but is to become SyncTarget on $DRBD_LOCAL_HOST"
BODY="
The DRBD resource $DRBD_RESOURCE is currently in the Primary
role on host $DRBD_LOCAL_HOST, but lost the SyncSource election
process."
;;
- *pri-lost-after-sb)
+ *pri-lost-after-sb.sh)
SUBJECT="DRBD resource $DRBD_RESOURCE is currently Primary, but lost split brain auto recovery on $DRBD_LOCAL_HOST"
BODY="
The DRBD resource $DRBD_RESOURCE is currently in the Primary
---
Masashi YAMAGUCHI
More information about the drbd-dev
mailing list