Heartbeat on Solaris

Alan Robertson alanr@unix.sh
Tue, 05 Mar 2002 14:21:10 -0700


Joao Sa wrote:

> Hi,
> 
> After downloading heartbeat 0.4.9a I tried to install it on Solaris 8, but
> I've found some problems.
> I would to like to share my experience and get your feedback about it.
> 
> First, I need to upgrade and install all packages needed by heartbeat
> (automake, autoconf, etc)
> I had a problem detecting the system type, and the problem appear to be in
> sh
> 
> When executing ./config.guess I get the error "./config.guess: test:
> argument expected"
> After changing sh to bash it worked.


Do you know which "test" this was?  I'd like to fix it...


> With everything compiled and installed, heartbeat don't start due to a
> problem locking serial device (I use /dev/cua/b)
> This is not a beautifull neither a secure solution but I use it only to test
> if the problem is here: I comment the line '/* return(HA_FAIL); */' on the
> file lib/plugins/HBcomm/serial.c and compiled again.


I thought this was fixed...    Matt?


> Using the initialization script at /etc/init.d/heartbeat I needed to change
> the line
> 	ERROR="($HA_BIN/heartbeat 2>&1)"
> to
> 	ERROR=`$HA_BIN/heartbeat 2>&1`


OK.  I incorporated this fix into CVS.


> After all this work the script ha.d/resource.d/IPaddr also don't work, so I
> hacked into it and I've made some changes, mainly to work with the different
> syntax of the solaris ifconfig command.
> 
> I would like to hear from you about running heartbeat on solaris.
> 
> If someone is interested in my IPaddr script I can send it by email.


I probably would, but would you try the version from CVS first.  There have 
been some fixes applied to that file since 0.4.9a  Most of the recent 
changes to that file have been to make it work for Solaris (and FreeBSD).

	-- Alan Robertson
	   alanr@unix.sh