lkml.org 
[lkml]   [2002]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject2.5.27 raid1 bug...

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?





-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:27    [W:0.035 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site