
In short
- PGs incomplete or down mean Ceph cannot find an up-to-date copy and refuses to guess.
- Commands such as mark_unfound_lost, osd lost and force-create-pg make data loss permanent.
- Data on failed OSDs can often be exported with ceph-objectstore-tool and imported back.
How Ceph decides what is safe
Each pool has a size (number of copies, usually 3) and a min_size (copies needed to accept writes, usually 2). Each object belongs to a placement group (PG), and each PG lives on size OSDs chosen by CRUSH, ideally on different hosts.
When OSDs fail, the remaining copies of a PG elect the most current one, using the PG log. If none of the surviving copies can prove it is current, Ceph refuses to serve the PG.
The states that matter
| State | Meaning |
|---|---|
| degraded / undersized | Fewer copies than size, data available |
| down | The OSDs needed to decide which copy is current are not up |
| incomplete | The surviving copies do not cover the full history of the PG |
| unfound | Ceph knows objects exist but cannot find any copy of them |
ceph health detail lists the affected PGs, and ceph pg <pgid> query shows which OSDs Ceph is waiting for (blocked_by, down_osds_we_would_probe).
The first steps
- Stop the cascade: set
nooutto prevent further rebalancing, and do not restart healthy OSDs in a loop. - Find the failed OSDs and check whether their disks are really dead. An OSD that comes back up resolves most down and incomplete PGs on its own.
- Check RAM and network: OSDs that crash under memory pressure during recovery are a common cause of further failures.
Commands that make loss permanent
ceph osd lost <id>: declares the data on that OSD gone for good.ceph pg <pgid> mark_unfound_lost revertordelete: reverts objects to older versions or deletes them.ceph osd force-create-pg <pgid>: recreates the PG empty.- Setting
osd_find_best_info_ignore_history_lesto force a PG active with an incomplete copy.
Each of these can be correct as a last step. None of them should be the first.
Recovering PGs from failed OSDs
With BlueStore, the data of a failed OSD is still on its disk, as long as the disk is readable:
- Image the OSD disk if it shows errors, and work on the image.
- With the OSD stopped,
ceph-objectstore-tool --data-path /var/lib/ceph/osd/ceph-<id> --op list-pgsshows the PGs it holds. --op export --pgid <pgid> --file <file>exports a PG.- The export can be imported into another stopped OSD with
--op import, which then peers it back into the cluster.
If the BlueStore metadata (RocksDB on the DB device) is damaged, or the DB/WAL device was a separate SSD that failed, the OSD may not start at all. That is a lab case.
When the lab helps
- The OSD disks or their DB/WAL SSDs have physical failures.
- Several PGs are incomplete across many OSDs and the history is unclear.
- One of the commands above has already been used and VM disks (RBD images) are damaged.
We image the OSD devices, open BlueStore offline, extract the PG data and rebuild the RBD images or CephFS files from the objects.
Designing for failure
- size 3 and min_size 2, never min_size 1 on production data.
- CRUSH rules that place copies on different hosts, or racks in larger clusters.
- Separate DB/WAL SSDs only with their failure domain in mind: one SSD for several OSDs takes them all down together.
- Backups outside the cluster, for example with Proxmox Backup Server on separate storage.
See server data recovery, virtual machines data recovery, SAN and storage arrays data recovery and ZFS pool will not import: reading the messages and rewinding safely.
Frequently asked questions
Is a PG marked incomplete lost?
Not necessarily. Ceph is waiting for an OSD that held the current copy. If that OSD or its disk can be brought back, the PG recovers.
Should I use mark_unfound_lost to get the cluster healthy again?
Only after every OSD that could hold the objects has been checked. It reverts or deletes objects for good.
Can data be read from a dead OSD disk?
Often, yes. With ceph-objectstore-tool, PGs can be exported from a stopped OSD, or from an image of its disk.
Official sources and useful links
- Ceph documentation: Official documentation of Ceph: placement group states, OSD troubleshooting and the ceph-objectstore-tool.
- Proxmox VE wiki: Official wiki of Proxmox Virtual Environment: Ceph clusters, ZFS storage and backups.
Is your data important?
Do not try anything that could make the fault worse. The diagnosis is free and you get a fixed quote before any work starts.





