LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-18-2012, 05:12 PM   #1
^andrea^
Member
 
Registered: Mar 2011
Distribution: Arch Linux
Posts: 53

Rep: Reputation: 0
Mdadm RAID 5 degradated array not mountable. Metadata lost?


Hi All.

Let's see who remembers anything about mdadm... :-)

I HAD a fully functional RAID 5 mdadm array of 3 disks... HAD!!!
until one proved to be defective... (I'm still waiting for the replacement).

I kept the computer off most of the time (while awaiting for the replacement).

A little while ago though, while I was restarting it (with the 2 working disks ONLY), it failed to boot.
Now it doesn't boot at all as it cannot mount the main raid partition.

I believe the data on the two disks SHOULD still be fine but somehow mdadm seems to have lost the metadata and it doesn't know how to mount that array anymore...

I have to start the computer with Ubuntu Live CD and this is the output when I try to assemble the existing arrays:
root@ubuntu:~# mdadm --assemble --scan
mdadm: No suitable drives found for /dev/md1

Here is the output of "--examine" instead (mdadm --examine /dev/sdx3")

root@ubuntu:~# mdadm --examine /dev/sda3
/dev/sda3:
Magic : a92b4efc
Version : 00.90.00
UUID : 00000000:00000000:00000000:00000000
Creation Time : Mon Sep 17 16:25:30 2012
Raid Level : -unknown-
Raid Devices : 0
Total Devices : 2
Preferred Minor : 1

Update Time : Mon Sep 17 16:35:28 2012
State : active
Active Devices : 0
Working Devices : 2
Failed Devices : 0
Spare Devices : 2
Checksum : be36f1ae - correct
Events : 1


Number Major Minor RaidDevice State
this 0 8 19 0 spare /dev/sdb3

0 0 8 19 0 spare /dev/sdb3
1 1 8 3 1 spare /dev/sda3

---------------------------------------------------------------------

root@ubuntu:~# mdadm --examine /dev/sdb3
/dev/sdb3:
Magic : a92b4efc
Version : 00.90.00
UUID : 00000000:00000000:00000000:00000000
Creation Time : Mon Sep 17 16:25:30 2012
Raid Level : -unknown-
Raid Devices : 0
Total Devices : 2
Preferred Minor : 1

Update Time : Mon Sep 17 16:35:28 2012
State : active
Active Devices : 0
Working Devices : 2
Failed Devices : 0
Spare Devices : 2
Checksum : be36f1a0 - correct
Events : 1


Number Major Minor RaidDevice State
this 1 8 3 1 spare /dev/sda3

0 0 8 19 0 spare /dev/sdb3
1 1 8 3 1 spare /dev/sda3


Any idea on what happened and/or (most importantly) I should be doing?

Thanks in advance for any clue.

Andrea

PS: The system runs on Ubuntu 10.04 32 bit
 
Old 09-19-2012, 11:35 AM   #2
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
I don't know what you will do to get it up and running but keep in mind you can go "the hard way" with raidpycovery.

http://www.freesoftwaremagazine.com/.../recovery_raid
https://code.launchpad.net/~eantoran...k/raidpycovery
 
Old 09-21-2012, 02:14 PM   #3
^andrea^
Member
 
Registered: Mar 2011
Distribution: Arch Linux
Posts: 53

Original Poster
Rep: Reputation: 0
Hi,

Thanks eantoranz. Is that your software? :-)

I haven't found much information about it on the net, like a clear tutorial or something like that...
Anyway, my MDADM raid partition had several LVMs built on top, which I suppose it might make the whole thing even more complicated.
Is LVM supported by "raidpycovery"?


Regarding fixing my array, I thought that, since the data (afaik) seems to be there,
MAYBE recreating the array on top of the current one would tell mdadm how the array is supposed to work.
Considering I have sda3 and sdb3 left, I could run something something like:
mdadm --create --verbose /dev/md1 --level=5 --raid-devices=3 /dev/sda3 /dev/sdb3 missing

Does anyone know whether mdadm is smart enough to understand that there is already some data in the array
or it is simply going to wipe the whole thing?

As usual, any advice would be appreciated.

Cheers,
Andrea
 
Old 09-21-2012, 02:56 PM   #4
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
Well.... I don't know how you will handle the upper layer stuff.... the lower layer "disk" will end up in a single image file (so you need a lot of room in order to rebuild the image of the disk). Check the readme included in the docs. There are examples on how to use it.
 
Old 09-23-2012, 07:02 AM   #5
^andrea^
Member
 
Registered: Mar 2011
Distribution: Arch Linux
Posts: 53

Original Poster
Rep: Reputation: 0
Ok.

Thanks for your help eantoranz.

It's a pity noone else seem to have any idea on how to (at least try) restore the array... :-(

Andrea
 
  


Reply

Tags
mdadm, raid, raid5



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
[SOLVED] mdadm: only give one device per ARRAY line: /dev/md/:raid and array laughing_man77 Linux - Hardware 4 03-23-2012 04:05 PM
Changing the metadata format of a RAID-0 mdadm drive towheedm Linux - Desktop 0 10-31-2011 01:08 PM
raid array metadata info (mdadm) suhas! Linux - Server 2 02-18-2011 04:26 AM
RAID mdadm cant add disks to array vockleya Linux - Software 4 09-13-2010 05:37 PM
I need help on repairing a mdadm raid 5 array compgeek50 Linux - Hardware 0 02-24-2008 08:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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