[Pacemaker] Problem with configuring stonith rcd_serial

Dejan Muhamedagic dejanmm at fastmail.fm
Tue Nov 2 17:45:08 UTC 2010


On Tue, Nov 02, 2010 at 04:26:40PM +0100, Eberhard Kuemmerle wrote:
> On 2 Nov 2010 16:15 02.11.2010 16:18, Eberhard Kuemmerle wrote:
> > Hi,
> > here is what you requested:
> >
> > TEST 1:
> > stonith -t rcd_serial -p "test /dev/ttyS0 rts 2000" test
> > ** (process:2928): DEBUG: rcd_serial_set_config:called
> > Alarm clock
> > # echo $?
> > 142
> >
> > TEST 2:
> > stonith -t rcd_serial hostlist="node2" ttydev="/dev/ttyS0" dtr_rts="rts"
> > msduration="2000" -S
> > ** (process:6851): DEBUG: rcd_serial_set_config:called
> > stonith: rcd_serial device OK.
> > # echo $?
> > 0
> >
> > TEST 3:
> > stonith -t rcd_serial hostlist="node2" ttydev="/dev/ttyS0" dtr_rts="rts"
> > msduration="2000" -T reset node2
> > ** (process:8142): DEBUG: rcd_serial_set_config:called
> > Alarm clock
> > # echo $?
> > 142
> >
> > TEST 1 as well as TEST 2 caused a reboot of node2!
> >
> SORRY, that's wrong!
> I wanted to say:
> TEST 1 as well as TEST 3 caused a reboot of node2!

Well, then there seems to be a problem with rcd_serial.
According to the exit code (142 = 128 + 14), it seems like the
plugin instance gets killed by the ALRM signal. The signal
should've been caught, but there is something wrong with the
registration of the signal handler.

Looks like this fails unexpectedly:

#if !defined(HAVE_POSIX_SIGNALS)

because our autoconf doesn't do tests for signal implementation.

Can you please try the attached patch? You'll have to rebuild
the package for that.

Thanks,

Dejan

> ------------------------------------------------------------------------------------------------
> ------------------------------------------------------------------------------------------------
> Forschungszentrum Juelich GmbH
> 52425 Juelich
> Sitz der Gesellschaft: Juelich
> Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
> Vorsitzender des Aufsichtsrats: MinDirig Dr. Karl Eugen Huthmacher
> Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
> Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
> Prof. Dr. Sebastian M. Schmidt
> ------------------------------------------------------------------------------------------------
> ------------------------------------------------------------------------------------------------
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker




More information about the Pacemaker mailing list