LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-25-2007, 06:08 PM   #1
FrOgGeR619
LQ Newbie
 
Registered: Sep 2007
Posts: 1

Rep: Reputation: 0
Moving Software RAID 5 array to new OS


Here is the short story...

Power blinked last weekend and took 2 of my hard drives with it.
Drive 1 contained Fedora 5, OS, SWAP, everything. The 2nd drive was 1 of 3 in a software raid 5 array.

I have replaced the OS drive with a spare, that i installed Fedora 7 onto. My big question now is: How can i move my RAID 5 over to the new Fedora installation. I don't have a spare drive so i'll have to bring the array up with only 2 of the 3 drives. Below are some of the commands that i have tried to use to get the array mounted up.

*************************************************************
[root@localhost ~]# mdadm --assemble --scan
mdadm: /dev/md0 has been started with 2 drives (out of 3).
[root@localhost ~]# fdisk -l

Disk /dev/sda: 46.1 GB, 46115758080 bytes
255 heads, 63 sectors/track, 5606 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 5606 44925772+ 8e Linux LVM

Disk /dev/sdb: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 24792 199141708+ fd Linux raid autodetect

Disk /dev/sdc: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 24792 199141708+ fd Linux raid autodetect

Disk /dev/sdd: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

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

Disk /dev/md0: 407.8 GB, 407856087040 bytes
255 heads, 63 sectors/track, 49585 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/md0p1 * 1 24792 199141708+ fd Linux raid autodetect


[root@localhost ~]# mount -t ext3 /dev/md0 /mnt/raid
mount: wrong fs type, bad option, bad superblock on /dev/md0,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

[root@localhost ~]# mdadm --detail /dev/md0
/dev/md0:
Version : 00.90.03
Creation Time : Sat Sep 22 22:37:42 2007
Raid Level : raid5
Array Size : 398296960 (379.85 GiB 407.86 GB)
Used Dev Size : 199148480 (189.92 GiB 203.93 GB)
Raid Devices : 3
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Mon Sep 24 16:50:08 2007
State : clean, degraded
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

Layout : left-symmetric
Chunk Size : 64K

UUID : 50709e4b:f5bd08d4:91e33d15:5395c5a9
Events : 0.14

Number Major Minor RaidDevice State
0 8 16 0 active sync /dev/sdb
1 8 32 1 active sync /dev/sdc
2 0 0 2 removed

I also used MKDIR to create /mnt/raid before i tried to mount it.

Any advice/help with getting my data back would be greatly appreciated.

Thanks,
 
Old 09-26-2007, 01:55 PM   #2
mether
Member
 
Registered: Mar 2007
Distribution: RHEL, Fedora, Open Suse
Posts: 151

Rep: Reputation: 31
Well I think if you try adding another drive as "hotadd" you might get the md0 full functional. So add a new physical disk, tell mdadm that its for md0 and then monitor /proc/mdstat ..I think it should work.
 
  


Reply


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
building a software raid 5 array Bogus8 Debian 2 05-29-2007 10:20 PM
Moving a Slack install from an ATA disk to a RAID array shubb Slackware 2 08-06-2006 11:54 AM
Create RAID 5 software array wesleywest Red Hat 3 02-09-2005 02:41 AM
moving system from ide software raid to new box with scsi raid ftumsh Linux - General 0 10-28-2003 09:34 AM
moving a md array (RAID) MorrisIS Linux - General 2 10-04-2001 11:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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