New Ceph OSD not showing up

ben90818532

Active Member
Sep 20, 2017
23
1
43
33
Hey folks,

Reporting a solution for a problem I saw just recently with a new OSD not showing up in Proxmox web GUI or "ceph osd tree".

To resolve I erased the drive (sda):
dd if=/dev/zero of=/dev/sda bs=1M count=1024 conv=fdatasync

Created a new OSD:
pveceph createosd /dev/sda

Get the bootstrap OSD key:
ceph auth get client.bootstrap-osd

Replace the key in: /var/lib/ceph/bootstrap-osd/ceph.keyring
With the key from the previous step above

Activate the OSD
ceph-disk activate --reactivate /dev/sda1

Check Proxmox OSD web gui

Note the problem may not be the same depending on the issue, you take full responsibility for ensuring you understand each command before entering it, the above commands can cause data loss. I am not responsible if you break your system.
 
The OSD was intially created using the GUI, I then followed the steps in the above post.

It's probably possible to fix the issue by just running the last few steps although I didn't test it.
 

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!