linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "David M. Strang" <dstrang@shellpower.net>
To: Ross Vandegrift <ross@jose.lug.udel.edu>
Cc: linux-raid@vger.kernel.org
Subject: Re: Booting from raid1 -- md: invalid raid superblock magic on sdb1
Date: Sun, 27 Nov 2005 21:33:38 -0500	[thread overview]
Message-ID: <060001c5f3c4$23e35dd0$200a11ac@NCNF5131FTH> (raw)
In-Reply-To: 20051128022412.GA26118@jose.lug.udel.edu

On Sunday 27 November 2005 21:20:22, Ross Vandegrift wrote:
> Yes, you can absolutely boot from RAID1 with initrd.  If you're not an
> initrd wizard it will be difficult.  You'll need to make sure that
> your initrd has all the necessary device files, the modules for md,
> the mdadm binary, and any shared libraries that your mdadm is built
> against.
>
> If you're using Debian, mkinitrd can build you an initrd that has
> everything needed and works.  It has a few config files in /etc/ that
> let you control how things get built, and a cool -k switch that leaves
> the temporary directory around so you can easily examine the initrd.
>
> Can't really speak for other distros.  Are you compiling your own
> kernels?  If so, I'd strongly suggest abandoning initrd.  It's easy as
> pie to boot off md if you have the drivers built into the kernel.
> But I do understand that it might not be practical for you to build
> your own kernel.

Russ --

I use CRUX (http://www.crux.nu) -- I compile my own kernel; from my breif 
exploration of initrd -- which debian has about a trillion web pages 
dedicated to raids and initrd -- the feeling / impression I had was that 
initrd is mostly used if you cannot compile full support into the kernel.

My concern is, I want to do it the 'right way' -- to me, that is a pure 
kernel boot -- the problem is, the current kernel does not facilitate 
booting raids with superblock1 -- not via automount (which Neil has 
previously said he is quite against), and not natively via do_mounts_md.c. 
Neil has put together a small patch (may need some spit and polish; the 
hardcoded workaround from Raphael is currently working) but said he is 
hesistant to submit it for addition to a future kernel. I don't want to go 
about doing things the wrong way, and journey down the path of being 
'unsupported'. It seems to me, there could be some huge benefits of putting 
some of the mdadm assemble.c code into do_mounts_md.c; I have no issue using 
a workaround / hack for immediate use -- but as I mentioned before, I don't 
want to start a bad habit so to speak. If there is a proper way, I'd rather 
learn (use) it.

-- David M. Strang 


  reply	other threads:[~2005-11-28  2:33 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
2005-11-28  2:24           ` Ross Vandegrift
2005-11-28  2:33             ` David M. Strang [this message]
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='060001c5f3c4$23e35dd0$200a11ac@NCNF5131FTH' \
    --to=dstrang@shellpower.net \
    --cc=linux-raid@vger.kernel.org \
    --cc=ross@jose.lug.udel.edu \
    /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).