mon故障问题:
故障现象:health HEALTH_WARN 1 mons down, quorum 0,1 ceph-mon1,ceph-mon2
详细信息可以看下下面的博客,跟这个里面的描述差不多:
http://www.tuicool.com/articles/ju2uA3U
具体解决办法:
mon 故障处理:
[[email protected] ~]# ceph -s
cluster 00000000-0000-0000-0001-000000000010
health HEALTH_WARN 23 pgs degraded; 41 pgs peering; 31 pgs stale; 12 pgs stuck inactive; 24 pgs stuck unclean; recovery 7/60 objects degraded (11.667%); too few pgs per osd (4 < min 20); 4/45 in osds are down; 1 mons down, quorum 0,1,2,3 TDXY-ceph-02,TDXY-ceph-04,TDXY-ceph-05,TDXY-ceph-07
monmap e1: 5 mons at {TDXY-ceph-01=0.0.0.0:0/1,TDXY-ceph-02=10.10.120.12:6789/0,TDXY-ceph-04=10.10.120.14:6789/0,TDXY-ceph-05=10.10.120.15:6789/0,TDXY-ceph-07=10.10.120.17:6789/0}, election epoch 38, quorum 0,1,2,3 TDXY-ceph-02,TDXY-ceph-04,TDXY-ceph-05,TDXY-ceph-07
[[email protected] ~]# ceph mon remove TDXY-ceph-01
[[email protected] ~]# rm -rf /var/lib/ceph/mon/ceph-TDXY-ceph-01
[[email protected] ~]# ceph-mon --mkfs -i TDXY-ceph-01 --keyring /etc/ceph/ceph.mon.keyring
[[email protected] ~]# touch /var/lib/ceph/mon/ceph-TDXY-ceph-01/done
[[email protected] ~]# touch /var/lib/ceph/mon/ceph-TDXY-ceph-01/sysvinit
[[email protected] ~]# service ceph start mon