linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Andrews <tandrews@grok.co.za>
To: linux-raid@vger.kernel.org
Cc: Neil Brown <neilb@suse.de>
Subject: Re: invalid (zero) superblock magic upon creation of a new RAID-1 array
Date: Mon, 6 Nov 2006 08:42:33 +0200	[thread overview]
Message-ID: <20061106064233.GA2793@grok.co.za> (raw)
In-Reply-To: <17742.25334.685135.990170@cse.unsw.edu.au>

On Mon, Nov 06, 2006 at 09:17:26AM +1100, Neil Brown wrote:

> On Sunday November 5, tandrews@grok.co.za wrote:

> > Why would the superblock magic be zero on a newly created RAID-1 set?
> > 
> > I get this error when the kernel (2.6.17.7) boots:
> > 
> >     md: Autodetecting RAID arrays.
> >     md: invalid raid superblock magic on sda1, found 0x0 not 0xa92b4efc
> >     md: sda1 has invalid sb, not importing!
> >     md: invalid raid superblock magic on sda2, found 0x0 not 0xa92b4efc
> >     md: sda2 has invalid sb, not importing!
> >     md: invalid raid superblock magic on sdb1, found 0x0 not 0xa92b4efc
> >     md: sdb1 has invalid sb, not importing!
> >     md: invalid raid superblock magic on sdb2, found 0x0 not 0xa92b4efc
> >     md: sdb2 has invalid sb, not importing!
> >     md: autorun ...
> >     md: ... autorun DONE.
> > 
> > (I modified md.c so that it prints out "found xxxx not 0xa92b4efc")
> > 
> > I have a monolithic kernel, compiled for RAID-1.
> > 
> > Once the system is up and running, mdadm brings up the RAID arrays fine:
> > 
> >     # cat /proc/mdstat
> >     Personalities : [raid1] 
> >     md1 : active raid1 sda2[0] sdb2[1]
> >           506036 blocks super 1.0 [2/2] [UU]
>                           ^^^^^^^^^
> 
> in-kernel autodetect (based on partition types FD) only works for
> version 0.90 superblocks.
> 
> You mdadm to assemble the array, it is more flexible than auto-detect.

Thanks Neil, I fixed my problem by creating the raid set using the "-e"
option:

    mdadm -C /dev/md0 -e 0.90 --level=raid1 --raid-devices=2  /dev/sda1 /dev/sdb1

You're suggestion to use mdadm to assemble the array is not an option
for me because it is the root partition that is raided, but thanks for
putting me in the right direction.

Regards,
Thomas

  reply	other threads:[~2006-11-06  6:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-05  8:57 invalid (zero) superblock magic upon creation of a new RAID-1 array Thomas Andrews
2006-11-05 22:17 ` Neil Brown
2006-11-06  6:42   ` Thomas Andrews [this message]
2006-11-06 20:20     ` Nix
2006-11-07  4:57     ` Neil Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061106064233.GA2793@grok.co.za \
    --to=tandrews@grok.co.za \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).