7.2. 列出放置组处于 过时、不活动 或未 清除 状态
失败后,放置组进入状态,如 degraded
或 peering
。这个状态表示故障恢复过程的正常进度。
但是,如果 PG 处于这些状态之一的时间比预期长,则可能代表更大的问题。监控器报告当放置组处于不最佳状态。
Ceph 配置文件中的 mon_pg_stuck_threshold
选项决定了放置组被视为 不活动
、unclean
或 stale
的秒数。
下表列出了这些状态及简短的说明:
状态 | 它代表什么 | 最常见的原因 | 查看 |
---|---|---|---|
| PG 无法服务读/写请求。 |
| |
| PG 包含没有复制所需次数的对象。某种阻止 PG 恢复。 |
| |
|
PG 的状态尚未由 |
|
先决条件
- 一个正在运行的 Red Hat Ceph Storage 集群。
- 节点的根级别访问权限。
流程
登录到 Cephadm shell:
示例
[root@host01 ~]# cephadm shell
列出卡住 PG:
示例
[ceph: root@host01 /]# ceph pg dump_stuck inactive [ceph: root@host01 /]# ceph pg dump_stuck unclean [ceph: root@host01 /]# ceph pg dump_stuck stale
其它资源
- 请参阅 Red Hat Ceph Storage Administration Guide 中的 Placement Group States 部分。