I got an idea today, of not letting the sync thread start while the disks are out of sync. I am not sure if it will suffice to fool the raid. -AP On Thu, Jul 24, 2008 at 6:37 PM, Bill Davidsen <davidsen@xxxxxxx> wrote: > > Ana Paula wrote: >> >> Hi, >> I am using linux 2.6.8 for my research on raid systems. >> >> I need to have the disks of an array out of sync for a while. >> I want to be able to stop a disk request queue (blk_stop_queue) and >> start it sometime later. Meanwhile its mirrors should be serving r/w >> as if this mirror was up. >> Whenever the stopped mirror comes back it will serve all the requests >> already sent to it. >> >> I am queueing up the requests sent to all others while my mirror queue >> is stopped. >> >> The problem is that the other mirrors stop serving as well. Even if I >> don't stop the queue, only delay its request a little bit, still the >> others also slow down. >> >> Question: how do I get raid to allow mirrors to be out of sync? >> >> Obviously, I am missing something out in the code. >> >> Any clues? >> > > Take a look at "write-mostly" and see if creative use of it will assist. I suspect you're doing something which needs a bitmap, as well. > > -- > Bill Davidsen <davidsen@xxxxxxx> > "Woe unto the statesman who makes war without a reason that will still > be valid when the war is over..." Otto von Bismark > -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html