GrepBoard/Manuals
605 manuals ·

Fix Ceph LARGE_OMAP_OBJECTS: find the object and reshard

·Tested on Ceph Tentacle 20.2 official docs and source · 2026-10·Test scope ↓·8 steps

Ceph LARGE_OMAP_OBJECTS means deep scrub found an omap object over the key or size limit. Find it in the cluster log, then reshard the RGW bucket index.

text
LARGE_OMAP_OBJECTS<N> large omap objects<N> large objects found in pool '<pool>'Search the cluster log for 'Large omap object found' for more details.

LARGE_OMAP_OBJECTS means deep scrub found an omap object over the key-count or value-size threshold. Find the object in the cluster log, and if it is an RGW bucket index, fix it by adding shards. The lines above are the health code and text from the Tentacle source (PGMap.cc), not captured output. The one cause the docs name is RGW bucket index objects without automatic resharding enabled. Raising the threshold only hides the warning; the object stays the same size.

The limits are 200000 keys in one object (osd_deep_scrub_large_omap_object_key_threshold) and 1_G of summed value size (osd_deep_scrub_large_omap_object_value_sum_threshold). Crossing either one is enough.

[1] Read the detail line to see which pool is affected.

console
$ ceph health detail

The pool name follows large objects found in pool. A name like <zone>.rgw.buckets.index (by default default.rgw.buckets.index) is the RGW bucket index pool.

[2] Search the cluster log for the object name and key count. Per the source, deep scrub writes this line at warn level to the cluster channel.

console
$ ceph log last 1000 warn cluster | grep 'Large omap object found'

The line you are looking for has this shape (source text, not captured output):

text
Large omap object found. Object: <object> PG: <pg> (<mpg>) Key count: <keys> Size (bytes): <bytes>

The monitors keep only the last 10000 log entries by default (mon_log_max). If nothing appears, raise the number or check /var/log/ceph/ceph.log. On a cephadm deployment that file may not exist (enabling ceph.log under cephadm).

[3] Use the object name to pick a path. If the Object field contains .dir.<marker> and the pool from [1] is an index pool, it is an RGW bucket index, so continue with [4]. A sharded index has a shard index after the marker; an unsharded one does not.

[4] Find the buckets with too many entries per shard. --warnings-only lists only buckets nearing or over the current max objects per shard.

console
# radosgw-admin bucket limit check --warnings-only

The docs describe the marker as a bucket ID, but a procedure for turning it into a bucket name could not be found. Use this list to narrow it down.

[5] Find out why dynamic resharding did not handle it.

console
$ ceph config dump | grep -E 'rgw_dynamic_resharding|rgw_max_dynamic_shards'$ ceph config show <rgw_daemon> | grep -E 'rgw_dynamic_resharding|rgw_max_dynamic_shards'# radosgw-admin reshard list# radosgw-admin reshard status --bucket <bucket_name>

The first line shows the entries stored in the monitor configuration database and their scope (<who>), so write the result down. ceph config get falls back to the compiled-in default when nothing is stored, so it cannot tell you whether an entry exists. The second line shows the running gateway's non-default settings with their source (on cephadm, get the daemon name from ceph orch ps). A configuration file overrides the database, so if the source is a file or a runtime override, changing the database does nothing; fix that source instead.

The defaults are rgw_dynamic_resharding true, rgw_max_objs_per_shard 100000 objects per shard, and rgw_max_dynamic_shards 1999 (user-requested resharding is not limited by this cap). If reshard status says in-progress, wait for it to finish. Releases before Reef do not support dynamic resharding in a multisite deployment, so on multisite read the docs for your release first.

If a stored false was keeping it off, set true at the scope you wrote down, then use the second line to confirm the gateway picked it up.

console
$ ceph config set <who> rgw_dynamic_resharding true$ ceph config show <rgw_daemon> rgw_dynamic_resharding

[6] Pick a shard count and add the bucket to the resharding queue. The docs say to anticipate the bucket's peak object count, aim for no more than 100000 entries per shard, and prefer a prime number. For an expected 5 million objects you need at least 50 shards, so use 53.

console
# radosgw-admin reshard add --bucket <bucket_name> --num-shards 53# radosgw-admin reshard list

A background thread works through the queue one task at a time. To run it now, use radosgw-admin reshard process. Tentacle can also shrink shards when objects go away, so if the bucket will grow again, set a floor with radosgw-admin bucket set-min-shards.

[7] Confirm it finished, then wait for the next deep scrub.

console
# radosgw-admin reshard status --bucket <bucket_name>$ ceph health detail

Per the source, the large omap object count is written back to PG stats only when a deep scrub finishes. So the warning stays until that PG's next deep scrub, even after resharding is done. If scrubs are behind schedule, see pgs not deep-scrubbed in time.

[8] Change a threshold only when you know the size and accept it. The key count stays the same; only the warning limit moves. Write down the first line's result (value and scope) before you change anything.

console
$ ceph config dump | grep osd_deep_scrub_large_omap_object$ ceph config set osd osd_deep_scrub_large_omap_object_key_threshold <keys>

The value-size setting works the same way, and either change reaches the warning only after the next deep scrub.

For health codes in general see reading ceph health detail.

#ceph#rgw#omap#reshard#health