All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ken Causey <ken@ineffable.com>
To: linux-raid@vger.kernel.org
Cc: Neil Brown <neilb@cse.unsw.edu.au>
Subject: Can't figure out how to use mdadm in initrd
Date: 28 Jun 2002 09:45:22 -0500	[thread overview]
Message-ID: <1025275522.600.10.camel@temp> (raw)

I don't get it.  I cannot seem to get mdadm to handle a degraded array
no matter what I do.  I'm setting up a system with all filesystems
including boot and root on software RAID.  I initially tried to use
raidstart in my initrd but ran into a bug that prevents reinstating
missing array members in some circumstances, so I was directed to use
mdadm instead.  Here's my current setup:

root is on /dev/md2 (RAID5)

The /etc/mdadm/mdadm.conf file in the initrd contains:

DEVICE /dev/sd*
ARRAY /dev/md2 devices="/dev/sda3,/dev/sdb3,/dev/sdc3"

The modules loaded are

modprobe -k aic7xxx
modprobe -k raid1
modprobe -k raid5
modprobe -k ext3
modprobe -k ext2

mdadm is run as

set "/dev/md2"
[ -b "$1" ] || set "/dev/md/2"
mdadm --assemble --run --scan "$1"

I've tried every combination I can think of and if there is any member
missing (say sdc3) then it complains that that member has a bad
superblock.  Please tell me what I'm doing wrong here.  If you need more
information, let me know.

Ken Causey


             reply	other threads:[~2002-06-28 14:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-28 14:45 Ken Causey [this message]
2002-06-28 14:58 ` Can't figure out how to use mdadm in initrd Neil Brown
2002-06-28 16:36   ` Ken Causey
2002-06-28 17:18     ` 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=1025275522.600.10.camel@temp \
    --to=ken@ineffable.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@cse.unsw.edu.au \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.