Insert two hard drives into your Linux computer, then open up a terminal window.
In this tutorial we will name it /dev/sda. First you need to have a Linux distribution installed on your hard drive.
Basic Steps to Create Software RAID 1 on Linux Software RAID requires you already installed an operating system.
You can install an operating system on top of hardware RAID which can increase uptime. When you boot up the computer, you are going to see an option that allows you to configure the RAID. Then you connect your hard drives to this card. A hard drive controller is a PCIe card that you put into a computer. To set up RAID, you can either use a hard drive controller, or use a piece of software to create it. If your two hard drives are both 1TB, then the total usable volume is 1TB instead of 2TB. The downside of RAID 1 is that you don’t get any extra disk space. You can pull the failed hard drive out while the computer is running, insert a new hard drive and it will automatically rebuilds the mirror. The nice part about RAID 1 is that if one of your hard drive fails, your computer or server would still be up and running because you have a complete, intact copy of the data on the other hard drive. If you have two hard drives in RAID 1, then data will be written to both drives. Here we will discuss about RAID 1 which is also known as disk mirroring. There are many RAID levels such as RAID 0, RAID 1, RAID 5, RAID 10 etc. RAID allows you to turn multiple physical hard drives into a single logical hard drive. RAID stands for Redundant Array of Inexpensive Disks. Jun 20 08:32:39 tubuntu2 sensord: +12V: +12.10 V (min = +11.39 V, max = +12.In this tutorial, we’ll be talking about RAID, specifically we will set up software RAID 1 on a running Linux distribution. Jun 20 08:32:39 tubuntu2 sensord: Algorithm: ISA algorithm Jun 20 08:32:39 tubuntu2 sensord: Adapter: ISA adapter
Jun 20 08:27:33 tubuntu2 smartd: Device: /dev/hdb, SMART Prefailure Attribute: 8 Seek_Time_Performance changed from 240 to 239 Once smart monitoring (smartd) is enabled, you will get messages in syslog whenever device status changes such as: To see the results of either test or general status: To run a long (nondestructive test-this will take several minutes): To run a short (nondestructive) test on drive 0: This works on my Dell PowerEdge 1750 rack servers and I use Dell's OMSA (transcribed from Red Hat but works under Ubuntu server) using Cacti/Nagios to get the RAID status details.Īfter installing smartmontools, to see drive 0: I was able to use smartmontools to read megaraid-controlled drives: Status: D0 PME-Enable- DSel=0 DScale=0 PME. Region 0: Memory at ddff0000 (32-bit, prefetchable) Įxpansion ROM at de7f0000 Ĭapabilities: Power Management version 2įlags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=slow >TAbort- SERR- Unable to open device /dev/megadev0: No such file or directory I manged to install megacli but it returns blank data (along with exit code: 0x00) however im unable to monitor the status of the drives from the OS, so Im unaware of any drive failures that may occur I configured the RAID in an Intekl based BIOS utility Its installed on an Intel server board (1 RU rackmount) I have an Ubuntu server 圆4 (10.04) that is running FOG for imaging