Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 04-23-2007, 03:47 AM   #1
Registered: Oct 2006
Location: High Wycombe, Bucks, UK.
Distribution: Debian and Fedora Core in equal measure
Posts: 264

Rep: Reputation: 33
Software RAID1 Recovery Issues (SARGE)

I have a mailserver, running Sarge, on a 2.6.8 kernel (yeah, I know its a bit behind, but if it ain't broke, don't fix it). We had some electrical "perturbations" round here just recently (an *enormous* electrical storm), and despite having surge protection, etc, one of the two disks in the RAID1 array got upset. I tried to resynch it, but each time it got to around 48%, it failed and started again, and looking in the syslog, I have irrecoverable errors, so I think its safe to say the disk is cooked. OK, so I 'mdadm --fail' and 'remove' the drive and check that its no longer shown as part of the array. Thankfully the other drive of the mirror pair is just getting on with life.

Tried to power off, take what I thought was the bad drive out, replace it with another, restart, rebuild, but it refused to boot with one of the disks changed. Looks bad, so I returned it to the original configuration, and it boots fine. Hmmm...must have taken the wrong drive out So I took the other drive out and it starts to boot and goes a fair way through, then throws a kernel panic, because it couldn't recognise a drive in the array...But I already failed and removed the drive that was bad...???

Anybody got any Ideas? The system is running on one disk now, which makes me nervous, but I'm also nervous now, about trying to recover the array, as it appears I'm getting something wrong with the recovery process....Is there anybody out there with the *faintest* idea of what I've managed to screw up

Thanks Guys!
Old 04-23-2007, 11:33 AM   #2
Senior Member
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Maybe you removed the wrong drive through mdadm???

If I were you, I would mirror that existing drive just in case!!!
Old 04-24-2007, 03:47 AM   #3
Registered: Oct 2006
Location: High Wycombe, Bucks, UK.
Distribution: Debian and Fedora Core in equal measure
Posts: 264

Original Poster
Rep: Reputation: 33
I wish it were that simple! I have /dev/hda5 and /dev/hdc5, and it was reporting that hdc5 was running, hda5 was recovering. Using mdadm, I failed/removed hda5 after several abortive attempts hda5 made to resynch, which always ended in a cascade of irrecoverable I/O errors at around 49%. Having failed/removed the disk, mdadm --detail showed it was hda5 that was removed, and that hdc5 was running clean.

It's like the system "knew" how to boot ok with a complete RAID1 system, but when half the RAID1 array was dead, GRUB didn't know how to manage the situation. Is there anything about the Debian RAID1 build that makes it do the initial GRUB load from one disk particularly?


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
linux software raid1 porlock Linux - Newbie 1 03-18-2013 07:40 PM
LXer: Linux Data Recovery on Windows - Is possible through Disk Doctors Linux Recovery Software LXer Syndicated Linux News 0 10-22-2006 01:21 PM
Software RAID1 monitoring Sushy Slackware 1 10-05-2005 09:52 AM
Software RAID1 on Debian Sarge ElmPie Linux - Software 1 05-20-2005 02:07 AM
Software RAID1 problems robbow52 Debian 7 11-15-2004 11:52 AM

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