Welcome! Log In Create A New Profile

Advanced

RAID10, f2 - Working on arm5/Debian/GoFlex Net

Posted by DonCharisma 
RAID10, f2 - Working on arm5/Debian/GoFlex Net
October 13, 2014 08:02AM
I've finally had the time and application to try out RAID10,f2 and done enough testing to say that "it works" on GoFlexNet ... but why bother ?

RAID0 is potentially fast, but you're f***ed if there's a disk error ... it's basically for performance, not for data you care about like a rootfs or your favourite music ...

RAID1 is safe, stores two copies of the data, you can lose a whole drive and still keep your data. There's potentially a small performance gain in reads, but it's negligible.

RAID10 can be done on two drives, but performance doesn't offer much of an increase, so why bother with more complexity over RAID1.

RAID5 and 6 need 3 or more drives. They are also CPU intensive because of the constant need to calculate parity. They do potentially offer some performance increase, but complexity in a breakdown scenario could be an issue. Also RAID5 and 6 in my experience puts more "strain" on the drives, which could lead to earlier failure.

So enter RAID10, f2 which can be done on two drives. Read and write performance are allegedly faster than a single drive or RAID1, read performance close to RAID0 ... RAID10 is a combination of RAID0 and RAID1. The performance advantage come on a two drive setup with the "f2" part, which best if you read online explanations yourself, not particularly exciting ... in essence it means that data can be read faster off of RAID10,f2 setup than anything else (on 2 drives) than RAID0.

Here's a performance comparison :

RAID type      sequential read     random read    sequential write   random write
   Ordinary disk       82                 34                 67                56
   RAID0              155                 80                 97                80
   RAID1               80                 35                 72                55
   RAID10,n2           79                 56                 69                48
   RAID10,f2          150                 79                 70                55


(source: https://raid.wiki.kernel.org/index.php/Performance )

My basic performance tests using dd command, have me with very similar performance to the above chart 111 read and around 50-70 write. I think dd is a sequential test, so you'll have to report back your findings for random tests !

So, I wanted to report I have RAID10,f2 working on GoFlexNet on 2xSeagate 1TB backup plus drives. I've only been running for a couple of days, so I can't comment on longevity, just yet ... but it works and I seem to be getting the best of both worlds, safe, plus a little increased performance.

The other consideration on a network attached device is the network speed. Marvell aren't known for producing the world's best ethernet controllers. I've also read that bodhi has fixed a checksum offloading issue in one of his latest kernels. This as I remember (with Marvell ethernet controllers) means that the ethernet controller offloads calcs onto CPU (checksum offloading). One of my laptops has a Marvell ethernet controller and it does put a high load on CPU, and the connection although gigabit runs like a dog - haven't been able to fix, yet. So fast disk internally to the device doesn't necessarily mean fast over-the-network transfers, there are other factors in play !

I use samba at the moment, and have achieved 20 MB/s read and write with my previous config (RAID1) ... early indicators are the RAID10,f2 is a little faster ... I'm still using davygravy's 3.3 kernel, so don't know if bodhi's 3.16 or 3.17 would be faster ... also NFS is reportedly less CPU intensive and might be faster way of sharing ... will have another go with NFS when I get the time ...

If you want to know more about RAID10,f2 check wikipedia's RAID page and also this link - https://raid.wiki.kernel.org/index.php/Preventing_against_a_failing_disk which also talks about how to use RAID on linux to make a system more robust (bonus)

Cheat sheet for mdadm is also invaluable - http://www.ducea.com/2009/03/08/mdadm-cheat-sheet/ ... mdadm is fairly straightforward with the cheat sheet !

Final note, for swap partitions, I just created identical partitions and did 2x swapon commands (don't forget to add to fstab). From what I understand the Debian kernel does it's own internal RAID0 on these partitions, so no need to setup RAID for swap.

Cheers

DC

Don Charisma ... because anything is possible with Charisma

My blog - http://DonCharisma.org
Our commercial site - http://DonCharisma.com



Edited 2 time(s). Last edit at 10/13/2014 08:14AM by DonCharisma.
robert1968@gmail.com
Re: RAID10, f2 - Working on arm5/Debian/GoFlex Net
October 14, 2014 03:14PM
Hi Don Charisma,

Your blog was my bible :) when debianise my stak100 and as I remember you had to stuck at a certain kernel (or debian) version because raid was not working on newer version... ??
Is this version problems solved ? Newest Bodhi Debian and kernel versions can work with it?

Regards,
Robert
Re: RAID10, f2 - Working on arm5/Debian/GoFlex Net
October 15, 2014 04:26AM
Hey Robert, I remember you, hope all is well with you :D ...

RAID works fine on davygravy 3.3 kernel which is what I'm currently using, and what my post suggested ... only issue version wise was with Squeeze/Wheezy ... I put a comment on my OMV post here on this forum about how to upgrade from squeeze to wheezy ... basically you need to get the php5-pam in early ... provided you want to continue using OMV ... if not then it'll be more straightforward ...

So, I'm running RAID 10,f2 on Debian/GoFlex Net/Wheezy/davygravy 3.3 kernel ... should be able to do any RAID that mdadm supports, 0, 1, 10, 5 or 6 (if you have enough disks !) ... with two disks, in reality you probably only interested in 0,1,10, 10 f2 and possibly spanning (joining two partitions)

mdadm is pretty easy to use, and I've found linux RAID performs OK and is relatively reliable ... my original RAID 1 I setup before doing the post is still running fine, had to resync it recently, other than that no issues ...

Cheers

DC

Don Charisma ... because anything is possible with Charisma

My blog - http://DonCharisma.org
Our commercial site - http://DonCharisma.com
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: