crushmap replicarule
kurti2k
12 Posts
June 4, 2021, 12:57 pmQuote from kurti2k on June 4, 2021, 12:57 pmHello, 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
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
admin
2,921 Posts
June 4, 2021, 1:19 pmQuote from admin on June 4, 2021, 1:19 pmYes 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
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
kurti2k
12 Posts
June 4, 2021, 1:30 pmQuote from kurti2k on June 4, 2021, 1:30 pmok 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 ?
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 ?
admin
2,921 Posts
June 4, 2021, 5:19 pmQuote from admin on June 4, 2021, 5:19 pmceph 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
}
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
}
crushmap replicarule
kurti2k
12 Posts
Quote from kurti2k on June 4, 2021, 12:57 pmHello, 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
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
admin
2,921 Posts
Quote from admin on June 4, 2021, 1:19 pmYes 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
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
kurti2k
12 Posts
Quote from kurti2k on June 4, 2021, 1:30 pmok 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 ?
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 ?
admin
2,921 Posts
Quote from admin on June 4, 2021, 5:19 pmceph 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
}
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
}