0

I have a 4-bay NAS with two 2TB hard drives in a RAID 1 configuration. I was planning to upgrade it with 2 additional 4TB drives to a RAID 10 configuration.

Now the new capacity I will receive with the additional 2 drives is 4TB and not 6TB. How come?

I thought RAID10 means stripe + mirror, so I had figured that it will stripe the 2TB + 4TB drive and mirror those to the other two drives.

A RAID calculator confirms this behavior. Is the reason that the RAID level tries to ensure that at any time two drives can fail and therefore the maximum size per volume is 2TB?

When I replace the two 2TB drives (one by one) with 4TB versions, will it be able to expand to 8TB?

akirk
  • 338
  • 4
  • 9

2 Answers2

1

If you stripe the 2TB and the 4TB drive you get 4TB capacity in your logical volume. If you mirror the 2TB and the 4TB drive you get 2TB capacity.

I don't know of any implementations that will allow you to use the mixed size drives the way you seem to want to. What NAS is it?

Yes, if you upgrade to 4x4TB drives you will get 8TB capacity in RAID 10.

Here's an exercise to illustrate. Suppose you have a 512Kb drive and a 1024Kb drive and you are using RAID 0 with 128Kb stripe size. You write the stripes alternately to the two disks. After writing 4 stripes to each disk, the smaller one is at capacity so you stop writing. Your array is at capacity. At this point you have 512Kb wasted space on the larger disk...

BlueCompute
  • 2,954
  • 2
  • 19
  • 28
  • Ok, I think I was misunderstanding that a 2TB and 4TB in RAID0 would give me 6TB while it only gives me 4TB. I now realize that this would rather be a JBOD mode. – akirk Apr 25 '14 at 11:05
  • Just for reference, it's a QNAP. – akirk Apr 25 '14 at 11:06
1

What you are seeing is due to the difference between striping and concatenation. Striping will alternate between the disks. For example it can first use 64KB on the first disk, then 64KB on the second disk, then 64KB on the first disk, and so on. Concatenation on the other hand will use all of the first disk before it starts using the next disk. Each approach has advantages compared to the other.

Advantages of striping:

  • Better read/write performance
  • Easier to upgrade to larger drives and preserve existing data

Advantages of concatenation:

  • Supports mixed size drives
  • Easier to upgrade to more drives and preserve existing data
kasperd
  • 30,455
  • 17
  • 76
  • 124