mars/kernel/sy_old
Thomas Schoebel-Theuer ea48664a14 light: disallow primary from rotating over damaged logfiles
Only a secondary is allowed to do this, because we assume that
logfile replay has the property of "anytime consistency"
only there.

When a primary cannot recover after a crash due to a defective
logfile, this is not true. The primary is simply lost in such a
(rare) case. Observed 2 times during almost 8 millions of
operating hours.

In such a case, hardware is truly defective, and you have only
the following options:

1) switchover to a secondary via "primary --force", OR

2) deconstruct the resource everywhere, run fsck or similar on
whatever replica seems to be the best version,
and reconstruct the resource from scratch, OR

3) restore your backup.
2016-01-21 08:09:47 +01:00
..
mars_light.c light: disallow primary from rotating over damaged logfiles 2016-01-21 08:09:47 +01:00
mars_proc.c infra: report peak IO latencies 2015-02-27 11:32:57 +01:00
mars_proc.h all: clarify license GPLv2+ 2014-11-25 18:09:17 +01:00
README all: move kernel source into separate directory 2013-04-08 17:01:37 +02:00
strategy.h all: clarify license GPLv2+ 2014-11-25 18:09:17 +01:00
sy_generic.c infra: fix comparison 2016-01-02 10:18:33 +01:00
sy_net.c all: clarify license GPLv2+ 2014-11-25 18:09:17 +01:00

This is ugly code from a first prototype trial.
It will disappear as soon as the new strategy layer has been
implemented. The new system will use an interpreter for automated
pattern matching and triggering actions, in a much more generic
fashion than hand-crafted here.