This guide shows how to migrate data drives from an old server to a new machine. This works when the old server is still accessible. My setup is 2 HDD → RAID 1 → LVM2 → LUKS → ext4 so it is very important to do all the steps in the correct sequence as outlined below. In my setup all data is mounted as /home.
sudo umount /home
update-initramfs -u
sudo cryptsetup luksHeaderBackup /dev/mapper/vg_data2-lv_home --header-backup-file /path/to/backup/header.img sudo cryptsetup luksErase /dev/sdb1 sudo cryptsetup luksHeaderRestore /dev/sdb1 --header-backup-file /path/to/backup/header.img
https://askubuntu.com/questions/529843/move-raid-1-array-to-new-system/529845#answers-header