[Linux-ha-dev] Heartbeat 0.4.5c prerelease available for download
Alan Robertson
alanr@bell-labs.com
Sun, 03 Oct 1999 15:40:09 -0600
Thomas Hepper wrote:
>
> Hi,
> On Sat, Oct 02, 1999 at 10:04:46PM -0600, Alan Robertson wrote:
> > Hi,
> >
> > I've uploaded heartbeat 0.4.5c to the download directory of the web site, but
> > there are no pointers to it on the web site. The URLs are what you'd expect:
> >
> > http://www.henge.com/~alanr/ha/download/heartbeat-0.4.5c.tar.gz
> > http://www.henge.com/~alanr/ha/download/heartbeat-0.4.5c-1.src.rpm
> > http://www.henge.com/~alanr/ha/download/heartbeat-0.4.5c-1.i386.rpm
> >
> > Give it a shot, and see what you think.
>
> Question, who does the auth work. I have placed on both nodes the
> same authkey file (from the doc directory), removed the comments
> in front of the auth directive and now i get the following in the
> log:
> heartbeat: 1999/10/03_13:04:32 debug: master_status_process: node [skywalker.cha
> os.han.de] failed authentication
>
> So must the keys in the authkey file be the same or not.
>
> Next point is the /proc/ha interface, if i set the USE_MODULES=1
> in the heartbeat script the module is not loaded, and i get in the log file:
> ./heartbeat: [: too many arguments
>
> running the script with -vx shows the following problem;
> grep -v '^#' $CONFIG | grep watchdog |
> sed s'%^[ ]*watchdog[ ]*%%'
> ++ grep -v '^#' /etc/ha.d/ha.cf
> ++ grep watchdog
> ++ sed 's%^[ ]*watchdog[ ]*%%'
> + WATCHDEV=
> echo $WATCHDEV
> ++ echo
> + WATCHDEV=
> + '[' X '!=' X ']'
> + : No watchdog device specified in /etc/ha.d/ha.cf file.
> + '[' '!' -c -a no = yes ']'
> heartbeat: [: too many arguments
This is actually unrelated to the module building stuff I did for RH 6.1. I
think I fixed it. Try changing the if statement near line 108 in heartbeat.sh.
Please take careful note of the quoting, since I failed to do that before :-)
if
[ "X$WATCHDEV" != X -a ! -c "$WATCHDEV" -a $insmod = yes ]
then
minor=`cat /proc/misc | grep watchdog | cut -c1-4`
mknod -m 600 $WATCHDEV c $MISCDEV $minor
fi
I guess I still should figure out the module loading for RH 6.1, though...
-- Alan Robertson
alanr@bell-labs.com