From: "H. Peter Anvin" <hpa@zytor.com>
To: Neil Brown <neilb@suse.de>
Cc: linux-raid@vger.kernel.org, klibc list <klibc@zytor.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [klibc] Re: Exporting which partitions to md-configure
Date: Mon, 06 Feb 2006 18:47:54 -0800 [thread overview]
Message-ID: <43E80A5A.5040002@zytor.com> (raw)
In-Reply-To: <17382.43646.567406.987585@cse.unsw.edu.au>
Neil Brown wrote:
>
> What constitutes 'a piece of data'? A bit? a byte?
>
> I would say that
> msdos:fd
> is one piece of data. The 'fd' is useless without the 'msdos'.
> The 'msdos' is, I guess, not completely useless with the fd.
>
> I would lean towards the composite, but I wouldn't fight a separation.
>
Well, the two pieces come from different sources.
>
> Just as there is a direct unambiguous causal path from something
> present at early boot to the root filesystem that is mounted (and the
> root filesystem specifies all other filesystems through fstab)
> similarly there should be an unambiguous causal path from something
> present at early boot to the array which holds the root filesystem -
> and the root filesystem should describe all other arrays via
> mdadm.conf
>
> Does that make sense?
>
It makes sense, but I disagree. I believe you are correct in that the
current "preferred minor" bit causes an invalid assumption that, e.g.
/dev/md3 is always a certain thing, but since each array has a UUID, and
one should be able to mount by either filesystem UUID or array UUID,
there should be no need for such a conflict if one allows for dynamic md
numbers.
Requiring that mdadm.conf describes the actual state of all volumes
would be an enormous step in the wrong direction. Right now, the Linux
md system can handle some very oddball hardware changes (such as on
hera.kernel.org, when the disks not just completely changed names due to
a controller change, but changed from hd* to sd*!)
Dynamicity is a good thing, although it needs to be harnessed.
> kernel parameter md_root_uuid=xxyy:zzyy:aabb:ccdd...
> This could be interpreted by an initramfs script to run mdadm
> to find and assemble the array with that uuid. The uuid of
> each array is reasonably unique.
This, in fact is *EXACTLY* what we're talking about; it does require
autoassemble. Why do we care about the partition types at all? The
reason is that since the md superblock is at the end, it doesn't get
automatically wiped if the partition is used as a raw filesystem, and so
it's important that there is a qualifier for it.
-hpa
next prev parent reply other threads:[~2006-02-07 2:47 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-31 0:52 Exporting which partitions to md-configure H. Peter Anvin
2006-01-31 1:10 ` Neil Brown
2006-01-31 1:42 ` H. Peter Anvin
2006-01-31 2:01 ` Neil Brown
2006-01-31 2:05 ` H. Peter Anvin
2006-02-06 1:46 ` Neil Brown
2006-02-06 3:29 ` Kyle Moffett
2006-02-07 2:47 ` H. Peter Anvin [this message]
2006-02-07 9:03 ` [klibc] " Neil Brown
2006-02-07 10:43 ` Luca Berra
2006-02-07 15:46 ` H. Peter Anvin
2006-02-07 16:47 ` Luca Berra
2006-02-07 16:55 ` H. Peter Anvin
2006-02-07 17:03 ` Luca Berra
2006-01-31 6:49 ` Chris Wedgwood
2006-01-31 1:43 ` Kyle Moffett
2006-01-31 1:45 ` H. Peter Anvin
2006-01-31 2:01 ` Neil Brown
2006-01-31 2:38 ` H. Peter Anvin
2006-01-31 6:42 ` Kyle Moffett
2006-01-31 3:21 ` [klibc] " Greg KH
2006-01-31 3:24 ` Greg KH
2006-01-31 6:53 ` Kyle Moffett
2006-01-31 3:53 ` H. Peter Anvin
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=43E80A5A.5040002@zytor.com \
--to=hpa@zytor.com \
--cc=klibc@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
/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).