Allowing Heartbeat to perform bind mounts

I ran into the problem of  needing a bind mount over a shared disk resources on DRBD.

This because some software, like Zimbra, are not friendly with filesystem links. So, since I didn’t want to dedicate a whole DRBD resource to /opt/zimbra, I needed to use bind mount.

Unluckily, heartbeat doesn’t like that kind of mount, because the none filesystem type is not present in /proc/filesystems.

So a little option has to be added to che check if. In /usr/lib/ocf/resource.d/heartbeat/Filesystem, apply the following patch:


--- Filesystem.ORIG     2010-04-14 16:02:01.000000000 +0200
+++ Filesystem  2010-04-14 16:04:55.000000000 +0200
@@ -355,7 +355,8 @@
# Insert Filesystem module
$MODPROBE $FSTYPE >/dev/null 2>&1
grep -e "$FSTYPE"'$' /proc/filesystems >/dev/null
-                       if [ $? -ne 0 ] ; then
+                       # YetOpen - maxxer - 2010.04 To allow bind mount by heartbeat
+                       if [ $? -ne 0 -a "$FSTYPE" != "none" ] ; then
ocf_log err "Couldn't find filesystem $FSTYPE in /proc/filesystems"
return $OCF_ERR_ARGS
fi

This way, none filesystem will be allowed.

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

Solve : *
28 − 15 =


Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.