LinuxQuestions.org
Visit Jeremy's Blog.
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 03-11-2009, 12:02 PM   #1
edortizq
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Rep: Reputation: 0
Recover data from disk with software RAID (FC6)


I had an old server with FC6, one of the hard disks get damage and I'm trying to recover the mirrored data on the other disk; I could'n boot from the only good disk and couldn't see the disk installing it on other machine with SLES 10(I don't know how to mount a disk). Then I tried installing FC6 on the disk in the only partition wich was not mirrored, the swap partition wich had 2Gb; I can't see the data, only can see the raid partition using fdisk:


[root@localhost ~]# fdisk -l

Disk /dev/hda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 9703 77939316 fd Linux raid autodetect
/dev/hda2 9704 9716 104422+ 83 Linux
/dev/hda3 9717 9964 1992060 83 Linux

Disk /dev/md0: 79.8 GB, 79809740800 bytes
2 heads, 4 sectors/track, 19484800 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md0 doesn't contain a valid partition table



WHAT CAN I DO TO RECOVER THE DATA FROM THE dev/hda1 PARTITION?????
AS YOU SUPOSSE NOW I'M REALLY NEW WITH LINUX, I NEED SOMETHING LIKE A STEP BY STEP GUIDE.
PLEASE YOUR HELP EXPERTS.
 
Old 03-12-2009, 07:50 AM   #2
wsduvall
Member
 
Registered: Aug 2006
Posts: 92

Rep: Reputation: 16
Hey,

First off, could you provide a little more information? It looks like your using a software RAID, is that right? What kind of RAID where you doing? It looks like you only have 2 disks, so I'm guessing RAID1? (Or am I getting 0 and 1 backwards again?).

For starters you might take a look at the post here: http://www.linuxquestions.org/questi...-mdadm-551732/ and this article here: http://www.linuxjournal.com/article/8874
 
Old 03-13-2009, 11:04 AM   #3
edortizq
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Yes, I was using a software RAID, the original wich comes with FC6.I had 2 disks, but one of them is not working any more, then I installed FC6 on the old swap partition (2Gb) and that's what is working now, the remain good disk, with FC6 installed on the old swap partition; the RAID partition shown with fdisk command was created with the previus installation wich had 2 disks.


Quote:
Originally Posted by wsduvall View Post
Hey,

First off, could you provide a little more information? It looks like your using a software RAID, is that right? What kind of RAID where you doing? It looks like you only have 2 disks, so I'm guessing RAID1? (Or am I getting 0 and 1 backwards again?).

For starters you might take a look at the post here: http://www.linuxquestions.org/questi...-mdadm-551732/ and this article here: http://www.linuxjournal.com/article/8874
 
Old 03-13-2009, 11:51 AM   #4
edortizq
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Original Poster
Rep: Reputation: 0
That's what I get running mdadm, please help!!!

[root@localhost etc]# mdadm --detail /dev/md0
/dev/md0:
Version : 00.90.03
Creation Time : Fri Jun 15 08:08:45 2007
Raid Level : raid1
Array Size : 77939200 (74.33 GiB 79.81 GB)
Device Size : 77939200 (74.33 GiB 79.81 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Thu Jan 8 17:27:17 2009
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0

UUID : b5910933:f5f585a7:e551a662:f6e69360
Events : 0.589166

Number Major Minor RaidDevice State
0 0 0 0 removed
1 3 1 1 active sync /dev/hda1





Quote:
Originally Posted by wsduvall View Post
Hey,

First off, could you provide a little more information? It looks like your using a software RAID, is that right? What kind of RAID where you doing? It looks like you only have 2 disks, so I'm guessing RAID1? (Or am I getting 0 and 1 backwards again?).

For starters you might take a look at the post here: http://www.linuxquestions.org/questi...-mdadm-551732/ and this article here: http://www.linuxjournal.com/article/8874
 
Old 03-13-2009, 01:54 PM   #5
Dankles
Member
 
Registered: May 2004
Location: /dev/null
Distribution: Slackware
Posts: 245

Rep: Reputation: 31
try using the gparted live disk
then run:
Code:
mdadm --assemble -R /dev/md0 
OR maybe
mdadm --assemble -R /dev/md0 /dev/hda1
or
mdadm --assemble -R /dev/md0 /dev/hda1 /dev/hdb1
lol! one of those should work

Then just mount the drive:
mount /dev/md0 /your/dir

Last edited by Dankles; 03-13-2009 at 01:57 PM.
 
  


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
external raid trouble, recover data? santana Linux - Hardware 2 01-05-2009 02:02 PM
recover data from raid 0 drives.... Peter_Karlsen Linux - Hardware 8 12-02-2008 01:12 PM
Restore RAID 0 and Recover data troskin Linux - Newbie 2 10-12-2007 03:50 PM
Software to acess and recover data on Fat32 data NeoSpawn Linux - Software 2 09-04-2005 11:37 AM
Software RAID to recover data from HW RAID ocschwar Linux - Hardware 5 02-25-2005 10:05 PM

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

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