linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Creating RAID1 with bitmap fails
@ 2007-05-30 10:37 Jan Engelhardt
  2007-05-30 12:05 ` Neil Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Engelhardt @ 2007-05-30 10:37 UTC (permalink / raw)
  To: linux-raid

Hi,


the following command strangely gives -EIO ...
12:27 sun:~ # mdadm -C /dev/md4 -l 1 -n 2 -e 1.0 -b internal /dev/ram0 
missing

md: md4: raid array is not clean -- starting background reconstruction
md4: failed to create bitmap (-5)
md: pers->run() failed ...
mdadm: RUN_ARRAY failed: Input/output error
mdadm: stopped /dev/md4

Leaving out -b internal creates the array. /dev/ram0 or /dev/sda5 - EIO 
happens on both. (But the disk is fine, like ram0)
Where could I start looking?

Linux sun 2.6.21-1.3149.al3.8smp #3 SMP Wed May 30 09:43:00 CEST 2007 
sparc64 sparc64 sparc64 GNU/Linux
mdadm 2.5.4


Thanks,
	Jan
-- 

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

* Re: Creating RAID1 with bitmap fails
  2007-05-30 10:37 Creating RAID1 with bitmap fails Jan Engelhardt
@ 2007-05-30 12:05 ` Neil Brown
  2007-05-30 12:09   ` Jan Engelhardt
  0 siblings, 1 reply; 5+ messages in thread
From: Neil Brown @ 2007-05-30 12:05 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: linux-raid

On Wednesday May 30, jengelh@linux01.gwdg.de wrote:
> Hi,
> 
> 
> the following command strangely gives -EIO ...
> 12:27 sun:~ # mdadm -C /dev/md4 -l 1 -n 2 -e 1.0 -b internal /dev/ram0 
> missing
> 
> md: md4: raid array is not clean -- starting background reconstruction
> md4: failed to create bitmap (-5)
> md: pers->run() failed ...
> mdadm: RUN_ARRAY failed: Input/output error
> mdadm: stopped /dev/md4
> 
> Leaving out -b internal creates the array. /dev/ram0 or /dev/sda5 - EIO 
> happens on both. (But the disk is fine, like ram0)
> Where could I start looking?
> 
> Linux sun 2.6.21-1.3149.al3.8smp #3 SMP Wed May 30 09:43:00 CEST 2007 
> sparc64 sparc64 sparc64 GNU/Linux
> mdadm 2.5.4

I'm fairly sure this is fixed in 2.6.2.  It is certainly worth a try.

NeilBrown

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

* Re: Creating RAID1 with bitmap fails
  2007-05-30 12:05 ` Neil Brown
@ 2007-05-30 12:09   ` Jan Engelhardt
  2007-05-30 23:09     ` Neil Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Engelhardt @ 2007-05-30 12:09 UTC (permalink / raw)
  To: Neil Brown; +Cc: linux-raid


On May 30 2007 22:05, Neil Brown wrote:
>> 
>> the following command strangely gives -EIO ...
>> 12:27 sun:~ # mdadm -C /dev/md4 -l 1 -n 2 -e 1.0 -b internal /dev/ram0 
>> missing
>> 
>> md: md4: raid array is not clean -- starting background reconstruction
>> md4: failed to create bitmap (-5)
>> md: pers->run() failed ...
>> mdadm: RUN_ARRAY failed: Input/output error
>> mdadm: stopped /dev/md4
>> 
>> Leaving out -b internal creates the array. /dev/ram0 or /dev/sda5 - EIO 
>> happens on both. (But the disk is fine, like ram0)
>> Where could I start looking?
>> 
>> Linux sun 2.6.21-1.3149.al3.8smp #3 SMP Wed May 30 09:43:00 CEST 2007 
>> sparc64 sparc64 sparc64 GNU/Linux
>> mdadm 2.5.4
>
>I'm fairly sure this is fixed in 2.6.2.  It is certainly worth a try.

The same command works on a x86_64 with mdadm 2.5.3...


	Jan
-- 

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

* Re: Creating RAID1 with bitmap fails
  2007-05-30 12:09   ` Jan Engelhardt
@ 2007-05-30 23:09     ` Neil Brown
  2007-05-31  4:07       ` Jan Engelhardt
  0 siblings, 1 reply; 5+ messages in thread
From: Neil Brown @ 2007-05-30 23:09 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: linux-raid

On Wednesday May 30, jengelh@linux01.gwdg.de wrote:
> 
> On May 30 2007 22:05, Neil Brown wrote:
> >> 
> >> the following command strangely gives -EIO ...
> >> 12:27 sun:~ # mdadm -C /dev/md4 -l 1 -n 2 -e 1.0 -b internal /dev/ram0 
> >> missing
> >> 
> >> md: md4: raid array is not clean -- starting background reconstruction
> >> md4: failed to create bitmap (-5)
> >> md: pers->run() failed ...
> >> mdadm: RUN_ARRAY failed: Input/output error
> >> mdadm: stopped /dev/md4
> >> 
> >> Leaving out -b internal creates the array. /dev/ram0 or /dev/sda5 - EIO 
> >> happens on both. (But the disk is fine, like ram0)
> >> Where could I start looking?
> >> 
> >> Linux sun 2.6.21-1.3149.al3.8smp #3 SMP Wed May 30 09:43:00 CEST 2007 
> >> sparc64 sparc64 sparc64 GNU/Linux
> >> mdadm 2.5.4
> >
> >I'm fairly sure this is fixed in 2.6.2.  It is certainly worth a try.
> 
> The same command works on a x86_64 with mdadm 2.5.3...

Are you sure?
I suspect that the difference is more in the kernel version.
mdadm used to create some arrays with the bitmap positioned so that it
overlapped the data.  Recent kernels check for that and reject the
array if there is an overlap.  mdadm-2.6.2 makes sure not to create
any overlap.

NeilBrown

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

* Re: Creating RAID1 with bitmap fails
  2007-05-30 23:09     ` Neil Brown
@ 2007-05-31  4:07       ` Jan Engelhardt
  0 siblings, 0 replies; 5+ messages in thread
From: Jan Engelhardt @ 2007-05-31  4:07 UTC (permalink / raw)
  To: Neil Brown; +Cc: linux-raid


On May 31 2007 09:09, Neil Brown wrote:
>> >> the following command strangely gives -EIO ...
>> >> 12:27 sun:~ # mdadm -C /dev/md4 -l 1 -n 2 -e 1.0 -b internal /dev/ram0 
>> >> missing
>> >> Where could I start looking?
>> >> 
>> >> Linux sun 2.6.21-1.3149.al3.8smp #3 SMP Wed May 30 09:43:00 CEST 2007 
>> >> sparc64 sparc64 sparc64 GNU/Linux
>> >> mdadm 2.5.4
>> >
>> >I'm fairly sure this is fixed in 2.6.2.  It is certainly worth a try.
>> 
>> The same command works on a x86_64 with mdadm 2.5.3...
  [ with 2.6.18.8 ]

>Are you sure?
>I suspect that the difference is more in the kernel version.
>mdadm used to create some arrays with the bitmap positioned so that it
>overlapped the data.  Recent kernels check for that and reject the
>array if there is an overlap.  mdadm-2.6.2 makes sure not to create
>any overlap.

Regarding above x86_64/2.5.3/2.6.18.8 created array, is there a way to
check whether it overlaps?


	Jan
-- 

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

end of thread, other threads:[~2007-05-31  4:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-30 10:37 Creating RAID1 with bitmap fails Jan Engelhardt
2007-05-30 12:05 ` Neil Brown
2007-05-30 12:09   ` Jan Engelhardt
2007-05-30 23:09     ` Neil Brown
2007-05-31  4:07       ` Jan Engelhardt

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