[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Kernel 2.6.6 does not recognise /dev/md0 automatically



On Fri, Jul 09, 2004 at 09:45:56PM +1000, Clement wrote:
> The /dev/md0 is not corrupted yet.  In kernel 2.6.6, I can still get it by
> 
>    # mdadm -A /dev/md0 /dev/hda1 /dev/hdc1
>    mdadm: /dev/md0 has been started with 2 drives.
>    # mount /dev/md0 /boot
>    # cat /proc/mdstat
>    Personalities : [raid1]
>    md0 : active raid1 hda1[0] hdc1[1]
>          80192 blocks [2/2] [UU]
> 
>    md1 : active raid1 hda2[0] hdc2[1]
>          4883648 blocks [2/2] [UU]

Your partitions should be of type "Linux Raid Autodetect" but I assume
you know that.  Futhermore the kernel should have RAID builtin and not
as modules.  I didn't know kernel-image-* packages had RAID builtin, I
alsways compile my kernels myself, but again I guess you know this.
Just stating the obvious.

The only thing I can think of is that /boot is maybe an old style RAID
device?  Have a look what `mdadm -E /dev/hda1' tells you, it might help
you.
I'm not sure what would be the solution to this.  Maybe zeroing the
superblock with mdadm and then makeing a new one.  This should not
damage any data afaik.  But it still is highly dangerous and I'm just
doing this on top of my head whithouth checking anything!  You be
warned!


floris

-- 
Debian GNU/Linux -- The power of freedom
www.debian.org | www.gnu.org | www.kernel.org



Reply to: