Ceph问题及解决办法

问题1

创建存储池之后出现 100.000% pgs not active,导致后续 rbd 命令执行时卡住不返回?

解决办法:

cd /etc/ceph/
ceph osd getcrushmap -o /etc/ceph/crushmap
crushtool -d /etc/ceph/crushmap -o /etc/ceph/crushmap.txt
sed -i 's/step chooseleaf firstn 0 type host/step chooseleaf firstn 0 type osd/' /etc/ceph/crushmap.txt
grep 'step chooseleaf' /etc/ceph/crushmap.txt
crushtool -c /etc/ceph/crushmap.txt -o /etc/ceph/crushmap-new
ceph osd setcrushmap -i /etc/ceph/crushmap-new
cd -

问题2

application not enabled on 1 pool(s)

解决办法:

$ ceph health detail
HEALTH_WARN application not enabled on 1 pool(s)
POOL_APP_NOT_ENABLED application not enabled on 1 pool(s)
    application not enabled on pool 'data-pool'
    use 'ceph osd pool application enable <pool-name> <app-name>', where <app-name> is 'cephfs', 'rbd', 'rgw', or freeform for custom applications.

$ ceph osd pool application enable data-pool rbd
enabled application 'rbd' on pool 'data-pool'

$ ceph -s
  cluster:
    id:     39d6281e-2563-4f00-9369-0122a03e24d0
    health: HEALTH_OK
 ...

问题3

feature set mismatch, my 106b84a842a42 < server’s 40106b84a842a42, missing 400000000000000,客户端版本低于服务端?

解决办法:

ceph osd crush tunables hammer
ceph osd crush reweight-all

查看映像的 features:

$ rbd info data-pool/foo
rbd image 'foo':
	...
	features: layering, exclusive-lock, object-map, fast-diff, deep-flatten

关掉除 layering 外的其他 features:

rbd feature disable data-pool/foo deep-flatten
rbd feature disable data-pool/foo fast-diff
rbd feature disable data-pool/foo exclusive-lock

问题4

crush map has legacy tunables (require firefly, min is hammer)

解决办法:

$ ceph osd crush tunables optimal
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值