r/ceph • u/Signal-Bluejay5859 • 6d ago
Large omap objects stuck after resharding on single-zone cluster — bilog trim clears it but old generation's real keys remain (Reef 18.2.8)
Hey everyone,
Running into something I can't find a clean answer for, hoping someone's hit this before.
Setup: Ceph 18.2.8 via cephadm, single zone/zonegroup/realm (no multisite at all — sync status confirms zone is master, nothing syncing). Index pool is replicated x2.
Started with HEALTH_WARN: large omap objects, all in .rgw.buckets.index, spread across a handful of versioned buckets (Veeam backup repos) that had gone through dynamic resharding at some point.
Digging in, almost every flagged shard was mostly bilog entries — one shard had 920,910 omap keys and 920,833 of them were bilog (0_ prefix). Made sense once I realized: we're single-zone, so there's no sync consumer that ever trims bilog. It just piles up forever on every write, totally independent of resharding.
Trimmed it with bilog trim --bucket=<b> --bucket-id=<id> --gen=<N> per generation, double-checked the real key counts didn't move (diffed before/after), then re-scrubbed. Cleared most of it — went from 558 warnings down to 129, recovered 500M+ stale bilog entries along the way.
Here's where I'm stuck: those remaining 129 are all sitting on old (non-current) index generations of 7 buckets that already got resharded. Bilog is fully drained on all of them now — 0 entries — but the actual key count (object name + OLH + instance keys, since these are versioned) is still 400k-530k per shard depending on the bucket. Still over our threshold. bucket layout still shows these old generations in logs right next to the current one, and the .dir.* rados objects are still there per rados stat.
Ceph's multisite-reshard design doc mentions that once bilog trim catches up on an old generation, RGW is supposed to delete it and drop it from the layout. That's just not happening for us, even fully trimmed. My guess is that logic is multisite-only and never fires with no sync peer around, but I'm not sure.
Questions:
- Is there any way on 18.2.8 single-zone to actually retire one of these drained old generations?
- Is that generation-GC really gated on multisite sync status?
- Did a later version fix this for single-site too?
Can dump full bucket layout / rados stat output if useful.
Thanks,
0
u/NL-c-nan 5d ago edited 5d ago
Your text is way too long and probably AI-generated, nobody will read it.
Summarize your question(s) and compact the rest of your text.
Could you please share the output of:
radosgw-admin zonegroup get | jq '.zones[] | {name, log_data}'
I am wondering if it is true or false. As far as I know a single zone setup normally has it set to false and then RGW neither keeps bilogs nor holds on to old index generations after a reshard. If yours shows true, that could explain both.