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: Sat Feb 2 07:40:03 2002 [thread overview]
Message-ID: <20020203003937.B874@gnu.org> (raw)
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
WARNING: multiple messages have this Message-ID (diff)
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 7:40 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-31 13:54 [linux-lvm] Re: [lvm-devel] [ANNOUNCE] LVM reimplementation ready for beta testing Steve Pratt
2002-01-31 19:52 ` Steve Pratt
2002-01-31 12:52 ` Joe Thornber
2002-02-01 3:47 ` Joe Thornber
2002-02-01 3:55 ` [Evms-devel] " Arjan van de Ven
2002-02-01 9:55 ` Arjan van de Ven
2002-01-31 13:09 ` Joe Thornber
2002-02-01 4:04 ` Joe Thornber
2002-02-01 4:13 ` [linux-lvm] " Arjan van de Ven
2002-02-01 10:12 ` Arjan van de Ven
2002-01-31 13:35 ` Joe Thornber
2002-02-01 4:31 ` [linux-lvm] " Joe Thornber
2002-02-01 5:06 ` [linux-lvm] Re: [Evms-devel] " Stephen C. Tweedie
2002-02-01 11:05 ` Stephen C. Tweedie
2002-02-01 8:32 ` [linux-lvm] " Alan Cox
2002-02-01 14:44 ` Alan Cox
2002-02-01 8:59 ` [linux-lvm] Re: [Evms-devel] " Stephen C. Tweedie
2002-02-01 14:58 ` Stephen C. Tweedie
2002-02-01 16:01 ` [evms-devel] [linux-lvm] " Kevin Corry
2002-02-01 21:59 ` Kevin Corry
2002-01-31 21:51 ` Joe Thornber
2002-02-03 6:22 ` Joe Thornber
2002-02-01 17:17 ` Alan Cox
2002-02-01 23:30 ` Alan Cox
2002-02-02 7:40 ` Andrew Clausen [this message]
2002-02-02 13:39 ` Andrew Clausen
2002-02-02 13:30 ` Alan Cox
2002-02-02 19:42 ` Alan Cox
2002-01-31 14:05 ` [linux-lvm] Re: [lvm-devel] [ANNOUNCE] LVM reimplementationre ady " Jeff Layton
2002-02-01 3:29 ` Heinz J . Mauelshagen
2002-02-01 9:43 ` Jeff Layton
2002-02-05 8:04 ` James Hawtin
2002-02-05 8:09 ` Patrick Caulfield
2002-02-05 11:13 ` Jesus Manuel NAVARRO LOPEZ
2002-02-05 12:28 ` [linux-lvm] (OT) Backups (was Re: LVM reimplementationre ady for beta testing...) Chad C. Walstrom
2002-02-06 13:13 ` [linux-lvm] Backup costs (was: LVM reimplementationre) Benjamin Scott
2002-02-06 13:39 ` Daniel Whicker
2002-02-06 13:46 ` James Mello
2002-02-06 14:35 ` Anders Widman
2002-02-07 3:01 ` Jesus Manuel NAVARRO LOPEZ
2002-02-07 3:17 ` Petro
2002-02-07 4:34 ` Jesus Manuel NAVARRO LOPEZ
2002-02-07 7:19 ` Petro
2002-02-07 7:54 ` Jesus Manuel NAVARRO LOPEZ
2002-02-07 3:55 ` Dieter Stueken
2002-02-06 13:46 ` Andreas Dilger
2002-02-06 13:48 ` Theo Van Dinter
2002-02-06 15:45 ` Austin Gonyou
2002-02-06 13:51 ` Petro
2002-02-06 13:52 ` Kirby C. Bohling
2002-02-06 13:55 ` Jeff Layton
2002-02-06 14:03 ` James Mello
2002-02-06 20:03 ` Jeff Layton
2002-02-06 20:08 ` James Mello
2002-02-06 20:11 ` Jeff Layton
2002-02-07 3:10 ` Jesus Manuel NAVARRO LOPEZ
2002-02-07 4:53 ` Jeff Layton
2002-02-07 5:31 ` James Hawtin
2002-02-07 17:05 ` Wolfgang Weisselberg
2002-02-08 20:04 ` James Hawtin
2002-02-07 3:03 ` Jesus Manuel NAVARRO LOPEZ
2002-02-07 3:17 ` Petro
2002-02-07 4:15 ` Jesus Manuel NAVARRO LOPEZ
2002-02-12 1:00 ` Marc MERLIN
2002-01-31 15:19 ` [Evms-devel] Re: [linux-lvm] Re: [lvm-devel] [ANNOUNCE] LVM reimplementation ready for beta testing Andrew Clausen
2002-01-31 21:18 ` 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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.