From: Markus Date: Fri, 29 Jul 2011 20:20:08 +0000 (-0700) Subject: (no commit message) X-Git-Url: https://gitweb.dragonflybsd.org/ikiwiki.git/commitdiff_plain/8c74f02ed9c124b84f991fe59ee00c833cd4bdc0 --- diff --git a/docs/docs/howtos/howtosoftwareraid/index.mdwn b/docs/docs/howtos/howtosoftwareraid/index.mdwn index 90b97415..5c723993 100644 --- a/docs/docs/howtos/howtosoftwareraid/index.mdwn +++ b/docs/docs/howtos/howtosoftwareraid/index.mdwn @@ -1,14 +1,15 @@ *** THIS GUIDE IS INCOMPLETE *** -[[!toc levels=3]] +[[!toc levels=2]] # Scenario I am running 2.11-DEVELOPMENT DragonFly 64Bit with i5 Core on an Intel® Server-Mainboard S1200BT with 8GB RAM. The Main System is on two Disks mirrored RAID1 with 500GB. I want to use dfBSD as our company Fileserver for important Backups. Also I found an old (not much used) Dawi controler (with Sillicon's SiL Chip) with 4 SATA Ports which I want to use for our Backup Fileserver. # Pre-steps + ## Configuring the SATA Adapter -Please make sure that the adapter is not configured (After the BIOS just before dfBSD starts) as RAID - just expose the disks individually to Dragonfly. We are going to setup a Software RAID. +Please make sure that the adapter is not configured (after the BIOS just before dfBSD starts) with RAID - just expose the disks individually to Dragonfly. We are going to setup a Software RAID. ## Identifying the disks After booting up the system please check that the Adapter you are going to use is correctly found: @@ -16,3 +17,30 @@ dmesg reveales: atapci1: port 0xe100-0xe10f,0xe110-0xe113,0xe120-0xe127,0xe130-0xe133,0xe140-0xe147 mem 0xfe4a1000-0xfe4a13ff irq 21 at device 0.0 on pci1 +also look out for the disks + sysctl kern.disks + kern.disks: ad14 ad12 ad10 ad8 da1 da0 md0 + +Perfect, there they are: ad8..ad14 + + +## Chosing the right RAID +You can look around in the intert for various Raid calculators +A very helpful page is this one: +http://www.icc-usa.com/raid-calculator.asp +One of the best this: http://kossky.sitesled.com/tools/rcdemo_en.htm + +As I want to have a Backup Fileserver I am chosing a VERY HIGH fault tolerant Raid10. 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. + +Looking at the man page of natacontrol(8) we see our software RAID options: + + create Create a type ATA RAID. The type can be RAID0 (stripe), RAID1 + (mirror), RAID0+1, SPAN or JBOD. In case the RAID has a RAID0 + component, the interleave must be specified in number of sec- + tors. The RAID will be created of the individual disks named + disk0 ... diskN. + +RAID5 is the most versatile, and suitable for normal servers - but in my opinion too inefficient for a backup space with financial and accounting data. + + +# Creating the Array