Hi,

On Wed, Feb 20, 2008 at 10:02:28AM -0500, Ron Blechman wrote:
> I've got a 2-Node, single network connection using Heartbeat 1.x 
> configuration.

As the other poster suggested: add another heartbeat link.
Stonith doesn't prevent split brain, it can only help eliminate
the possibility of data corruption or other damage.

> What I'd like to do is assure that a server will not go primary if network 
> connectivity and ping node connectivity goes down  (e.g.by pulling the 
> network connection from the server).
>
> In other words, if I yank the network cable from Server-A
> 1) Server-A will be backup
> 2) Server-B will be primary.

If there's a split brain in a two-node cluster then both nodes
will have quorum and both will try to start all resources.

> I'm thinking that this can be accomplished by writing a simple stonith 
> application that does nothing else but the following:
> 1) returns success if I have connectivity to the ping node.
> 2) returns failure in all other cases.

Sorry, but that doesn't look like a stonith anything.

> Has anyone else tried or see any problems with doing this?

Split brain is to be avoided. It's as simple as that. However,
since there's always some probability that it will happen, in
spite of all precautions, stonith is put to use to fence nodes.

Thanks,

Dejan

> Thanks!
>
> Ron Blechman | Distinguished Member of Technical Staff | Avaya |
> 307 Middletown Lincroft Road | Room 3K-305 | Lincroft, NJ 07738 |
> Voice 732.852.2310 | Fax 732.852.1375 | [EMAIL PROTECTED] 
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to