-   Linux - Software (
-   -   Problem with raid5 rebuilding all the time (

th0 05-25-2009 03:15 PM

Problem with raid5 rebuilding all the time
First of all, hello folks :)

I have tried to create a raid5 setup for my home server (latest debian) and could really need some help there.

My Setup is as follows: 2x1TB SATA HDD (sdd and sde, most of the time), connected to the board, LVM, Crypt, everything is fine.

3x500GB SATA HDD (sda, sdb, sdc most of the time, but switching), connected to two SATA controllers, with which I'm trying to do raid5. Nothing is fine.

I created the array using mdadm, which created the array and immediately startet rebuild (which took ~5h). Then /dev/md0 was ready, I could mkfs and everything was good...
Until I found out that mdadm is automatically rebuilding the (still empty) array every time I reboot. This is crap since I don't like to wait 4h every time I want to use the server and despite that I don't see the sense in rebuilding a set of disks with no data on it anyway.
mdadm doesn't want me to stop/remove the array as well, as it states "Device or resource busy" (probably because of the running background rebuild) every time I try to mdadm --stop /dev/md0.

What can I do to solve this? I really want the redundancy raid5 offers, but I think I don't need to spend 4 hours of my life every time I boot my server.

Is there any way to prevent mdadm from rebuilding, or just forcing mdadm into believing the disks are synch?
I really don't have any ideas left of what I could do here.



p.s. pardon my (probably) bad English :-)

chrism01 05-26-2009 02:20 AM

Exactly what cmd did you use to create the raid?
This is a good guide, might be worth trying:

th0 05-27-2009 06:50 AM


I did a


mdadm --create --verbose /dev/md0 --level=5 --raid-devices=3 /dev/sdb1 /dev/sdc1 /dev/sda1
and on top of that a LVM, but I don't know the exact syntax anymore.

So long,


All times are GMT -5. The time now is 04:02 AM.