it looks like a bug in filesystem (AGAIN)

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;;'

defnitely not good, here's the 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

I first saw this error in 0.7, now it's in v8

Dan.

On Wed, Feb 27, 2008 at 10:34 AM, Dan Gahlinger <[EMAIL PROTECTED]> wrote:

> I'm not even doing clustering, I'm using the old config (v1)
> I only have two servers, so clustering is a waste.
>
> Dan.
>
>
> On Wed, Feb 27, 2008 at 7:08 AM, Dejan Muhamedagic <[EMAIL PROTECTED]>
> wrote:
>
> > Hi,
> >
> > On Tue, Feb 26, 2008 at 05:21:42PM -0500, Dan Gahlinger wrote:
> > > I can't get heartbeat to work properly.
> > >
> > > I copied the config from another set of servers that works properly
> > and yet
> > > this one doesn't.
> > >
> > > it won't create the virtual IP, or start any of the processes it's
> > supposed
> > > to. and the logs don't say any problems, looks normal.
> > > Also doesn't setup DRBD properly, though drbd by itself works fine.
> > > not sure what's wrong with it.
> > >
> > > server 1 dbsrv01 192.168.100.2
> > > server 2 dbsrv02 192.168.100.3
> > > virtual ip setup wanted just "dbserver" 192.168.100.10
> > >
> > > haresources:
> > > dbsrv01 192.168.100.10 drbddisk::r0
> > Filesystem::/dev/drbd0::/data::reiserfs
> > > mysql postfix apach
> > > ha.cf
> > > logfacility local0
> > > logfile /var/log/ha-log
> > > debugfile /var/log/ha-debug
> > > udpport 694
> > > keepalive 1
> > > deadtime 4
> > > bcast eth2
> > > node dbsrv01
> > > node dbsrv02
> > > auto_failback off
> > > uuidfrom nodename
> > >
> > > I think it has to do with this-
> > >
> > > info: Running /etc/ha.d/resource.d/Filesystem /dev/drbd0 /data
> > reiserfs stop
> > > ResourceManager[4311]:  2008/02/26_17:04:00 ERROR: Return code 2 from
> > > /etc/ha.d/resource.d/Filesystem
> >
> > Failed stop is really dangerous.
> >
> > > ResourceManager[4311]:  2008/02/26_17:04:00 ERROR: Resource script for
> > > Filesystem::/dev/drbd0::/data::reiserfs probably not LSB-compliant.
> > > ResourceManager[4311]:  2008/02/26_17:04:00 WARN: it
> > > (Filesystem::/dev/drbd0::/data::reiserfs) MUST succeed on a stop when
> > > already stopped
> > > ResourceManager[4311]:  2008/02/26_17:04:00 WARN: Machine reboot
> > narrowly
> > > avoided!
> > > ResourceManager[4311]:  2008/02/26_17:04:00 info: Running
> > > /etc/ha.d/resource.d/drbddisk r0 stop
> > > ResourceManager[4311]:  2008/02/26_17:04:00 info: Running
> > > /etc/ha.d/resource.d/IPaddr 192.168.100.10 stop
> > > IPaddr[4862]:   2008/02/26_17:04:00 INFO:  Success
> > > heartbeat[4301]: 2008/02/26_17:04:00 info: All HA resources
> > relinquished.
> > >
> > > but I'm not sure  why it's having an issue with drbd filesystem, it's
> > setup
> > > identically to the other system that's working. (though that is drbd 7
> > not
> > > 8). And I get the errors with or without drbd running first.
> >
> > Can't say what's going on, but you can test your cluster by hand,
> > i.e. try to start/stop a resource by hand and look for errors.
> > Once you make sure that all your resources start and stop
> > properly, you can try to put them in a cluster.
> >
> > Thanks,
> >
> > Dejan
> >
> > >
> > > Dan.
> > > _______________________________________________
> > > Linux-HA mailing list
> > > [email protected]
> > > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > > See also: http://linux-ha.org/ReportingProblems
> > _______________________________________________
> > Linux-HA mailing list
> > [email protected]
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
> >
>
>
_______________________________________________
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