Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-25-2009, 04:15 PM   #1
LQ Newbie
Registered: May 2009
Posts: 2

Rep: Reputation: 0
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 :-)
Old 05-26-2009, 03:20 AM   #2
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.7, Centos 5.10
Posts: 16,923

Rep: Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215
Exactly what cmd did you use to create the raid?
This is a good guide, might be worth trying:
Old 05-27-2009, 07:50 AM   #3
LQ Newbie
Registered: May 2009
Posts: 2

Original Poster
Rep: Reputation: 0

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,



lvm, raid, sata

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot system while RAID5 drive is rebuilding? mfitzpat Linux - Hardware 2 02-26-2009 03:27 PM
rebuilding a raid5 array for file server. javaholic Linux - Server 5 04-21-2008 10:01 AM
Kernel rebuilding first time ... din Slackware 14 04-09-2008 09:06 AM
RAID5 data rebuilding by mdadm results in corrupted data! rtyagi Linux - Newbie 0 03-26-2008 02:59 AM
rebuilding RAID5 array logical volumes yello Linux - Server 0 11-21-2007 05:50 PM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration