LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-25-2009, 03:15 PM   #1
th0
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.

Greetings,

th0

p.s. pardon my (probably) bad English :-)
 
Old 05-26-2009, 02:20 AM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
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
 
Old 05-27-2009, 06:50 AM   #3
th0
LQ Newbie
 
Registered: May 2009
Posts: 2

Original Poster
Rep: Reputation: 0
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
 
  


Reply

Tags
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 02:27 PM
rebuilding a raid5 array for file server. javaholic Linux - Server 5 04-21-2008 09:01 AM
Kernel rebuilding first time ... din Slackware 14 04-09-2008 08:06 AM
RAID5 data rebuilding by mdadm results in corrupted data! rtyagi Linux - Newbie 0 03-26-2008 01:59 AM
rebuilding RAID5 array logical volumes yello Linux - Server 0 11-21-2007 04:50 PM


All times are GMT -5. The time now is 09:08 PM.

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