Re: [Linux-ha-dev] Re: Shared disk file Exclusiveness control program for HB2

2007-08-12 Thread Zhen Huang
Hi, I agree with Alan, if this part of work goes into a quorum module, it would be perfect. Quorum module is a kind of plugin too, so it is not an internal behavior of heartbeat. When a split-brain happened, the side with more nodes will take the quorum and continue the service, the less nodes si

RE: [Linux-ha-dev] Shared disk file Exclusiveness controlprogramforHB2

2007-08-12 Thread Junko IKEDA
> 2007/8/10, Junko IKEDA <[EMAIL PROTECTED]>: > > Hi, > > > > sfex_lock.c would work like this; > > 1) read lock data > > 2) check current lock status > > 3) reserve lock > > 4) detect the collision of lock > > 5) extension of lock > > 6) lock acquisition completion > > > > in "reserve lock" phase,

Re: [Linux-ha-dev] Shared disk file Exclusiveness controlprogramforHB2

2007-08-12 Thread Xinwei Hu
2007/8/13, Junko IKEDA <[EMAIL PROTECTED]>: > > 2007/8/10, Junko IKEDA <[EMAIL PROTECTED]>: > > > Hi, > > > > > > sfex_lock.c would work like this; > > > 1) read lock data > > > 2) check current lock status > > > 3) reserve lock > > > 4) detect the collision of lock > > > 5) extension of lock > > >

RE: [Linux-ha-dev] Shared disk file Exclusiveness controlprogramforHB2

2007-08-12 Thread Junko IKEDA
> > Assume we have 2 nodes. > > 1. Node A & B reach step 3) in the same time. > > 2. sfex_lock on Node B is scheduled out due to some other reasons. > > 3. sfex_lock on Node A goes through step 3 to 6, and Node A holds > > the lock now. Node A is sure to hold the lock at this moment. sfex_lock()

Re: [Linux-ha-dev] Shared disk file Exclusiveness controlprogramforHB2

2007-08-12 Thread Xinwei Hu
2007/8/13, Junko IKEDA <[EMAIL PROTECTED]>: > > > Assume we have 2 nodes. > > > 1. Node A & B reach step 3) in the same time. > > > 2. sfex_lock on Node B is scheduled out due to some other reasons. > > > 3. sfex_lock on Node A goes through step 3 to 6, and Node A holds > > > the lock now. > > Node