mdadm: raid1 mirror's spare won't activate
g'day Guys and girls!
So... I'm stumped... Basicly I had a faulty sata cable, ran the server degraded while getting a new cable, shut it down, installed the cable and booted it up and for some reason I can't get it to become active again.. Through numerous google searches on this problem I've come up with null, I've zeroed the super block, re-formatted, removed 512 KB of the beginning of the drive and still, she doesn't want to activate.. she syncs up with "Spare synchronizing" finishes and drops back in to the spare group.. I would recreate the array but this is my root drive.. Some one point me in the right direction -.-" -Donny Running Ubuntu Server, latest updates.. mdadm -D /dev/md0 shows... Code:
root@LoM:~# mdadm -D /dev/md0 Code:
root@LoM:~# cat /proc/mdstat Code:
root@LoM:~# fdisk -l |
Shameless bump..
|
Have you tried to remove and re-add the the drive from the array? like:
Code:
mdadm /dev/md0 -r /dev/sdb1 |
Quote:
I've tried re-adding many time, with a combination of zeroing the super block, reformatting, dding away the first 512 KB of the hard drive and rebooting in case of some unknown cache Recently I forced the array in to a 1 device mirror with Code:
mdadm -G /dev/md0 --force -n 1 Code:
mdadm -G /dev/md0 -n 2 Code:
mdadm --add /dev/md0 /dev/sdb1 Code:
root@LoM:~# mdadm -D /dev/md0 Have I missed something? |
A more desperate bump...
|
I would recommend removing sdb1, zeroing the super block on sdb1 and then re-adding it. I've encountered re-adding problems in the past with a bad, but still readable, superblock.
Code:
mdadm /dev/md0 -r /dev/sdb1 |
So? any responses?
I ended up in the same situation, an active drive, a spare and a degraded array.... it's been a few months, were you able to figure out how to activate the spare?
|
g'day rleibman
It turns out in my situation the hard drive was failing but not reporting it back to SmartMon or mdadm, so mdadm failed silently giving no indication of why. Try with another hard drive if you have one and see if that activates, I gave the faulty 1 TB hard drive to a mate who partitioned it avoiding the faulty sector (Through trial and error) and to this day is running fine. Good luck, Hall |
All times are GMT -5. The time now is 07:28 AM. |