failed raid5 after ide cable malfunction.
Hello everybody!
I have a little trouble in getting the raid5 up and running again. What has happened so far:
1. Booting the System
2. Ide cable had some troubles so 2 disks went "mad" during boot and raid couldn't get assembled.
(/dev/sda4 /dev/sdb2)
3. I forced poweroff because system wasn't responsible due to ATA connection problems.
4. after reboot the raid5 got up again, were clean, but attempted a resync.
5. during the resync the cable had troubles again, so those 2 devices were marked as spare.
6. i forced a poweroff again and reseated the cable.
7. I booted again but now all devices of the raid were marked as spare.
Is there a possibility to get the raid active without dataloss?
Here some infos:
cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md1 : inactive sdc2[2](S) sdb2[1](S) sda4[0](S)
709140864 blocks
unused devices: <none>
mdadm --detail /dev/md1
mdadm: md device /dev/md1 does not appear to be active.
Thx in advance
Stephan
Quoted 29 lines · stephan sperber
Hello everybody!
I have a little trouble in getting the raid5 up and running again. What has happened so far:
1. Booting the System
2. Ide cable had some troubles so 2 disks went "mad" during boot and raid couldn't get assembled.
(/dev/sda4/dev/sdb2)
3. I forced poweroff because system wasn't responsible due to ATA connection problems.
4. after reboot the raid5 got up again, were clean, but attempted a resync.
5. during the resync the cable had troubles again, so those 2 devices were marked as spare.
6. i forced a poweroff again and reseated the cable.
7. I booted again but now all devices of the raid were marked as spare.Is there a possibility to get the raid active without dataloss?
Here some infos:
cat/proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md1 : inactive sdc2[2](S) sdb2[1](S) sda4[0](S)709140864 blocksunused devices: <none>
mdadm --detail
/dev/md1
mdadm: md device/dev/md1does not appear to be active.
Quoted 8 lines
Thx in advance
Stephan--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Example (use your disks obviously):
# mdadm --assemble --force /dev/md3 /dev/sd[c-l]1
If that does not work, you can use Neil's advice from another thread:
Quoted 6 lines
Your only option at this stage is to re-create the array with the best devices. Create it will one device missing so that it won't try a resync.
e.g.mdadm -C
/dev/md0-l5 -n5/dev/hde1/dev/hdg1/dev/hdi1missing/dev/sda1
You would want -C /dev/md1 -l5 -n3 and then specify only two of the disks with one "missing"
See if this does it for you?
Justin.
# mdadm --assemble --force /dev/md3 /dev/sd[c-l]1 This hint did it :) Thank you for your great help!
Have a nice day.
Stephan
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Justin Piszcz
Sent: Wednesday, January 07, 2009 7:19 PM
To: stephan sperber
Cc: [email protected]
Subject: Re: failed raid5 after ide cable malfunction.
Quoted 8 lines · stephan sperber
Hello everybody!
I have a little trouble in getting the raid5 up and running again. What has happened so far:
1. Booting the System
2. Ide cable had some troubles so 2 disks went "mad" during boot and raid couldn't get assembled.
(/dev/sda4/dev/sdb2)
3. I forced poweroff because system wasn't responsible due to ATA
connection
Quoted 2 lines
problems.
4. after reboot the raid5 got up again, were clean, but attempted a
resync.
Quoted 10 lines
5. during the resync the cable had troubles again, so those 2 devices were marked as spare.
6. i forced a poweroff again and reseated the cable.
7. I booted again but now all devices of the raid were marked as spare.Is there a possibility to get the raid active without dataloss?
Here some infos:
cat/proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5]
[raid4]
Quoted 9 lines
[raid10]
md1 : inactive sdc2[2](S) sdb2[1](S) sda4[0](S)709140864 blocksunused devices: <none>
mdadm --detail
/dev/md1
mdadm: md device/dev/md1does not appear to be active.
Quoted 8 lines
Thx in advance
Stephan--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Example (use your disks obviously):
# mdadm --assemble --force /dev/md3 /dev/sd[c-l]1
If that does not work, you can use Neil's advice from another thread:
Quoted 6 lines
Your only option at this stage is to re-create the array with the best devices. Create it will one device missing so that it won't try a resync.
e.g.mdadm -C
/dev/md0-l5 -n5/dev/hde1/dev/hdg1/dev/hdi1missing/dev/sda1
You would want -C /dev/md1 -l5 -n3 and then specify only two of the disks with one "missing"
See if this does it for you?
Justin.
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html