Re: About minimal device number for RAID5/6

2016-08-16 Thread Austin S. Hemmelgarn
On 2016-08-15 21:32, Qu Wenruo wrote: At 08/15/2016 10:10 PM, Austin S. Hemmelgarn wrote: On 2016-08-15 10:08, Anand Jain wrote: IMHO it's better to warn user about 2 devices RAID5 or 3 devices RAID6. Any comment is welcomed. Based on looking at the code, we do in fact support 2/3 devic

Re: About minimal device number for RAID5/6

2016-08-15 Thread Qu Wenruo
At 08/15/2016 10:10 PM, Austin S. Hemmelgarn wrote: On 2016-08-15 10:08, Anand Jain wrote: IMHO it's better to warn user about 2 devices RAID5 or 3 devices RAID6. Any comment is welcomed. Based on looking at the code, we do in fact support 2/3 devices for raid5/6 respectively. Personall

Re: About minimal device number for RAID5/6

2016-08-15 Thread Henk Slager
On Mon, Aug 15, 2016 at 8:30 PM, Hugo Mills wrote: > On Mon, Aug 15, 2016 at 10:32:25PM +0800, Anand Jain wrote: >> >> >> On 08/15/2016 10:10 PM, Austin S. Hemmelgarn wrote: >> >On 2016-08-15 10:08, Anand Jain wrote: >> >> >> >> >> IMHO it's better to warn user about 2 devices RAID5 or 3 devic

Re: About minimal device number for RAID5/6

2016-08-15 Thread Hugo Mills
On Mon, Aug 15, 2016 at 10:32:25PM +0800, Anand Jain wrote: > > > On 08/15/2016 10:10 PM, Austin S. Hemmelgarn wrote: > >On 2016-08-15 10:08, Anand Jain wrote: > >> > >> > IMHO it's better to warn user about 2 devices RAID5 or 3 devices RAID6. > > Any comment is welcomed. > > >>

Re: About minimal device number for RAID5/6

2016-08-15 Thread Austin S. Hemmelgarn
On 2016-08-15 10:32, Anand Jain wrote: On 08/15/2016 10:10 PM, Austin S. Hemmelgarn wrote: On 2016-08-15 10:08, Anand Jain wrote: IMHO it's better to warn user about 2 devices RAID5 or 3 devices RAID6. Any comment is welcomed. Based on looking at the code, we do in fact support 2/3 devi

Re: About minimal device number for RAID5/6

2016-08-15 Thread Anand Jain
On 08/15/2016 10:10 PM, Austin S. Hemmelgarn wrote: On 2016-08-15 10:08, Anand Jain wrote: IMHO it's better to warn user about 2 devices RAID5 or 3 devices RAID6. Any comment is welcomed. Based on looking at the code, we do in fact support 2/3 devices for raid5/6 respectively. Personall

Re: About minimal device number for RAID5/6

2016-08-15 Thread Anand Jain
Have a look at this.. http://www.spinics.net/lists/linux-btrfs/msg54779.html -- RAID5&6 devs_min values are in the context of degraded volume. RAID1&10.. devs_min values are in the context of healthy volume. RAID56 is correct. We already have devs_max to know the number of devices in

Re: About minimal device number for RAID5/6

2016-08-15 Thread Austin S. Hemmelgarn
On 2016-08-15 10:08, Anand Jain wrote: IMHO it's better to warn user about 2 devices RAID5 or 3 devices RAID6. Any comment is welcomed. Based on looking at the code, we do in fact support 2/3 devices for raid5/6 respectively. Personally, I agree that we should warn when trying to do this,

Re: About minimal device number for RAID5/6

2016-08-15 Thread Anand Jain
IMHO it's better to warn user about 2 devices RAID5 or 3 devices RAID6. Any comment is welcomed. Based on looking at the code, we do in fact support 2/3 devices for raid5/6 respectively. Personally, I agree that we should warn when trying to do this, but I absolutely don't think we should s

Re: About minimal device number for RAID5/6

2016-08-15 Thread Austin S. Hemmelgarn
On 2016-08-15 03:50, Qu Wenruo wrote: Hi, Recently I found that manpage of mkfs is saying minimal device number for RAID5 and RAID6 is 2 and 3. Personally speaking, although I understand that RAID5/6 only requires 1/2 devices for parity stripe, it is still quite strange behavior. Under most ca

About minimal device number for RAID5/6

2016-08-15 Thread Qu Wenruo
Hi, Recently I found that manpage of mkfs is saying minimal device number for RAID5 and RAID6 is 2 and 3. Personally speaking, although I understand that RAID5/6 only requires 1/2 devices for parity stripe, it is still quite strange behavior. Under most case, user use raid5/6 for striping A