Linux RAID subsystem development
 help / color / mirror / Atom feed
From: "David M. Strang" <dstrang@shellpower.net>
To: Neil Brown <neilb@suse.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: Booting from raid1 -- md: invalid raid superblock magic on sdb1
Date: Sun, 27 Nov 2005 21:11:02 -0500	[thread overview]
Message-ID: <05d301c5f3c0$fb6f6860$200a11ac@NCNF5131FTH> (raw)
In-Reply-To: 17290.11404.619425.81197@cse.unsw.edu.au

On Sunday November 27 2005 16:56:47, NeilBrown wrote:
> Yes, do_mounts_md assumes v0.90.
> The following patch will allow you to specify the version in the
> kernel parameters, something like
>    md=d0,v1.0,/dev/sda,/dev/sdb
>
> (though I haven't tested it).
> However I'm not at all convinced that I want to go down this path.
>

Nov 27 20:06:53 xenogenesis kernel: md: Skipping autodetection of RAID 
arrays. (raid=noautodetect)
Nov 27 20:06:53 xenogenesis kernel: md: Unknown device name: v1.0

I need to dig into this a bit more; but it didn't care for that syntax too 
much.

> It is not at all hard to create an initramfs which runs mdadm to do
> the right thing.  With mdadm-2.2 (to be released soonish), it will be
> even easier.

> In general I would rather steer away from do_mounts_md.c assembling
> root md arrays, and steer towards using mdadm in an initramfs.  That
> doesn't mean that I won't submit the following patch into a future
> kernel, but it does mean that I might not....

This could be my own ingorance of how initrd works; but I'm looking to boot 
completely from a raid1 mirror -- and have NO 'normal' partitions. Is this 
possible with initrd? I've been doing quite a bit of reading, and most of 
this is me being lead down the path of how crappy 'software assisted' 
hardware raids are. I have a TYAN S5350-1U board -- it came with the TARO 
SO-DIMM M8110 SATA raid controller... well, this controller is based off the 
Adaptec AIC-8110 chipset. From all my digging, short of the basic binary 
only drivers available from download this controller doesn't work for beans 
in Linux. So, I've defaulted to the onboard SATA controller.. and while it 
has a raid controller (6300ESB) it's one of 'software assisted raids' -- I 
saw the dmraid option; but the advice I found was that unless you are dual 
booting to another OS, it makes a lot more sense to use the software raid 
(md) -- I have a quite successful 28 disk raid5 software raid running here 
(many thanks to Neil, for his tweaks to mdadm and advice on recovering it 
each time failure occured) -- so I felt quite confident in md + mdadm. 
Essentially, the end goal -- is if either drive fails, the system should not 
go down. So, I invoked the paritioned MD route; and created it on top of a 
single large partition for each drive. I'm still working out bootloader 
bugs...

So, excuse the rambling -- but in a nutshell, will the following 
configuration work with initrd?

400GB --> single partition --> /dev/sda1    \
                                                                   |---  
/dev/md_d0 ---> 4 partitions
400GB --> single partition --> /dev/sdb1    /

(I hope my ascii drawing comes out in the list!)

Is that feasible with an initrd? Since I'm not intending to have any 
standard partitions.

-- David M. Strang 


  reply	other threads:[~2005-11-28  2:11 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-26 16:18 Booting from raid1 -- md: invalid raid superblock magic on sdb1 David M. Strang
     [not found] ` <559c115f0605930c434a98c6cfd8fd66@logidac.com>
2005-11-26 17:36   ` David M. Strang
2005-11-26 19:05 ` David M. Strang
2005-11-27  4:36   ` David M. Strang
2005-11-27 19:14     ` David M. Strang
2005-11-27 22:00       ` Neil Brown
2005-11-28  2:11         ` David M. Strang [this message]
2005-11-28  2:24           ` Ross Vandegrift
2005-11-28  2:33             ` David M. Strang
2005-11-28  3:11               ` Ross Vandegrift
2005-11-28  3:19                 ` David M. Strang
2006-02-14  4:12         ` Lilo append= , A suggestion Mr. James W. Laferriere
2006-02-14  7:15           ` Neil Brown
2006-02-14  7:17           ` Luca Berra
2005-12-03 14:02 ` Booting from raid1 -- md: invalid raid superblock magic on sdb1 Bill Davidsen
2005-12-03 19:49   ` David M. Strang

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='05d301c5f3c0$fb6f6860$200a11ac@NCNF5131FTH' \
    --to=dstrang@shellpower.net \
    --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