I'm currently working on RHEL 8.9 and attempting to harden a VM of mine, and looking into applying the crypto_LUKS encryption to my active partitions. When I check my partitions using the blkid
command, I see two partitions with the "xfs" type, one with "swap" type, and one with "LVM2_member" type. My goal is to convert all of them to the crypto_LUKS format.
Whenever I attempt to use the cryptsetup luksFormat /dev/partitionname
command, I encounter an issue. The machine states that these devices are currently in use, preventing me from proceeding with the operation.
Is there a workaround for this situation, or will I need to start over from scratch and configure this encryption format during the initial RHEL installation?
Thank you very much!