OK so I wanted to make sure I explain this:
I powered my server off and manually removed
/dev/sda to emulate a drive failure. I powered the server back on and it booted fine however the RAID array was in a degraded state which is obvious since /dev/sda is missing. I then powered the server back off and re-added /dev/sda however the mdadm doesn't automatically initialize the drive. I had to manually re-add it with:
Code:
mdadm --manage /dev/md1 --add /dev/sda3
mdadm --manage /dev/md2 --add /dev/sda4
So now it appears to be re-synchronizing the mirror:
Code:
root ~ # cat /proc/mdstat
Personalities : [raid1]
md2 : active raid1 sda3[2] sdb3[1]
731977536 blocks [2/1] [_U]
[>....................] recovery = 0.5% (4303744/731977536) finish=194.1min speed=62469K/sec
My question now is if this drive /dev/sda was completely brand new and didn't have any partition tables on it, would I need to create them on the newly replaced /dev/sda or should 'mdadm' simply be able to do it w/o me having to run fdisk.