From: Neil Brown <neilb@cse.unsw.edu.au>
To: Steve Pratt <slpratt@us.ibm.com>
Cc: linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org
Subject: Re: RFC - new raid superblock layout for md driver
Date: Thu, 21 Nov 2002 10:24:34 +1100 [thread overview]
Message-ID: <15836.6578.878775.208602@notabene.cse.unsw.edu.au> (raw)
In-Reply-To: message from Steve Pratt on Wednesday November 20
On Wednesday November 20, slpratt@us.ibm.com wrote:
>
> Neil Brown wrote;
>
> >I would like to propose a new layout, and to receive comment on it..
>
>
> >/* constant this-device information - 64 bytes */
> >u64 address of superblock in device
> >u32 number of this device in array /* constant over reconfigurations
> */
>
> Does this mean that there can be holes in the numbering for disks that die
> and are replaced?
Yes. When a drive is added to an array it gets a number which it
keeps for it's life in the array. This is completely separate from
the number that says what it's role in the array is. This number,
together with the set_uuid, forms the 'name' of the device as long as
it is part of the array. So there could well be holes in the
numbering of devices, but in general the set of numbers would be
fairly dense (max number of holes is max number of hot-spaces that you
have had in the array at any one time).
>
> >u32 device_uuid[4]
> >u32 pad3[9]
>
> >/* array state information - 64 bytes */
> >u32 utime
> >u32 state /* clean, resync-in-progress */
> >u32 sb_csum
>
> These next 2 fields are not 64 bit aligned. Either rearrange or add
> padding.
Thanks. I think I did check that once, but then I changed things
again :-(
Actually, making utime a u64 makes this properly aligned again, but I
will group the u64s together at the top.
>
> >u64 events
> >u64 resync-position /* flag in state if this is valid)
> >u32 number of devices
> >u32 pad2[8]
>
>
>
> >Other features:
> >A feature map instead of a minor version number.
>
> Good.
>
> >64 bit component device size field.
>
> Size in sectors not blocks please.
Another possibility that I considered was a size in chunks, but
sectors is less confusing.
>
>
> >no "minor" field but a textual "name" field instead.
>
> Ok, I assume that there will be some way for userspace to query the minor
> which gets dynamically assigned when the array is started.
Well, actually it is user-space which dynamically assigns a minor.
It then has the option of recording, possibly as a symlink in /dev, the
relationship between the 'name' of the array and the dynamically
assigned minor.
>
> >address of superblock in superblock to avoid misidentifying superblock.
> e.g. is it >in a partition or a whole device.
>
> Really needed this.
>
>
> >The interpretation of the 'name' field would be up to the user-space
> >tools and the system administrator.
>
> Yes, so let's leave this out of this discussion.
... except to show that is is sufficient to meet the needs of users.
Thanks for your comments,
NeilBrown
next prev parent reply other threads:[~2002-11-20 23:24 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-20 15:55 RFC - new raid superblock layout for md driver Steve Pratt
2002-11-20 23:24 ` Neil Brown [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-11-20 23:47 Lars Marowsky-Bree
2002-11-21 0:31 ` Neil Brown
2002-11-21 0:35 ` Steven Dake
2002-11-21 1:10 ` Alan Cox
2002-12-08 22:35 ` Neil Brown
2002-11-21 19:39 ` Joel Becker
2002-11-20 4:09 Neil Brown
2002-11-20 10:03 ` Anton Altaparmakov
2002-11-20 23:02 ` Neil Brown
2002-11-22 0:08 ` Kenneth D. Merry
2002-12-09 3:52 ` Neil Brown
2002-12-10 6:28 ` Kenneth D. Merry
2002-12-11 0:07 ` Neil Brown
2002-11-20 13:58 ` Bill Rugolsky Jr.
2002-11-20 23:17 ` Neil Brown
2002-11-20 14:09 ` Alan Cox
2002-11-20 23:11 ` Neil Brown
2002-11-21 0:30 ` Alan Cox
2002-11-21 0:10 ` John Adams
2002-11-21 0:30 ` Alan Cox
2002-11-20 16:03 ` Joel Becker
2002-11-20 23:31 ` Neil Brown
2002-11-21 1:46 ` Doug Ledford
2002-11-21 19:34 ` Joel Becker
2002-11-21 19:54 ` Doug Ledford
2002-11-21 19:57 ` Steven Dake
2002-11-21 20:38 ` Doug Ledford
2002-11-21 20:49 ` Steven Dake
2002-11-21 20:35 ` Kevin Corry
2002-11-21 21:29 ` Alan Cox
2002-11-21 21:22 ` Doug Ledford
2002-11-21 20:53 ` Kevin Corry
2002-11-21 21:55 ` Doug Ledford
2002-11-21 20:06 ` Joel Becker
2002-11-21 23:35 ` Luca Berra
2002-11-22 10:13 ` Joe Thornber
2002-12-02 21:38 ` Neil Brown
2002-12-03 8:24 ` Luca Berra
2002-11-20 17:05 ` Steven Dake
2002-11-20 23:30 ` Lars Marowsky-Bree
2002-11-20 23:48 ` Neil Brown
2002-11-21 0:29 ` Steven Dake
2002-11-21 15:23 ` John Stoffel
2002-11-21 19:36 ` Joel Becker
2002-11-22 7:11 ` Jeremy Fitzhardinge
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=15836.6578.878775.208602@notabene.cse.unsw.edu.au \
--to=neilb@cse.unsw.edu.au \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=slpratt@us.ibm.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;
as well as URLs for NNTP newsgroup(s).