[SOLVED] encrypt existing osds

Gastondc

Well-Known Member
Aug 3, 2017
34
0
46
40
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!