LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 05-21-2009, 04:43 AM   #1
adrian_stephens
Member
 
Registered: Apr 2005
Location: Cambridge, UK
Distribution: KDE Neon, Proxmox
Posts: 37
Blog Entries: 2

Rep: Reputation: 1
How to recover a raid1 over nbd after failure of local disk?


I have a FC10 server. I have a raid1 (with bitmap) consisting of a local disk and one provided by nbd (write mostly). The raid contains a volume group, and logical volumes from this group are mounted from fstab at an early stage during the boot. The nbd component is added during init3 processing by an init.d script.

The logical volumes mount at places like /var/www/html and /var/mail.

My local disk failed (bad connection). I didn't notice for a while because the nbd mounted component continued to function OK. Then I happened to check /proc/mdstat and saw the local disk as absent.

So I tried rebooting (without having fixed the physical problem yet). The boot failed when fstab tried to mount logical volumes because the local copy wasn't working and the nbd init.d script hadn't been executed yet.

Then I fixed the physical problem and rebooted. Big mistake.

The system booted up fine, but the synchronization of the raid1 went in the wrong direction. I think this was because the local component is always added first (which was out of date). When the up-to-date component was added later, raid resolved the differences by making the new one mirror the old one.

I lost a day's worth of work.

What should I do to avoid repeating this mistake?

Thanks for any suggestions.

Adrian Stephens - Cambridge UK
 
Old 05-22-2009, 12:16 PM   #2
archangel_617b
Member
 
Registered: Sep 2003
Location: GMT -08:00
Distribution: Ubuntu, RHEL/CentOS, Fedora
Posts: 234

Rep: Reputation: 42
Quote:
Originally Posted by adrian_stephens View Post
The system booted up fine, but the synchronization of the raid1 went in the wrong direction. I think this was because the local component is always added first (which was out of date). When the up-to-date component was added later, raid resolved the differences by making the new one mirror the old one.
Restore from backup. I think that's about all that can be said.

- Arch
 
  


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
Best way to recover file off of single RAID1 drive? ddc441 Linux - Hardware 5 02-24-2009 08:11 PM
RAID1 LVM disk failure - can't restore ngibsonn Linux - Software 2 03-13-2007 07:49 PM
Raid 5 XFS FC2 recover disk failure mattma Linux - Hardware 1 11-11-2006 06:12 PM
RAID1 failure - Need advice on ow to recover Ezplan Linux - Hardware 3 01-24-2006 09:10 AM
Recover/Rebuild SW Raid1? FoxNotch Linux - General 1 07-11-2004 10:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

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