LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-25-2007, 10:03 AM   #1
itnaa
Member
 
Registered: Dec 2006
Distribution: CentOS 4.4 (2.6.9-42.0.2.ELsmp)
Posts: 55

Rep: Reputation: 15
Crash & Subsequent RAID Rebuild


Hi Folks,

Would appreciate help in understanding the process of a RAID rebuild after a crash. The RAID setup I have mirrors disks, and I have hardware RAID.

What happens after a crash?

-- The system reboots & I respond by a 'yes' for filesystem integrity check
-- The filesystem check complete (it seems to dump to lost+found), the server finishes booting
-- At this stage, the RAID rebuild kicks in ...

Question:
What is being rebuilt? The image before the crash or the image after the filesystem integrity check?

To be sure, call my mirror set d0 & d1. Assume(?) that d0 is used to boot off, and RAID images d0 onto d1. All fine, until a crash. Now presumably, d0 is corrupt and due to the crash d1 hasn't had time to image d0. So now I reboot, and the OS does a file system integrity check on d0 & fixes any problem it finds. That done, system completes the boot process off d0. Now we have a state where

d0 = crashed & repaired OS
d1 = before crash OS

at this stage, what does RAID do? d0-->d1 or d1-->d0 ?

I suspect it is d0 --> d1, since one must assume that d1 mirrored whatever it was that corrupt the OS.

Just want to be sure of my understanding, and that I'm not overlooking any other possibility. Thanks.
 
Old 07-27-2007, 12:02 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
There is no master in a RAID-1 mirror. Whichever drive dropped out of the array is the destination of the sync. A RAID-1 sync copies all blocks from one drive to the other to create the mirror.
 
Old 08-14-2007, 12:29 PM   #3
itnaa
Member
 
Registered: Dec 2006
Distribution: CentOS 4.4 (2.6.9-42.0.2.ELsmp)
Posts: 55

Original Poster
Rep: Reputation: 15
Thanks macemoneta.
 
  


Reply



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
How to rebuild a software RAID combilli Linux - Software 5 02-20-2007 12:09 PM
software raid rebuild sunhui Linux - Software 1 12-17-2006 09:15 PM
Debian Raid 5 rebuild catfishk Linux - Software 3 06-23-2006 09:21 PM
RAID 1 rebuild Roberto Colmegna Linux - Hardware 1 12-07-2005 07:58 PM
Rebuild Software RAID 1 thadco Linux - Newbie 1 06-03-2004 04:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:46 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration