1、报错一 s=STATE_CONNECTING_WAIT_CONNECT_REPLY_AUTH pgs=0 cs=0 l=1).handle_connect_reply connect got BADAUTHORIZER 解决方案 重启所有节点ceph systemctl restart ceph.target 2、报错二 Error EPERM: pool deletion is disabled; you must first set the mon_allow_pool_delete config option to true before you can destroy a pool 解决方案: [mon] mon allow pool delete = true 重启osd进程 systemctl restart ceph.target 3、报错三 ceph集群全部更换IP地址 1、修改/etc/ceph/ceph.conf文件中定义的IP地址 2、重新生成monmap文件 monmaptool --create --generate -c /etc/ceph/ceph.conf /etc/ceph/monmap ceph-mon -i node3 --inject-monmap /etc/ceph/monmap 4、报错四 application not enabled on 1 pool(s) 将群集标记为完全升级到Luminous版本后,将启用一项新功能:应用程序池标记。application pool tags 如详细的运行状况消息所示,可以通过为列出的每个池运行“ceph osd pool application enable ”来禁用这些警告。 参数是自由格式的,但我们建议您对RBD相关池使用“rbd”,对RGW相关池使用“rgw”。不需要手动标记CephFS池。 ceph osd pool application enable 注意: 1、与CephFS相关的池自动标记为“cephfs” 2、包含“rbd”的池名称或名为“images”,“volumes”,“backups”或“vms”的池会自动标记为“rbd” 3、包含“.rgw”,“。log”,“。agent-log”,“。usage”或“.users”的池名称会自动标记为“rgw” 4、rbd pool init 将自动标记rbd池 5、应用程序池标记的缺失或存在不会影响Luminous集群的行为。 5、报错五 ceph osd pool ls detail 标记 removed_snaps [1~3] pool创建快照之后无法创建image,可添加配置 rbd_validate_pool = true 之后可以创建。 创建了image的pool无法创建pool快照。 ceph有两种模式的快照:pool快照、image快照。 https://cloud.tencent.com/developer/article/1177980 6、报错六 5 slow ops, oldest one blocked for 1279 sec, daemons [mon.node2-6,mon.node3-7] have slow ops. 原因:mon或者osd共享磁盘驱动器或在虚拟机上部署ceph集群 解决方案: systemctl restart ceph.target 7、报错七 在创建激活osd的过程中_open_fsid (2) No such file or directory 原因:osd之前被创建过有osd的元数据 解决方案: ceph-volume lvm zap cephg/block7 8、报错八 3 monitors have not enabled msgr2 解决方案:ceph mon enable-msgr2 8、报错九 Possible data damage: 1 pg inconsistent # 查看出错的pg id ceph health detail # 查看出错对象详细信息 rados list-inconsistent-obj 1.133 --format=json-pretty # 修复pg ceph pg repair 1.133