In the simplest case where you have a separate physical device for booting (i.e. where kernel and initrd are loaded from), it is certainly possible with mdadm
. If you need to just mirror an existing drive, and don't have a space there for mdadm's superblock, you have to use array which is rebuilt on every boot, and you'll have to take extra care to ensure data integrity and avoid unnecessary reimaging on every boot (see the --assume-clean
option for mdadm
). If you can create a RAID with superblock things get much easier down the road.
If you are booting from the very device you want to mirror, one of the options muight actually be adding one extra device (preferably a small SSD or even CompactFlash card attached via an ATA adapter), boot from that and use the 1TB drive for data solely (or for data and rootfs).