HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   HOWTO-Related Questions (
-   -   question about software raid (

Ovidiu 19th September 2006 12:36

question about software raid
hi there,

I followed a slightly different how to for setting up a root server at strato than this:

but it is basically unimportant for my question.

What do I do in case one of the harddisks of my software raid fails? How do I recover? what do I have to do?

I guess the server support staff will exchange the hard disk with another one of the same size and brand so what is the next step I have to do?

Ben 19th September 2006 13:07

I never used SW Raid, I preder HW RAid even with cheap controllers without an own CPU because of the ease of use in the OS...
but here you can find two shellscripts that manage this harddisk replacement in the sw raid:

Ovidiu 19th September 2006 13:24

thx, its not about what I prefer but about what I can afford :-)

the system I could afford and that suits my needs best, offers 2 HDs so I used them to make a software raid...

I was just curious what I should do in case it fails...
seems the system will go on using only one HD, but how will mdam tell me that one HD failed? sending mail to root?

Hans 19th September 2006 13:50


On my Dell PowerEdge 1425 SC and Debian Sarge (unofficial 64 bit), i've software raid too.

I have configured RAID 1 using the Debian CD.
When one HDD crashes for example, i will receive an email from the system with the message that the RAID array is broken. So i can take action.

After that i can replace the crashed HDD for a new one.
Then Software RAID will rebuild & synchronise both HDD's.
Synchronising costs some time, but that is only after setting up RAID 1.

That's all.

Ovidiu 19th September 2006 15:28

Ok, thx. thats exactly the info I was looking for: if I have raid1 set-up via software raid, I will be notified if a HD breaks down and when the HD is replaced it will automatically be rebuilt.

ikaros 22nd September 2006 11:43

I am not sure if the reconstruction is done automagically in software-raid. All I know is that after your replace the defective HDD, you have to do something like this (depending on what drive you have, e.g. sdx for SATA):

raidhotadd /dev/md0 /dev/sda

Take a look at this:

Also, if you have partitions in your drive, maybe you should create them with fdisk before you run the above command.

If you need perfect Linux compatibility and good performance, after A LOT OF SEARCH I found out that if you are on a tight budget host-based SATA RAID controllers with Silicon Image 3114 chipset is the way to go, and if money is not an issue full-hardware controllers like LSI Logic MegaRAID SATA 150-4 (4 channels) or LSI Logic MegaRAID SATA 150-6 (6 channels) is the best option.

How do you setup the system to notify you with email in case of a drive failure?

All times are GMT +2. The time now is 08:55.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.