linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mdadm, bitmap and split-brain
@ 2011-11-26 20:28 Ronal Andadinata
  2011-12-06  4:45 ` NeilBrown
  0 siblings, 1 reply; 2+ messages in thread
From: Ronal Andadinata @ 2011-11-26 20:28 UTC (permalink / raw)
  To: linux-raid

Hi,

I'm wondering, in the case of raid1 array with internal bitmap, it goes 
like this :
1. Machine A has 1 raid1 array with Disk1 dan Disk2
2. Dettach Disk2 from Machine A, put it on Machine B
3. Machine A runs normally, Machine B runs on normally on different place.
4. Detach Disk2 from Machine B, put it back on Machine A, re-add Disk2 
to md1

If this were raid1 without bitmap, Disk2 will be overwritten from 
scratch with contents of Disk1, what happen if the array has bitmap ? 
Would there be partial sync ? Would the two disk be identical with only 
using partial sync ?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: mdadm, bitmap and split-brain
  2011-11-26 20:28 mdadm, bitmap and split-brain Ronal Andadinata
@ 2011-12-06  4:45 ` NeilBrown
  0 siblings, 0 replies; 2+ messages in thread
From: NeilBrown @ 2011-12-06  4:45 UTC (permalink / raw)
  To: Ronal Andadinata; +Cc: linux-raid

[-- Attachment #1: Type: text/plain, Size: 1072 bytes --]

On Sun, 27 Nov 2011 03:28:31 +0700 Ronal Andadinata <randadinata@gmail.com>
wrote:

> Hi,
> 
> I'm wondering, in the case of raid1 array with internal bitmap, it goes 
> like this :
> 1. Machine A has 1 raid1 array with Disk1 dan Disk2
> 2. Dettach Disk2 from Machine A, put it on Machine B
> 3. Machine A runs normally, Machine B runs on normally on different place.
> 4. Detach Disk2 from Machine B, put it back on Machine A, re-add Disk2 
> to md1
> 
> If this were raid1 without bitmap, Disk2 will be overwritten from 
> scratch with contents of Disk1, what happen if the array has bitmap ? 
> Would there be partial sync ? Would the two disk be identical with only 
> using partial sync ?

It might fail to re-add, or it might do a partial resync and probably leave
the two devices different so corruption would likely appear.

Just don't do this.  If you want to use disk2 on a different machine,
assemble it with 
   --update=uuid
the first time so it gets a different uuid and can never become confused with
the old array.

NeilBrown


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-12-06  4:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-26 20:28 mdadm, bitmap and split-brain Ronal Andadinata
2011-12-06  4:45 ` NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).