pavement

RAID0

From FreeBSDwiki
Revision as of 16:12, 4 September 2007 by DrModiford (Talk | contribs)
Jump to: navigation, search

RAID level 0, typically shortened to RAID0 and often referred to as disk striping, is a method by which two or more physical disks masquerade as one single larger disk.

Contents

Advantages

Speed

Speed is often a factor in choosing this RAID level due to the performance of data reads and writes, as in the following example:

Four disks are used to create a single RAID0 disk using a software based RAID driver. A user application saves a 1MiB file to this disk. The RAID0 driver splits the file into four equal-sized chunks (in this case 256KiB each). The driver then writes the first chunk to the first disk, the second chuck to the second disk, and so on until all the chunks are written to its respective disk.

When reading data the opposite takes place where each of the four chunks are read from their respective drives and re-assembled into one original file and passed onto the requesting program.

Theoretically the system can write files (in this example) four times faster using this method then it could to a single disk.

Note: RAID level 0 is not restricted to four disks as in the above example, any number from two to the maximum the system will handle can produce a single RAID0 disk.

Space

Space is another advantage since all disks in the RAID can be utilized to store data. For example three 500GiB drives in a RAID0 set will provide 1.5TB of storage. This differs from other RAID levels that consume one disk in order to operate correctly.

Cost

The implementation of this RAID level can be achieved in software thereby reducing the need to purchase dedicated hardware RAID controllers.

Disadvantages

Unreliability

The main disadvantage of this RAID level is the lack of fault tolerance. Since data is split up and written across all the disks within the RAID0 set a failure of one disk will cause the total loss of all data.

Variations

There are a number of variations that can be applied to this RAID level. The two common ones are:

JBOD

JBOD, which is simply Just a Bunch Of Disks is a method that operates like RAID level 0 but does not have the requirement of the disks having the same capacity, hence the name. It offers the same advantages and disadvantages on RAID0.

RAID 10

RAID10, sometimes referred to as RAID level 01, level 0+1, level 1+0, mirrored striping, gives the advantages of RAID0 but with the redundancy and data safe-guarding of RAID1 thereby limited the disadvantages of RAID0.

This RAID level achieves this by creating two identical RAID0 disks and applying RAID1, or mirroring, over the top of them. This means that if one of the underlying disks in one of the RAID0 sets fails the other RAID0 will retain system and data reliability. However if one disk from both RAID0 sets fails all data will be lost.

Uses

Typical usage for this RAID level is in the field of audio and/or video editing or indeed anything that requires rapid data reading and writing without the need to safeguard data loss.

Support

FreeBSD supports software based RAID0 through the GEOM disk management subsystem. Hardware based RAID0 is also available through various supported hardware controllers.

The FreeBSD Handbook has details covering the GEOM RAID0 / Striping subsystem.

Warning

IT MUST BE STRESSED THAT RAID LEVEL 0 / DISK STRIPING (AND THE JBOD VARIATION) SHOULD NOT BE USED IN PRODUCTION ENVIRONMENTS WHERE DATA INTEGRITY AND RELIABILITY MUST BE ASSURED. This RAID level should only be used where non-essential data needs reading or writing to disk quickly. Consider using one of the fault tolerant RAID levels such as RAID1 or RAID5.

Personal tools