it looks like a bug in the Filesystem script
as per ha-debug log:

ResourceManager[8888]:  2008/02/26_17:17:58 info: Running
/etc/ha.d/resource.d/Filesystem /dev/drbd0 /data reiserfs stop
ResourceManager[8888]:  2008/02/26_17:17:58 debug: Starting
/etc/ha.d/resource.d/Filesystem /dev/drbd0 /data reiserfs stop
/etc/ha.d/resource.d/Filesystem: line 58: syntax error near unexpected token
`;;'
/etc/ha.d/resource.d/Filesystem: line 58: `    export OCF_RESKEY_fstype;;'

definitely not good, here's the code, note the double semi-colon on two
lines,
can we get someone to clean this up in the mainline code?

. /etc/ha.d/resource.d//hto-mapfuncs

usage() {
    echo "usage: $0 <device> <directory> [<fstype> [<options>]]
$LEGAL_ACTIONS"
    exit 1
}

# Check the arguments passed to this script
if [ $# -lt 3 ]; then
    usage
fi

if [ "x$2" != "x" ]; then
    OCF_RESKEY_device="$1"; shift
    export OCF_RESKEY_device
fi

if [ "x$2" != "x" ]; then
    OCF_RESKEY_directory="$1"; shift
    export OCF_RESKEY_directory
fi

if [ "x$2" != "x" ]; then
    OCF_RESKEY_fstype=$1; shift
    export OCF_RESKEY_fstype;;
fi

if [ "x$2" != "x" ]; then
    OCF_RESKEY_options="$1";  shift
    export OCF_RESKEY_options;;
fi

OCF_TYPE=IPaddr
OCF_RESOURCE_INSTANCE=${OCF_TYPE}_$OCF_RESKEY_device
export OCF_TYPE OCF_RESOURCE_INSTANCE

ra_execocf  $1
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to