[Linux-ha-dev] [PATCH] prevent Slave promotion in mysql RA

Raoul Bhatia [IPAX] r.bhatia at ipax.at
Mon Nov 14 01:55:25 MST 2011

On 2011-11-11 09:22, Junko IKEDA wrote:
> Hi,
> I am running MySQL replication setting with 2 nodes Master/Slave configuration.
> If Slave status(secs_behind) is lager than Master's parameter(max_slave_lag),
> Slave data is outdated, right?
> check_slave() in mysql RA would run "crm_master -v 0" in this
> situation to mark Slave as "outdated",
> but if Master is shut down in this status,
> Slave will be able to promote instead of its old data.
> (is this correct?)
> It seems that "crm_master -v -INFINITY" is effectual to prevent Slave promotion.

forwarding this to marek and fghaas as i'm not familiar with
multi-state handling inside resource agents.

DI (FH) Raoul Bhatia M.Sc.          email.          r.bhatia at ipax.at
Technischer Leiter

IPAX - Aloy Bhatia Hava OG          web.          http://www.ipax.at
Barawitzkagasse 10/2/2/11           email.            office at ipax.at
1190 Wien                           tel.               +43 1 3670030
FN 277995t HG Wien                  fax.            +43 1 3670030 15

More information about the Linux-HA-Dev mailing list