1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

n00b raid question

Discussion in 'PC hardware help' started by REAM, Apr 10, 2007.

  1. REAM

    REAM Guest

    WTF is raid, and raid 0 and raid 5?


    is raid, takign one hdd and splitting it into two?

    if so how can i go around accomplishing this with my 160GB Sata2 hdd?
     
  2. bbmayo

    bbmayo Active member

    Joined:
    Oct 31, 2004
    Messages:
    4,257
    Likes Received:
    0
    Trophy Points:
    96
    Well do you want it short or long.... I will go with the long explanation :)

    RAID used to stand for "redundant array of inexpensive disks". Today the term has been updated to "redundant array of independent disks". RAID is a way of grouping individual physical drives together to form one bigger drive called a "RAID set". RAID can make many smaller disks appear as one large disk to a server. The RAID set represents all the smaller physical drives as one logical disk to your server. The logical disk is called a LUN, or "logical unit number". Using RAID has two main advantages. Better performance and higher availability, which means it goes faster and breaks down less often.
    RAID benefits

    Performance is increased because the server has more "spindles" to read from or write to when data is accessed from a drive.

    Availability is increased because the RAID controller can recreate lost data from parity information. Parity is basically a checksum of the data that was written to the disks, which gets written along with the original data. RAID can be done in software on a host, such as Windows "FTDISK" volumes, or in hardware on the storage controllers. The server accessing the data on a hardware-based RAID set never knows that one of the drives in the RAID set went bad. The controller recreates the data that was lost when the drive went bad, by using the parity information stored on the surviving disks in the RAID set.

    There are a number of different ways drives can be grouped together to form RAID sets. The different methods used to group drives are called "RAID types". RAID types are numbered from 0 to 5. The numbers represent the "level" of RAID being used. RAID levels 0, 1 and 5 are the most common. Combinations of RAID types may be used together. For example, you can create 2 RAID-0 sets, and then combine the RAID-0 sets into a RAID-1 set. This will essentially give you the performance benefits of RAID-0, with the availability benefits of RAID-1.

    In order to survive multiple drive failures in a "RAID-10" setup, you should create multiple RAID-1 mirrors, and then stripe across the mirrors using RAID-0. As long as multiple drive failures occur in separate mirror sets, the RAID set is still available. If you create 2 RAID-0 stripe sets and mirror those together, losing a single disk within the stripe forces all access to occur from the mirrored stripe set.

    The RAID type you should use depends on the type of application you are running on your server. RAID-0 is the fastest. RAID-1 is the most reliable and RAID-5 is a good combination of both.

    RAID types

    Below is a description of the different types of RAID that most commonly used in SAN storage arrays. Not all storage array vendors support all the various RAID types. Check with your vendor for the type of RAID that is available with their storage.

    RAID-0: RAID-0 is called disk "striping". All the data is spread out in chunks across all the disks in the RAID set. RAID-0 has great performance, because you spread out the load of storing data onto more physical drives. There is no parity generated for RAID-0. Therefore there is no overhead to write data to RAID-0 disks. RAID-0 is only good for better performance, and not for high availability, since parity is not generated for RAID-0 disks. RAID-0 requires at least two physical disks.

    RAID-1: RAID-1 is called disk mirroring. All the data is written to at least two separate physical disks. The disks are essentially mirror images of each other. If one of the disks fails, the other can be used to retrieve data. Disk mirroring is good for very fast read operations. It's slower when writing to the disks, since the data needs to be written twice. RAID-1 requires at least two physical disks.

    RAID 1+0: RAID 1+0, which is also called RAID-10, uses a combination of disk mirroring and disk striping. The data is normally mirrored first and then striped. Mirroring striped sets accomplishes the same task, but is less fault tolerant than striping mirror sets. If you lose a drive in a stripe set, all access to data must be from the other stripe set, because stripe sets have no parity. RAID 0+1 requires a minimum of four physical disks.

    RAID-2: RAID-2 is no longer used.

    RAID-3:
    RAID-3 uses something called a "parity disk" to store the parity information generated by the RAID controller on a separate disk from the actual data disks, instead of striping it with the data as in RAID-5. This RAID type is not currently used very often, because it performs poorly when there are a lot of little requests for data, as in a database. This type performs well under applications that just want one long sequential data transfer. Applications like video servers work well with this RAID type. RAID-3 requires a minimum of three physical disks.

    RAID-4: RAID-4 is good for sequential data access, but is not used much.

    RAID-5:
    RAID-5 uses disk striping with parity. The data is striped across all the disks in the RAID set, along with the parity information needed to reconstruct the data in case of disk failure. RAID-5 is the most common method used, since it achieves a good balance between performance and availability. RAID-5 requires at least three physical disks.

    Adaptive RAID: Adaptive RAID lets the RAID controller figure out how to store the parity on the disks. It will choose between RAID-3 and RAID-5, depending on which RAID set type will perform better with the type of data being written to the disks.

    RAID-6: RAID-6 increases reliability by utilizing 2 parity stripes, which allows for 2 disk failures within the RAID set before data is lost. RAID-6 is seen in SATA environments, and solutions that require long data retention periods, such as data archiving, or disk-based backup.

    Regarding your question about the benefit of using more disks in a RAID set than the minimum, the answer is you get more available storage and more "actuators" or "spindles" for the OS to use. Most RAID arrays use a maximum of 16 drives within a RAID set due to higher overhead and diminishing returns in performance when exceeding that many drives. Up to 8 seems to be a good rule of thumb for RAID-5 and RAID-10. If you need more space, you can just create another RAID set with the other disks. As another rule of thumb, try to keep different workload data types on separate RAID sets. You can use RAID-10 for best performance everywhere, but most budgets dictate the use of RAID-5 for database data volumes, with RAID-1 or RAID-10 used on database log volumes. (the database volumes can be highly random I/O, and the logs tend to be sequential in nature).

    Rebuild times depend on the kind of RAID. If you are using software-based RAID, then more spindles within the group means longer rebuild times. If it's hardware-based RAID, then rebuild times are usually dictated by the size of the drives themselves, since the hardware usually does the sparing in and out of the set. A 146 GB drive takes longer to rebuild than a 73 GB drive.

    That should explain it,, I hope :)
     
    Last edited: Apr 10, 2007
  3. REAM

    REAM Guest

    wow.....

    thank you, you have been a great help.

    now i understanf rais, i need to know, should i use it for my 160GB hdd?

    (and can i even use it)
     
  4. bbmayo

    bbmayo Active member

    Joined:
    Oct 31, 2004
    Messages:
    4,257
    Likes Received:
    0
    Trophy Points:
    96
    Unless you have two or more drives it really isn't considered a RAID if you read my previous post you should have realized that RAID is used to combine smaller disks to appear as one.
     
  5. REAM

    REAM Guest

    yeah i did, and i know its two physicaly drives, btu was wondering if you could do it virtually caus they have been partitioned.
     
  6. Auslander

    Auslander Senior member

    Joined:
    Apr 23, 2004
    Messages:
    5,366
    Likes Received:
    0
    Trophy Points:
    116
    no. it requires 2+ separate sets of hardware.
     
  7. REAM

    REAM Guest

    so it is only physical...

    oh well, i wont need it then, but thanks for the replies
     
  8. klassic

    klassic Regular member

    Joined:
    Mar 4, 2004
    Messages:
    152
    Likes Received:
    0
    Trophy Points:
    26
    By no means am I trying to steal this thread but I have a quick question. For a Raid 5 setup do all the drives have to be identical? I am putting together a new computer and I got 2 320 gig SATA drives. Do I need a 3rd of the same hard drive or is same size fine? Can I use an IDE with the SATA's?
     
  9. Auslander

    Auslander Senior member

    Joined:
    Apr 23, 2004
    Messages:
    5,366
    Likes Received:
    0
    Trophy Points:
    116
    you aren't stealing the thread in any way, shape, or form. you're keeping it alive. :)

    IDE drives are out. SATA is required all the way around. i'm not sure with raid 5 if they *have* to be identical, but it is certainly always best. and you want the most trouble-free system you can have.
     
  10. REAM

    REAM Guest

    if i buy a raptor (10,000RPM 74GB) hdd, and a WD 250GB 7200RPM HDD, can i put them in raid?
     
  11. Auslander

    Auslander Senior member

    Joined:
    Apr 23, 2004
    Messages:
    5,366
    Likes Received:
    0
    Trophy Points:
    116
    raid runs off the slowest and smallest drive, so you'd be limited to the equivalent of two 7200 rpm, 74 gig hard drives in raid. plus, many if not most raid controllers in common usage require identically spec'ed drives, if not identical model drives.

    ream, if you're going to have those two drives, just partition the Raptor drive to be your Windows drive and a drive to install games/high-usage apps to, and then use the WD as your main storage drive.
     
    Last edited: Apr 14, 2007
  12. REAM

    REAM Guest

    yeah, though it might be like that.....

    i was goign to do as you suggested. :)

     

Share This Page