Articles in the Storage category

  1. Linux Software RAID Benchmarking Script

    Wed 29 September 2010

    Just a small post.

    To benchmark your Linux software RAID array as setup with MDADM, please use my new benchmark script. I used this script to create these results.

    You may need to configure some values within the header of this file to make it fit your enviroment.

     DEVICES="/dev/sd[a-f]"
     NO_OF_DEVICES=6
     ARRAY=/dev/md5
     CHUNKS="4 8 16 32 64 128 256 512 1024"
     MOUNT=/storage
     LOG=/var/log/raid-test.log
     LOGDEBUG=/var/log/raid-test-debug.log
     LEVEL="0 5 6 10"
     TESTFILE=$MOUNT/test.bin
     TESTFILESIZE=10000 (IN MB, thus this is 10 GB)
     TRIES=5 (how many times to run a benchmark.)
    

    By default, the script wil format the array using XFS, feel free to format it with another filesystem such as EXT4 or EXT3 or whatever you want to test.

    Tagged as : Uncategorized
    If you have any comments email me, see the About page for contact details.
  2. RAID 5 vs. RAID 6 or Do You Care About Your Data?

    Fri 13 August 2010

    Storage is cheap. Lots of storage with 10+ hard drives is still cheap. Running 10 drives increases the risk of a drive failure tenfold. So often RAID 5 is used to keep your data up and running if one single disks fails.

    But disks are so cheap and storage arrays are getting so vast that RAID 5 does not cut it anymore. With larger arrays, the risk of a second drive failure while your failed array is in a degraded state (a drive already failed and the array is rebuilding or waiting for a replacement), is serious.

    RAID 6 uses two parity disks, so you loose two disks of capacity, but the rewards in terms of availability are very large. Especially regarding larger arrays.

    I found a blog posting that showed the results on a big simulation run on the reliability of various RAID setups. One picture of this post is important and it is shown below. This picture shows the risk of the entire RAID array failing before 3 years.

    image

    From this picture, the difference between RAID 5 and RAID 6 regarding reliability (availability) is astounding. There is a strong relation with the size of the array (number of drives) and the increased risk that more than one drive fails, thus destroying the array. Notice the strong contrast with RAID 6.

    Even with a small RAID 5 array of 6 disks, there is already a 1 : 10 chance that the array will fail within 3 years. Even with 60+ drives, a RAID 6 array never comes close to a risk like that.

    Creating larger RAID 5 arrays beyond 8 to 10 disks means there is a 1 : 8 to 1
    5 chance that you will have to recreate the array and restore the contents from backup (which you have of course).

    I have a 20 disk RAID 6 running at home. Even with 20 disks, the risk that the entire array fails due to failure of more than 2 disks is very small. It is more likely that I lose my data due to failure of a RAID controller, motherboard or PSU than dying drives.

    There are more graphs that are worth viewing, so take a look at this excelent blog post.

    Tagged as : Uncategorized
    If you have any comments email me, see the About page for contact details.

Page 20 / 24