I have a server running Ubuntu 12.04 LTS with only a single drive. There are 2 more empty hot swap bays in the chassis. I want to add a little redundancy by adding a RAID 1 to the system.
The current single disk was partitioned with ubunutu LVM. The /boot partition is a separate ext2 partition.
The LVM partitions: /dev/mapper/vg-home /dev/mapper/vg-usr /dev/mapper/vg-usr /dev/mapper/vg-root
I obviously don't want to lose any data, I'm trying to prevent reinstalling the OS and reconfiguring everything. (The machine is used for scientific computations, it has an attached QNAP system for data storage).
When performing read / write operations on /home one of my users was getting I/O errors. I suspect the sata controller was failing, there has been some issues in the past with bad sata cables. I decided to add a SATA controller, and now I'm looking to setup a RAID 1 just in case the errors are produced by a failing hard disk. I am open to more options but I want to replace the possibly failing drive completely with 2 new ones in a raid array.
I am thinking this: Right now I installed 2 new drives into the system that are empty. I am going to configure a hardware raid 1 array on the two new drives. Use either clonezilla or dd and clone the current single OS disk to the raid array remove the original OS disk and boot up to the new array
Would this work? Would I have to modify the /boot partition to be able to boot to the new raid? Not sure if its possible since there are LVM partitions
Thank you, any input appreciated. Also open to other options.