RAID 1 disk is maked as Spare after replacement
Hi, one of two disks in my RAID 1 died so I replaced it.
When new disk has been added to array the sync process started and few minutes later it has become a Spare. How can I "force" the disk to be a regular part of an array? Code:
# cat /proc/mdstat But sdb2 is marked as Spare and won't get added to md1. The old disk was 500GB with 512B sectors and the new one is 1TB with 4KiB sector size. Can this be the root of the problem? Old disk had the same geometry as sda. The new disk is sdb. Code:
# fdisk -l /dev/sda Code:
# fdisk -l /dev/sdb So I assume all should be good. It's Fedora 2.6.35.14-97.fc14.x86_64 I'll welcome any advice. Thanks, Aas. |
Did you follow the correct procedure?
|
md0 is synced unlike md1 what does it mean?
Yes, that's what I've done. Except I haven't done sfdisk because the drives are not identical. So I partitioned the drive manualy to align partitions with physical sectors.
But I've noticed one interresting thing: "Note that in Linux Software RAID you can create RAID Arrays by mirroring partitions and not entire disks." This is imortatnt, because md0 is synced OK. So this has nothing to do with 4k sectors I assumed previously. Thank you for the link. Are there any other ideas that might help? I have tried to mark sdb2 as failed and readd it, but nothing changed. |
Lost in the dark.
I haven't found any clues that might suggest why this partition become a "spare".
Please any advice where may I look? There are precious customer's data in the RAID. Any advice is welcome here. Thaks. Aas. |
The procedure has always worked, both for me and others, as far as I'm aware. Are you sure you didn't skip any steps?
|
Except sfdisk, no. As I've said before, I had to manually partition the new drive because of it's 4KiB sector size, to align partitions to physical sectors.
Maybe it is because of the new 4KiB sector size disk, but I just can't figure out why this could be a problem or how to get it working. This is not my first disk replacement and it worked well every other time. So I assume the cause is the new disk's geometry. |
Quote:
U must create the partition scheme identically to make RAID type1 works corectly. Try not to skip the sfdisk step. |
Solved
I finaly found the root cause of the sync problem.
It was because the other disk had some bad blocks so the sync process failed at some point. I created new md2 device and added it to vg00 as a new PV. Then pvmove all data off the bad md1 array, destroyed it, rebuilt initrd, removed the second disk and booted up off the new one. Thank you for the support. I hope this helps someone. |
All times are GMT -5. The time now is 10:31 AM. |