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,
|