* raid10: no raid0 support?
@ 2008-06-09 20:48 Alan D. Brunelle
2008-06-19 5:03 ` Neil Brown
0 siblings, 1 reply; 3+ messages in thread
From: Alan D. Brunelle @ 2008-06-09 20:48 UTC (permalink / raw)
To: linux-raid
Is there some reason why the MD RAID10 module does /not/ support a
"RAID0-like" configuration (-p n1)? The comments in drivers/md/raid10.c
seem to suggest it should: "* If [near_copies and far_copies] are 1, we
get raid0." Yet the code specifically checks for ((near_copies *
far_copies) > 1).
Just curious, as it seems interesting that one could support RAID0,
RAID1 /and/ RAID10 all w/ one RAID module.
Thanks,
Alan D. Brunelle
HP / OSLO / S&P
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: raid10: no raid0 support?
2008-06-09 20:48 raid10: no raid0 support? Alan D. Brunelle
@ 2008-06-19 5:03 ` Neil Brown
2008-07-07 12:46 ` Alan D. Brunelle
0 siblings, 1 reply; 3+ messages in thread
From: Neil Brown @ 2008-06-19 5:03 UTC (permalink / raw)
To: Alan D. Brunelle; +Cc: linux-raid
On Monday June 9, Alan.Brunelle@hp.com wrote:
> Is there some reason why the MD RAID10 module does /not/ support a
> "RAID0-like" configuration (-p n1)? The comments in drivers/md/raid10.c
> seem to suggest it should: "* If [near_copies and far_copies] are 1, we
> get raid0." Yet the code specifically checks for ((near_copies *
> far_copies) > 1).
You mean:
if ((nc*fc) <2 || (nc*fc) > mddev->raid_disks ||
(mddev->layout >> 17)) {
printk(KERN_ERR "raid10: %s: unsupported raid10 layout: 0x%8x\n",
mdname(mddev), mddev->layout);
goto out;
}
Yes, I guess that could be "nc*fc < 1". Everything else should still
work.
I cannot think of a good reason for making a raid10 with no redundancy though.
>
> Just curious, as it seems interesting that one could support RAID0,
> RAID1 /and/ RAID10 all w/ one RAID module.
Interesting: yes.
Useful: not sure.
NeilBrown
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: raid10: no raid0 support?
2008-06-19 5:03 ` Neil Brown
@ 2008-07-07 12:46 ` Alan D. Brunelle
0 siblings, 0 replies; 3+ messages in thread
From: Alan D. Brunelle @ 2008-07-07 12:46 UTC (permalink / raw)
To: Neil Brown; +Cc: linux-raid
Neil Brown wrote:
> On Monday June 9, Alan.Brunelle@hp.com wrote:
>> Is there some reason why the MD RAID10 module does /not/ support a
>> "RAID0-like" configuration (-p n1)? The comments in drivers/md/raid10.c
>> seem to suggest it should: "* If [near_copies and far_copies] are 1, we
>> get raid0." Yet the code specifically checks for ((near_copies *
>> far_copies) > 1).
>
> You mean:
> if ((nc*fc) <2 || (nc*fc) > mddev->raid_disks ||
> (mddev->layout >> 17)) {
> printk(KERN_ERR "raid10: %s: unsupported raid10 layout: 0x%8x\n",
> mdname(mddev), mddev->layout);
> goto out;
> }
>
> Yes, I guess that could be "nc*fc < 1". Everything else should still
> work.
>
> I cannot think of a good reason for making a raid10 with no redundancy though.
>
>> Just curious, as it seems interesting that one could support RAID0,
>> RAID1 /and/ RAID10 all w/ one RAID module.
>
> Interesting: yes.
> Useful: not sure.
>
> NeilBrown
>
Sorry for the tardy response (on holiday), just thinking about the
algorithm's application to another problem where having one piece of
code supporting all three RAID modes is goodness...
Thanks,
Alan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-07-07 12:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-09 20:48 raid10: no raid0 support? Alan D. Brunelle
2008-06-19 5:03 ` Neil Brown
2008-07-07 12:46 ` Alan D. Brunelle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).