Sorry folks, but I feel somewhat confused with determining the correct command to resynchronising a failed RAID.
I've read
http://wiki.contribs.org/Raid over and over again, but I simply fail to see the clear logic in how to determining which partition to rejoin
The output from
cat /proc/mdstat on this particular server reads:
# cat /proc/mdstat
Personalities : [raid1]
md2 : active raid1 sda2[0]
156143680 blocks [2/1] [U_]
md1 : active raid1 sda1[0] sdb1[1]
104320 blocks [2/2] [UU]
unused devices: <none>
...so please could someone confirm if my assumption here is correct?
If I understand correctly, the command to execute should be:
mdadm --add /dev/md2 /dev/sdb2
(It's not my server, so I really want to be 100% sure...)