new features time-line
I am curious if there are plans for either of the following; -RAID6 reshape
-RAID5 to RAID6 migration
Here is why I ask, and sorry for the length.
I have an aging RAID6 with eight 250G drives as a physical volume in a volume group. It is at about 80% capacity. I have had a couple drives fail and replaced them with 500G drives. I plan to migrate the rest over time as they drop out. However this could be months or years.
I could just be patient and wait until I have replaced all the drives and use the -G -z max to grow the RAID to resize the array to the maximum space. But I could use the extra space sooner.
Since I already have the existing RAID (md0) as a physical volume in a volume group, I though why not just use the other half of the drives and create another RAID6 (md1) add that to the same volume group and so on as I grow. md0 made from devices=/dev/sd[abcdefgh]1; md1 made from devices=/dev/sd[abcdefgh]2; and so on (I could have the md number match the partition number for aesthetics I suppose)...
By doing this I further protect myself from possible bit error rate on increasingly large drives. So if there are suddenly three bit errors I have a chance as long as they are not all on the same partition number. Mdadm will only kick out the bad partitions and not the whole drive. (I know I am already doing RAID6, what are the chances of three!).
To get to my point, I would like to split the new half of the drives into a new physical volume and would 'like' to try to start using some of the drives before I have replace all the existing 250G drives. If RAID6 reshape was an option I could start once I have replaced at least three of the old drives (built it as a RAID6 with one missing). But it is not available, yet. Or, since RAID5 reshape is an option, I could again start when I have replaced three (built it as a RAID5) than grow it to until I get to the eighth drive and migrate to the final desired RAID6. But that is not an option, yet.
Thoughts?
Review
Quoted 3 lines · On Friday October 13, [email protected] wrote:
I am curious if there are plans for either of the following;
(quoted diff) +0
-2-RAID6 reshape -RAID5 to RAID6 migration
No concrete plans with timelines and milestones and such, no. I would like to implement both of these but I really don't know when I will find/make time. Probably by the end of 2007, but that is not a promise.
Of course someone else could implement them. RAID6 reshape should be fairly straight forward given that RAID5 and RAID6 use the same code and RAID5 reshape is done.
RAID5 to RAID6 conversion would be a bit trickier, but not much. A point worth noting is that RAID5->RAID6 conversion without growing the array at the same time is not a good idea. It will either be dangerous (a crash during the reshape will cause corruption of data) or slow (all data needs to be copied one extra time - the 'critical region' of raid5 reshape becomes the whole array if you don't grow the array).
Probably the fastest way for these to get implemented is for someone else to try and post the results. I would be very likely to comment and help get the patch into a reliable and maintainable form and then pass it on upstream.
Are you any good at coding :-)
Quoted 2 lines
Here is why I ask, and sorry for the length.
All sounds fairly sensible. Except that as I say above, the option of growing a raid5 bit by bit, then adding the last disk and making it raid6 is not such a good approach.
NeilBreon
Quoted 14 lines · Neil Brown
Review
Quoted 5 lines · On Friday October 13, [email protected] wrote:
I am curious if there are plans for either of the following;
(quoted diff) +0
-2-RAID6 reshape -RAID5 to RAID6 migrationNo concrete plans with timelines and milestones and such, no. I would like to implement both of these but I really don't know when I will find/make time. Probably by the end of 2007, but that is not a promise.
We talked about RAID5E a while ago, is there any thought that this would actually happen, or is it one of the "would be nice" features? With larger drives I suspect the number of drives in arrays is going down, and anything which offers performance benefits for smaller arrays would be useful.
Signature · 3 lines
bill davidsen <[email protected]> CTO TMR Associates, Inc Doing interesting things with small computers since 1979
Quoted 5 lines · On Tuesday October 17, [email protected] wrote:
We talked about RAID5E a while ago, is there any thought that this would actually happen, or is it one of the "would be nice" features? With larger drives I suspect the number of drives in arrays is going down, and anything which offers performance benefits for smaller arrays would be useful.
So ... RAID5E is RAID5 using (N-1)/N of each drive (or close to that) and not having a hot spare.
On a drive failure, the data is restriped across N-1 drives so that it becomes plain RAID5. This means that instead of having an idle spare, you have spare space at the end of each drive.
To implement this you would need kernel code to restripe and array to reduce the number of devices (currently we only increase the number of devices).
Probably not too hard - just needs code and motivation.
Don't know if/when it will happen, but it probably will .... especially if someone tries writing some code (hint hint to any potential developers out there...)
NeilBrown
Quoted 13 lines · Neil Brown
Quoted 3 lines · On Tuesday October 17, [email protected] wrote:
We talked about RAID5E a while ago, is there any thought that this would actually happen, or is it one of the "would be nice" features? With larger drives I suspect the number of drives in arrays is going down, and anything which offers performance benefits for smaller arrays would be useful.
So ... RAID5E is RAID5 using (N-1)/N of each drive (or close to that) and not having a hot spare.
On a drive failure, the data is restriped across N-1 drives so that it becomes plain RAID5. This means that instead of having an idle spare, you have spare space at the end of each drive.
Quoted 6 lines
To implement this you would need kernel code to restripe and array to reduce the number of devices (currently we only increase the number of devices).
Probably not too hard - just needs code and motivation.
Code is not coming from me right now, but the motivation is (a) all drives in use so better response, particularly with small arrays, and (b) spare is being used, if it's going to have a problem it won't be just when you need it the most.
I suppose someone will want RAID6E as well, I would probably find a use for it, but RAID5E would suit many systems which could use a speed+reliability boost.
Signature · 3 lines
bill davidsen <[email protected]> CTO TMR Associates, Inc Doing interesting things with small computers since 1979