Thread (15 messages) flat view 15 messages, 7 authors, 2002-11-21

Re: RFC - new raid superblock layout for md driver

From: Neil Brown <hidden>
Date: 2002-11-20 23:24:52
Also in: lkml

On Wednesday November 20, Joel.Becker@oracle.com wrote:
On Wed, Nov 20, 2002 at 03:09:18PM +1100, Neil Brown wrote:
quoted
The interpretation of the 'name' field would be up to the user-space
tools and the system administrator.
I imagine having something like:
	host:name
where if "host" isn't the current host name, auto-assembly is not
tried, and if "host" is the current host name then:
  if "name" looks like "md[0-9]*" then the array is assembled as that
    device
  else the array is assembled as /dev/mdN for some large, unused N,
    and a symlink is created from /dev/md/name to /dev/mdN
If the "host" part is empty or non-existant, then the array would be
assembled no-matter what the hostname is.  This would be important
e.g. for assembling the device that stores the root filesystem, as we
may not know the host name until after the root filesystem were loaded.
	Hmm, what is the intended future interaction of DM and MD?  Two
ways at the same problem?  Just curious.
I see MD and DM as quite different, though I haven't looked much as DM
so I could be wrong.

I see raid1 and raid5 as being the key elements of MD.  i.e. handling
redundancy, rebuilding hot spares, stuff like that.  raid0 and linear
are almost optional frills.

DM on the other hand doesn't do redundancy (I don't think) but helps
to chop devices up into little bits and put them back together into
other devices.... a bit like a filesystem really, but it provided block
devices instead of files.

So raid0 and linear are more the domain of DM than MD in my mind.
But they are currently supported by MD and there is no real need to
change that.

	Assuming MD as a continually used feature, the "name" bits above
seem to be preparing to support multiple shared users of the array.  If
that is the case, shouldn't the superblock contain everything needed for
"clustered" operation?
Only if I knew what 'everything needed for clustered operation' was....
There is room for expansion in the superblock so stuff could be added.
If there were some specific things that you think would help clustered
operation, I'd be happy to hear the details.

Thanks,
NeilBrown
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help