当前位置:网站首页>ceph 创建存储池提示pool size is bigger than the crush rule max size
ceph 创建存储池提示pool size is bigger than the crush rule max size
2022-07-19 05:16:00 【初码诛仙】
在一次纠删存储测试中,发现删掉的纠删存储池使用如下命令设置了一个新的纠删profile:
ceph osd erasure-code-profile set ec_profile_42 k=4 m=2 crush-failure-domain=osd
再使用如下命令从新创建的时候:
ceph osd pool create china_ec 16 16 erasure ec_profile_42
奇迹般的出现了如下提示:
Error EINVAL: pool size is bigger than the crush rule max size
既然提示的是crush rule max size,我们来查看一下集群的crush rule:
ceph osd crush rule ls
输出如下:
replicated_rule
chia_ec
china_ec
erasure-code
咦,明明我们已经使用[ceph osd pool delete china_ec china_ec --yes-i-really-really-mean-it]删除了china_ec存储池,为啥还会有china_ec的crush rule?
其实问题就出在这里,ceph集群中,删除存储池的时候,crush rule并不会被删除。我们使用如下命令查看一下china_ec的crush rule信息:
ceph osd crush rule dump china_ec
结果如下:
{
"rule_id": 2,
"rule_name": "china_ec",
"ruleset": 2,
"type": 3,
"min_size": 3,
"max_size": 5,
"steps": [
{
"op": "set_chooseleaf_tries",
"num": 5
},
{
"op": "set_choose_tries",
"num": 100
},
{
"op": "take",
"item": -1,
"item_name": "default"
},
{
"op": "choose_indep",
"num": 0,
"type": "osd"
},
{
"op": "emit"
}
]
}
从输出汇总,我们可以看到原始的crush rule的max_size是5(其实就是k+m的值)。由于我们测试的新的纠删profile配置的k=4,m=2,按理max_size是等于6,比原始的crush rule的信息大,发生了冲突,所以出现了该报错。
解决方法
使用如下命令,删除原始的crush rule:
ceph osd crush rule rm china_ec
删除以后即可从新创建
边栏推荐
- PCL基本操作大全
- 网络安全学习(十五)ARP
- 【PTA】7-24 约分最简分式 (15 分)
- Leshan normal programming competition 2020-e: divide stones [01 backpacks]
- TCP three handshakes and four swings
- 雷达基础知识
- LVM (PV, PE, VG, LV)
- 使用gem5在fft上进行测试beta版本
- Leshan normal programming competition 2020-h: least common multiple [find the number of factors]
- 小于n的最大数字
猜你喜欢
网安学习(二十二)搭建公司和分公司虚拟专线
黑马程序员线程池
软件工程期末复习思维导图
网络安全学习(十七)VlAN
网安学习(二一)NAT 动态路由
FPGA skimming P4: use 8-3 priority encoder to realize 16-4 priority encoder, use 3-8 decoder to realize full subtracter, realize 3-8 decoder, use 3-8 decoder to realize logic function, and use data se
Unreal Engine learning (I)
使用google cloud部署基于flask的网站
网络安全学习(十二)OSI与TCP
黑马程序员线程安全问题
随机推荐
Network Security Learning (21) NAT dynamic routing
Leshan normal programming competition 2020-b: design web page [prime number]
Unreal Engine learning (2)
虚幻引擎学习(2)
黑马程序员网络通信三要素
关于在终端下使用npm命令,安装错误问题解决(自身经历)
Thinkphp5 verification code
Network Security Learning (XXIV) transport layer protocol
CSV intro
网络安全学习(十一)扫描与爆破
Leetcode:20. 有效的括号【三种思路+不同语言实现】
乐山师范程序设计大赛2020-E: 分石头【01背包】
乐山师范程序设计大赛2020-D: 后缀语言【STL】
RISC_V交叉编译环境(国内镜像 避坑)
第四次实验nat
网络安全学习(十六)
Qt解决大量重复数据的操作
软件工程期末复习思维导图
乐山师范程序设计大赛2020- H: 最小公倍数【求因子个数】
ZTE ZXR10 5250 command hints