[SOLVED] encrypt existing osds

Gastondc

Well-Known Member
Aug 3, 2017
35
0
46
41
if you create an osd via the pve gui, there is a checkbox 'encrypt', nothing more to do than checking it ;)
 
Thanks.

I couldn't find a way to encrypt existing disks.

Nor did I have the option to restart the server. So I let you do what I did.

Make the decision to remove each ODS and re-add it with the "encrypt" option

Use the web GUI, on the node in question -> disk. I had 3 different behaviors when removing ODS:

1 - Some disks that I took out, I was able to add them without doing anything.

2 - If the disk was listed as lvm2_member

sgdisk -Z /dev/DISK sgdisk -g /dev/DISK

from now on he could add them up again.

3 - if Device_Mapper appears, you have to locate the device with the id:

1622758529617.png


lsblk

find your disk and run something like this:

dmsetup remove /dev/ceph-ddd95071-5a89-4ece-beeb-5498a806cc06/osd-block-ebf2e91e-83f1-4391-8490-232b71ca6530

from now on he could add them up again.



I hope that if any of you have the same problem this solution will help you.