* 2.5.27 raid1 bug...
@ 2002-07-22 18:23 Roe Peterson
2002-07-22 21:22 ` Neil Brown
0 siblings, 1 reply; 2+ messages in thread
From: Roe Peterson @ 2002-07-22 18:23 UTC (permalink / raw)
To: linux-kernel
Okay, I've isolated a problem with raid1/md under 2.5.27...
Scenario:
/dev/hda2 and /dev/hdb2 are unused partitions.
/etc/raidtab:
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
chunk-size 64k
persistent-superblock 1
nr-spare-disks 0
device /dev/hda2
raid-disk 0
device /dev/hdb2
raid-disk 1
mkraid /dev/md0
Fails with a kernel panic. A bit of searching finds that this chunk of
code (md.c, about line 850):
rdev = list_entry(&mddev->disks.next, mdk_rdev_t, same_set);
sb = rdev->sb;
memset(sb, 0, sizeof(*sb));
Is failing. sb is == 1 !!
Anyone got any ideas?
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: 2.5.27 raid1 bug...
2002-07-22 18:23 2.5.27 raid1 bug Roe Peterson
@ 2002-07-22 21:22 ` Neil Brown
0 siblings, 0 replies; 2+ messages in thread
From: Neil Brown @ 2002-07-22 21:22 UTC (permalink / raw)
To: Roe Peterson; +Cc: linux-kernel
On Monday July 22, roe@liveglobalbid.com wrote:
>
> Okay, I've isolated a problem with raid1/md under 2.5.27...
>
> Scenario:
>
> /dev/hda2 and /dev/hdb2 are unused partitions.
>
> /etc/raidtab:
> raiddev /dev/md0
> raid-level 1
> nr-raid-disks 2
> chunk-size 64k
> persistent-superblock 1
> nr-spare-disks 0
> device /dev/hda2
> raid-disk 0
> device /dev/hdb2
> raid-disk 1
>
> mkraid /dev/md0
>
> Fails with a kernel panic. A bit of searching finds that this chunk of
> code (md.c, about line 850):
> rdev = list_entry(&mddev->disks.next, mdk_rdev_t, same_set);
^
> sb = rdev->sb;
>
> memset(sb, 0, sizeof(*sb));
>
> Is failing. sb is == 1 !!
>
> Anyone got any ideas?
Yep, that '&' is wrong. Remove and it will work.
NeilBrown
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-07-22 21:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-22 18:23 2.5.27 raid1 bug Roe Peterson
2002-07-22 21:22 ` Neil Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox