OSD actions
ceph orch daemon add osd [hostname]:[device]
ex: ceph orch daemon add osd ceph-1:/dev/vdb,/dev/vdcMore Explanation
ceph orch apply osd --all-available-devices # Makes OSDs unmangeTo remove the osd:
ceph orch osd rm OSD_ID --zapTo add OSDs with the same host pattern:
service_type: osd
service_id: ssd_osd
placement:
hosts:
- ceph-1
- ceph-2
- ceph-3
spec:
data_devices:
paths:
- /dev/vdf
- /dev/vdg
- /dev/vde
crush_device_class: ssdTo apply the file:
ceph orch apply -i osd_SSD.yamlTo find out disk name with osd:
ceph device lsChange an OSD Device Class
To change an OSD to another device class use the following commands:
ceph osd crush rm-device-class osd.NUM
ceph osd crush set-device-class ssd osd.NUMLast updated