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?
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?