Fixed.

The problem is, heartbeat starts children via /bin/sh
which is BASH on Linux but BOURNE-Shell
on Solaris which seem to handle parent-child relations
different.

So what I had to do was to change strings:
"/bin/sh" -> "/usr/bin/bash".

I also looked for similar problems and also changed
Strings:
"/sbin/reboot -nf" -> "/usr/sbin/reboot -f" 
"/sbin/poweroff" -> "/usr/sbin/poweroff" 

FYI: Details are in attched patch file.

I think it would be better to have autoconf handle
those hard coded strings. 



-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von ext Otte, Joerg
Gesendet: Dienstag, 8. Mai 2007 15:13
An: [email protected]
Betreff: [Linux-ha-dev] Solaris 10/i386: Heartbeat/Stonithd hangs onshutdown.

I am trying to get heartbeat 2.08/stable running
under Solaris 10 / I386.
OS: SunOS bcm20-a 5.10 Generic_125101-03 i86pc i386 i86pc

When I shutdown heartbeat it tells me:
> bcm20-a:/ # /etc/init.d/heartbeat stop
> Stopping High-Availability services:
> Done.

Shutdown hangs. The following processes remain running
and do not stop:
> bcm20-a:/ # ptree -a 1125
> 1     /sbin/init
>  1125  /usr/sfw/lib/python2.3/heartbeat/heartbeat
>   1129  /usr/sfw/lib/python2.3/heartbeat/heartbeat
>   1130  /usr/sfw/lib/python2.3/heartbeat/heartbeat
>   1131  /usr/sfw/lib/python2.3/heartbeat/heartbeat
>   1132  /usr/sfw/lib/python2.3/heartbeat/heartbeat
>   1133  /usr/sfw/lib/python2.3/heartbeat/heartbeat
>   1135  sh -c /usr/sfw/lib/python2.3/heartbeat/ccm
>     1144  /usr/sfw/lib/python2.3/heartbeat/ccm
>   1136  sh -c /usr/sfw/lib/python2.3/heartbeat/cib
>     1147  /usr/sfw/lib/python2.3/heartbeat/cib
>   1137  sh -c /usr/sfw/lib/python2.3/heartbeat/lrmd -r
>     1143  /usr/sfw/lib/python2.3/heartbeat/lrmd -r
>   1138  sh -c /usr/sfw/lib/python2.3/heartbeat/stonithd
>     1145  /usr/sfw/lib/python2.3/heartbeat/stonithd

In the logs I can see the last action is to kill
stonithd.
> heartbeat[1125]: 2007/05/02_13:23:11 info: killing
> /usr/sfw/lib/python2.3/heartbeat/stonithd process
> group 1138 with signal 15

But this does not work!

If I manually kill stonithd from the shell shutdown proceeds
and finish immediately.

Attached logs and configuration files.

Any suggestions ?

Attachment: shell-commands.patch
Description: shell-commands.patch

_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to