From: Andrew Clausen <clausen@gnu.org>
To: Kevin Corry <corryk@us.ibm.com>
Cc: Joe Thornber <thornber@fib011235813.fsnet.co.uk>,
linux-lvm@sistina.com, evms-devel@lists.sourceforge.net,
Jim McDonald <Jim@mcdee.net>,
Andreas Dilger <adilger@turbolabs.com>,
linux-kernel@vger.kernel.org
Subject: Re: [evms-devel] [linux-lvm] [ANNOUNCE] LVM reimplementation ready for beta testing
Date: Sun, 3 Feb 2002 00:39:37 +1100 [thread overview]
Message-ID: <20020203003937.B874@gnu.org> (raw)
In-Reply-To: <OFBCE93B66.F7B9C14E-ON85256B52.006B8AB3@raleigh.ibm.com> <20020131125211.A8934@fib011235813.fsnet.co.uk> <02020115304301.00650@boiler>
In-Reply-To: <02020115304301.00650@boiler>; from corryk@us.ibm.com on Fri, Feb 01, 2002 at 03:59:06PM -0600
On Fri, Feb 01, 2002 at 03:59:06PM -0600, Kevin Corry wrote:
> Current MD and LVM1: 11105 (this includes drivers/md, include/linux/lvm.h,
> and include/linux/raid/)
Why are you counting MD? It should be trivial to implement raid
with device-mapper.
> So I will agree - device-mapper does provide a nice, general-purpose I/O
> remapping service in a small amount of code.
It provides everything you need (from a kernel) to do Volume
Management in general. (What's missing?)
> And if you consider that EVMS has
> implemented support for LVM1 and MD, then EVMS is really only adding 6580
> lines of code to the kernel.
Yep, it's not the size, but the complexity.
device-mapper is *simple*. It couldn't be simpler!
simple is *good*, as long as it's not "too simple", in the sense
that it doesn't get the job done. So, tell us what the disadvantages
of device-mapper's "simplemindedness" is!
> In this scenario, we would wind up with exposed devices for every item in
> this graph (except the volume group). But in reality, we don't want someone
> coming along and mucking with md0 or with LV2 or with any of the disk
> partitions, because they are all in use by the two volumes at the top.
It's the user's fault if they choose to write on such a device.
> As we know, EVMS does volume discovery in the kernel. LVM1 does discovery in
> user-space, but Joe has hinted at an in-kernel LVM1 discovery module to work
> with device-mapper. Back when we started on EVMS, people were basically
> shouting "we need in-kernel discovery!",
Not me! Anyway, device-mapper is compatible with in-kernel discovery.
But, why not just stick it in initramfs? (Are there any Issues?)
> My belief is that it's the
> kernel's job to tell user-space what the hardware looks like, not the other
> way around. If we move partition/volume/etc discovery into user-space, at
> what point do we move device recognition into user-space?
There's a big difference: partition discovery isn't actually a hardware
thing, it's a software thing.
Some types of device recognition (iSCSI?) are also software things.
WRT: beliefs, I think the kernel should provide all the services that
can't be implemented well in userspace.
> Looking down that
> path just seems more and more like a micro-kernel approach, and I'm sure we
> don't want to rehash that discussion.
What's your point?
> Next, from what I've seen, device-mapper provides static remappings from one
> device to another. It seems to be a good approach for setting up things like
> disk partitions and LVM linear LVs. There is also striping support in
> device-mapper, but I'm assuming it uses one notion of striping. For instance,
> RAID-0 striping in MD is handled differently than striped LVs in LVM, and I
> think AIX striping is also different. I'm not sure if one stiping module
> could be generic enough to handle all of these cases.
Why do you need a single striping module?
> How about mirroring? Does the linear module in device-mapper allow for 1-to-n
> mappings?
Wouldn't you use the strip module, with the chunk size set to
a good approximation of infinity? Haven't tried it...
Anyway, this is just a small detail... if there was no way of doing it,
it would be easy to add a module...
> So another device-mapper "module"
> would need to be written to handle bad-block. This implicitly limits the
> capabilities of device-mapper, or else ties it directly to the recognition
> code. For EVMS and device-mapper to work together, we would have to agree on
> metadata formats for these types of modules. Other similar example that come
> to mind are RAID-5 and block-level encryption.
Agreed... but these shouldn't be big problems? (raid-5 is already
a standard...)
Andrew
next prev parent reply other threads:[~2002-02-02 13:40 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-31 19:52 [linux-lvm] Re: [lvm-devel] [ANNOUNCE] LVM reimplementation ready for beta testing Steve Pratt
2002-01-31 12:52 ` Joe Thornber
2002-02-01 9:55 ` [Evms-devel] " Arjan van de Ven
2002-01-31 13:09 ` Joe Thornber
2002-02-01 10:12 ` Arjan van de Ven
2002-01-31 13:35 ` Joe Thornber
2002-02-01 11:05 ` [Evms-devel] " Stephen C. Tweedie
2002-02-01 14:44 ` Alan Cox
2002-02-01 14:58 ` [Evms-devel] " Stephen C. Tweedie
2002-02-01 21:59 ` [evms-devel] [linux-lvm] " Kevin Corry
2002-01-31 21:51 ` Joe Thornber
2002-02-01 23:30 ` Alan Cox
2002-02-02 13:39 ` Andrew Clausen [this message]
2002-02-02 19:42 ` Alan Cox
2002-01-31 21:18 ` [Evms-devel] Re: [linux-lvm] Re: [lvm-devel] " Andrew Clausen
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=20020203003937.B874@gnu.org \
--to=clausen@gnu.org \
--cc=Jim@mcdee.net \
--cc=adilger@turbolabs.com \
--cc=corryk@us.ibm.com \
--cc=evms-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-lvm@sistina.com \
--cc=thornber@fib011235813.fsnet.co.uk \
/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