Yes, this was exactly what I was thinking about. Simply syncing each raw
disk transaction, and since the geometry and partitions are the same, it
should be up to date. Running only one process instead of init gets rid of
the problem of notifying other processes of the updates.
>
>> My idea was to have the standby box run a custom init binary, that would
>> just sync the disks and wait for the other box to die. When it dies, it
>> runs the real init, everything comes up, and the box takes over.
>
>My recommendation is probably that you mirror the disks (software, or
>hardware if you have the $ to spend) to preserve data, and adapt the above
>slightly, so that instead of a custom init, you have kernel support for
>"wait until failover". And don't bother syncing the disks, because the md
>driver (or hardware RAID system) will do that work for you.
The boxes will have RAID anyway, but I'm trying to guard against the RAID
controller failure. Can the md driver do mirroring over network? If so,
then all my problems are solved. If not, where in the kernel sources should
I look for the code that flushes the buffer cache to disk?
-- Regards, Modemch
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/