* mdadm: Bitmap size
@ 2006-05-18 22:44 Ste
0 siblings, 0 replies; 6+ messages in thread
From: Ste @ 2006-05-18 22:44 UTC (permalink / raw)
To: linux-raid
Hi all, i have this problem:
I am going to do raid 1 over two virtual devices. These virtual devices
are two hd situated on other two servers.
The problem is:
A network failure could happen often, and if it happen, i don't want to
recover all the disks. I want to recover just last changed things.
As i can see the bitmap do exactly this, but the default bitmap is too
small!
There is no problem to have a bitmap file of 1 Gb, but i can't find the
way to tell to mdadm the size that he has to use for the bitmap file.
Thanks, Stefano.
^ permalink raw reply [flat|nested] 6+ messages in thread
* mdadm: bitmap size
@ 2006-05-18 23:19 Ste
2006-05-18 23:51 ` Neil Brown
0 siblings, 1 reply; 6+ messages in thread
From: Ste @ 2006-05-18 23:19 UTC (permalink / raw)
To: linux-raid
Hi all, i have this problem:
I am going to do raid 1 over two virtual devices. These virtual devices
are two hard disks situated on other two servers.
The problem is:
A network failure could happen often, and if it happen, i don't want to
recover all the disks. I want to recover just last changed things.
As i can see the bitmap do exactly this, but the default bitmap is too
small!
There is no problem to have a bitmap file of 1 Gb, but i can't find the
way to tell to mdadm the size to use for the bitmap file.
Thanks,
Stefano.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: mdadm: bitmap size
2006-05-18 23:19 mdadm: bitmap size Ste
@ 2006-05-18 23:51 ` Neil Brown
[not found] ` <91ebddcf0605211608i1145d957g65b18b3caa68cfc@mail.gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Neil Brown @ 2006-05-18 23:51 UTC (permalink / raw)
To: Ste; +Cc: linux-raid
On Friday May 19, ste@phx6a.ath.cx wrote:
> Hi all, i have this problem:
>
> I am going to do raid 1 over two virtual devices. These virtual devices
> are two hard disks situated on other two servers.
>
> The problem is:
> A network failure could happen often, and if it happen, i don't want to
> recover all the disks. I want to recover just last changed things.
>
> As i can see the bitmap do exactly this, but the default bitmap is too
> small!
Why do you say that?
Are you using an internal bitmap, or a bitmap in a separate file?
> There is no problem to have a bitmap file of 1 Gb, but i can't find the
> way to tell to mdadm the size to use for the bitmap file.
The only way to control the size of the bitmap is the change the
bitmap chunk size.
Warning: if you have more than 1 million bits in the bitmap, the
kernel may fail in memory allocation and may not be able to assemble
your array.
NeilBrown
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: mdadm: bitmap size
[not found] ` <91ebddcf0605211608i1145d957g65b18b3caa68cfc@mail.gmail.com>
@ 2006-05-21 23:27 ` Neil Brown
2006-05-23 10:13 ` Ste
0 siblings, 1 reply; 6+ messages in thread
From: Neil Brown @ 2006-05-21 23:27 UTC (permalink / raw)
To: Stefano Russo; +Cc: linux-raid
(Please don't reply off-list. If the conversation starts on the list,
please leave it there unless there is a VERY GOOD reason).
On Monday May 22, stefano.russo@gmail.com wrote:
> On 5/19/06, Neil Brown <neilb@suse.de> wrote:
> >
> > On Friday May 19, ste@phx6a.ath.cx wrote:
> > > As i can see the bitmap do exactly this, but the default bitmap is too
> > > small!
> >
> > Why do you say that?
> > Are you using an internal bitmap, or a bitmap in a separate file?
>
>
> I was using bitmap in a separate file.
> Why i said that tha bitmap is too small? I try to explain:
>
> the raid device is a raid1, created on /dev/md0 trought mdadm, and the
> bitmap use a 4 kb chunk-size on external file (in root directory)
>
>
> setfaulty /dev/md0 /dev/nda
> raidhotremove /dev/md0 /dev/nda
> cd /mnt/md0
> wget http://... (240 kb file...)
> raidhotadd /dev/md0 /dev/nda
>
> And now dmesg said that the bitmap was obsolete (0<1 or something like that)
> and that the md driver will force a total recovery.
raidhotadd doesn't know anything about bitmaps.
If you use 'mdadm /dev/mda --add /dev/nda' you should find that it
works better.
I recommend getting rid of setfaulty / raidhotadd /raidhotremove etc
and just using mdadm.
NeilBrown
>
> A recovery of 40 gb for a 240 kb file is a little bit expensive.. :-)
>
> Unfortunately i cannot give you the exact output because the server is down
> now.:-|
>
>
> The only way to control the size of the bitmap is the change the
> > bitmap chunk size.
>
>
> Okay thanks.
>
> Warning: if you have more than 1 million bits in the bitmap, the
> > kernel may fail in memory allocation and may not be able to assemble
> > your array.
>
>
> Thankyou for your help.
>
> Stefano.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: mdadm: bitmap size
2006-05-21 23:27 ` Neil Brown
@ 2006-05-23 10:13 ` Ste
2006-05-25 18:49 ` Ste
0 siblings, 1 reply; 6+ messages in thread
From: Ste @ 2006-05-23 10:13 UTC (permalink / raw)
To: linux-raid
Neil Brown wrote:
> (Please don't reply off-list. If the conversation starts on the list,
> please leave it there unless there is a VERY GOOD reason).
>
Sorry this wasn't my intent.
> raidhotadd doesn't know anything about bitmaps.
> If you use 'mdadm /dev/mda --add /dev/nda' you should find that it
> works better.
>
> I recommend getting rid of setfaulty / raidhotadd /raidhotremove etc
> and just using mdadm.
>
Okay, thankyou. :-)
Stefano.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: mdadm: bitmap size
2006-05-23 10:13 ` Ste
@ 2006-05-25 18:49 ` Ste
0 siblings, 0 replies; 6+ messages in thread
From: Ste @ 2006-05-25 18:49 UTC (permalink / raw)
To: linux-raid
Ste wrote:
>> raidhotadd doesn't know anything about bitmaps.
>> If you use 'mdadm /dev/mda --add /dev/nda' you should find that it
>> works better.
>>
>> I recommend getting rid of setfaulty / raidhotadd /raidhotremove etc
>> and just using mdadm.
>>
Okay now it works really fine. You could write somewere to not mix mdadm
and standard raidtools.
Thanks a lot!
Bye! :-)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-05-25 18:49 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-18 23:19 mdadm: bitmap size Ste
2006-05-18 23:51 ` Neil Brown
[not found] ` <91ebddcf0605211608i1145d957g65b18b3caa68cfc@mail.gmail.com>
2006-05-21 23:27 ` Neil Brown
2006-05-23 10:13 ` Ste
2006-05-25 18:49 ` Ste
-- strict thread matches above, loose matches on Subject: below --
2006-05-18 22:44 mdadm: Bitmap size Ste
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).