Ceph SSD OSD marked as HDD?

fips

Renowned Member
May 5, 2014
175
7
83
Hi,

I have a 3 Node Ceph cluster, with serveral SAS OSDs and SSDs as their journal device.
Now I add my first SSD OSD as datastore (with itself as a jorunal).

Ceph set the Class of the SSD as "hdd" (with OSD type bluestore).
Why?
Can I change it?
Should I change it?
 
Ceph may sometimes fail to get the correct device class, with the following command you can change the device class.
Code:
ceph osd crush set-device-class
Top of my head, one reason could be a raid controller not forwarding the correct information.

Aside, dont' use RAID controllers, ceph likes to have its disks under control, use HBAs (IT-mode).
 
Ceph may sometimes fail to get the correct device class, with the following command you can change the device class.
Code:
ceph osd crush set-device-class
Top of my head, one reason could be a raid controller not forwarding the correct information.

Aside, dont' use RAID controllers, ceph likes to have its disks under control, use HBAs (IT-mode).

I tried to use the ceph osd crush set-device class ssd osd.12, but I am getting the following error:

Code:
no valid command found; 10 closest matches:
osd crush rule list
osd crush rename-bucket <srcname> <dstname>
osd crush weight-set ls
osd crush weight-set dump
osd crush weight-set create-compat
osd crush weight-set create <poolname> flat|positional
osd crush weight-set rm <poolname>
osd crush weight-set rm-compat
osd crush weight-set reweight <poolname> <item> <float[0.0-]> [<float[0.0-]>...]
osd crush weight-set reweight-compat <item> <float[0.0-]> [<float[0.0-]>...]
Error EINVAL: invalid command
 
Ok I figured out my problem. The correct command is:

ceph osd crush set-device-class ssd osd.12

I switched the class "ssd" and osd name "osd.12"
 
  • Like
Reactions: Soe Hoe

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!