Secondary storage encryption

Hallo! I just add HDD disk to qubes and im trying make LUKS encryption but i get error that disk is in use. Did I need to delete volume group and thin pool and then make cryptosetup? If im right can anybody tell me how to do that? Because i cant find proper solution in google. I will be grateful!

If you have volume group on secondary storage then you need to deactivate it first before you can make changes to it:
Find out the secondary storage volume group name:
sudo vgs
Deactivate this volume group:
sudo vgchange -an <volume group name>

1 Like