On 10/25/2010 10:00 AM, Scholte van Mast, Rene wrote:
> Hello,
> I have some trouble with my heartbeat configuration.
>
> Everytime I want one node down for maintenance I run "/etc/ha.d/heartbeat
> standby" on the masters-system to move all resources to the other node.
> Resource takeover completes successfully. If the maintenance requires a
> reboot, the Script "/etc/rc2.d/S75heartbeat stop" executes automatically
> during reboot. But here is the problem. Stopping the heartbeat services
> executes the scripts included in the haressources-file a second time one the
> master system.
>
> Why does stopping heartbeat services on slave, re-run the
> haressources-scripts on the master server, although all resources are already
> running on master. Why heatbeat doesn't notice that all ressources are
> already running on the master system.
>
The LSB requires that any init script which is already running not do
anything when invoked with "start" when already started.
Many scripts ignore this requirement which the LSB standard imposes.
The short answer about why the old heartbeat infrastructure does this is
two-fold:
It takes care of some special cases involving resources moving from
one system to another and a system crash
It was the simplest thing to do. If the init scripts (aka resource
agents) conform to the LSB, it by definition
will hurt nothing.
--
Alan Robertson<[email protected]>
"Openness is the foundation and preservative of friendship... Let me claim
from you at all times your undisguised opinions." - William Wilberforce
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems