# ceph -s
cluster:
id: aa2c40ad-53bc-40a7-b7ea-74ae648c70e9
health: HEALTH_WARN
4 slow ops, oldest one blocked for 60002 sec, mon.node-1 has slo...
参考:
https://ceph.com/geen-categorie/ceph-manually-repair-object/
查看ceph状态
# ceph health detail
HEALTH_ERR 1 scrub errors; Possible data damage: 1 pg inconsistent
OSD_SCRU...
磁盘有问题导致好多pg需要修复,结果pg数据不一致修复完了,提示下面的错误。
告诉osd清除共享请求
ceph tell osd.38 clear_shards_repaired
修复所有pg
ceph health detail |awk '{print $2}'|grep -v xxx|xargs -i ceph pg repair {}
pg问题定位
# ceph health detail
HEALTH_ERR 33 scrub errors; Possible data damage: 6 pgs inc...
ceph版本
# ceph -v
ceph version 14.2.22 (ca74598065096e6fcbd8433c8779a2be0c889351) nautilus (stable)
ceph状态
# ceph -s
cluster:
id: 0a5412e0-073d-4245-92ea-8401c0b...
查看报错信息
# ceph health detail
HEALTH_WARN 3 daemons have recently crashed
RECENT_CRASH 3 daemons have recently crashed
osd.2 crashed on host compute02 at 2021-10-01 05...
查看池
# ceph osd pool ls
新建rbd块
# rbd create volumes/Test_pressure.img --size 100G --image-format 2
查看块信息
# rbd info -p volumes --image Test_pressure.img
rbd image 'Test_pr...
ceph扩容分为两种,一种横向扩容一种纵向扩容。
横向扩容:增加节点:scale out --增加更多的节点
纵向扩容:在单节点上增加更多的磁盘:scale up
1.osd纵向扩容
查看信息
# cd ceph-deploy/
# ceph-deploy disk list controller
要更换磁盘(删除其分区表)以准备与C...
# ceph -s
cluster:
id: 73c4cfc1-af4c-4be5-8ad4-fb0ff78b2efc
health: HEALTH_WARN
application not enabled on 3 pool(s)
mon is allowing...