GrepBoard/Manuals
605 manuals ·

Diagnose Ceph OBJECT_UNFOUND

·Tested on Ceph Tentacle 20.2 official docs and v20.2.0 source · 2026-11·Test scope ↓·4 steps

Ceph OBJECT_UNFOUND means no online OSD has the needed object version. Find the affected PGs and identify OSDs that might still hold the data.

OBJECT_UNFOUND blocks reads and writes to the affected objects. Ceph knows an object exists or was updated, but cannot find the version it needs for recovery on an online OSD. Ceph Tentacle health checks

[1] Find the affected placement group (PG) IDs in the health details.

console
$ ceph health detail

Under OBJECT_UNFOUND, record the ID following pg on each detail line. In v20.2.0, PGMap.cc reports the cluster-wide unfound count against the total object count, then breaks down the unfound count by PG. If the details end with (additional pgs left out for brevity), run ceph pg dump pgs and look for PGs with a nonzero UNFOUND count. For help reading the health report, see how to read ceph health detail. Health check source · PG map columns · ceph command manual

[2] List the unfound objects and the versions the PG needs. Replace the example PG ID 2.4 with one from step 1.

console
$ ceph pg 2.4 list_unfound
FieldWhat to read
num_missing and num_unfoundThe number of objects needing recovery and how many of those have no known source for the needed version.
objects[].oid, need, and haveThe object identity, the required version, and the version recorded as present. Check namespace when names match.
moreIf this is true, pass the last entry's entire oid JSON object as a single final argument to the same command.

For a list with several objects, record each oid with its need value. The source starts the next page just after the object ID supplied as the offset. Unfound Objects · PrimaryLogPG.cc

[3] Read might_have_unfound for OSDs that might hold the needed version. This PG-wide list is separate from each object's locations field. If available_might_have_unfound is false, or if you need to see which OSDs have already been checked, inspect recovery_state in the PG's peering status.

console
$ ceph tell 2.4 query

querying and not queried indicate probes in progress or yet to start. For osd is down, check whether that OSD can come back online with its original disk. query can show already probed entries, which list_unfound omits from the candidate list. When the OSD returns, rerun list_unfound for the same PG and ceph health detail to see how many objects remain unfound. Unfound Objects · PeeringState.cc

[4] Stop before declaring data lost while probes are pending or an OSD might still be recoverable. The documentation describes cases where a possible location is missing from the current candidate list. If an OSD was removed earlier, check that history as well.

#ceph#osd#pg#recovery#health