linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Some RAID levels do not support bitmap
@ 2007-06-11 12:50 Jan Engelhardt
  2007-06-11 23:15 ` Bill Davidsen
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Engelhardt @ 2007-06-11 12:50 UTC (permalink / raw)
  To: linux-raid; +Cc: neilb

Hi,


RAID levels 0 and 4 do not seem to like the -b internal. Is this 
intentional? Runs 2.6.20.2 on i586.
(BTW, do you already have a PAGE_SIZE=8K fix?)

14:47 ichi:/dev # mdadm -C /dev/md0 -l 4 -e 1.0 -b internal -n 2 /dev/ram[01]
mdadm: RUN_ARRAY failed: Input/output error
mdadm: stopped /dev/md0
14:47 ichi:/dev # mdadm -C /dev/md0 -l 0 -e 1.0 -b internal -n 2 /dev/ram[01]
mdadm: RUN_ARRAY failed: Cannot allocate memory
mdadm: stopped /dev/md0

Right... md: bitmaps not supported for this level.



Thanks,
	Jan
-- 

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

* Re: Some RAID levels do not support bitmap
  2007-06-11 12:50 Some RAID levels do not support bitmap Jan Engelhardt
@ 2007-06-11 23:15 ` Bill Davidsen
  2007-06-11 23:39   ` Neil Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Bill Davidsen @ 2007-06-11 23:15 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: linux-raid, neilb

Jan Engelhardt wrote:
> Hi,
>
>
> RAID levels 0 and 4 do not seem to like the -b internal. Is this 
> intentional? Runs 2.6.20.2 on i586.
> (BTW, do you already have a PAGE_SIZE=8K fix?)
>
> 14:47 ichi:/dev # mdadm -C /dev/md0 -l 4 -e 1.0 -b internal -n 2 /dev/ram[01]
> mdadm: RUN_ARRAY failed: Input/output error
> mdadm: stopped /dev/md0
> 14:47 ichi:/dev # mdadm -C /dev/md0 -l 0 -e 1.0 -b internal -n 2 /dev/ram[01]
> mdadm: RUN_ARRAY failed: Cannot allocate memory
> mdadm: stopped /dev/md0
>
> Right... md: bitmaps not supported for this level.
>   

Bitmaps show what data has been modified but not written. For RAID-0 
there is no copy, therefore there can be no bitmap to show what "still 
needs to be updated." I would have thought that RAID-4 would support 
bitmaps, but maybe it was just never added because use of RAID-4 is 
pretty uncommon.

BTW: RAID-4 seems to work fine with an external bitmap. Were you trying 
to do "internal?"

-- 
bill davidsen <davidsen@tmr.com>
  CTO TMR Associates, Inc
  Doing interesting things with small computers since 1979


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

* Re: Some RAID levels do not support bitmap
  2007-06-11 23:15 ` Bill Davidsen
@ 2007-06-11 23:39   ` Neil Brown
  2007-06-12 15:52     ` Bill Davidsen
  0 siblings, 1 reply; 4+ messages in thread
From: Neil Brown @ 2007-06-11 23:39 UTC (permalink / raw)
  To: Bill Davidsen; +Cc: Jan Engelhardt, linux-raid

On Monday June 11, davidsen@tmr.com wrote:
> Jan Engelhardt wrote:
> > Hi,
> >
> >
> > RAID levels 0 and 4 do not seem to like the -b internal. Is this 
> > intentional? Runs 2.6.20.2 on i586.
> > (BTW, do you already have a PAGE_SIZE=8K fix?)
> >
> > 14:47 ichi:/dev # mdadm -C /dev/md0 -l 4 -e 1.0 -b internal -n 2 /dev/ram[01]
> > mdadm: RUN_ARRAY failed: Input/output error
> > mdadm: stopped /dev/md0
> > 14:47 ichi:/dev # mdadm -C /dev/md0 -l 0 -e 1.0 -b internal -n 2 /dev/ram[01]
> > mdadm: RUN_ARRAY failed: Cannot allocate memory
> > mdadm: stopped /dev/md0
> >
> > Right... md: bitmaps not supported for this level.
> >   
> 
> Bitmaps show what data has been modified but not written. For RAID-0 
> there is no copy, therefore there can be no bitmap to show what "still 
> needs to be updated." I would have thought that RAID-4 would support 
> bitmaps, but maybe it was just never added because use of RAID-4 is 
> pretty uncommon.

"added late" rather than "never added".  2.6.21 supports bitmaps on
RAID-4,  The patch is about 2 lines and would apply to 2.6.20 with no
trouble.

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=3d37890baa4ca962f8a6b77525b8f3d0698eee09


> 
> BTW: RAID-4 seems to work fine with an external bitmap. Were you trying 
> to do "internal?"

I suspect you were using 2.6.21-rc6 or later?

NeilBrown

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

* Re: Some RAID levels do not support bitmap
  2007-06-11 23:39   ` Neil Brown
@ 2007-06-12 15:52     ` Bill Davidsen
  0 siblings, 0 replies; 4+ messages in thread
From: Bill Davidsen @ 2007-06-12 15:52 UTC (permalink / raw)
  To: Neil Brown; +Cc: Jan Engelhardt, linux-raid

Neil Brown wrote:
> On Monday June 11, davidsen@tmr.com wrote:
>   
>> Jan Engelhardt wrote:
>>     
>>> Hi,
>>>
>>>
>>> RAID levels 0 and 4 do not seem to like the -b internal. Is this 
>>> intentional? Runs 2.6.20.2 on i586.
>>> (BTW, do you already have a PAGE_SIZE=8K fix?)
>>>
>>> 14:47 ichi:/dev # mdadm -C /dev/md0 -l 4 -e 1.0 -b internal -n 2 /dev/ram[01]
>>> mdadm: RUN_ARRAY failed: Input/output error
>>> mdadm: stopped /dev/md0
>>> 14:47 ichi:/dev # mdadm -C /dev/md0 -l 0 -e 1.0 -b internal -n 2 /dev/ram[01]
>>> mdadm: RUN_ARRAY failed: Cannot allocate memory
>>> mdadm: stopped /dev/md0
>>>
>>> Right... md: bitmaps not supported for this level.
>>>   
>>>       
>> Bitmaps show what data has been modified but not written. For RAID-0 
>> there is no copy, therefore there can be no bitmap to show what "still 
>> needs to be updated." I would have thought that RAID-4 would support 
>> bitmaps, but maybe it was just never added because use of RAID-4 is 
>> pretty uncommon.
>>     
>
> "added late" rather than "never added".  2.6.21 supports bitmaps on
> RAID-4,  The patch is about 2 lines and would apply to 2.6.20 with no
> trouble.
>
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=3d37890baa4ca962f8a6b77525b8f3d0698eee09
>
>
>   
>> BTW: RAID-4 seems to work fine with an external bitmap. Were you trying 
>> to do "internal?"
>>     
>
> I suspect you were using 2.6.21-rc6 or later?

No, the machine I had for trial was 2.6.15 with a few patches, none in 
RAID. Seemed to work just fine if I put the bitmap on an external 
device. Was that not as expected?

-- 
bill davidsen <davidsen@tmr.com>
  CTO TMR Associates, Inc
  Doing interesting things with small computers since 1979


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

end of thread, other threads:[~2007-06-12 15:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-11 12:50 Some RAID levels do not support bitmap Jan Engelhardt
2007-06-11 23:15 ` Bill Davidsen
2007-06-11 23:39   ` Neil Brown
2007-06-12 15:52     ` Bill Davidsen

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).