* [Bug] btrfs-progs v4.3.1, mkfs.btrfs manpage, profiles table missing raid1 @ 2015-11-20 11:05 Duncan 2015-11-20 19:29 ` [Enhancement] ... and please rename "raid1" to something better Christoph Anton Mitterer 2015-11-23 18:07 ` [Bug] btrfs-progs v4.3.1, mkfs.btrfs manpage, profiles table missing raid1 David Sterba 0 siblings, 2 replies; 5+ messages in thread From: Duncan @ 2015-11-20 11:05 UTC (permalink / raw) To: linux-btrfs As in the title... The btrfs-progs v4.3.1 mkfs.btrfs manpage has a quite nice profiles table listing the various profiles, single/dup/raid0/raid10/raid5/raid6. It's missing raid1. =:^( Also, it calls raid5/6 "copies" rather than "parity". Perhaps add another column for parity, change the redundancy column to copies, and adjust accordingly? Alternatively, keep the single redundancy column and just change raid5 to 1 parity and raid6 to 2 parity. Other than that, I really like the nice profiles table layout. Kudos to whoever set that up. =:^) -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Enhancement] ... and please rename "raid1" to something better 2015-11-20 11:05 [Bug] btrfs-progs v4.3.1, mkfs.btrfs manpage, profiles table missing raid1 Duncan @ 2015-11-20 19:29 ` Christoph Anton Mitterer 2015-11-21 7:52 ` Duncan 2015-11-23 18:07 ` [Bug] btrfs-progs v4.3.1, mkfs.btrfs manpage, profiles table missing raid1 David Sterba 1 sibling, 1 reply; 5+ messages in thread From: Christoph Anton Mitterer @ 2015-11-20 19:29 UTC (permalink / raw) To: linux-btrfs [-- Attachment #1: Type: text/plain, Size: 693 bytes --] On Fri, 2015-11-20 at 11:05 +0000, Duncan wrote: > It's missing raid1. =:^( speaking of which... Wouldn't the developers consider to rename raid1 to something more correct? E.g. replicas2 or dup or whatever. RAID1 has ever had the meaning of mirrored devices and the closest to this in btrfs would be N replicas with N devices, and not two as it is now. Also I wouldn't know of any other system that doesn't use "RAID1" in the traditional meaning (MD, basically every HW RAID I came across). And I'm not against the mode of having 2 duplicates itself... just against the naming, which I think easily confuses users and they may awake with a bad surprise. Cheers, Chris. [-- Attachment #2: smime.p7s --] [-- Type: application/x-pkcs7-signature, Size: 5313 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Enhancement] ... and please rename "raid1" to something better 2015-11-20 19:29 ` [Enhancement] ... and please rename "raid1" to something better Christoph Anton Mitterer @ 2015-11-21 7:52 ` Duncan 0 siblings, 0 replies; 5+ messages in thread From: Duncan @ 2015-11-21 7:52 UTC (permalink / raw) To: linux-btrfs Christoph Anton Mitterer posted on Fri, 20 Nov 2015 20:29:34 +0100 as excerpted: > On Fri, 2015-11-20 at 11:05 +0000, Duncan wrote: >> It's missing raid1. =:^( > speaking of which... > > Wouldn't the developers consider to rename raid1 to something more > correct? E.g. replicas2 or dup or whatever. > > RAID1 has ever had the meaning of mirrored devices and the closest to > this in btrfs would be N replicas with N devices, and not two as it is > now. > Also I wouldn't know of any other system that doesn't use "RAID1" in the > traditional meaning (MD, basically every HW RAID I came across). > > And I'm not against the mode of having 2 duplicates itself... just > against the naming, which I think easily confuses users and they may > awake with a bad surprise. The meaning of "raid1" when there's more than two devices has actually been debated in several threads here over the years. Turns out that the original papers that defined the raid levels only discussed the pair- mirror case, and what happens when there's more than two devices was left open to interpretation. Someone actually posted a link to copies of those original papers on the net, in at least one of those threads, so you're free to go back and find it and look it up for yourself, if desired, but it does indeed appear to be the case, from the reading I did. And apparently, the original RAID1 setups really did do only pair- mirroring. I believe (someone else made the claim and I've no evidence either way, so...) that Linux md/raid1 was one of the first to actually define raid1 as N-devices equals N-way-mirroring. And once mdraid could do it, it was pretty hard for the hardware raid vendors to counter the "Hey, mdraid can do it for free, why would I pay you good money for less features?" argument, so they mostly ended up providing the same N-way- mirroring raid1-type functionality as well, and it became quite common, despite the original RAID1 definition not actually defining RAID1 beyond the two-way-mirroring level. So btrfs raid1 is indeed proper raid1 in that regard, tho you will notice that in btrfs terms it's almost always _lowercase_ "raid1", while the proper definition was an acronym, Redundant Array of Independent Devices, and thus in absolutely proper usage, would be all uppercase RAID1, or I believe even more properly, RAID-1. But btrfs' raid1 functionality apparently isn't _exactly_ mirrored, the chunks are duplicated but may appear in different order, etc, and for that and other reasons, it's "raid1-like", but not precisely RAID-1, thus the generally consistent btrfs raid1 lowercasing. But regardless, it /is/ still somewhat confusing, altho any admin worth the name will do pre-deployment research and testing, and the fact that btrfs raid1 mode is (currently) precisely two-way-mirrored, no matter how many devices beyond two there might be, is well enough documented that it will come up in that research, if the research is worth it's name, anyway. Meanwhile, N-way-mirroring has long been roadmapped for coding up after raid56 mode, which took years longer than initially planned but is now complete and stabilizing, so N-way-mirroring should hopefully be along in a few more kernel cycles. At that point, some rejiggering of the current definitions will obviously need to be done in ordered to make way for the new N-way-mirroring as well as the current pair-mirrored-only raid1, so we'll see then if the raid1 term is expanded to cover N-way-mirroring as well, or if a different term is used. So while the present pair-mirroring-only raid1 state is indeed confusing, there is both historical precedent for it in the "RAID-1" term itself, and the current situation is temporary, with the N-way-mirroring form of "raid1" long being on the roadmap for after raid56 mode. In fact, in general, it's only because raid56 mode a couple years longer than intended, that we're even still talking about this at all, as if raid56 mode had dropped as originally planned, we'd have N-way-mirroring, whatever it ends up being called once the code actually drops, by now. -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bug] btrfs-progs v4.3.1, mkfs.btrfs manpage, profiles table missing raid1 2015-11-20 11:05 [Bug] btrfs-progs v4.3.1, mkfs.btrfs manpage, profiles table missing raid1 Duncan 2015-11-20 19:29 ` [Enhancement] ... and please rename "raid1" to something better Christoph Anton Mitterer @ 2015-11-23 18:07 ` David Sterba 2015-11-24 17:28 ` David Sterba 1 sibling, 1 reply; 5+ messages in thread From: David Sterba @ 2015-11-23 18:07 UTC (permalink / raw) To: Duncan; +Cc: linux-btrfs On Fri, Nov 20, 2015 at 11:05:44AM +0000, Duncan wrote: > As in the title... > > The btrfs-progs v4.3.1 mkfs.btrfs manpage has a quite nice profiles table > listing the various profiles, single/dup/raid0/raid10/raid5/raid6. > > It's missing raid1. =:^( Oh, that's not intentional, I'll fix it. > Also, it calls raid5/6 "copies" rather than "parity". Perhaps add > another column for parity, change the redundancy column to copies, and > adjust accordingly? Alternatively, keep the single redundancy column and > just change raid5 to 1 parity and raid6 to 2 parity. Yeah, parity would be better. I'll split it to copy and parity, where a copy really means 1:1 byte copy. > Other than that, I really like the nice profiles table layout. > Kudos to whoever set that up. =:^) Thanks ;) ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bug] btrfs-progs v4.3.1, mkfs.btrfs manpage, profiles table missing raid1 2015-11-23 18:07 ` [Bug] btrfs-progs v4.3.1, mkfs.btrfs manpage, profiles table missing raid1 David Sterba @ 2015-11-24 17:28 ` David Sterba 0 siblings, 0 replies; 5+ messages in thread From: David Sterba @ 2015-11-24 17:28 UTC (permalink / raw) To: dsterba, Duncan, linux-btrfs On Mon, Nov 23, 2015 at 07:07:51PM +0100, David Sterba wrote: > > Also, it calls raid5/6 "copies" rather than "parity". Perhaps add > > another column for parity, change the redundancy column to copies, and > > adjust accordingly? Alternatively, keep the single redundancy column and > > just change raid5 to 1 parity and raid6 to 2 parity. > > Yeah, parity would be better. I'll split it to copy and parity, where a > copy really means 1:1 byte copy. Copy from manual page rendering: ┌────────┬────────────────────────────────────┬─────────────────┐ │ │ │ │ │Profile │ Redundancy │ Min/max devices │ │ ├──────────────┬────────┬────────────┤ │ │ │ │ │ │ │ │ │ Copies │ Parity │ Striping │ │ ├────────┼──────────────┼────────┼────────────┼─────────────────┤ │ │ │ │ │ │ │single │ 1 │ │ │ 1/any │ ├────────┼──────────────┼────────┼────────────┼─────────────────┤ │ │ │ │ │ │ │ DUP │ 2 / 1 device │ │ │ 1/1 (see note) │ ├────────┼──────────────┼────────┼────────────┼─────────────────┤ │ │ │ │ │ │ │ RAID0 │ │ │ 1 to N │ 2/any │ ├────────┼──────────────┼────────┼────────────┼─────────────────┤ │ │ │ │ │ │ │ RAID1 │ 2 │ │ │ 2/any │ ├────────┼──────────────┼────────┼────────────┼─────────────────┤ │ │ │ │ │ │ │RAID10 │ 2 │ │ 1 to N │ 4/any │ ├────────┼──────────────┼────────┼────────────┼─────────────────┤ │ │ │ │ │ │ │ RAID5 │ 1 │ 1 │ 2 to N - 1 │ 2/any │ ├────────┼──────────────┼────────┼────────────┼─────────────────┤ │ │ │ │ │ │ │ RAID6 │ 1 │ 2 │ 3 to N - 2 │ 3/any │ └────────┴──────────────┴────────┴────────────┴─────────────────┘ https://github.com/kdave/btrfs-progs/blob/devel/Documentation/mkfs.btrfs.asciidoc#profiles (ignore the alignment and other formatting artifacts, it looks better in the manual page or html) ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-11-24 17:29 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-11-20 11:05 [Bug] btrfs-progs v4.3.1, mkfs.btrfs manpage, profiles table missing raid1 Duncan 2015-11-20 19:29 ` [Enhancement] ... and please rename "raid1" to something better Christoph Anton Mitterer 2015-11-21 7:52 ` Duncan 2015-11-23 18:07 ` [Bug] btrfs-progs v4.3.1, mkfs.btrfs manpage, profiles table missing raid1 David Sterba 2015-11-24 17:28 ` David Sterba
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox