Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Technical

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th January 2008, 18:02
SoftDux SoftDux is offline
Member
 
Join Date: Oct 2006
Posts: 35
Thanks: 1
Thanked 0 Times in 0 Posts
Default please help. RAID 5 crashed after power failure. How do I recover the data?

Hi all

I hope someone can help me with this. The posts in the forum on similar topics didn't help me at all. I just move aprox. 280GB's worth of data to a new server, which has 3x250GB HDD's in. The 4th drive had a problem and was sent back to supplier, so I would have added it later.

Anyway, this morning we had a power failure (UPS also faulty ), and now the server doesn't start-up. It seems like /dev/md1 is fine, but /dev/md2 isn't.

Here's the output that I can currently see on the monitor:

Quote:
RAID 5 conf printout:
--- rd:3 wd:2 fd:1
disk 0, o:1, dev:hdb2
disk 2, o:1, dev:sdb2
raid5: failed to tun raid set md2
md: peers->run() failed ...
mdamd: failed to RUN_ARRAY /dev/md2: Invalid argument
Making device-mapper control mode
Scanning logical volumes
Reading all physical volumes. This may take a while ...
cdrom: open failed.
No volume groups found
Activating logical volumes
cdrom: open failed
Volume group "main" not found
ERROR: /bin/lvm exited adnormally! (pid 485)
Creating root device
Mounting root filesystem
mount: error 6 mounting ext3
mount: error 2 mounting none
Switching to new root
switchroot: mount failed: 22
umount /initrd/dev failed: 2
Kernel panic - not syninc: Attempted to kill init!
Booting from the CD, and specifying "sme rescue" wasn't very helpful, as it tells me there's no installation found. So, I can't even try and rebuild a failed RAID: http://wiki.contribs.org/Raid#Raid_Notes


I have booted up with System rescue CD, and found some interesting info:

Quote:
sysresccd ~ # fdisk -ul

Disk /dev/sda: 250.0 GB, 250058268160 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488395055 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 63 208844 104391 fd Linux raid autodetect
/dev/sda2 208845 488392064 244091610 fd Linux raid autodetect

Disk /dev/sdb: 250.0 GB, 250058268160 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488395055 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 63 208844 104391 fd Linux raid autodetect
/dev/sdb2 208845 488392064 244091610 fd Linux raid autodetect

Disk /dev/sdc: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 * 63 208844 104391 fd Linux raid autodetect
/dev/sdc2 208845 488392064 244091610 fd Linux raid autodetect
One thing which I don't understand though, is that it detects all 3 HDD's as sdX, even though I have 1x IDE & 2x SATA HDD's in the server.

Can someone please give me some pointers on this?
Reply With Quote
Sponsored Links
  #2  
Old 25th January 2008, 20:44
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

You seem to have a double problem, i think you are running lvm on top of raid that is usually difficult to rescue.

You need to try and fix the raid array this should help
Code:
mdadm --assemble --run --force --update=summaries /dev/md2
/dev/disk1 /dev/disk2 /dev/disk3
Replace with your actual setup.

Going through "man mdadm" should help.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #3  
Old 26th January 2008, 01:24
unclecameron unclecameron is offline
Senior Member
 
Join Date: Apr 2006
Posts: 115
Thanks: 2
Thanked 8 Times in 7 Posts
Default

Also you may have luck mounting Knoppix and attempting to mount the device and fsck it, which if it's decent at all you should see on the desktop when you power it on. HTH
Reply With Quote
  #4  
Old 7th February 2008, 14:29
SoftDux SoftDux is offline
Member
 
Join Date: Oct 2006
Posts: 35
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Thanx, I tried Sysrescue CD, which is also a live CD and similar to knoppix, but with more tools - unfortunately it didn't help much. I'm still looking into option though...
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Email server stopt working after power failure DaRKNeSS666NL General 17 14th January 2008 20:43
Mail server attack princebenin Server Operation 1 19th November 2007 14:02
Help with Bluetooth PAND josto HOWTO-Related Questions 1 7th August 2007 20:53
On: Recover Data From RAID1 LVM Partitions With Knoppix Linux LiveCD saracen HOWTO-Related Questions 1 11th May 2007 09:57
Ethernet issues on power failure Jamesk5 Server Operation 1 3rd September 2006 19:17


All times are GMT +2. The time now is 12:02.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.