Howto reconstruct RAID 1

[root@localhost Desktop]# rpm -q raidtools
raidtools-1.00.3-8

[root@localhost Desktop]# lsraid -p
[dev 9, 0] /dev/md0 30820DF2.C88E49A4.8199EFC8.5B50C228 online
[dev 8, 1] /dev/sda1 30820DF2.C88E49A4.8199EFC8.5B50C228 good

[dev 9, 2] /dev/md2 48187055.85CA8735.3F8BD232.CCE22ADE online
[dev 8, 2] /dev/sda2 48187055.85CA8735.3F8BD232.CCE22ADE good

[dev 9, 1] /dev/md1 659C9C98.404ED129.395B3D6B.05C72D8F online
[dev 8, 3] /dev/sda3 659C9C98.404ED129.395B3D6B.05C72D8F good

[dev 9, 4] /dev/md4 EF20974D.65B81CB1.54768137.6AFEA612 online
[dev 8, 5] /dev/sda5 EF20974D.65B81CB1.54768137.6AFEA612 good

[dev 9, 3] /dev/md3 1752253D.32E0DCA6.2639DD6C.2C36A72D online
[dev 8, 7] /dev/sda7 1752253D.32E0DCA6.2639DD6C.2C36A72D good

# reconstruction
# before reconstruct, you should fdisk the same size of previous partitions
# set id to fd “Linux raid autodetect”
# don’t forget to set active drive to boot
# raid hot add
[root@localhost ~]# raidhotadd /dev/md0 /dev/sdb1

# check status
[root@localhost ~]# cat /proc/mdstat
Personalities : [raid1]
md2 : active raid1 sdb2[1] sda2[0]
15727552 blocks [2/2] [UU]

md1 : active raid1 sdb3[1] sda3[0]
2096384 blocks [2/2] [UU]

md4 : active raid1 sdb5[1] sda5[0]
107860288 blocks [2/2] [UU]

md3 : active raid1 sdb7[1] sda7[0]
8385792 blocks [2/2] [UU]

md0 : active raid1 sdb1[1] sda1[0]
152512 blocks [2/2] [UU]