Yes. Here's the meat of the article:
Converting an existing 'live' filesytem on a single disk to a software RAID 1 mirror is not recommended and could potentially cause you to lose all your data. The best time to set up software RAID is either at installation time or before you intend using the filesystem.
However, if you have an existing filesystem and only now you realize that you want to convert it to RAID 1 (mirroring) then this document can help guide you in the right direction. It is extremely important that you backup all you critical data before trying any of this and if at all possible try this on a test machine before implementing in a live environment.
Essentially the command is straight forward to convert to RAID 1. Use a command similar to the one below. This assumes you have an identical second hard drive, /dev/hdc, that has been partitioned and formatted the same as the original drive, /dev/hda.
Code:
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/hda3 /dev/hdc3
This command will mirror all the data on the partition/dev/hda3 to the partition/dev/hdc3 and create the RAID device /dev/md0. You can follow the progress of the RAID creation by looking at the file /proc/mdstat. To dynamically watch your RAID device being created use the following command:
Code:
watch cat /proc/mdstat