linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Neil Brown <neilb@cse.unsw.edu.au>
To: bugzilla@watkins-home.com
Cc: linux-raid@vger.kernel.org
Subject: Re: Can't start raid 5 when device names have changed
Date: Tue, 14 Jan 2003 06:21:27 +1100	[thread overview]
Message-ID: <15907.4535.265559.726018@notabene.cse.unsw.edu.au> (raw)
In-Reply-To: message from bugzilla@watkins-home.com on Thursday January 9

On Thursday January 9, bugzilla@watkins-home.com wrote:
> This is reported on http://bugzilla.redhat.com/bugzilla as bug # 81258
> 
> Description of problem:
> I have a raid 5 with 4 disks.  sda1, sda2, sda3, sda4

Hmm... These ar partitions on the same disc.  I assume a typos...

> I have added 2 disks to my system.
> The new disks are sdb and sdd.  At first they did not have a valid partion 
> table.  I got this error on both disks:
> md: could not lock sdb1, zero-size? Marking faulty.
> md: could not import sdb1, trying to run array nevertheless.
>  [events: 00000004]
> md: could not lock sdd1, zero-size? Marking faulty.
> md: could not import sdd1, trying to run array nevertheless.
> 
> That should not be a problem because the raid 5 disks are now sda1, sdc1, sde1 
> and sdf1.
> 
> I did change raidtab before I shutdown to add the new disks.  The system seems 
> to ignore raidtab for existing arrays.  Must only use the file when you use 
> mkraid.
> 
> I have since partitioned the 2 disks sdb and sdd with type fd.
> raidstart still fails.

raidstart is fundamentally broken.
What it does is read raidtab, find the first device name mentioned for
an array, and tell the kernel to load a raid array based on that
device.
The kernel then reads the raid superblock off that device, extracts a
list of device major/minor numbers from that superblock and tries to
build a raid array from these devices.
So obviously if:
  -  The first device listed in raidtab has failed or
  -  any device has changed major/minor number
then the process will fail.

I strongly recommend: never use raidstart.  I recommend distributions
don't even distribute it.
You should either use the raidautodetect partition type, or use mdadm
to assemble raid arrays.  raidstart just isn't a workable option in
general.

NeilBrown

  parent reply	other threads:[~2003-01-13 19:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-10  3:35 Can't start raid 5 when device names have changed bugzilla
2003-01-10  9:49 ` Stephan van Hienen
2003-01-13 19:21 ` Neil Brown [this message]
     [not found] <200301101352.h0ADqhr03685@dns1.watkins-home.com>
2003-01-13  8:56 ` Stephan van Hienen

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=15907.4535.265559.726018@notabene.cse.unsw.edu.au \
    --to=neilb@cse.unsw.edu.au \
    --cc=bugzilla@watkins-home.com \
    --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).