当前位置: 首页 > news >正文

ceph修复pg inconsistent( scrub errors)

异常情况

1、收到异常情况如下:
在这里插入图片描述

OSD_SCRUB_ERRORS 12 scrub errors
PG_DAMAGED Possible data damage: 1 pg inconsistentpg 6.d is active+remapped+inconsistent+backfill_wait, acting [5,7,4]

2、查看详细信息

登录后复制

#ceph health detail
HEALTH_ERR 12 scrub errors; Possible data damage: 1 pg inconsistent
OSD_SCRUB_ERRORS 12 scrub errors
PG_DAMAGED Possible data damage: 1 pg inconsistentpg 6.d is active+remapped+inconsistent+backfill_wait, acting [5,7,4]

2、预处理办法

集群出现pg状态变为 inconsistent 状态,inconsistent状态是pg通过scrub检测到某个或者某些对象在副本之间出现了不一致

解决方法:

1.找到pgid

ceph pg dump | grep inconsistent

2.通过repair修复对应的pg

ceph pg repair pgid

完成
但是经过观察,并不能解决。

3、我的处理过程

找出异常的 pg,然后到对应的osd所在主机上修复。

[root@intelligence-b-10 ~]#  ceph osd find 5
{"osd": 5,"ip": "10.21.230.91:6802/2032","crush_location": {"host": "intelligence-b-12","root": "default"}
}
[root@intelligence-b-10 ~]#  ceph osd find 7
{"osd": 7,"ip": "10.21.230.92:6801/2059","crush_location": {"host": "intelligence-b-13","root": "default"}
}
[root@intelligence-b-10 ~]#  ceph osd find 4
{"osd": 4,"ip": "10.21.230.90:6800/2084","crush_location": {"host": "intelligence-b-11","root": "default"}
}

这里表示是主机intelligence-b-12
然后到 进行修复

1、停止osd

systemctl stop ceph-osd@5.service

2、刷入日志

ceph-osd -i 5 --flush-journal

3、启动osd

systemctl start ceph-osd@5.service

4、修复(一般不需要)

ceph pg repair 6.d

5、查看ceph的状态

ceph -s

在这里插入图片描述

http://www.lryc.cn/news/233468.html

相关文章:

  • 【论文精读】VOYAGER: An Open-Ended Embodied Agent with Large Language Models
  • Linux安装DMETL5与卸载
  • Office Word 中的宏
  • qt中d指针
  • 交易者最看重什么?anzo Capital这点最重要!
  • window 搭建 MQTT 服务器并使用
  • Prometheus+Ansible+Consul实现服务发现
  • 【原创】java+swing+mysql校园活动管理系统设计与实现
  • vscode中vue项目引入的组件的颜色没区分解决办法
  • uniapp: 实现pdf预览功能
  • 【Pytorch笔记】7.torch.nn (Convolution Layers)
  • MySQL内部组件与日志详解
  • 【LeetCode】94. 二叉树的中序遍历
  • IP-guard WebServer 命令执行漏洞复现
  • TensorFlow案例学习:图片风格迁移
  • 解密网络世界的秘密——Wireshark Mac/Win中文版网络抓包工具
  • 自学ansible笔记
  • 笔记53:torch.nn.rnn() 函数详解
  • 【Spring】使用三方包进行数据源对象(数据库)管理
  • EfficientNet:通过模型效率彻底改变深度学习
  • asp.net core mvc之 布局
  • 【QT HTTP】使用QtNetwork模块制作基于HTTP请求的C/S架构
  • R语言绘制精美图形 | 火山图 | 学习笔记
  • 远程创建分支本地VScode看不到分支
  • python后台框架简介
  • spring boot validation使用
  • Hadoop3.3.4分布式安装
  • SQL ALTER TABLE 语句||SQL AUTO INCREMENT 字段
  • 【源码系列】短剧系统开发国际版短剧系统软件平台介绍
  • JavaWeb[总结]