Leonhard Zachl wrote:
> but how could i tell the md driver on the primary server that the local
> disk is faulty and the 'nbd-disk' from the second server is ok
have you tried this? I haven't done anything with nbd, but I would expect
the following to happen:
* primary server comes up again
* primary server starts raid set with the local disk & the nbd
* it reads both superblocks, and will see that the nbd is more up to date,
and start the raid using only the nbd
* then do raidhotadd /dev/md0 /dev/localdisk, and it should rebuild
note: from everything I've heard you should basically expect horrible
performance from at least the rebuild from the nbd, if not all the time.
You'll want to hack the raid code to never do reads from the nbd (currently
it will load balance between the two). And you'd probably want to set it up
so that the secondary server only relinquishes control after the primary
server's disk is rebuilt... which could take forever with nbd?
Tom