Because the Proxmox installer doesn't allow for installing on an encrypted partition, we have to do a normal install and then copy it across to the encrypted drive, as explained here https://forum.proxmox.com/threads/adding-full-disk-encryption-to-proxmox.137051/ but that's a very laborious process.
I've found that I can use dd to copy across the EFI and Boot partitions (p1 and p2), and use lvcreate to make a snapshot of the root partition, which is a LV on p3, and then dd the snapshot onto the new drive inside the unlocked encrypted p3, but we can't make snapshots of thin-pools or thin-volumes, so I'm looking for a way to copy those across, as even with PBS backups it's very slow and tedious having to manually restore all the VMs and LXCs one by one.
I assume it's not possible to use Clonezilla to copy p3, because that will just replace the encrypted p3 on the second drive with the unencrypted p3 from the first drive. Is there any other way I can boot into something, unlock the encrypted partition and then copy across the data, volumes, etc. from the unencrypted p3 to the encrypted p3 without wiping it and losing the encryption?
I've found that I can use dd to copy across the EFI and Boot partitions (p1 and p2), and use lvcreate to make a snapshot of the root partition, which is a LV on p3, and then dd the snapshot onto the new drive inside the unlocked encrypted p3, but we can't make snapshots of thin-pools or thin-volumes, so I'm looking for a way to copy those across, as even with PBS backups it's very slow and tedious having to manually restore all the VMs and LXCs one by one.
I assume it's not possible to use Clonezilla to copy p3, because that will just replace the encrypted p3 on the second drive with the unencrypted p3 from the first drive. Is there any other way I can boot into something, unlock the encrypted partition and then copy across the data, volumes, etc. from the unencrypted p3 to the encrypted p3 without wiping it and losing the encryption?