From: Neil Brown <neilb@cse.unsw.edu.au>
To: Pete Zaitcev <zaitcev@redhat.com>
Cc: Christoph Hellwig <hch@infradead.org>, linux-kernel@vger.kernel.org
Subject: Re: Patch to add RAID autostart to IBM partitions
Date: Fri, 29 Oct 2004 12:16:51 +1000 [thread overview]
Message-ID: <16769.43027.267366.474937@cse.unsw.edu.au> (raw)
In-Reply-To: message from Pete Zaitcev on Tuesday October 19
On Tuesday October 19, zaitcev@redhat.com wrote:
> On Tue, 19 Oct 2004 11:54:14 +1000, Neil Brown <neilb@cse.unsw.edu.au> wrote:
>
> Dear Neil,
>
> thank you for your patient reply. It makes things a lot clearer.
>
> > Yes, you haven't told it what defines "/dev/md0", so it assumes the
> > first device listed will define it, but /dev/dasda doesn't so....
>
> > You have to tell mdadm how to recognise /dev/md0. Possibly by UUID.
> > Possibly by "minor number".
> > e.g.
> >
> > DEVICE partitions
> > ARRAY /dev/md0 super-minor=0
> >
> > which means "if you find any devices listed in /proc/partitions which
> > contains an MD superblock which has a "md_minor" field of "0", then
> > use those to assemble /dev/md0.
>
> I see now. I'm sorry that I was unable to deduce it from the manual.
> One last question, if the -As worked, would it do the same?
No. -As needs a config file. Currently without the config file, it
crashes. In the next release, without a config file it will fail more
gracefully.
>
> > This will often be what you want, but might not always. e.g. if you
> > have plugged in a drive that was part of /dev/md0 in another machine,
> > then mdadm will have no way of knowing which drive is the "right" one.
>
> I guess there's nothing we can do about possible conflicts, except warn
> the operator at installation time. What is the recommended way to ask
> mdadm to list all conflicts, or simply all found array devices, for the
> benefit of an installation program reading a pipe?
These isn't really one.
mdadm -Es -c partitions
will list all possibly arrays - you could then pick the one you want.
But choosing the drives to assemble to make an md array is a lot like
choosing the partition to mount to find the root filesystem. It might
be possible to guess, but if you rely in the guess, it will sometimes
be wrong. At install time, it is safe to guess if there is only one
candidate. If there are more, you really have to ask.
After that, the boot process (or whatever process assembles the
arrays) really needs to have been told how to recognise components,
just like lilo tells linux which device has root (root=).
The output of mdadm -E could possibly be made more friendly (currently
it will happily list arrays that cannot possibly be completely
assembled right along side arrays that are likely to work).
NeilBrown
prev parent reply other threads:[~2004-10-29 2:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-16 5:48 Pete Zaitcev
2004-10-16 11:09 ` Christoph Hellwig
2004-10-16 15:29 ` Pete Zaitcev
2004-10-19 1:54 ` Neil Brown
2004-10-19 16:32 ` Pete Zaitcev
2004-10-29 2:16 ` Neil Brown [this message]
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=16769.43027.267366.474937@cse.unsw.edu.au \
--to=neilb@cse.unsw.edu.au \
--cc=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=zaitcev@redhat.com \
/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
all inboxes | Powered by JetHome®