## Chosing the right RAID
You can look around on the internet for various Raid calculators
A very helpful page for general info is this one:
+
http://www.icc-usa.com/raid-calculator.asp
-One of the better: http://kossky.sitesled.com/tools/rcdemo_en.htm
+
+One of the better ones: http://kossky.sitesled.com/tools/rcdemo_en.htm
+
As I want to have a Backup Fileserver I am chosing a VERY HIGH fault tolerant kind of RAID10 thing. Certainly there are other maybe better ones around, like the RAID60 or even RAID50 but we have to consider what the nata(4) driver offers and that I only have 4 disks.
tors. The RAID will be created of the individual disks named
disk0 ... diskN.
-Dont worry, natacontrol is offering more than the listed spanning RAIDs and mirroring options.
-
-Looking into the source code on DragonFly's OpenGrok we find more options than the man pages lists:
-
- lynx http://pkgbox64.dragonflybsd.org/source/xref/DragonFly-master/sys/sys/nata.h
-
- struct ata_ioc_raid_config {
- int lun;
- int type;
- #define AR_JBOD 0x0001
- #define AR_SPAN 0x0002
- #define AR_RAID0 0x0004
- #define AR_RAID1 0x0008
- #define AR_RAID01 0x0010
- #define AR_RAID3 0x0020
- #define AR_RAID4 0x0040
- #define AR_RAID5 0x0080
-
-Ah, so we can use more than the man page documents!
-
-RAID5 is the most versatile RAID, and suitable for normal servers - Home and Office use - but in my opinion too inefficient for a backup space with financial and accounting data.
-
As I only have 4 1TB disks I think RAID0+1 is the best solution as mentioned above.
### Editing the disklabel
- disklabel64 -B -w -r /dev/ar1s0 auto # label it
- disklabel64 -e ar1s0 # edit the disklabel just created and add any partitions
+ # label it
+ disklabel64 -B -w -r /dev/ar1s1 auto
+ # edit the disklabel just created and add any partitions. In this case it's perfect to uncomment slice a and substitute 4.2BSD with HAMMER ;-)
+ disklabel64 -e ar1s1
+
### Formatting with HAMMER
- newfs_hammer -L DATA /dev/ar1s0a
+ newfs_hammer -L DATA /dev/ar1s1a
### Mounting, setting up fstab