Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRUSH map 怎么用命令去定义? #1

Open
iwalke opened this issue Dec 8, 2024 · 0 comments
Open

CRUSH map 怎么用命令去定义? #1

iwalke opened this issue Dec 8, 2024 · 0 comments

Comments

@iwalke
Copy link

iwalke commented Dec 8, 2024

大佬,CRUSH map 怎么直接用命令去定义?通过 ceph osd getcrushmap -o crushmap.bin,去编辑怕容易出问题

https://github.com/blueboay/ceph-study/blob/master/Ceph%E5%AD%98%E5%82%A8%EF%BC%88%E4%B8%89%EF%BC%89Pool%E4%B8%8EPG.md#%E8%87%AA%E5%AE%9A%E4%B9%89crush%E8%BF%90%E8%A1%8C%E5%9B%BE

比如安装完是这样的

[root@ceph01 ~]# ceph osd tree
ID  CLASS  WEIGHT   TYPE NAME        STATUS  REWEIGHT  PRI-AFF
-1         0.43918  root default                              
-3         0.14639      host ceph01                           
 0    hdd  0.04880          osd.0        up   1.00000  1.00000
 1    hdd  0.04880          osd.1        up   1.00000  1.00000
 2    hdd  0.04880          osd.2        up   1.00000  1.00000
-5         0.14639      host ceph02                           
 3    hdd  0.04880          osd.3        up   1.00000  1.00000
 4    hdd  0.04880          osd.4        up   1.00000  1.00000
 5    hdd  0.04880          osd.5        up   1.00000  1.00000
-7         0.14639      host ceph03                           
 6    hdd  0.04880          osd.6        up   1.00000  1.00000
 7    hdd  0.04880          osd.7        up   1.00000  1.00000
 8    hdd  0.04880          osd.8        up   1.00000  1.00000

osd0, osd3, osd6 创建一个存储池 pool1,故障域是 osd,副本是2

osd1, osd2, osd4, osd5, osd7, osd8 创建一个存储池 pool2,故障域是 host,副本是 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant