LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 04-16-2007, 06:32 PM   #1
RamonetB
LQ Newbie
 
Registered: Apr 2007
Posts: 1

Rep: Reputation: 0
Question Can't RaidStart /dev/md3 in Raid1 configuration during attempted rebuild.


Hey everybody!

The short of it (don't ask questions why I did things a certain way, it was a long day and I wasn't thinking clearly).

Red Hat 7.3

Software Raid 1 mirroring sda to sdb, md0 through md5.
Recently we had a cooling system failure and sda was the victim.
An identical drive was installed to rebuild from sdb to sda.

I STOPPED /dev/md3 and unmounted it (/boot) This was in a misunderstanding on how to rebuild the array.
I realized this was not necessary and went about it this way:


I formatted the new sda to match the current sdb.
raidhotadd /dev/mdx /dev/sdx for watched as the md's rebuilt themselves. It was glorious.
However, I still needed to rebuild /dev/md3 (mirroring partitions sda1 and sdb1).
Obviously, I cannot raidhotadd a device to md3 if md3 is not ACTIVE!

raidstart /dev/md3 return "invalid argument."
/var/log/messages shows the following:

md: invalid raid superblock magic on sda1
md: sda1 has invalid sb, not importing!
md: could not import sda1!
md: autostart sda1 failed!

Now. This technically makes sense, as sda1 has not been rebuilt from sdb1! Thus, it can't start the raid device because part of it is degraded or not present (it is, afterall, just a formatted partition). Nevertheless, sdb1 DOES work. So it seems I merely can't start the raid /dev/md3 because it wants to start it with both sda1 and sdb1 active and working... which it obviously can't do.

SO, the question is this: How can I force the raid device /dev/md3 to start in degraded mode using ONLY /dev/sdb1? If I could do that, I'd just raidhotadd /dev/md3 /dev/sda1 and watch the magic. I'd like to do this without rebooting the system, as this is the head node to a cluster of ours that people like to use alot.

Can anyone point me in the right direction?
 
  


Reply


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
Need to rebuild /dev f1d094 Linux - General 10 06-19-2008 07:53 PM
rebuild /dev eazarcon Linux - General 3 06-28-2005 09:07 PM
Recover/Rebuild SW Raid1? FoxNotch Linux - General 1 07-11-2004 10:04 AM
How to rebuild raid1 on RedHat 9.0 galaxyms Linux - Software 0 10-23-2003 09:38 AM
Soft RAID1 (mirror) rebuild GAVollink Linux - Hardware 4 04-25-2003 08:18 AM


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

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