Hi
On Fri, Aug 08, 2008 at 07:29:36AM +0200,
Sebastian Kösters <[EMAIL PROTECTED]> wrote:
>
> If host1 fails, host2 takes his IP, his DRBD Devices (and gets primary
> for them) and starts the resources1 script via heartbeat. Thats perfect
> too. But at failover heartbeat on host2 (or on host1 if host2 fails)
> also starts his own resource script again (here resource2).
I assume your resource script is missing a status section. Heartbeat calls
the configured resource agent many times with parameter "status". It does
this, to determine whether a resource is already running, or not.
Thus, the status operation should return the status and should print the
string "OK" or "running" when it is active, already.
Please have a look at the following link, where it is described:
http://www.linux-ha.org/HeartbeatResourceAgent
> Is it possible to configure something like that?
Modifying your resource script like described above should prevent Heartbeat
from calling it multiple times.
Regards,
Volker
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems