LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problem with raid5 rebuilding all the time (http://www.linuxquestions.org/questions/linux-software-2/problem-with-raid5-rebuilding-all-the-time-728411/)

th0 05-25-2009 04: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.

Greetings,

th0

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

chrism01 05-26-2009 03:20 AM

Exactly what cmd did you use to create the raid?
This is a good guide, might be worth trying: http://www.linuxhomenetworking.com/w..._Software_RAID

th0 05-27-2009 07:50 AM

Hey,

I did a

Code:

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,

th0


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