How To Re-Add Removed OSD

infinityM

Member
Dec 7, 2019
172
1
18
30
Hey Guys,

We made a buggerup and removed a harddrive from a server, then afterwards deleted the OSD using the UI.
Only after doing so realized the osd's data was not copied over completely yet. So we need to remount it to recover the missing pg.

How can we re-add the osd back into ceph, Keep in mind, the drive's partition still exists. I can see the OSD number if I call ceph-volume lvm list

====== osd.7 =======

[block] /dev/ceph-52d4561c-c402-4107-87bf-a2d801c11a73/osd-block-28d7c6a4-939a-4803-816c-e48d3636b844

block device /dev/ceph-52d4561c-c402-4107-87bf-a2d801c11a73/osd-block-28d7c6a4-939a-4803-816c-e48d3636b844
block uuid PKayWJ-ueCH-miZp-sdrs-dtsj-xInp-fGucDQ
cephx lockbox secret
cluster fsid 67f291f9-64f5-4216-9b05-9ecba78a579c
cluster name ceph
crush device class None
encrypted 0
osd fsid 28d7c6a4-939a-4803-816c-e48d3636b844
osd id 7
type block
vdo 0
devices /dev/sdb

What can I do to re-add the drive into ceph so it can recover the data?
 

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!