linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tomasz Chmielewski <mangoo@wpkg.org>
To: Neil Brown <neilb@suse.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: how to synchronize two devices (RAID-1, but not really?)
Date: Tue, 15 May 2007 13:21:27 +0200	[thread overview]
Message-ID: <464997B7.4040600@wpkg.org> (raw)
In-Reply-To: <17993.38016.174124.287952@notabene.brown>

Neil Brown schrieb:
> On Tuesday May 15, mangoo@wpkg.org wrote:
>> Neil Brown schrieb:
>>
>> (...)
>>
>>> An external bitmap means that if the link goes down, it keeps track of
>>> which blocks are in sync and which aren't, and when the link comes
>>> back up you re-add the missing device and the rebuild continues where
>>> it left off.
>>>   mdadm --build /dev/md22 --level=1 --bitmap=/root/mybitmap \
>>>      --write-behind --raid-disks=2 /dev/localdevice --write-mostly /dev/remotedevice
>> One more question - is there a way to estimate the size of the bitmap 
>> file? Does it depend on the size of the array?
>>
>> What bitmap file size can I expect for a 600 GB array?
> 
> Due to internal implementation details, mdadm limits the size of the
> bitmap to 2^20 bits.  So the file will be 100K +/- 50%.
> That will lead to about 1Meg per bit.  If you have a failure, this
> might mean you end up re-copying several megabytes more than you
> really need to, but that should add up to less than one second.

Good, I was wondering if ~200 MB left I have on a filesystem would be 
enough :)


-- 
Tomasz Chmielewski
http://wpkg.org

      reply	other threads:[~2007-05-15 11:21 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-15  8:57 how to synchronize two devices (RAID-1, but not really?) Tomasz Chmielewski
2007-05-15  9:16 ` Peter Rabbitson
2007-05-15  9:27   ` Tomasz Chmielewski
2007-05-15  9:41     ` David Greaves
2007-05-15  9:50       ` Tomasz Chmielewski
2007-05-16 17:36       ` Bill Davidsen
2007-05-15 14:22     ` Gregory Seidman
2007-05-15  9:29 ` Gordon Henderson
2007-05-15  9:44   ` Tomasz Chmielewski
2007-05-15 10:16 ` Neil Brown
2007-05-15 10:36   ` Tomasz Chmielewski
2007-05-15 11:12     ` Neil Brown
2007-05-15 10:41   ` Tomasz Chmielewski
2007-05-15 11:07     ` Neil Brown
2007-05-15 11:21       ` Tomasz Chmielewski [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=464997B7.4040600@wpkg.org \
    --to=mangoo@wpkg.org \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).