shoe
December 12th, 2008, 01:53 PM
Greetings all!
I have just finished a 4h session with Google and these here great forums finding out various ways of solving my problem.
However there is still something missing and I hope that someone is able to provide me with the information I need.
The thing is this: A few weeks ago I lost 2 of 7 disks in a RAID5 array. I was however able to restore it thanks to help from this thread http://ubuntuforums.org/showthread.php?t=410136
What I did not get from the beginning was that the disks had to be specified in the exact same order as the first time I created the array. And at this point in time the disks were hosted in another server all together.
After I realized that I could find the "original order" by issuing an mdadm --examine on the disk I specified as "missing" I recreated the array. And it worked fine.
I recreated the array with the following command:
mdadm --create /dev/md0 --assume-clean --level=5 --verbose \
--raid-devices=7 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1 missing \
/dev/sdg1 /dev/sdh1
But before I could add the last missing disk a few days later two disks lost connection again! It's probably the same disks, they're sitting on a bad SiI 3114 SATA2-card. I will replace it asap.
But to my new problem:
Now it seems I cannot find out the original order of my disks, since it now thinks the array was created with the above command. And the disk (sdf1) missing above tells a totally different story then the other disks :(
An --examine of all partitions except sdf1 gives,
0 0 8 17 0 active sync /dev/sdb1
1 1 8 33 1 active sync /dev/sdc1
2 2 8 49 2 active sync /dev/sdd1
3 3 8 65 3 active sync /dev/sde1
4 4 0 0 4 faulty removed
5 5 8 97 5 active sync /dev/sdg1
6 6 8 113 6 active sync /dev/sdh1
And sdf1 gives,
this 1 8 33 1 active sync /dev/sdc1
0 0 8 65 0 active sync /dev/sde1
1 1 8 33 1 active sync /dev/sdc1
2 2 8 1 2 active sync /dev/sda1
3 3 0 0 3 faulty removed
4 4 8 97 4 active sync /dev/sdg1
5 5 8 17 5 active sync /dev/sdb1
6 6 8 81 6 active sync /dev/sdf1
Note two things, 1) this disk thinks it is sdc and 2) it also thinks sda is part of the raid. It's been ages since this was the case. And it was because my previous system probed the disks differently. sda1 today is my root partition.
So the burning question is - is there a way for me to find out what order I should specify the disks when recreating the raid with --assume-clean ??
Sorry for a lengthy post and thanks for your time,
/Stefan
I have just finished a 4h session with Google and these here great forums finding out various ways of solving my problem.
However there is still something missing and I hope that someone is able to provide me with the information I need.
The thing is this: A few weeks ago I lost 2 of 7 disks in a RAID5 array. I was however able to restore it thanks to help from this thread http://ubuntuforums.org/showthread.php?t=410136
What I did not get from the beginning was that the disks had to be specified in the exact same order as the first time I created the array. And at this point in time the disks were hosted in another server all together.
After I realized that I could find the "original order" by issuing an mdadm --examine on the disk I specified as "missing" I recreated the array. And it worked fine.
I recreated the array with the following command:
mdadm --create /dev/md0 --assume-clean --level=5 --verbose \
--raid-devices=7 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1 missing \
/dev/sdg1 /dev/sdh1
But before I could add the last missing disk a few days later two disks lost connection again! It's probably the same disks, they're sitting on a bad SiI 3114 SATA2-card. I will replace it asap.
But to my new problem:
Now it seems I cannot find out the original order of my disks, since it now thinks the array was created with the above command. And the disk (sdf1) missing above tells a totally different story then the other disks :(
An --examine of all partitions except sdf1 gives,
0 0 8 17 0 active sync /dev/sdb1
1 1 8 33 1 active sync /dev/sdc1
2 2 8 49 2 active sync /dev/sdd1
3 3 8 65 3 active sync /dev/sde1
4 4 0 0 4 faulty removed
5 5 8 97 5 active sync /dev/sdg1
6 6 8 113 6 active sync /dev/sdh1
And sdf1 gives,
this 1 8 33 1 active sync /dev/sdc1
0 0 8 65 0 active sync /dev/sde1
1 1 8 33 1 active sync /dev/sdc1
2 2 8 1 2 active sync /dev/sda1
3 3 0 0 3 faulty removed
4 4 8 97 4 active sync /dev/sdg1
5 5 8 17 5 active sync /dev/sdb1
6 6 8 81 6 active sync /dev/sdf1
Note two things, 1) this disk thinks it is sdc and 2) it also thinks sda is part of the raid. It's been ages since this was the case. And it was because my previous system probed the disks differently. sda1 today is my root partition.
So the burning question is - is there a way for me to find out what order I should specify the disks when recreating the raid with --assume-clean ??
Sorry for a lengthy post and thanks for your time,
/Stefan