-[[!meta title="Easy Software RAID with DragonFly BSD and natacontrol(8)"]]
+[[!meta title="Easy Software RAID with DragonFly BSD"]]
+
+*** This Document is _still_ work in progress ***
# Scenario
I am running 2.11-DEVELOPMENT DragonFly 64Bit with i5 Core on an IntelĀ® Server-Mainboard S1200BT with 8GB RAM.
## Goal
On an already running System I want to add a cheap inexpensive pool of disks keeping mission critical data.
-Failure tolerance is more important than speed.
+Failure tolerance is more important than speed. So here I will show you how easy it is to setup a software RAID with natacontrol(8).
[[!toc levels=3]]
devattr -d da\* # for example
-
# Chosing the right RAID
You can look around in the intert for various Raid calculators
A very helpful page for general info is this one:
Let's dive into real world practice:
Just to be sure we don't overwrite the wrong disks we could list them again:
- natacontrol create RAID10 128 ad8 ad10 ad12 ad14
+
+ # natacontrol create RAID10 128 ad14 ad12 ad10 ad8
+ ar0 created
Interestingly RAID10 is accepted, I think it is just a synonym for RAID0+1.
-The 128 is the interleave I used - which should be reasonable for this kind of setup.
+The 128 is the interleave I used - which should be reasonable for this kind of setup. If you have not much space natacontrol will automatically adjust the stripe to a minor number (to 64KB a.e.)
+
+Let's check what happened and look into the logs.
+
+
+ # dmesg | tail
+ WARNING!! - not able to determine metadata format
+ WARNING!! - Using FreeBSD PseudoRAID metadata
+ If that is not what you want, use the BIOS to create the array
+ disk scheduler: set policy of ar1 to noop
+ ar1: 1907739MB <FreeBSD PseudoRAID RAID0+1 (stripe 128 KB)> status: READY
+ ar1: disk0 READY (master) using ad8 at ata4-master
+ ar1: disk1 READY (master) using ad10 at ata5-master
+ ar1: disk2 READY (mirror) using ad12 at ata6-master
+ ar1: disk3 READY (mirror) using ad14 at ata7-master
+## Configuring the RAID