Forums

Home / Forums

You need to log in to create posts and topics. Login · Register

crushmap replicarule

Hello, is it possible to distinguish between ssd & hdd where which pool is stored using the crushmap

is it also possible to distinguish between the size when you have 1.2TB SAS & 600GB SAS drives ?

 

best regards marcel

Yes when you create pool, you specify the crush rule,  we have pre-configured rule templates for SSD and HDD.

For pools by disk size, you can create custom class

ceph osd crush set-device-class SAS600G  osd.X osd.Y
then you will need to create a crush rule to refer to this new class, then create a pool to use this rule

ok thanks
i have 33 ssd & 144 1,2tb drives and some 600gb drives but want to assign them to different pools do i have to list each osd by name ?

can you please give me an example ?

ceph osd crush rm-device-class osd.X osd.Y
ceph osd crush set-device-class SAS600G osd.X osd.Y

{
id XX
type replicatedmin_size 1
max_size 10step take default class SAS600G
step chooseleaf firstn 0 type host
step emit
}