Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ceph-osd] improve osdfull reason and suggest workaround #982

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions hotsos/defs/scenarios/storage/ceph/ceph-mon/osd_unusual_raw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@ conclusions:
raises:
type: CephOSDWarning
message: >-
Found OSD(s) {bad_osds} with larger raw usage size than the combined
data+meta+omap usage. While a certain discrepancy is to be expected due to
Ceph's using space not accounted by data+meta+omap columns, these are more
than {limit}% and potentially indicate a bug in Ceph. If these OSDs appear
full or misbehave, please restart them and possibly file a bug in Ceph tracker.
Found OSD(s) {bad_osds} with larger raw usage size than data+meta+omap
combined. While a discrepancy is to be expected due to Ceph using space
not accounted by data+meta+omap columns, usage is greater than {limit}%
and likely indicates high discard ops sent to disk which is often
the case for workloads with frequent rewrites.

dosaboy marked this conversation as resolved.
Show resolved Hide resolved
If these OSDs appear full or misbehave please restart them.

If the problem persists (i.e. OSD restarts do not help) you should disable
bdev_async_discard for OSDs. For charmed Ceph, this option is controlled
via the bdev-enable-discard flag which should be set to 'disable'.
format-dict:
bad_osds: '@checks.osds_have_unusual_raw_usage.requires.value_actual:comma_join'
limit: hotsos.core.plugins.storage.ceph.CephCluster.OSD_DISCREPANCY_ALLOWED
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,14 @@ data-root:
- sos_commands/systemd/systemctl_list-unit-files
raised-issues:
CephOSDWarning: >-
Found OSD(s) osd.2 with larger raw usage size than the combined
data+meta+omap usage. While a certain discrepancy is to be expected due to
Ceph's using space not accounted by data+meta+omap columns, these are more
than 5% and potentially indicate a bug in Ceph. If these OSDs appear
full or misbehave, please restart them and possibly file a bug in Ceph tracker.
Found OSD(s) osd.2 with larger raw usage size than data+meta+omap
combined. While a discrepancy is to be expected due to Ceph using space
not accounted by data+meta+omap columns, usage is greater than 5%
and likely indicates high discard ops sent to disk which is often
the case for workloads with frequent rewrites.

If these OSDs appear full or misbehave please restart them.

If the problem persists (i.e. OSD restarts do not help) you should disable
bdev_async_discard for OSDs. For charmed Ceph, this option is controlled
via the bdev-enable-discard flag which should be set to 'disable'.
Loading