Repairing inconsistent placement groups

Due to an error during deep scrubbing, some placement groups (PGs) can include inconsistencies. Ceph reports such placement groups as inconsistent.

Before you begin

Before you begin, be sure that you have root-level access to the Ceph Monitor node.

About this task

The following is an example of a report with an inconsistent placement group.
HEALTH_ERR 1 pgs inconsistent; 2 scrub errors
pg 0.6 is active+clean+inconsistent, acting [0,1,2]
2 scrub errors
Important: Only certain inconsistencies can be repaired.
Do not repair the placement groups if the Ceph logs include the following errors:
PG.ID shard OSD: soid OBJECT digest DIGEST != known digest DIGEST
PG.ID shard OSD: soid OBJECT omap_digest DIGEST != known omap_digest DIGEST
If any of these errors occur, contact IBM Support.

For more information, see Inconsistent placement groups and Listing placement group inconsistencies.

Procedure

Repair the inconsistent placement group.
ceph pg repair ID

Replace ID with the ID of the inconsistent placement group.