pavement

RAID0

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
(Speed)
Line 6: Line 6:
 
Speed is often a factor in choosing this RAID level due to the performance of data reads and writes, as in the following example:
 
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 drive using a software RAID driver  A user application saves a 1MiB file to this drive.  The RAID0 driver splits the file into four separate 256KiB elements and writes one of them to each physical disk at the same timeTheoretically the system can write files four times faster using this method then it would to a single disk.  Reading data is done in the opposite way where four individual disk reads are made and the file re-assembled from the four elements before being passed onto the user application.''
+
''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.''
  
Note that RAID0 is not restricted to four disks as in the above example, any number from two to the maximum the system will handle will operate under RAID0.
+
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 ===

Revision as of 14:53, 4 September 2007

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.

Cost

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

Disadvantages

Reliability

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

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+1, 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 then applies 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.

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.

Personal tools