LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-26-2010, 11:56 PM   #1
lenster
LQ Newbie
 
Registered: Apr 2010
Posts: 3

Rep: Reputation: 0
raid 5 out of sync and I think I just hosed myself


As per the subject, I think I just hosed myself. I'm well aware of what I did wrong. I'm just hoping there is a way to recover.

I had a raid 5 that was slightly out of sync and wouldn't come back online when I reassembled it. I tried the --force option with assemble but forgot to put my /dev/md2 device as the first device so I hosed my superblock on the first device. This is what I did

Code:
mdadm --assemble --force /dev/sdc1 /dev/sdd1 /dev/sde1 /dev/sdf1 /dev/sdg1
I then had a brain fart and based on the output I ran the same command without /dev/sdc1 like this

Code:
mdadm --assemble --force /dev/sdd1 /dev/sde1 /dev/sdf1 /dev/sdg1 missing /dev/sdc1
So I just hosed the superblocks for 2 of my devices. Is there anyway to recover from this? I'm confident the data is there but slightly out of sync and with two superblocks hosed.

To give you an idea of how out of sync things were before I hosed it, here's the abbreviated output of mdadm -E. I have the full output as well if that helps.

Code:
[root@heisenberg]# mdadm -E /dev/sdc1 |grep Events
         Events : 11685
[root@heisenberg]# mdadm -E /dev/sdd1 |grep Events
         Events : 11671
[root@heisenberg]# mdadm -E /dev/sde1 |grep Events
         Events : 11682
[root@heisenberg]# mdadm -E /dev/sdf1 |grep Events
         Events : 11683
[root@heisenberg]# mdadm -E /dev/sdg1 |grep Events
         Events : 11683
I'm guessing I need to go to backups but I'd love to try anything folks have to suggest.
 
Old 04-27-2010, 12:19 AM   #2
lenster
LQ Newbie
 
Registered: Apr 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Turns out that I didn't hose myself as badly as I thought. I just blew away the /dev/sdc1 and /dev/sdd1 device nodes. A simple reboot fixed my problem. I'm back at the point where I have 5 drives that are slightly out of sync.

I'm trying to determine if I should continue down the path I was going which as to force an assemble or should I look at another path?
 
Old 04-27-2010, 09:27 PM   #3
lenster
LQ Newbie
 
Registered: Apr 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by lenster View Post
Turns out that I didn't hose myself as badly as I thought. I just blew away the /dev/sdc1 and /dev/sdd1 device nodes. A simple reboot fixed my problem. I'm back at the point where I have 5 drives that are slightly out of sync.

I'm trying to determine if I should continue down the path I was going which as to force an assemble or should I look at another path?
Forcing the assemble worked. One drive was considered failed so I simply rebuilt it by adding it. Aftewards I did a filesystem repair and so far so good.

Code:
mdadm -assemble --force /dev/md2 /dev/sdc1 /dev/sdd1 /dev/sde1 /dev/sdf1 /dev/sdg1
 
  


Reply

Tags
mdadm, raid, recovering, sync


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
RAID 1 Sync keech Linux - Newbie 12 11-09-2009 02:31 PM
Software Raid : Sync after install baddah Linux - General 2 10-08-2009 01:55 AM
RAID 1 Configuration doesn't sync kartikrajus Linux - Newbie 4 12-11-2008 07:37 AM
Will RAID-1 sync changes made under another OS ? cbonar Linux - Hardware 0 01-08-2005 12:20 PM
RAID 1 / Partition won't sync? georgee Linux - Software 0 10-23-2004 06:26 AM


All times are GMT -5. The time now is 05:48 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