ceph中设置多幅本的问题

手动搭建一个ceph集群,有三个mon节点,每个mon节点有三个osd,定义的是host的桶,按说可以设置为3幅本,但是创建一个池后,一旦设置为2幅本或以上后就会出现问题,请大神帮我看看问题出是什么地方?
集群的详细信息:
ceph osd tree

D WEIGHT TYPE NAME UP/DOWN REWEIGHT PRIMARY-AFFINITY
-1 9.00000 root default
-2 3.00000 host mon1
0 1.00000 osd.0 up 1.00000 1.00000
1 1.00000 osd.1 up 1.00000 1.00000
2 1.00000 osd.2 up 1.00000 1.00000
-3 3.00000 host mon2
3 1.00000 osd.3 up 1.00000 1.00000
4 1.00000 osd.4 up 1.00000 1.00000
5 1.00000 osd.5 up 1.00000 1.00000
-4 3.00000 host mon3
6 1.00000 osd.6 up 1.00000 1.00000
7 1.00000 osd.7 up 1.00000 1.00000
8 1.00000 osd.8 up 1.00000 1.00000

cehp -s

cluster 1f97cce5-b04d-4da8-bbe0-b162ee6cac6c
health HEALTH_WARN
672 pgs peering
672 pgs stuck inactive
672 pgs stuck unclean
monmap e3: 3 mons at {mon1=192.168.111.101:6789/0,mon2=192.168.111.102:6789/0,mon3=192.168.111.103:6789/0}
election epoch 410, quorum 0,1,2 mon1,mon2,mon3
osdmap e560: 9 osds: 9 up, 9 in
pgmap v5854: 1024 pgs, 1 pools, 0 bytes data, 0 objects
383 MB used, 407 GB / 407 GB avail
672 creating+peering
352 active+clean

ceph health detial

HEALTH_WARN 672 pgs peering; 672 pgs stuck inactive; 672 pgs stuck unclean
pg 15.e0 is stuck inactive since forever, current state creating+peering, last acting [2,5,7]
pg 15.e2 is stuck inactive since forever, current state creating+peering, last acting [1,5,6]
pg 15.e3 is stuck inactive since forever, current state creating+peering, last acting [1,5,8]
pg 15.e4 is stuck inactive since forever, current state creating+peering, last acting [4,1,7]
pg 15.e5 is stuck inactive since forever, current state creating+peering, last acting [3,1,6]
pg 15.e6 is stuck inactive since forever, current state creating+peering, last acting [3,2,6]
pg 15.e8 is stuck inactive since forever, current state creating+peering, last acting [1,8,4]
pg 15.e9 is stuck inactive since forever, current state creating+peering, last acting [4,2,7]
pg 15.ea is stuck inactive since forever, current state creating+peering, last acting [2,4,8]
pg 15.eb is stuck inactive since forever, current state creating+peering, last acting [1,6,3]
pg 15.ec is stuck inactive since forever, current state creating+peering, last acting [0,4,8]
pg 15.ef is stuck inactive since forever, current state creating+peering, last acting [0,3,7]
pg 15.d1 is stuck inactive since forever, current state creating+peering, last acting [1,7,3]
pg 15.d3 is stuck inactive since forever, current state creating+peering, last acting [0,4,7]
pg 15.d4 is stuck inactive since forever, current state creating+peering, last acting [4,1,8]
pg 15.d5 is stuck inactive since forever, current state creating+peering, last acting [1,3,6]
pg 15.d6 is stuck inactive since forever, current state creating+peering, last acting [5,7,0]
.......
2018-02-28 10:05 添加评论 分享
已邀请:
0

hl10502

赞同来自:

小集群,PG数量设置1024有点大。

要回复问题请先登录注册

退出全屏模式 全屏模式 回复