How to avoid the active time of alarms to be refreshed when the backup got switch to the master?

Here is the problem:
Currently when we restart the ignition, the already-active alarms would be re-activated therefore the original active time of these alarms would be lost which is not what we want.
So we consider using redundancy. And when we stop the master then the client would switch to the backup which is good because at this moment the time of the alarms remain in there original state.
However, when we start the master again and the client got back to the master which makes the active time of the alarms become the exact time of the time that the client got back to the master. We still lost the orignal time of all the alarms.
Is there a better method to avoid the active time of the alarms to get changed when we restart the ignition?