手动设置class
[root@ceph02 ~]# ceph osd crush rm-device-class osd.0 osd.1 osd.2
done removing class of osd(s): 0,1,2
[root@ceph02 ~]# ceph osd crush set-device-class ssd osd.0 osd.1 osd.2 osd.3
Error EBUSY: osd.3 has already bound to class 'hdd', can not reset class to 'ssd'; use 'ceph osd crush rm-device-class <id>' to remove old class first
[root@ceph02 ~]# ceph osd crush set-device-class ssd osd.0 osd.1 osd.2
set osd(s) 0,1,2 to class 'ssd'
[root@ceph02 ~]# ceph osd crush set-device-class ssd osd.12 osd.13 osd.14
Error EBUSY: osd.12 has already bound to class 'hdd', can not reset class to 'ssd'; use 'ceph osd crush rm-device-class <id>' to remove old class first
[root@ceph02 ~]# ceph osd crush rm-device-class osd.12 osd.13 osd.14
done removing class of osd(s): 12,13,14
[root@ceph02 ~]# ceph osd crush set-device-class ssd osd.12 osd.13 osd.14
set osd(s) 12,13,14 to class 'ssd'