ceph问题处理

发布时间 2023-06-01 09:15:19作者: zzyu

ceph常见问题处理:https://access.redhat.com/documentation/zh-cn/red_hat_ceph_storage/5/html/troubleshooting_guide/most-common-ceph-osd-errors

 

 

1问题报错1

health: HEALTH_WARN

1 monitors have not enabled msgr2

解决:ceph mon enable-msgr2

  

2、问题报错2

health: HEALTH_WARN

            mons are allowing insecure global_id reclaim

解决:

ceph config set mon mon_warn_on_insecure_global_id_reclaim false

ceph config set mon mon_warn_on_insecure_global_id_reclaim_allowed false

 

3、问题报错3

health: HEALTH_WARN

            application not enabled on 1 pool(s)

查看原因:

root@control ~(admin-openrc)]# 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 'images'

    use 'ceph osd pool application enable <pool-name> <app-name>', where <app-name> is 'cephfs', 'rbd', 'rgw', or freeform for custom applications.

分析

运行ceph health detail命令发现是新加入的存储池test没有被应用程序标记

 

解决:

ceph osd pool application enable images rbd

 

4、问题报错:

[root@controller1 ~]# ceph -s

  cluster:

    id:     2af51d38-db90-4a57-a43d-ea9f6ebd7482

    health: HEALTH_ERR

            1 scrub errors

            Possible data damage: 1 pg inconsistent

 

查看原因:

[root@controller1 ~]# ceph health detail

HEALTH_ERR 2 scrub errors; Possible data damage: 2 pgs inconsistent

OSD_SCRUB_ERRORS 2 scrub errors

PG_DAMAGED Possible data damage: 2 pgs inconsistent

    pg 9.17 is active+clean+inconsistent, acting [11,9]

    pg 9.12b is active+clean+inconsistent, acting [9,11]

 

分析:

Osd.8  状态发生了down状态,引发了pg损坏

 

解决:

[root@controller1 ~]# ceph pg repair 9.17

[root@controller1 ~]# ceph pg repair 9.12b