View previous topic :: View next topic |
Author |
Message |
ruizs n00b
Joined: 14 Jul 2004 Posts: 18
|
Posted: Tue Nov 15, 2005 6:45 am Post subject: Lost main system drive, need to re-create raid array |
|
|
Hi all -
well, I lost the main drive for my gentoo install a while back - gentoo and all programs were installed on /dev/hda, and I had all my data stored on a raid 5 array, consisting of /dev/sda1, sdb1, and sdc1.
I have since replaced the main drive, and re-installed gentoo (using the latest genkernel, everything seems to be working nicely).
I want to get my data back (no, I NEED to get my data back), but I lost all my raid config info... I've tried mdadm --assemble, but there's nothing in my config file. Can I scan my devices to create a new config? I don't remember all the options I had before.
looks like the array is still there, at least minus one disk:
Code: | stewie sbin # lsraid -d /dev/sda1
[dev 9, 0] /dev/md/0 9DEDC71E.251BF51A.DAF00A01.E64A360E offline
[dev 8, 1] /dev/sda1 9DEDC71E.251BF51A.DAF00A01.E64A360E good
[dev 8, 17] /dev/sdb1 9DEDC71E.251BF51A.DAF00A01.E64A360E good
[dev ?, ?] (unknown) 00000000.00000000.00000000.00000000 missing |
So how do i get this thing back? I already created a /dev/md0, lsmod shows raid5, md_mod, xor modules loaded. Nothing really in /proc/mdstat.
HELP!! |
|
Back to top |
|
|
ruizs n00b
Joined: 14 Jul 2004 Posts: 18
|
Posted: Tue Nov 15, 2005 11:13 pm Post subject: |
|
|
anyone? I'm having data withdrawls |
|
Back to top |
|
|
ruizs n00b
Joined: 14 Jul 2004 Posts: 18
|
Posted: Wed Nov 16, 2005 4:41 pm Post subject: |
|
|
Yay! I got it going. FYI, for anyone w/ the same issues:
Getting the raid array going:
Code: | stewie proc # mknod /dev/md0 b 9 0
stewie proc # ls -l /dev/md0
brw-r--r-- 1 root root 9, 0 Nov 15 21:15 /dev/md0
stewie proc # mdadm -A /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1
mdadm: /dev/md0 has been started with 2 drives (out of 3). |
Finding / Mounting the volumes (lvm):
Code: | 109 vgexport raid5
110 pvscan
111 vgimport raid5
112 vgchange -ay raid5
113 mkdir -p /mnt/raid5/data
114 mount /dev/raid5/volData /mnt/raid5/data |
(my lvm volume group name is raid5, sorry for the confusion) |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|