We have a server (HP ProLiant ML10 Gen 9) that came with Two Identical Hard disks. It was assumed that the server supports hardware RAID 1 (Mirror), and the CentOS-7 was installed in it. But later we got to know that the server doesn't support Hardware RAID1 and also the software RAID1 was not configured properly.
[root@himalaya ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1.8T 0 disk
└─md126 9:126 0 1.8T 0 raid1
├─md126p1 259:0 0 200M 0 md
├─md126p2 259:1 0 1G 0 md
└─md126p3 259:2 0 1.8T 0 md
├─cl_himalaya-root 253:0 0 50G 0 lvm /
├─cl_himalaya-swap 253:1 0 7.8G 0 lvm [SWAP]
└─cl_himalaya-home 253:2 0 1.8T 0 lvm /home
sdb 8:16 0 1.8T 0 disk
├─sdb1 8:17 0 200M 0 part /boot/efi
├─sdb2 8:18 0 1G 0 part /boot
└─sdb3 8:19 0 1.8T 0 part
sr0 11:0 1 4.1G 0 rom
cat /proc/mdstat output shows like this
[root@himalaya ~]# cat /proc/mdstat
Personalities : [raid1]
md126 : active raid1 sda[0]
1953511424 blocks super external:/md127/0 [2/1] [U_]
md127 : inactive sda[0](S)
3160 blocks super external:imsm
unused devices: <none>
As you can see in the above pictures the boot partition is in drive sdb whereas the root (/) partition and other files are in the drive sda. Unfortunately the harddisk partitions are not identical. Now I want to create a software RAID1 without deleting my content from drive sda. So I kindly request someone to help me on how to move the boot partition from the drive sdb to drive sda. (the drive sdb can be formatted after moving the boot partitions to sda). and then how to create identical partitions and configure RAID1 Array.
Please Note: That Drive sdb seems to be failed/failing. And the /boot partition is located in this drive sdb. But before replacing the harddisk I want to find a way to fix this.
Thanks in Advance.