RAID Calculator

The RAID Calculator lets you map sectors between the RAID and its individual drives. For example if you want to know which sector on which individual member drive hosts sector 111 of a 3-drive backward RAID-5 with a block size of 128, you can find out like that:

In RAID Topology enter the RAID parameters: RAID-5, backward, 3 drives, start sector at 0, block size 128. Make sure the direction is "Global >> Local". Type "111" into the field for the Global sector. The right-hand side shows you the result: Global RAID sector 111 resides on local Drive1, sector 111.

You can reverse the direction and find out which global sector originates from a given local sector. Type "2" and "111" into the field for the Local sector. The left-hand side shows you the result, 239, which is to be expected as the first 128 sectors are on drive 1 and the next 111 on drive 2, resulting in 239.

Now try drive 3, sector 111:

As determined by the RAID topology, sector 111 on drive 3 is in a parity block and as such can not be translated into a global sector. The left-hand side signals this with "PARITY DRIVE".

Blocks, Stripes, and Cycles

Please note our terminology regarding "blocks", "stripes", and "cycles". The above defined RAID has the following characteristics:

In our example, one block consists of 128 sectors. One stripe are one block taken from each drive at the same position. Two of these blocks contain data, one is parity. One cycle is made of three stripes, which is the period it takes for the parity to make one full rotation.

Supported RAID types

The RAID Calculator supports the following RAID types:

Supported Rotations

The directions of the rotation relates to the movement of the parity drive from one stripe to the next stripe within one cycle.

Mapping

You can write the mapping of a chosen RAID topology into a text file. Click on Mapping on the bottom. Confirm the file name and the number of sectors in the following dialog:

Press Ok.

The mapping file will look like this:

>
RAID Mapping Report - Sectors 0 to 10000 - 4/11/2020 11:23:07 PM

RAID-5, 3 drives, Rotation: Backward, Block size: 128, Start sector: 0

1 stripe has 3 blocks (384 sectors) with data in 2 blocks (256 sectors) and parity in 1 blocks (128 sectors)
1 cycle has 3 stripes, 9 blocks (1152 sectors) with data in 6 blocks (768 sectors) and parity in 3 blocks (384 sectors)

LOCAL    \  DRIVE-1     DRIVE-2     DRIVE-3     
SECTOR #  \ ----------- ----------- ----------- 
           \Global sector #
0          |0           128         PARITY      
1          |1           129         PARITY      
2          |2           130         PARITY      
:
126        |126         254         PARITY      
127        |127         255         PARITY      
-----------+----------- ----------- ----------- 
128        |256         PARITY      384         
129        |257         PARITY      385         
:
254        |382         PARITY      510         
255        |383         PARITY      511         
-----------+----------- ----------- ----------- 
256        |PARITY      512         640         
257        |PARITY      513         641         
:
382        |PARITY      638         766         
383        |PARITY      639         767         
Start of cycle 1
-----------+----------- ----------- ----------- 
384        |768         896         PARITY      
385        |769         897         PARITY      
:
510        |894         1022        PARITY      
511        |895         1023        PARITY      
-----------+----------- ----------- ----------- 
512        |1024        PARITY      1152        
513        |1025        PARITY      1153        
:
514        |1026        PARITY      1154        
515        |1027        PARITY      1155        
638        |1150        PARITY      1278        
639        |1151        PARITY      1279        
-----------+----------- ----------- ----------- 
640        |PARITY      1280        1408        
641        |PARITY      1281        1409        
:
766        |PARITY      1406        1534        
767        |PARITY      1407        1535        
Start of cycle 2
-----------+----------- ----------- ----------- 
768        |1536        1664        PARITY      
769        |1537        1665        PARITY      
:
:
:
5374       |PARITY      10622       10750       
5375       |PARITY      10623       10751       

This is very helpful for research purposes.