hi,

i'm currently running a kind of "broken" environment and get the
following warnings:

> Sep 18 13:58:21 node2 lrmd: [21135]: info: RA output: 
> (drbd_db:0:monitor:stderr) DRBD module version: 8.3.7#012   userland version: 
> 8.3.8#012preferably kernel and userland versions should match.

actually, this is expected but at the same time irritating.

i found commit c82bc3f73e6a7f14b856471bd6e69d817e6145cc [1] where
one can set the environment variable DRBD_DONT_WARN_ON_VERSION_MISMATCH
to suppress such warnings.

i therefore propose the attach patch to add a new parameter
warn_on_version_mismatch which defaults to "true"

when it is set to false, it exports DRBD_DONT_WARN_ON_VERSION_MISMATCH=
to suppress the warnings.

feedback is appreciated.

of course, i grant all rights to apply/modify/.. this patch.

cheers,
raoul

[1]
http://git.drbd.org/?p=drbd-8.2.git;a=commitdiff;h=c82bc3f73e6a7f14b856471bd6e69d817e6145cc
-- 
____________________________________________________________________
DI (FH) Raoul Bhatia M.Sc.          email.          [email protected]
Technischer Leiter

IPAX - Aloy Bhatia Hava OG          web.          http://www.ipax.at
Barawitzkagasse 10/2/2/11           email.            [email protected]
1190 Wien                           tel.               +43 1 3670030
FN 277995t HG Wien                  fax.            +43 1 3670030 15
____________________________________________________________________
diff --git a/scripts/drbd.ocf b/scripts/drbd.ocf
index b2c4b89..dd2d028 100644
--- a/scripts/drbd.ocf
+++ b/scripts/drbd.ocf
@@ -50,6 +50,10 @@ OCF_RESKEY_drbdconf_default="/etc/drbd.conf"
 
 : ${OCF_RESKEY_drbdconf:=${OCF_RESKEY_drbdconf_default}}
 
+# shall we warn upon userland and kernel mismatch?
+: ${OCF_RESKEY_warn_on_version_mismatch:="true"}
+[ "${OCF_RESKEY_warn_on_version_mismatch}" = "false" ] && export DRBD_DONT_WARN_ON_VERSION_MISMATCH=
+
 # Defaults according to "Configuration 1.0 Explained",
 # "Multi-state resource configuration options"
 : ${OCF_RESKEY_CRM_meta_clone_node_max=1}
@@ -110,6 +114,14 @@ Full path to the drbd.conf file.
 <shortdesc lang="en">Path to drbd.conf</shortdesc>
 <content type="string" default="${OCF_RESKEY_drbdconf_default}"/>
 </parameter>
+
+<parameter name="warn_on_version_mismatch">
+<longdesc lang="en">
+Warn upon userland and kernel mismatch.
+</longdesc>
+<shortdesc lang="en">Warn upon userland and kernel mismatch</shortdesc>
+<content type="boolean" default="true">
+</parameter>
 </parameters>
 
 <actions>
_______________________________________________
drbd-user mailing list
[email protected]
http://lists.linbit.com/mailman/listinfo/drbd-user

Reply via email to