linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Massimiliano Masserelli <negro@interim.it>
To: linux-raid@vger.kernel.org
Subject: RAID1 root - troubles booting in degraded mode
Date: Wed, 30 Oct 2002 00:07:51 +0100	[thread overview]
Message-ID: <20021029230751.GP1472@sgabanaz.interim.it> (raw)

Hi folks! 

I've taken a look at the ML archives, and found an old thread (06/2002) 
on this subject, but found no solution.

I've a working setup with a two disks RAID1 root, which boots
flawlessly. Troubles arise when simulating hw failure. RAID setup is as
follows:

raiddev                 /dev/md0
raid-level              1
nr-raid-disks           2
nr-spare-disks          0
chunk-size              4

device                  /dev/hda1
raid-disk               0

device                  /dev/hdc1
raid-disk               1

If I disconnect /dev/hda before booting, the kernel tries to initialize
the array, can't access /dev/hda1 (no wonder), marks it as faulty, then
refuses to initialize the array, dieing with a kernel panic, unable to
mount root.

If I disconnect /dev/hdc before booting, the array gets started in
degraded mode, and the startup goes on without a glitch.

If I disconnect /dev/hda and move /dev/hdc to its place (so it's now
/dev/hda), the array gets started in degraded mode and the startup goes
on.

Actually, this is already a workable solution (if the first disk dies, I
just "promote" the second to hda and go looking for a replacement of the
broken disk), but I think this is not _elegant_. 8)

Could anyone help me shedding some light on the subject?

Tnx in advance.
-- 
Massimiliano Masserelli
-------------------------------------------------------------------------------
Mayor: "Uh... try to have her home by eleven."
	--Buffy the Vampire Slayer: Enemies

             reply	other threads:[~2002-10-29 23:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-29 23:07 Massimiliano Masserelli [this message]
2002-10-30 20:18 ` RAID1 root - troubles booting in degraded mode Emilio Gargiulo
2002-10-30 20:18   ` Massimiliano Masserelli
  -- strict thread matches above, loose matches on Subject: below --
2002-10-30 10:52 AW: " Martin Bene
2002-10-30 11:10 ` Massimiliano Masserelli

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=20021029230751.GP1472@sgabanaz.interim.it \
    --to=negro@interim.it \
    --cc=linux-raid@vger.kernel.org \
    /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).