[Pacemaker] Problem with configuring stonith rcd_serial

Dejan Muhamedagic dejanmm at fastmail.fm
Wed Nov 3 10:06:09 UTC 2010


On Tue, Nov 02, 2010 at 06:45:08PM +0100, Dejan Muhamedagic wrote:
> 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.

If you've wondered which patch, here's finally one.

Thanks,

Dejan

> 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
> 
> _______________________________________________
> 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: have-posix-signals.patch
Type: text/x-diff
Size: 1032 bytes
Desc: not available
URL: <http://oss.clusterlabs.org/pipermail/pacemaker/attachments/20101103/a5cd5005/attachment.bin>


More information about the Pacemaker mailing list