* RE: [PATCH 000 of 5] md: Introduction
@ 2006-01-17 21:38 Lincoln Dale (ltd)
2006-01-18 13:27 ` Jan Engelhardt
0 siblings, 1 reply; 35+ messages in thread
From: Lincoln Dale (ltd) @ 2006-01-17 21:38 UTC (permalink / raw)
To: Michael Tokarev, NeilBrown; +Cc: linux-raid, linux-kernel, Steinar H. Gunderson
> Neil, is this online resizing/reshaping really needed? I understand
> all those words means alot for marketing persons - zero downtime,
> online resizing etc, but it is much safer and easier to do that stuff
> 'offline', on an inactive array, like raidreconf does - safer, easier,
> faster, and one have more possibilities for more complex changes. It
> isn't like you want to add/remove drives to/from your arrays every
day...
> Alot of good hw raid cards are unable to perform such reshaping too.
RAID resize/restripe may not be so common with cheap / PC-based RAID
systems, but it is common with midrange and enterprise storage
subsystems from vendors such as EMC, HDS, IBM & HP.
in fact, I'd say it's the exception to the rule _if_ an
midrange/enterprise storage subsystem doesn't have an _online_ resize
capability..
personally, I think this this useful functionality, but my personal
preference is that this would be in DM/LVM2 rather than MD. but given
Neil is the MD author/maintainer, I can see why he'd prefer to do it in
MD. :)
cheers,
lincoln.
^ permalink raw reply [flat|nested] 35+ messages in thread
* RE: [PATCH 000 of 5] md: Introduction
2006-01-17 21:38 [PATCH 000 of 5] md: Introduction Lincoln Dale (ltd)
@ 2006-01-18 13:27 ` Jan Engelhardt
2006-01-18 23:19 ` Neil Brown
0 siblings, 1 reply; 35+ messages in thread
From: Jan Engelhardt @ 2006-01-18 13:27 UTC (permalink / raw)
To: Lincoln Dale (ltd)
Cc: Michael Tokarev, NeilBrown, linux-raid, linux-kernel,
Steinar H. Gunderson
>personally, I think this this useful functionality, but my personal
>preference is that this would be in DM/LVM2 rather than MD. but given
>Neil is the MD author/maintainer, I can see why he'd prefer to do it in
>MD. :)
Why don't MD and DM merge some bits?
Jan Engelhardt
--
^ permalink raw reply [flat|nested] 35+ messages in thread
* RE: [PATCH 000 of 5] md: Introduction
2006-01-18 13:27 ` Jan Engelhardt
@ 2006-01-18 23:19 ` Neil Brown
2006-01-19 15:33 ` Mark Hahn
` (2 more replies)
0 siblings, 3 replies; 35+ messages in thread
From: Neil Brown @ 2006-01-18 23:19 UTC (permalink / raw)
To: Jan Engelhardt
Cc: Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
On Wednesday January 18, jengelh@linux01.gwdg.de wrote:
>
> >personally, I think this this useful functionality, but my personal
> >preference is that this would be in DM/LVM2 rather than MD. but given
> >Neil is the MD author/maintainer, I can see why he'd prefer to do it in
> >MD. :)
>
> Why don't MD and DM merge some bits?
>
Which bits?
Why?
My current opinion is that you should:
Use md for raid1, raid5, raid6 - anything with redundancy.
Use dm for multipath, crypto, linear, LVM, snapshot
Use either for raid0 (I don't think dm has particular advantages
for md or md over dm).
These can be mixed together quite effectively:
You can have dm/lvm over md/raid1 over dm/multipath
with no problems.
If there is functionality missing from any of these recommended
components, then make a noise about it, preferably but not necessarily
with code, and it will quite possibly be fixed.
NeilBrown
^ permalink raw reply [flat|nested] 35+ messages in thread* RE: [PATCH 000 of 5] md: Introduction
2006-01-18 23:19 ` Neil Brown
@ 2006-01-19 15:33 ` Mark Hahn
2006-01-19 20:12 ` Jan Engelhardt
2006-01-19 22:17 ` Phillip Susi
2 siblings, 0 replies; 35+ messages in thread
From: Mark Hahn @ 2006-01-19 15:33 UTC (permalink / raw)
To: Neil Brown
Cc: Jan Engelhardt, Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
> Use either for raid0 (I don't think dm has particular advantages
> for md or md over dm).
I measured this a few months ago, and was surprised to find that
DM raid0 was very noticably slower than MD raid0. same machine,
same disks/controller/kernel/settings/stripe-size. I didn't try
to find out why, since I usually need redundancy...
regards, mark hahn.
^ permalink raw reply [flat|nested] 35+ messages in thread
* RE: [PATCH 000 of 5] md: Introduction
2006-01-18 23:19 ` Neil Brown
2006-01-19 15:33 ` Mark Hahn
@ 2006-01-19 20:12 ` Jan Engelhardt
2006-01-19 21:22 ` Lars Marowsky-Bree
2006-01-19 22:17 ` Phillip Susi
2 siblings, 1 reply; 35+ messages in thread
From: Jan Engelhardt @ 2006-01-19 20:12 UTC (permalink / raw)
To: Neil Brown
Cc: Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
>> >personally, I think this this useful functionality, but my personal
>> >preference is that this would be in DM/LVM2 rather than MD. but given
>> >Neil is the MD author/maintainer, I can see why he'd prefer to do it in
>> >MD. :)
>>
>> Why don't MD and DM merge some bits?
>
>Which bits?
>Why?
>
>My current opinion is that you should:
>
> Use md for raid1, raid5, raid6 - anything with redundancy.
> Use dm for multipath, crypto, linear, LVM, snapshot
There are pairs of files that look like they would do the same thing:
raid1.c <-> dm-raid1.c
linear.c <-> dm-linear.c
Jan Engelhardt
--
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [PATCH 000 of 5] md: Introduction
2006-01-19 20:12 ` Jan Engelhardt
@ 2006-01-19 21:22 ` Lars Marowsky-Bree
0 siblings, 0 replies; 35+ messages in thread
From: Lars Marowsky-Bree @ 2006-01-19 21:22 UTC (permalink / raw)
To: Jan Engelhardt, Neil Brown
Cc: Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
On 2006-01-19T21:12:02, Jan Engelhardt <jengelh@linux01.gwdg.de> wrote:
> > Use md for raid1, raid5, raid6 - anything with redundancy.
> > Use dm for multipath, crypto, linear, LVM, snapshot
> There are pairs of files that look like they would do the same thing:
>
> raid1.c <-> dm-raid1.c
> linear.c <-> dm-linear.c
Sure there's some historical overlap. It'd make sense if DM used the md
raid personalities, yes.
Sincerely,
Lars Marowsky-Brée
--
High Availability & Clustering
SUSE Labs, Research and Development
SUSE LINUX Products GmbH - A Novell Business -- Charles Darwin
"Ignorance more frequently begets confidence than does knowledge"
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [PATCH 000 of 5] md: Introduction
2006-01-18 23:19 ` Neil Brown
2006-01-19 15:33 ` Mark Hahn
2006-01-19 20:12 ` Jan Engelhardt
@ 2006-01-19 22:17 ` Phillip Susi
2006-01-19 22:32 ` Neil Brown
2 siblings, 1 reply; 35+ messages in thread
From: Phillip Susi @ 2006-01-19 22:17 UTC (permalink / raw)
To: Neil Brown
Cc: Jan Engelhardt, Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
I'm currently of the opinion that dm needs a raid5 and raid6 module
added, then the user land lvm tools fixed to use them, and then you
could use dm instead of md. The benefit being that dm pushes things
like volume autodetection and management out of the kernel to user space
where it belongs. But that's just my opinion...
I'm using dm at home because I have a sata hardware fakeraid raid-0
between two WD 10,000 rpm raptors, and the dmraid utility correctly
recognizes that and configures device mapper to use it.
Neil Brown wrote:
> Which bits?
> Why?
>
> My current opinion is that you should:
>
> Use md for raid1, raid5, raid6 - anything with redundancy.
> Use dm for multipath, crypto, linear, LVM, snapshot
> Use either for raid0 (I don't think dm has particular advantages
> for md or md over dm).
>
> These can be mixed together quite effectively:
> You can have dm/lvm over md/raid1 over dm/multipath
> with no problems.
>
> If there is functionality missing from any of these recommended
> components, then make a noise about it, preferably but not necessarily
> with code, and it will quite possibly be fixed.
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [PATCH 000 of 5] md: Introduction
2006-01-19 22:17 ` Phillip Susi
@ 2006-01-19 22:32 ` Neil Brown
2006-01-19 23:26 ` Phillip Susi
0 siblings, 1 reply; 35+ messages in thread
From: Neil Brown @ 2006-01-19 22:32 UTC (permalink / raw)
To: Phillip Susi
Cc: Jan Engelhardt, Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
On Thursday January 19, psusi@cfl.rr.com wrote:
> I'm currently of the opinion that dm needs a raid5 and raid6 module
> added, then the user land lvm tools fixed to use them, and then you
> could use dm instead of md. The benefit being that dm pushes things
> like volume autodetection and management out of the kernel to user space
> where it belongs. But that's just my opinion...
The in-kernel autodetection in md is purely legacy support as far as I
am concerned. md does volume detection in user space via 'mdadm'.
What other "things like" were you thinking of.
NeilBrown
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [PATCH 000 of 5] md: Introduction
2006-01-19 22:32 ` Neil Brown
@ 2006-01-19 23:26 ` Phillip Susi
2006-01-19 23:43 ` Neil Brown
0 siblings, 1 reply; 35+ messages in thread
From: Phillip Susi @ 2006-01-19 23:26 UTC (permalink / raw)
To: Neil Brown
Cc: Jan Engelhardt, Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
Neil Brown wrote:
>
> The in-kernel autodetection in md is purely legacy support as far as I
> am concerned. md does volume detection in user space via 'mdadm'.
>
> What other "things like" were you thinking of.
>
Oh, I suppose that's true. Well, another thing is your new mods to
support on the fly reshaping, which dm could do from user space. Then
of course, there's multipath and snapshots and other lvm things which
you need dm for, so why use both when one will do? That's my take on it.
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [PATCH 000 of 5] md: Introduction
2006-01-19 23:26 ` Phillip Susi
@ 2006-01-19 23:43 ` Neil Brown
2006-01-20 2:17 ` Phillip Susi
` (2 more replies)
0 siblings, 3 replies; 35+ messages in thread
From: Neil Brown @ 2006-01-19 23:43 UTC (permalink / raw)
To: Phillip Susi
Cc: Jan Engelhardt, Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
On Thursday January 19, psusi@cfl.rr.com wrote:
> Neil Brown wrote:
> >
> > The in-kernel autodetection in md is purely legacy support as far as I
> > am concerned. md does volume detection in user space via 'mdadm'.
> >
> > What other "things like" were you thinking of.
> >
>
> Oh, I suppose that's true. Well, another thing is your new mods to
> support on the fly reshaping, which dm could do from user space. Then
> of course, there's multipath and snapshots and other lvm things which
> you need dm for, so why use both when one will do? That's my take on it.
Maybe the problem here is thinking of md and dm as different things.
Try just not thinking of them at all.
Think about it like this:
The linux kernel support lvm
The linux kernel support multipath
The linux kernel support snapshots
The linux kernel support raid0
The linux kernel support raid1
The linux kernel support raid5
Use the bits that you want, and not the bits that you don't.
dm and md are just two different interface styles to various bits of
this. Neither is clearly better than the other, partly because
different people have different tastes.
Maybe what you really want is for all of these functions to be managed
under the one umbrella application. I think that is was EVMS tried to
do.
One big selling point that 'dm' has is 'dmraid' - a tool that allows
you to use a lot of 'fakeraid' cards. People would like dmraid to
work with raid5 as well, and that is a good goal.
However it doesn't mean that dm needs to get it's own raid5
implementation or that md/raid5 needs to be merged with dm.
It can be achieved by giving md/raid5 the right interfaces so that
metadata can be managed from userspace (and I am nearly there).
Then 'dmraid' (or a similar tool) can use 'dm' interfaces for some
raid levels and 'md' interfaces for others.
NeilBrown
^ permalink raw reply [flat|nested] 35+ messages in thread* Re: [PATCH 000 of 5] md: Introduction
2006-01-19 23:43 ` Neil Brown
@ 2006-01-20 2:17 ` Phillip Susi
2006-01-20 10:53 ` Lars Marowsky-Bree
2006-01-20 18:41 ` Heinz Mauelshagen
2006-01-20 17:29 ` Ross Vandegrift
2006-01-20 18:36 ` Heinz Mauelshagen
2 siblings, 2 replies; 35+ messages in thread
From: Phillip Susi @ 2006-01-20 2:17 UTC (permalink / raw)
To: Neil Brown
Cc: Jan Engelhardt, Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
Neil Brown wrote:
>Maybe the problem here is thinking of md and dm as different things.
>Try just not thinking of them at all.
>Think about it like this:
> The linux kernel support lvm
> The linux kernel support multipath
> The linux kernel support snapshots
> The linux kernel support raid0
> The linux kernel support raid1
> The linux kernel support raid5
>
>Use the bits that you want, and not the bits that you don't.
>
>dm and md are just two different interface styles to various bits of
>this. Neither is clearly better than the other, partly because
>different people have different tastes.
>
>Maybe what you really want is for all of these functions to be managed
>under the one umbrella application. I think that is was EVMS tried to
>do.
>
>
>
I am under the impression that dm is simpler/cleaner than md. That
impression very well may be wrong, but if it is simpler, then that's a
good thing.
>One big selling point that 'dm' has is 'dmraid' - a tool that allows
>you to use a lot of 'fakeraid' cards. People would like dmraid to
>work with raid5 as well, and that is a good goal.
>
>
AFAIK, the hardware fakeraid solutions on the market don't support raid5
anyhow ( at least mine doesn't ), so dmraid won't either.
>However it doesn't mean that dm needs to get it's own raid5
>implementation or that md/raid5 needs to be merged with dm.
>It can be achieved by giving md/raid5 the right interfaces so that
>metadata can be managed from userspace (and I am nearly there).
>Then 'dmraid' (or a similar tool) can use 'dm' interfaces for some
>raid levels and 'md' interfaces for others.
>
Having two sets of interfaces and retrofiting a new interface onto a
system that wasn't designed for it seems likely to bloat the kernel with
complex code. I don't really know if that is the case because I have
not studied the code, but that's the impression I get, and if it's
right, then I'd say it is better to stick with dm rather than retrofit
md. In either case, it seems overly complex to have to deal with both.
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [PATCH 000 of 5] md: Introduction
2006-01-20 2:17 ` Phillip Susi
@ 2006-01-20 10:53 ` Lars Marowsky-Bree
2006-01-20 12:06 ` Jens Axboe
2006-01-20 18:38 ` Heinz Mauelshagen
2006-01-20 18:41 ` Heinz Mauelshagen
1 sibling, 2 replies; 35+ messages in thread
From: Lars Marowsky-Bree @ 2006-01-20 10:53 UTC (permalink / raw)
To: Phillip Susi, Neil Brown
Cc: Jan Engelhardt, Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
On 2006-01-19T21:17:12, Phillip Susi <psusi@cfl.rr.com> wrote:
> I am under the impression that dm is simpler/cleaner than md. That
> impression very well may be wrong, but if it is simpler, then that's a
> good thing.
That impression is wrong in that general form. Both have advantages and
disadvantages.
I've been an advocate of seeing both of them merged, mostly because I
think it would be beneficial if they'd share the same interface to
user-space to make the tools easier to write and maintain.
However, rewriting the RAID personalities for DM is a thing only a fool
would do without really good cause. Sure, everybody can write a
RAID5/RAID6 parity algorithm. But getting the failure/edge cases stable
is not trivial and requires years of maturing.
Which is why I think gentle evolution of both source bases towards some
common API (for example) is much preferable to reinventing one within
the other.
Oversimplifying to "dm is better than md" is just stupid.
Sincerely,
Lars Marowsky-Brée
--
High Availability & Clustering
SUSE Labs, Research and Development
SUSE LINUX Products GmbH - A Novell Business -- Charles Darwin
"Ignorance more frequently begets confidence than does knowledge"
^ permalink raw reply [flat|nested] 35+ messages in thread* Re: [PATCH 000 of 5] md: Introduction
2006-01-20 10:53 ` Lars Marowsky-Bree
@ 2006-01-20 12:06 ` Jens Axboe
2006-01-20 18:38 ` Heinz Mauelshagen
1 sibling, 0 replies; 35+ messages in thread
From: Jens Axboe @ 2006-01-20 12:06 UTC (permalink / raw)
To: Lars Marowsky-Bree
Cc: Phillip Susi, Neil Brown, Jan Engelhardt, Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
On Fri, Jan 20 2006, Lars Marowsky-Bree wrote:
> Oversimplifying to "dm is better than md" is just stupid.
Indeed. But "generally" md is faster and more efficient in the way it
handles ios, it doesn't do any splitting unless it has to.
--
Jens Axboe
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [PATCH 000 of 5] md: Introduction
2006-01-20 10:53 ` Lars Marowsky-Bree
2006-01-20 12:06 ` Jens Axboe
@ 2006-01-20 18:38 ` Heinz Mauelshagen
2006-01-20 22:09 ` Lars Marowsky-Bree
1 sibling, 1 reply; 35+ messages in thread
From: Heinz Mauelshagen @ 2006-01-20 18:38 UTC (permalink / raw)
To: Lars Marowsky-Bree
Cc: Phillip Susi, Neil Brown, Jan Engelhardt, Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
On Fri, Jan 20, 2006 at 11:53:06AM +0100, Lars Marowsky-Bree wrote:
> On 2006-01-19T21:17:12, Phillip Susi <psusi@cfl.rr.com> wrote:
>
> > I am under the impression that dm is simpler/cleaner than md. That
> > impression very well may be wrong, but if it is simpler, then that's a
> > good thing.
>
> That impression is wrong in that general form. Both have advantages and
> disadvantages.
>
> I've been an advocate of seeing both of them merged, mostly because I
> think it would be beneficial if they'd share the same interface to
> user-space to make the tools easier to write and maintain.
>
> However, rewriting the RAID personalities for DM is a thing only a fool
> would do without really good cause.
Thanks Lars ;)
> Sure, everybody can write a
> RAID5/RAID6 parity algorithm. But getting the failure/edge cases stable
> is not trivial and requires years of maturing.
>
> Which is why I think gentle evolution of both source bases towards some
> common API (for example) is much preferable to reinventing one within
> the other.
>
> Oversimplifying to "dm is better than md" is just stupid.
>
>
>
> Sincerely,
> Lars Marowsky-Brée
>
> --
> High Availability & Clustering
> SUSE Labs, Research and Development
> SUSE LINUX Products GmbH - A Novell Business -- Charles Darwin
> "Ignorance more frequently begets confidence than does knowledge"
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
Regards,
Heinz -- The LVM Guy --
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Red Hat GmbH
Consulting Development Engineer Am Sonnenhang 11
Cluster and Storage Development 56242 Marienrachdorf
Germany
Mauelshagen@RedHat.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 35+ messages in thread* Re: [PATCH 000 of 5] md: Introduction
2006-01-20 18:38 ` Heinz Mauelshagen
@ 2006-01-20 22:09 ` Lars Marowsky-Bree
2006-01-21 0:06 ` Heinz Mauelshagen
0 siblings, 1 reply; 35+ messages in thread
From: Lars Marowsky-Bree @ 2006-01-20 22:09 UTC (permalink / raw)
To: Heinz Mauelshagen
Cc: Phillip Susi, Neil Brown, Jan Engelhardt, Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
On 2006-01-20T19:38:40, Heinz Mauelshagen <mauelshagen@redhat.com> wrote:
> > However, rewriting the RAID personalities for DM is a thing only a fool
> > would do without really good cause.
>
> Thanks Lars ;)
Well, I assume you have a really good cause then, don't you? ;-)
Sincerely,
Lars Marowsky-Brée
--
High Availability & Clustering
SUSE Labs, Research and Development
SUSE LINUX Products GmbH - A Novell Business -- Charles Darwin
"Ignorance more frequently begets confidence than does knowledge"
^ permalink raw reply [flat|nested] 35+ messages in thread* Re: [PATCH 000 of 5] md: Introduction
2006-01-20 22:09 ` Lars Marowsky-Bree
@ 2006-01-21 0:06 ` Heinz Mauelshagen
0 siblings, 0 replies; 35+ messages in thread
From: Heinz Mauelshagen @ 2006-01-21 0:06 UTC (permalink / raw)
To: Lars Marowsky-Bree
Cc: Heinz Mauelshagen, Phillip Susi, Neil Brown, Jan Engelhardt,
Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
On Fri, Jan 20, 2006 at 11:09:51PM +0100, Lars Marowsky-Bree wrote:
> On 2006-01-20T19:38:40, Heinz Mauelshagen <mauelshagen@redhat.com> wrote:
>
> > > However, rewriting the RAID personalities for DM is a thing only a fool
> > > would do without really good cause.
> >
> > Thanks Lars ;)
>
> Well, I assume you have a really good cause then, don't you? ;-)
Well, I'll share your assumption ;-)
>
>
> Sincerely,
> Lars Marowsky-Brée
>
> --
> High Availability & Clustering
> SUSE Labs, Research and Development
> SUSE LINUX Products GmbH - A Novell Business -- Charles Darwin
> "Ignorance more frequently begets confidence than does knowledge"
--
Regards,
Heinz -- The LVM Guy --
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Red Hat GmbH
Consulting Development Engineer Am Sonnenhang 11
Cluster and Storage Development 56242 Marienrachdorf
Germany
Mauelshagen@RedHat.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [PATCH 000 of 5] md: Introduction
2006-01-20 2:17 ` Phillip Susi
2006-01-20 10:53 ` Lars Marowsky-Bree
@ 2006-01-20 18:41 ` Heinz Mauelshagen
1 sibling, 0 replies; 35+ messages in thread
From: Heinz Mauelshagen @ 2006-01-20 18:41 UTC (permalink / raw)
To: Phillip Susi
Cc: Neil Brown, Jan Engelhardt, Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
On Thu, Jan 19, 2006 at 09:17:12PM -0500, Phillip Susi wrote:
> Neil Brown wrote:
>
> >Maybe the problem here is thinking of md and dm as different things.
> >Try just not thinking of them at all.
> >Think about it like this:
> > The linux kernel support lvm
> > The linux kernel support multipath
> > The linux kernel support snapshots
> > The linux kernel support raid0
> > The linux kernel support raid1
> > The linux kernel support raid5
> >
> >Use the bits that you want, and not the bits that you don't.
> >
> >dm and md are just two different interface styles to various bits of
> >this. Neither is clearly better than the other, partly because
> >different people have different tastes.
> >
> >Maybe what you really want is for all of these functions to be managed
> >under the one umbrella application. I think that is was EVMS tried to
> >do.
> >
> >
> >
>
> I am under the impression that dm is simpler/cleaner than md. That
> impression very well may be wrong, but if it is simpler, then that's a
> good thing.
>
>
> >One big selling point that 'dm' has is 'dmraid' - a tool that allows
> >you to use a lot of 'fakeraid' cards. People would like dmraid to
> >work with raid5 as well, and that is a good goal.
> >
> >
>
> AFAIK, the hardware fakeraid solutions on the market don't support raid5
> anyhow ( at least mine doesn't ), so dmraid won't either.
Well, some do (eg, Nvidia).
>
> >However it doesn't mean that dm needs to get it's own raid5
> >implementation or that md/raid5 needs to be merged with dm.
> >It can be achieved by giving md/raid5 the right interfaces so that
> >metadata can be managed from userspace (and I am nearly there).
> >Then 'dmraid' (or a similar tool) can use 'dm' interfaces for some
> >raid levels and 'md' interfaces for others.
> >
>
> Having two sets of interfaces and retrofiting a new interface onto a
> system that wasn't designed for it seems likely to bloat the kernel with
> complex code. I don't really know if that is the case because I have
> not studied the code, but that's the impression I get, and if it's
> right, then I'd say it is better to stick with dm rather than retrofit
> md. In either case, it seems overly complex to have to deal with both.
I agree, but dm will need to mature before it'll be able to substitute md.
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Regards,
Heinz -- The LVM Guy --
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Red Hat GmbH
Consulting Development Engineer Am Sonnenhang 11
Cluster and Storage Development 56242 Marienrachdorf
Germany
Mauelshagen@RedHat.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [PATCH 000 of 5] md: Introduction
2006-01-19 23:43 ` Neil Brown
2006-01-20 2:17 ` Phillip Susi
@ 2006-01-20 17:29 ` Ross Vandegrift
2006-01-20 18:36 ` Heinz Mauelshagen
2 siblings, 0 replies; 35+ messages in thread
From: Ross Vandegrift @ 2006-01-20 17:29 UTC (permalink / raw)
To: Neil Brown
Cc: Phillip Susi, Jan Engelhardt, Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
On Fri, Jan 20, 2006 at 10:43:13AM +1100, Neil Brown wrote:
> dm and md are just two different interface styles to various bits of
> this. Neither is clearly better than the other, partly because
> different people have different tastes.
Here's why it's great to have both: they have different toolkits. I'm
really familiar with md's toolkit. I can do most anything I need.
But I'll bet that I've never gotten a pvmove to finish sucessfully
because I am doing something wrong and I don't know it.
Becuase we're talking about data integrity, the toolkit issue alone
makes it worth keeping both code paths. md does 90% of what I need,
so why should I spend the time to learn a new system that doesn't
offer any advantages?
[1] I'm intentionally neglecting the 4k stack issue
--
Ross Vandegrift
ross@lug.udel.edu
"The good Christian should beware of mathematicians, and all those who
make empty prophecies. The danger already exists that the mathematicians
have made a covenant with the devil to darken the spirit and to confine
man in the bonds of Hell."
--St. Augustine, De Genesi ad Litteram, Book II, xviii, 37
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [PATCH 000 of 5] md: Introduction
2006-01-19 23:43 ` Neil Brown
2006-01-20 2:17 ` Phillip Susi
2006-01-20 17:29 ` Ross Vandegrift
@ 2006-01-20 18:36 ` Heinz Mauelshagen
2006-01-20 22:57 ` Lars Marowsky-Bree
2 siblings, 1 reply; 35+ messages in thread
From: Heinz Mauelshagen @ 2006-01-20 18:36 UTC (permalink / raw)
To: Neil Brown
Cc: Phillip Susi, Jan Engelhardt, Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
On Fri, Jan 20, 2006 at 10:43:13AM +1100, Neil Brown wrote:
> On Thursday January 19, psusi@cfl.rr.com wrote:
> > Neil Brown wrote:
> > >
> > > The in-kernel autodetection in md is purely legacy support as far as I
> > > am concerned. md does volume detection in user space via 'mdadm'.
> > >
> > > What other "things like" were you thinking of.
> > >
> >
> > Oh, I suppose that's true. Well, another thing is your new mods to
> > support on the fly reshaping, which dm could do from user space. Then
> > of course, there's multipath and snapshots and other lvm things which
> > you need dm for, so why use both when one will do? That's my take on it.
>
> Maybe the problem here is thinking of md and dm as different things.
> Try just not thinking of them at all.
> Think about it like this:
> The linux kernel support lvm
> The linux kernel support multipath
> The linux kernel support snapshots
> The linux kernel support raid0
> The linux kernel support raid1
> The linux kernel support raid5
>
> Use the bits that you want, and not the bits that you don't.
>
> dm and md are just two different interface styles to various bits of
> this. Neither is clearly better than the other, partly because
> different people have different tastes.
>
> Maybe what you really want is for all of these functions to be managed
> under the one umbrella application. I think that is was EVMS tried to
> do.
>
> One big selling point that 'dm' has is 'dmraid' - a tool that allows
> you to use a lot of 'fakeraid' cards. People would like dmraid to
> work with raid5 as well, and that is a good goal.
> However it doesn't mean that dm needs to get it's own raid5
> implementation or that md/raid5 needs to be merged with dm.
That's a valid point to make but it can ;)
> It can be achieved by giving md/raid5 the right interfaces so that
> metadata can be managed from userspace (and I am nearly there).
Yeah, and I'm nearly there to have a RAID4 and RAID5 target for dm
(which took advantage of the raid address calculation and the bio to
stripe cache copy code of md raid5).
See http://people.redhat.com/heinzm/sw/dm/dm-raid45/dm-raid45_2.6.15_200601201914.patch.bz2 (no Makefile / no Kconfig changes) for early code reference.
> Then 'dmraid' (or a similar tool) can use 'dm' interfaces for some
> raid levels and 'md' interfaces for others.
Yes, that's possible but there's recommendations to have a native target
for dm to do RAID5, so I started to implement it.
>
> NeilBrown
> -
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Regards,
Heinz -- The LVM Guy --
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Red Hat GmbH
Consulting Development Engineer Am Sonnenhang 11
Cluster and Storage Development 56242 Marienrachdorf
Germany
Mauelshagen@RedHat.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 35+ messages in thread* Re: [PATCH 000 of 5] md: Introduction
2006-01-20 18:36 ` Heinz Mauelshagen
@ 2006-01-20 22:57 ` Lars Marowsky-Bree
2006-01-21 0:01 ` Heinz Mauelshagen
0 siblings, 1 reply; 35+ messages in thread
From: Lars Marowsky-Bree @ 2006-01-20 22:57 UTC (permalink / raw)
To: Heinz Mauelshagen, Neil Brown
Cc: Phillip Susi, Jan Engelhardt, Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
On 2006-01-20T19:36:21, Heinz Mauelshagen <mauelshagen@redhat.com> wrote:
> > Then 'dmraid' (or a similar tool) can use 'dm' interfaces for some
> > raid levels and 'md' interfaces for others.
> Yes, that's possible but there's recommendations to have a native target
> for dm to do RAID5, so I started to implement it.
Can you answer me what the recommendations are based on?
I understand wanting to manage both via the same framework, but
duplicating the code is just ... wrong.
What's gained by it? Why not provide a dm-md wrapper which could then
load/interface to all md personalities?
Sincerely,
Lars Marowsky-Brée
--
High Availability & Clustering
SUSE Labs, Research and Development
SUSE LINUX Products GmbH - A Novell Business -- Charles Darwin
"Ignorance more frequently begets confidence than does knowledge"
^ permalink raw reply [flat|nested] 35+ messages in thread* Re: [PATCH 000 of 5] md: Introduction
2006-01-20 22:57 ` Lars Marowsky-Bree
@ 2006-01-21 0:01 ` Heinz Mauelshagen
2006-01-21 0:03 ` Lars Marowsky-Bree
0 siblings, 1 reply; 35+ messages in thread
From: Heinz Mauelshagen @ 2006-01-21 0:01 UTC (permalink / raw)
To: Lars Marowsky-Bree
Cc: Heinz Mauelshagen, Neil Brown, Phillip Susi, Jan Engelhardt,
Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
On Fri, Jan 20, 2006 at 11:57:24PM +0100, Lars Marowsky-Bree wrote:
> On 2006-01-20T19:36:21, Heinz Mauelshagen <mauelshagen@redhat.com> wrote:
>
> > > Then 'dmraid' (or a similar tool) can use 'dm' interfaces for some
> > > raid levels and 'md' interfaces for others.
> > Yes, that's possible but there's recommendations to have a native target
> > for dm to do RAID5, so I started to implement it.
>
> Can you answer me what the recommendations are based on?
Partner requests.
>
> I understand wanting to manage both via the same framework, but
> duplicating the code is just ... wrong.
>
> What's gained by it?
>
> Why not provide a dm-md wrapper which could then
> load/interface to all md personalities?
>
As we want to enrich the mapping flexibility (ie, multi-segment fine grained
mappings) of dm by adding targets as we go, a certain degree and transitional
existence of duplicate code is the price to gain that flexibility.
>
> Sincerely,
> Lars Marowsky-Brée
>
> --
> High Availability & Clustering
> SUSE Labs, Research and Development
> SUSE LINUX Products GmbH - A Novell Business -- Charles Darwin
> "Ignorance more frequently begets confidence than does knowledge"
Warm regards,
Heinz -- The LVM Guy --
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Red Hat GmbH
Consulting Development Engineer Am Sonnenhang 11
Cluster and Storage Development 56242 Marienrachdorf
Germany
Mauelshagen@RedHat.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 35+ messages in thread* Re: [PATCH 000 of 5] md: Introduction
2006-01-21 0:01 ` Heinz Mauelshagen
@ 2006-01-21 0:03 ` Lars Marowsky-Bree
2006-01-21 0:08 ` Heinz Mauelshagen
0 siblings, 1 reply; 35+ messages in thread
From: Lars Marowsky-Bree @ 2006-01-21 0:03 UTC (permalink / raw)
To: Heinz Mauelshagen
Cc: Neil Brown, Phillip Susi, Jan Engelhardt, Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
On 2006-01-21T01:01:42, Heinz Mauelshagen <mauelshagen@redhat.com> wrote:
> > Why not provide a dm-md wrapper which could then
> > load/interface to all md personalities?
> As we want to enrich the mapping flexibility (ie, multi-segment fine grained
> mappings) of dm by adding targets as we go, a certain degree and transitional
> existence of duplicate code is the price to gain that flexibility.
A dm-md wrapper would give you the same?
Sincerely,
Lars Marowsky-Brée
--
High Availability & Clustering
SUSE Labs, Research and Development
SUSE LINUX Products GmbH - A Novell Business -- Charles Darwin
"Ignorance more frequently begets confidence than does knowledge"
^ permalink raw reply [flat|nested] 35+ messages in thread* Re: [PATCH 000 of 5] md: Introduction
2006-01-21 0:03 ` Lars Marowsky-Bree
@ 2006-01-21 0:08 ` Heinz Mauelshagen
2006-01-21 0:13 ` Lars Marowsky-Bree
0 siblings, 1 reply; 35+ messages in thread
From: Heinz Mauelshagen @ 2006-01-21 0:08 UTC (permalink / raw)
To: Lars Marowsky-Bree
Cc: Heinz Mauelshagen, Neil Brown, Phillip Susi, Jan Engelhardt,
Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
On Sat, Jan 21, 2006 at 01:03:44AM +0100, Lars Marowsky-Bree wrote:
> On 2006-01-21T01:01:42, Heinz Mauelshagen <mauelshagen@redhat.com> wrote:
>
> > > Why not provide a dm-md wrapper which could then
> > > load/interface to all md personalities?
> > As we want to enrich the mapping flexibility (ie, multi-segment fine grained
> > mappings) of dm by adding targets as we go, a certain degree and transitional
> > existence of duplicate code is the price to gain that flexibility.
>
> A dm-md wrapper would give you the same?
No, we'ld need to stack more complex to achieve mappings.
Think lvm2 and logical volume level raid5.
>
>
> Sincerely,
> Lars Marowsky-Brée
>
> --
> High Availability & Clustering
> SUSE Labs, Research and Development
> SUSE LINUX Products GmbH - A Novell Business -- Charles Darwin
> "Ignorance more frequently begets confidence than does knowledge"
--
Regards,
Heinz -- The LVM Guy --
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Red Hat GmbH
Consulting Development Engineer Am Sonnenhang 11
Cluster and Storage Development 56242 Marienrachdorf
Germany
Mauelshagen@RedHat.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 35+ messages in thread* Re: [PATCH 000 of 5] md: Introduction
2006-01-21 0:08 ` Heinz Mauelshagen
@ 2006-01-21 0:13 ` Lars Marowsky-Bree
2006-01-23 9:44 ` Heinz Mauelshagen
0 siblings, 1 reply; 35+ messages in thread
From: Lars Marowsky-Bree @ 2006-01-21 0:13 UTC (permalink / raw)
To: Heinz Mauelshagen
Cc: Neil Brown, Phillip Susi, Jan Engelhardt, Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
On 2006-01-21T01:08:06, Heinz Mauelshagen <mauelshagen@redhat.com> wrote:
> > A dm-md wrapper would give you the same?
> No, we'ld need to stack more complex to achieve mappings.
> Think lvm2 and logical volume level raid5.
How would you not get that if you had a wrapper around md which made it
into an dm personality/target?
Besides, stacking between dm devices so far (ie, if I look how kpartx
does it, or LVM2 on top of MPIO etc, which works just fine) is via the
block device layer anyway - and nothing stops you from putting md on top
of LVM2 LVs either.
I use the regularly to play with md and other stuff...
So I remain unconvinced that code duplication is worth it for more than
"hark we want it so!" ;-)
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [PATCH 000 of 5] md: Introduction
2006-01-21 0:13 ` Lars Marowsky-Bree
@ 2006-01-23 9:44 ` Heinz Mauelshagen
2006-01-23 10:26 ` Lars Marowsky-Bree
2006-01-23 12:54 ` Ville Herva
0 siblings, 2 replies; 35+ messages in thread
From: Heinz Mauelshagen @ 2006-01-23 9:44 UTC (permalink / raw)
To: Lars Marowsky-Bree
Cc: Heinz Mauelshagen, Neil Brown, Phillip Susi, Jan Engelhardt,
Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
On Sat, Jan 21, 2006 at 01:13:11AM +0100, Lars Marowsky-Bree wrote:
> On 2006-01-21T01:08:06, Heinz Mauelshagen <mauelshagen@redhat.com> wrote:
>
> > > A dm-md wrapper would give you the same?
> > No, we'ld need to stack more complex to achieve mappings.
> > Think lvm2 and logical volume level raid5.
>
> How would you not get that if you had a wrapper around md which made it
> into an dm personality/target?
You could with deeper stacking. That's why I mentioned it above.
>
> Besides, stacking between dm devices so far (ie, if I look how kpartx
> does it, or LVM2 on top of MPIO etc, which works just fine) is via the
> block device layer anyway - and nothing stops you from putting md on top
> of LVM2 LVs either.
>
> I use the regularly to play with md and other stuff...
Me too but for production, I want to avoid the
additional stacking overhead and complexity.
>
> So I remain unconvinced that code duplication is worth it for more than
> "hark we want it so!" ;-)
Shall I remove you from the list of potential testers of dm-raid45 then ;-)
>
>
--
Regards,
Heinz -- The LVM Guy --
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Red Hat GmbH
Consulting Development Engineer Am Sonnenhang 11
Cluster and Storage Development 56242 Marienrachdorf
Germany
Mauelshagen@RedHat.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 35+ messages in thread* Re: [PATCH 000 of 5] md: Introduction
2006-01-23 9:44 ` Heinz Mauelshagen
@ 2006-01-23 10:26 ` Lars Marowsky-Bree
2006-01-23 10:38 ` Heinz Mauelshagen
2006-01-23 12:54 ` Ville Herva
1 sibling, 1 reply; 35+ messages in thread
From: Lars Marowsky-Bree @ 2006-01-23 10:26 UTC (permalink / raw)
To: Heinz Mauelshagen
Cc: Neil Brown, Phillip Susi, Jan Engelhardt, Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
On 2006-01-23T10:44:18, Heinz Mauelshagen <mauelshagen@redhat.com> wrote:
> > Besides, stacking between dm devices so far (ie, if I look how kpartx
> > does it, or LVM2 on top of MPIO etc, which works just fine) is via the
> > block device layer anyway - and nothing stops you from putting md on top
> > of LVM2 LVs either.
> >
> > I use the regularly to play with md and other stuff...
>
> Me too but for production, I want to avoid the
> additional stacking overhead and complexity.
Ok, I still didn't get that. I must be slow.
Did you implement some DM-internal stacking now to avoid the above
mentioned complexity?
Otherwise, even DM-on-DM is still stacked via the block device
abstraction...
Sincerely,
Lars Marowsky-Brée
--
High Availability & Clustering
SUSE Labs, Research and Development
SUSE LINUX Products GmbH - A Novell Business -- Charles Darwin
"Ignorance more frequently begets confidence than does knowledge"
^ permalink raw reply [flat|nested] 35+ messages in thread* Re: [PATCH 000 of 5] md: Introduction
2006-01-23 10:26 ` Lars Marowsky-Bree
@ 2006-01-23 10:38 ` Heinz Mauelshagen
2006-01-23 10:45 ` Lars Marowsky-Bree
0 siblings, 1 reply; 35+ messages in thread
From: Heinz Mauelshagen @ 2006-01-23 10:38 UTC (permalink / raw)
To: Lars Marowsky-Bree
Cc: Heinz Mauelshagen, Neil Brown, Phillip Susi, Jan Engelhardt,
Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
On Mon, Jan 23, 2006 at 11:26:01AM +0100, Lars Marowsky-Bree wrote:
> On 2006-01-23T10:44:18, Heinz Mauelshagen <mauelshagen@redhat.com> wrote:
>
> > > Besides, stacking between dm devices so far (ie, if I look how kpartx
> > > does it, or LVM2 on top of MPIO etc, which works just fine) is via the
> > > block device layer anyway - and nothing stops you from putting md on top
> > > of LVM2 LVs either.
> > >
> > > I use the regularly to play with md and other stuff...
> >
> > Me too but for production, I want to avoid the
> > additional stacking overhead and complexity.
>
> Ok, I still didn't get that. I must be slow.
>
> Did you implement some DM-internal stacking now to avoid the above
> mentioned complexity?
>
> Otherwise, even DM-on-DM is still stacked via the block device
> abstraction...
No, not necessary because a single-level raid4/5 mapping will do it.
Ie. it supports <offset> parameters in the constructor as other targets
do as well (eg. mirror or linear).
>
>
> Sincerely,
> Lars Marowsky-Brée
>
> --
> High Availability & Clustering
> SUSE Labs, Research and Development
> SUSE LINUX Products GmbH - A Novell Business -- Charles Darwin
> "Ignorance more frequently begets confidence than does knowledge"
--
Regards,
Heinz -- The LVM Guy --
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Red Hat GmbH
Consulting Development Engineer Am Sonnenhang 11
Cluster and Storage Development 56242 Marienrachdorf
Germany
Mauelshagen@RedHat.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 35+ messages in thread* Re: [PATCH 000 of 5] md: Introduction
2006-01-23 10:38 ` Heinz Mauelshagen
@ 2006-01-23 10:45 ` Lars Marowsky-Bree
2006-01-23 11:00 ` Heinz Mauelshagen
0 siblings, 1 reply; 35+ messages in thread
From: Lars Marowsky-Bree @ 2006-01-23 10:45 UTC (permalink / raw)
To: Heinz Mauelshagen
Cc: Neil Brown, Phillip Susi, Jan Engelhardt, Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
On 2006-01-23T11:38:51, Heinz Mauelshagen <mauelshagen@redhat.com> wrote:
> > Ok, I still didn't get that. I must be slow.
> >
> > Did you implement some DM-internal stacking now to avoid the above
> > mentioned complexity?
> >
> > Otherwise, even DM-on-DM is still stacked via the block device
> > abstraction...
>
> No, not necessary because a single-level raid4/5 mapping will do it.
> Ie. it supports <offset> parameters in the constructor as other targets
> do as well (eg. mirror or linear).
An dm-md wrapper would not support such a basic feature (which is easily
added to md too) how?
I mean, "I'm rewriting it because I want to and because I understand and
own the code then" is a perfectly legitimate reason, but let's please
not pretend there's really sound and good technical reasons ;-)
Sincerely,
Lars Marowsky-Brée
--
High Availability & Clustering
SUSE Labs, Research and Development
SUSE LINUX Products GmbH - A Novell Business -- Charles Darwin
"Ignorance more frequently begets confidence than does knowledge"
^ permalink raw reply [flat|nested] 35+ messages in thread* Re: [PATCH 000 of 5] md: Introduction
2006-01-23 10:45 ` Lars Marowsky-Bree
@ 2006-01-23 11:00 ` Heinz Mauelshagen
0 siblings, 0 replies; 35+ messages in thread
From: Heinz Mauelshagen @ 2006-01-23 11:00 UTC (permalink / raw)
To: Lars Marowsky-Bree
Cc: Heinz Mauelshagen, Neil Brown, Phillip Susi, Jan Engelhardt,
Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
On Mon, Jan 23, 2006 at 11:45:22AM +0100, Lars Marowsky-Bree wrote:
> On 2006-01-23T11:38:51, Heinz Mauelshagen <mauelshagen@redhat.com> wrote:
>
> > > Ok, I still didn't get that. I must be slow.
> > >
> > > Did you implement some DM-internal stacking now to avoid the above
> > > mentioned complexity?
> > >
> > > Otherwise, even DM-on-DM is still stacked via the block device
> > > abstraction...
> >
> > No, not necessary because a single-level raid4/5 mapping will do it.
> > Ie. it supports <offset> parameters in the constructor as other targets
> > do as well (eg. mirror or linear).
>
> An dm-md wrapper would not support such a basic feature (which is easily
> added to md too) how?
>
> I mean, "I'm rewriting it because I want to and because I understand and
> own the code then" is a perfectly legitimate reason
Sure :-)
>, but let's please
> not pretend there's really sound and good technical reasons ;-)
Mind you that there's no need to argue about that:
this is based on requests to do it.
>
>
> Sincerely,
> Lars Marowsky-Brée
>
> --
> High Availability & Clustering
> SUSE Labs, Research and Development
> SUSE LINUX Products GmbH - A Novell Business -- Charles Darwin
> "Ignorance more frequently begets confidence than does knowledge"
--
Regards,
Heinz -- The LVM Guy --
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Red Hat GmbH
Consulting Development Engineer Am Sonnenhang 11
Cluster and Storage Development 56242 Marienrachdorf
Germany
Mauelshagen@RedHat.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [PATCH 000 of 5] md: Introduction
2006-01-23 9:44 ` Heinz Mauelshagen
2006-01-23 10:26 ` Lars Marowsky-Bree
@ 2006-01-23 12:54 ` Ville Herva
2006-01-23 13:00 ` Steinar H. Gunderson
` (2 more replies)
1 sibling, 3 replies; 35+ messages in thread
From: Ville Herva @ 2006-01-23 12:54 UTC (permalink / raw)
To: Heinz Mauelshagen
Cc: Lars Marowsky-Bree, Neil Brown, Phillip Susi, Jan Engelhardt,
Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
On Mon, Jan 23, 2006 at 10:44:18AM +0100, you [Heinz Mauelshagen] wrote:
> >
> > I use the regularly to play with md and other stuff...
>
> Me too but for production, I want to avoid the
> additional stacking overhead and complexity.
>
> > So I remain unconvinced that code duplication is worth it for more than
> > "hark we want it so!" ;-)
>
> Shall I remove you from the list of potential testers of dm-raid45 then ;-)
Heinz,
If you really want the rest of us to convert from md to lvm, you should
perhaps give some attention to thee brittle userland (scripts and and
binaries).
It is very tedious to have to debug a production system for a few hours in
order to get the rootfs mounted after each kernel update.
The lvm error messages give almost no clue on the problem.
Worse yet, problem reports on these issues are completely ignored on the lvm
mailing list, even when a patch is attached.
(See
http://marc.theaimsgroup.com/?l=linux-lvm&m=113775502821403&w=2
http://linux.msede.com/lvm_mlist/archive/2001/06/0205.html
http://linux.msede.com/lvm_mlist/archive/2001/06/0271.html
for reference.)
Such experience gives an impression lvm is not yet ready for serious
production use.
No offense intended, lvm kernel (lvm1 nor lvm2) code has never given me
trouble, and is probably as solid as anything.
-- v --
v@iki.fi
PS: Speaking of debugging failing initrd init scripts; it would be nice if
the kernel gave an error message on wrong initrd format rather than silently
failing... Yes, I forgot to make the cpio with the "-H newc" option :-/.
^ permalink raw reply [flat|nested] 35+ messages in thread* Re: [PATCH 000 of 5] md: Introduction
2006-01-23 12:54 ` Ville Herva
@ 2006-01-23 13:00 ` Steinar H. Gunderson
2006-01-23 13:54 ` Heinz Mauelshagen
2006-01-24 2:02 ` Phillip Susi
2 siblings, 0 replies; 35+ messages in thread
From: Steinar H. Gunderson @ 2006-01-23 13:00 UTC (permalink / raw)
To: Ville Herva
Cc: Heinz Mauelshagen, Lars Marowsky-Bree, Neil Brown, Phillip Susi,
Jan Engelhardt, Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel
On Mon, Jan 23, 2006 at 02:54:20PM +0200, Ville Herva wrote:
> If you really want the rest of us to convert from md to lvm, you should
> perhaps give some attention to thee brittle userland (scripts and and
> binaries).
If you do not like the LVM userland, you might want to try the EVMS userland,
which uses the same kernel code and (mostly) the same on-disk formats, but
has a different front-end.
> It is very tedious to have to debug a production system for a few hours in
> order to get the rootfs mounted after each kernel update.
This sounds a bit like an issue with your distribution, which should normally
fix initrd/initramfs issues for you.
/* Steinar */
--
Homepage: http://www.sesse.net/
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [PATCH 000 of 5] md: Introduction
2006-01-23 12:54 ` Ville Herva
2006-01-23 13:00 ` Steinar H. Gunderson
@ 2006-01-23 13:54 ` Heinz Mauelshagen
2006-01-23 17:33 ` Ville Herva
2006-01-24 2:02 ` Phillip Susi
2 siblings, 1 reply; 35+ messages in thread
From: Heinz Mauelshagen @ 2006-01-23 13:54 UTC (permalink / raw)
To: Ville Herva
Cc: Heinz Mauelshagen, Lars Marowsky-Bree, Neil Brown, Phillip Susi,
Jan Engelhardt, Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
On Mon, Jan 23, 2006 at 02:54:20PM +0200, Ville Herva wrote:
> On Mon, Jan 23, 2006 at 10:44:18AM +0100, you [Heinz Mauelshagen] wrote:
> > >
> > > I use the regularly to play with md and other stuff...
> >
> > Me too but for production, I want to avoid the
> > additional stacking overhead and complexity.
> >
> > > So I remain unconvinced that code duplication is worth it for more than
> > > "hark we want it so!" ;-)
> >
> > Shall I remove you from the list of potential testers of dm-raid45 then ;-)
>
> Heinz,
>
> If you really want the rest of us to convert from md to lvm, you should
> perhaps give some attention to thee brittle userland (scripts and and
> binaries).
Sure :-)
>
> It is very tedious to have to debug a production system for a few hours in
> order to get the rootfs mounted after each kernel update.
>
> The lvm error messages give almost no clue on the problem.
>
> Worse yet, problem reports on these issues are completely ignored on the lvm
> mailing list, even when a patch is attached.
>
> (See
> http://marc.theaimsgroup.com/?l=linux-lvm&m=113775502821403&w=2
> http://linux.msede.com/lvm_mlist/archive/2001/06/0205.html
> http://linux.msede.com/lvm_mlist/archive/2001/06/0271.html
> for reference.)
Hrm, those are initscripts related, not lvm directly
>
> Such experience gives an impression lvm is not yet ready for serious
> production use.
initscripts/initramfs surely need to do the right thing
in case root is on lvm.
>
> No offense intended, lvm kernel (lvm1 nor lvm2) code has never given me
> trouble, and is probably as solid as anything.
Alright.
Is the initscript issue fixed now or still open ?
Had you filed a bug against the distros initscripts ?
>
>
> -- v --
>
> v@iki.fi
>
> PS: Speaking of debugging failing initrd init scripts; it would be nice if
> the kernel gave an error message on wrong initrd format rather than silently
> failing... Yes, I forgot to make the cpio with the "-H newc" option :-/.
--
Regards,
Heinz -- The LVM Guy --
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Red Hat GmbH
Consulting Development Engineer Am Sonnenhang 11
Cluster and Storage Development 56242 Marienrachdorf
Germany
Mauelshagen@RedHat.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 35+ messages in thread* Re: [PATCH 000 of 5] md: Introduction
2006-01-23 13:54 ` Heinz Mauelshagen
@ 2006-01-23 17:33 ` Ville Herva
0 siblings, 0 replies; 35+ messages in thread
From: Ville Herva @ 2006-01-23 17:33 UTC (permalink / raw)
To: Heinz Mauelshagen
Cc: Lars Marowsky-Bree, Neil Brown, Phillip Susi, Jan Engelhardt,
Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
On Mon, Jan 23, 2006 at 02:54:28PM +0100, you [Heinz Mauelshagen] wrote:
> >
> > It is very tedious to have to debug a production system for a few hours in
> > order to get the rootfs mounted after each kernel update.
> >
> > The lvm error messages give almost no clue on the problem.
> >
> > Worse yet, problem reports on these issues are completely ignored on the lvm
> > mailing list, even when a patch is attached.
> >
> > (See
> > http://marc.theaimsgroup.com/?l=linux-lvm&m=113775502821403&w=2
> > http://linux.msede.com/lvm_mlist/archive/2001/06/0205.html
> > http://linux.msede.com/lvm_mlist/archive/2001/06/0271.html
> > for reference.)
>
> Hrm, those are initscripts related, not lvm directly
With the ancient LVM1 issue, my main problem was indeed that mkinitrd did
not reserve enough space for the initrd. The LVM issue I posted to the LVM
list was that LVM userland (vg_cfgbackup.c) did not check for errors while
writing to the fs. The (ignored) patch added some error checking.
But that's ancient, I think we can forget about that.
The current issue (please see the first link) is about the need to add
a "sleep 5" between
lvm vgmknodes
and
mount -o defaults --ro -t ext3 /dev/root /sysroot
.
Otherwise, mounting fails. (Actually, I added "sleep 5" after every lvm
command in the init script and did not narrow it down any more, since this
was a production system, each boot took ages, and I had to get the system up
as soon as possible.)
To me it seemed some kind of problem with the lvm utilities, not with the
initscripts. At least, the correct solution cannot be adding "sleep 5" here
and there in the initscripts...
> Alright.
> Is the initscript issue fixed now or still open ?
It is still open.
Sadly, the only two systems this currently happens are production boxes and
I cannot boot them at will for debugging. It is, however, 100% reproducible
and I can try reasonable suggestions when I boot them the next time. Sorry
about this.
> Had you filed a bug against the distros initscripts ?
No, since I wasn't sure the problem actually was in the initscript. Perhaps
it does do something wrong, but the "sleep 5" workaround is pretty
suspicious.
Thanks for the reply.
-- v --
v@iki.fi
^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: [PATCH 000 of 5] md: Introduction
2006-01-23 12:54 ` Ville Herva
2006-01-23 13:00 ` Steinar H. Gunderson
2006-01-23 13:54 ` Heinz Mauelshagen
@ 2006-01-24 2:02 ` Phillip Susi
2006-01-24 7:26 ` Error message for invalid initramfs cpio format? Ville Herva
2 siblings, 1 reply; 35+ messages in thread
From: Phillip Susi @ 2006-01-24 2:02 UTC (permalink / raw)
To: vherva
Cc: Heinz Mauelshagen, Lars Marowsky-Bree, Neil Brown,
Jan Engelhardt, Lincoln Dale (ltd),
Michael Tokarev, linux-raid, linux-kernel, Steinar H. Gunderson
Ville Herva wrote:
> PS: Speaking of debugging failing initrd init scripts; it would be nice if
> the kernel gave an error message on wrong initrd format rather than silently
> failing... Yes, I forgot to make the cpio with the "-H newc" option :-/.
>
LOL, yea, that one got me too when I was first getting back into linux a
few months ago and had to customize my initramfs to include dmraid to
recognize my hardware fakeraid raid0. Then I discovered the mkinitramfs
utility which makes things much nicer ;)
^ permalink raw reply [flat|nested] 35+ messages in thread
* Error message for invalid initramfs cpio format?
2006-01-24 2:02 ` Phillip Susi
@ 2006-01-24 7:26 ` Ville Herva
0 siblings, 0 replies; 35+ messages in thread
From: Ville Herva @ 2006-01-24 7:26 UTC (permalink / raw)
To: Phillip Susi; +Cc: linux-kernel
On Mon, Jan 23, 2006 at 09:02:16PM -0500, you [Phillip Susi] wrote:
> Ville Herva wrote:
> >PS: Speaking of debugging failing initrd init scripts; it would be nice if
> >the kernel gave an error message on wrong initrd format rather than
> >silently
> >failing... Yes, I forgot to make the cpio with the "-H newc" option :-/.
> >
>
> LOL, yea, that one got me too when I was first getting back into linux a
> few months ago and had to customize my initramfs to include dmraid to
> recognize my hardware fakeraid raid0. Then I discovered the mkinitramfs
> utility which makes things much nicer ;)
Sure does, that's what I first used, too. But then I had to hack with the
init script and it seemed quicker to
gzip -d < /boot/initrd-2.6.15.1.img | cpio --extract --verbose --make-directories --no-absolute-filenames
vi init
...
find . | cpio -H newc --create --verbose | gzip -9 > /boot/initrd-2.6.15.1.img
It seems do_header() in init/initramfs.c checks for the "070701" magic (that
is specific to the newc format [1]), and populate_rootfs() should then
panic() with "no cpio magic" error message, but I'm fairly sure I didn't see
an error about wrong initramfs format when booting with an initrd made with
cpio without the -H newc option.
This is what I see:
RAMDISK: Couldn't find valid RAM disk starting at 0.
VFS: Cannot open root device "LABEL=/" or unknown-block(0,0)
Please append correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(0,0)
seems the "no cpio magic" message is somehow lost. It would be useful.
-- v --
v@iki.fi
[1] "The new (SVR4) portable format, which supports file systems having more
than 65536 i-nodes."
^ permalink raw reply [flat|nested] 35+ messages in thread
end of thread, other threads:[~2006-01-24 7:26 UTC | newest]
Thread overview: 35+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-17 21:38 [PATCH 000 of 5] md: Introduction Lincoln Dale (ltd)
2006-01-18 13:27 ` Jan Engelhardt
2006-01-18 23:19 ` Neil Brown
2006-01-19 15:33 ` Mark Hahn
2006-01-19 20:12 ` Jan Engelhardt
2006-01-19 21:22 ` Lars Marowsky-Bree
2006-01-19 22:17 ` Phillip Susi
2006-01-19 22:32 ` Neil Brown
2006-01-19 23:26 ` Phillip Susi
2006-01-19 23:43 ` Neil Brown
2006-01-20 2:17 ` Phillip Susi
2006-01-20 10:53 ` Lars Marowsky-Bree
2006-01-20 12:06 ` Jens Axboe
2006-01-20 18:38 ` Heinz Mauelshagen
2006-01-20 22:09 ` Lars Marowsky-Bree
2006-01-21 0:06 ` Heinz Mauelshagen
2006-01-20 18:41 ` Heinz Mauelshagen
2006-01-20 17:29 ` Ross Vandegrift
2006-01-20 18:36 ` Heinz Mauelshagen
2006-01-20 22:57 ` Lars Marowsky-Bree
2006-01-21 0:01 ` Heinz Mauelshagen
2006-01-21 0:03 ` Lars Marowsky-Bree
2006-01-21 0:08 ` Heinz Mauelshagen
2006-01-21 0:13 ` Lars Marowsky-Bree
2006-01-23 9:44 ` Heinz Mauelshagen
2006-01-23 10:26 ` Lars Marowsky-Bree
2006-01-23 10:38 ` Heinz Mauelshagen
2006-01-23 10:45 ` Lars Marowsky-Bree
2006-01-23 11:00 ` Heinz Mauelshagen
2006-01-23 12:54 ` Ville Herva
2006-01-23 13:00 ` Steinar H. Gunderson
2006-01-23 13:54 ` Heinz Mauelshagen
2006-01-23 17:33 ` Ville Herva
2006-01-24 2:02 ` Phillip Susi
2006-01-24 7:26 ` Error message for invalid initramfs cpio format? Ville Herva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®