Project

General

Profile

Actions

Bug #76562

closed
EC RF

Shallow scrub can mark PG inconsistent without inconsistent objects/snapsets, but no automatic deep scrub or repair is scheduled

Bug #76562: Shallow scrub can mark PG inconsistent without inconsistent objects/snapsets, but no automatic deep scrub or repair is scheduled

Added by Elias Carter 7 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
OSD
Pull request ID:
Tags (freeform):
Fixed In:
v21.0.0-1655-g5b0346053b
Released In:
v21.2.0~391
Upkeep Timestamp:
2026-10-24T01:53:25+00:00

Description

A PG hit a shallow scrub error and became active+clean+inconsistent, but both
rados list-inconsistent-obj and rados list-inconsistent-snapset returned empty
lists. osd_scrub_auto_repair was enabled and the error count was below
osd_scrub_auto_repair_num_errors, but the PG did not automatically schedule a
deep scrub or repair. A manually triggered deep scrub cleared the issue.

Environment:
- ceph: 19.2.3
- osd_scrub_auto_repair: true
- osd_scrub_auto_repair_num_errors: 5

Observed health:

  HEALTH_ERR 1 scrub errors; Possible data damage: 1 pg inconsistent
  pg 1.c31 is active+clean+inconsistent, acting [25,142,224]

Inconsistent object/snapset detail was empty:

  $ rados list-inconsistent-obj 1.c31 --format=json-pretty
  {
      "epoch": 485829,
      "inconsistents": []
  }

  $ rados list-inconsistent-snapset 1.c31 --format=json-pretty
  {
      "epoch": 485829,
      "inconsistents": []
  }

Relevant PG query fields:

  state: active+clean+inconsistent

  last_scrub:       487402'20453504
  last_scrub_stamp: 2026-05-12T15:21:02.367874+0000

  last_deep_scrub:       484480'20428546
  last_deep_scrub_stamp: 2026-05-11T08:25:24.039069+0000
  last_clean_scrub_stamp: 2026-05-11T08:25:24.039069+0000

  stat_sum:
    num_scrub_errors: 1
    num_shallow_scrub_errors: 1
    num_deep_scrub_errors: 0
    num_objects_repaired: 0

  scrubber:
    must_scrub: false
    must_deep_scrub: false
    must_repair: false
    schedule: scrub scheduled @ 2026-05-14T02:43:56.515

Why this seems like a bug:
The PG health state indicated possible data damage, but there were no
object-level or snapset-level inconsistency records for an operator or
automation to repair. Since a deep scrub cleared the condition, the OSD had a
safe recovery path available, but did not schedule it automatically. This leaves
the cluster in HEALTH_ERR until manual intervention, despite auto-repair being
enabled and the error count being within the configured threshold.

Suggested fix:
If a periodic shallow scrub sets num_shallow_scrub_errors and marks a PG
inconsistent, but no inconsistent objects or snapsets are recorded, the scrubber
should still schedule a follow-up deep scrub. If that deep scrub finds
repairable damage within osd_scrub_auto_repair_num_errors, normal auto-repair
logic can proceed. If the deep scrub is clean, the stale/inconclusive shallow
scrub inconsistency should be cleared.


Related issues 1 (0 open — 1 closed)

Copied to RADOS - Backport #78819: tentacle: Shallow scrub can mark PG inconsistent without inconsistent objects/snapsets, but no automatic deep scrub or repair is scheduledResolvedRonen Friedman

Actions

EC Updated by Elias Carter 7 months ago Actions #1

  • Component(RADOS) OSD added

LF Updated by Laura Flores 7 months ago Actions #2

  • Assignee set to Ronen Friedman

@Ronen Friedman can you take a look?

EC Updated by Elias Carter 6 months ago Actions #3

Laura Flores wrote in #note-2:

@Ronen Friedman can you take a look?

This just happened again, please let me know if more debug info is needed. I see the same thing where the PG has an empty list of inconsistencies but is in a damaged state. Deep scrubbing fixed the PG:

  Info: running 'ceph' command with args: [pg 1.31c1 query]
  {
      "snap_trimq": "[]",
      "snap_trimq_len": 0,
      "state": "active+clean+inconsistent",
      "epoch": 66415,
      "up": [
          206,
          111,
          202
      ],
      "acting": [
          206,
          111,
          202
      ],
      "acting_recovery_backfill": [
          "111",
          "202",
          "206" 
      ],
      "info": {
          "pgid": "1.31c1",
          "shared": "255",
          "last_update": "66415'2531212",
          "last_complete": "66415'2531212",
          "log_tail": "66412'2530298",
          "last_user_version": 2531212,
          "last_backfill": "MAX",
          "purged_snaps": [],
          "history": {
              "epoch_created": 1643,
              "epoch_pool_created": 7,
              "last_epoch_started": 57492,
              "last_interval_started": 57491,
              "last_epoch_clean": 57492,
              "last_interval_clean": 57491,
              "last_epoch_split": 1643,
              "last_epoch_marked_full": 0,
              "same_up_since": 57077,
              "same_interval_since": 57491,
              "same_primary_since": 57491,
              "last_scrub": "66229'2498429",
              "last_scrub_stamp": "2026-05-25T22:38:48.571877+0000",
              "last_deep_scrub": "55105'2360712",
              "last_deep_scrub_stamp": "2026-05-22T11:04:06.548433+0000",
              "last_clean_scrub_stamp": "2026-05-23T16:45:27.754337+0000",
              "prior_readable_until_ub": 0
          },
          "stats": {
              "version": "66415'2531212",
              "reported_seq": 5901343,
              "reported_epoch": 66415,
              "state": "active+clean+inconsistent",
              "last_fresh": "2026-05-26T18:12:48.622820+0000",
              "last_change": "2026-05-25T22:38:48.571911+0000",
              "last_active": "2026-05-26T18:12:48.622820+0000",
              "last_peered": "2026-05-26T18:12:48.622820+0000",
              "last_clean": "2026-05-26T18:12:48.622820+0000",
              "last_became_active": "2026-05-24T21:50:05.304555+0000",
              "last_became_peered": "2026-05-24T21:50:05.304555+0000",
              "last_unstale": "2026-05-26T18:12:48.622820+0000",
              "last_undegraded": "2026-05-26T18:12:48.622820+0000",
              "last_fullsized": "2026-05-26T18:12:48.622820+0000",
              "mapping_epoch": 57491,
              "log_start": "66412'2530298",
              "ondisk_log_start": "66412'2530298",
              "created": 1643,
              "last_epoch_clean": 57492,
              "parent": "0.0",
              "parent_split_bits": 14,
              "last_scrub": "66229'2498429",
              "last_scrub_stamp": "2026-05-25T22:38:48.571877+0000",
              "last_deep_scrub": "55105'2360712",
              "last_deep_scrub_stamp": "2026-05-22T11:04:06.548433+0000",
              "last_clean_scrub_stamp": "2026-05-23T16:45:27.754337+0000",
              "objects_scrubbed": 6135,
              "log_size": 914,
              "log_dups_size": 3000,
              "ondisk_log_size": 914,
              "stats_invalid": false,
              "dirty_stats_invalid": false,
              "omap_stats_invalid": false,
              "hitset_stats_invalid": false,
              "hitset_bytes_stats_invalid": false,
              "pin_stats_invalid": false,
              "manifest_stats_invalid": false,
              "snaptrimq_len": 0,
              "last_scrub_duration": 2,
              "scrub_schedule": "periodic scrub scheduled @ 2026-05-27T00:14:44.115113+0000",
              "scrub_duration": 1201,
              "objects_trimmed": 0,
              "snaptrim_duration": 0,
              "stat_sum": {
                  "num_bytes": 25941708800,
                  "num_objects": 6248,
                  "num_object_clones": 0,
                  "num_object_copies": 18744,
                  "num_objects_missing_on_primary": 0,
                  "num_objects_missing": 0,
                  "num_objects_degraded": 0,
                  "num_objects_misplaced": 0,
                  "num_objects_unfound": 0,
                  "num_objects_dirty": 6248,
                  "num_whiteouts": 0,
                  "num_read": 3139847,
                  "num_read_kb": 2168557639,
                  "num_write": 2516791,
                  "num_write_kb": 2520687423,
                  "num_scrub_errors": 1,
                  "num_shallow_scrub_errors": 1,
                  "num_deep_scrub_errors": 0,
                  "num_objects_recovered": 17517,
                  "num_bytes_recovered": 71715672064,
                  "num_keys_recovered": 0,
                  "num_objects_omap": 0,
                  "num_objects_hit_set_archive": 0,
                  "num_bytes_hit_set_archive": 0,
                  "num_flush": 0,
                  "num_flush_kb": 0,
                  "num_evict": 0,
                  "num_evict_kb": 0,
                  "num_promote": 0,
                  "num_flush_mode_high": 0,
                  "num_flush_mode_low": 0,
                  "num_evict_mode_some": 0,
                  "num_evict_mode_full": 0,
                  "num_objects_pinned": 0,
                  "num_legacy_snapsets": 0,
                  "num_large_omap_objects": 0,
                  "num_objects_manifest": 0,
                  "num_omap_bytes": 0,
                  "num_omap_keys": 0,
                  "num_objects_repaired": 0
              },
              "up": [
                  206,
                  111,
                  202
              ],
              "acting": [
                  206,
                  111,
                  202
              ],
              "avail_no_missing": [],
              "object_location_counts": [],
              "blocked_by": [],
              "up_primary": 206,
              "acting_primary": 206,
              "purged_snaps": []
          },
          "empty": 0,
          "dne": 0,
          "incomplete": 0,
          "last_epoch_started": 57492,
          "hit_set_history": {
              "current_last_update": "0'0",
              "history": []
          }
      },
      "peer_info": [
          {
              "peer": "111",
              "pgid": "1.31c1",
              "shared": "255",
              "last_update": "66415'2531212",
              "last_complete": "66415'2531212",
              "log_tail": "56304'2456642",
              "last_user_version": 2457584,
              "last_backfill": "MAX",
              "purged_snaps": [],
              "history": {
                  "epoch_created": 1643,
                  "epoch_pool_created": 7,
                  "last_epoch_started": 57492,
                  "last_interval_started": 57491,
                  "last_epoch_clean": 57492,
                  "last_interval_clean": 57491,
                  "last_epoch_split": 1643,
                  "last_epoch_marked_full": 0,
                  "same_up_since": 57077,
                  "same_interval_since": 57491,
                  "same_primary_since": 57491,
                  "last_scrub": "66229'2498429",
                  "last_scrub_stamp": "2026-05-25T22:38:48.571877+0000",
                  "last_deep_scrub": "55105'2360712",
                  "last_deep_scrub_stamp": "2026-05-22T11:04:06.548433+0000",
                  "last_clean_scrub_stamp": "2026-05-23T16:45:27.754337+0000",
                  "prior_readable_until_ub": 0
              },
              "stats": {
                  "version": "57489'2457584",
                  "reported_seq": 5758903,
                  "reported_epoch": 57490,
                  "state": "active+clean+remapped",
                  "last_fresh": "2026-05-24T21:50:02.991689+0000",
                  "last_change": "2026-05-24T21:50:02.939087+0000",
                  "last_active": "2026-05-24T21:50:02.991689+0000",
                  "last_peered": "2026-05-24T21:50:02.991689+0000",
                  "last_clean": "2026-05-24T21:50:02.991689+0000",
                  "last_became_active": "2026-05-24T21:37:29.893650+0000",
                  "last_became_peered": "2026-05-24T21:37:29.893650+0000",
                  "last_unstale": "2026-05-24T21:50:02.991689+0000",
                  "last_undegraded": "2026-05-24T21:50:02.991689+0000",
                  "last_fullsized": "2026-05-24T21:50:02.991689+0000",
                  "mapping_epoch": 57491,
                  "log_start": "56304'2456642",
                  "ondisk_log_start": "56304'2456642",
                  "created": 1643,
                  "last_epoch_clean": 57489,
                  "parent": "0.0",
                  "parent_split_bits": 14,
                  "last_scrub": "55384'2409112",
                  "last_scrub_stamp": "2026-05-23T16:45:27.754337+0000",
                  "last_deep_scrub": "55105'2360712",
                  "last_deep_scrub_stamp": "2026-05-22T11:04:06.548433+0000",
                  "last_clean_scrub_stamp": "2026-05-23T16:45:27.754337+0000",
                  "objects_scrubbed": 6064,
                  "log_size": 942,
                  "log_dups_size": 3000,
                  "ondisk_log_size": 942,
                  "stats_invalid": false,
                  "dirty_stats_invalid": false,
                  "omap_stats_invalid": false,
                  "hitset_stats_invalid": false,
                  "hitset_bytes_stats_invalid": false,
                  "pin_stats_invalid": false,
                  "manifest_stats_invalid": false,
                  "snaptrimq_len": 0,
                  "last_scrub_duration": 3,
                  "scrub_schedule": "queued for scrub",
                  "scrub_duration": 2380,
                  "objects_trimmed": 0,
                  "snaptrim_duration": 0,
                  "stat_sum": {
                      "num_bytes": 25636335616,
                      "num_objects": 6175,
                      "num_object_clones": 0,
                      "num_object_copies": 18525,
                      "num_objects_missing_on_primary": 0,
                      "num_objects_missing": 0,
                      "num_objects_degraded": 0,
                      "num_objects_misplaced": 0,
                      "num_objects_unfound": 0,
                      "num_objects_dirty": 6175,
                      "num_whiteouts": 0,
                      "num_read": 3090171,
                      "num_read_kb": 2163051183,
                      "num_write": 2443165,
                      "num_write_kb": 2448914645,
                      "num_scrub_errors": 0,
                      "num_shallow_scrub_errors": 0,
                      "num_deep_scrub_errors": 0,
                      "num_objects_recovered": 17517,
                      "num_bytes_recovered": 71715672064,
                      "num_keys_recovered": 0,
                      "num_objects_omap": 0,
                      "num_objects_hit_set_archive": 0,
                      "num_bytes_hit_set_archive": 0,
                      "num_flush": 0,
                      "num_flush_kb": 0,
                      "num_evict": 0,
                      "num_evict_kb": 0,
                      "num_promote": 0,
                      "num_flush_mode_high": 0,
                      "num_flush_mode_low": 0,
                      "num_evict_mode_some": 0,
                      "num_evict_mode_full": 0,
                      "num_objects_pinned": 0,
                      "num_legacy_snapsets": 0,
                      "num_large_omap_objects": 0,
                      "num_objects_manifest": 0,
                      "num_omap_bytes": 0,
                      "num_omap_keys": 0,
                      "num_objects_repaired": 0
                  },
                  "up": [
                      206,
                      111,
                      202
                  ],
                  "acting": [
                      206,
                      111,
                      202
                  ],
                  "avail_no_missing": [
                      "111",
                      "143",
                      "202",
                      "206" 
                  ],
                  "object_location_counts": [
                      {
                          "shards": "111,143,202",
                          "objects": 6175
                      }
                  ],
                  "blocked_by": [],
                  "up_primary": 206,
                  "acting_primary": 206,
                  "purged_snaps": []
              },
              "empty": 0,
              "dne": 0,
              "incomplete": 0,
              "last_epoch_started": 57492,
              "hit_set_history": {
                  "current_last_update": "0'0",
                  "history": []
              }
          },
          {
              "peer": "202",
              "pgid": "1.31c1",
              "shared": "255",
              "last_update": "66415'2531212",
              "last_complete": "66415'2531212",
              "log_tail": "56304'2456642",
              "last_user_version": 2457584,
              "last_backfill": "MAX",
              "purged_snaps": [],
              "history": {
                  "epoch_created": 1643,
                  "epoch_pool_created": 7,
                  "last_epoch_started": 57492,
                  "last_interval_started": 57491,
                  "last_epoch_clean": 57492,
                  "last_interval_clean": 57491,
                  "last_epoch_split": 1643,
                  "last_epoch_marked_full": 0,
                  "same_up_since": 57077,
                  "same_interval_since": 57491,
                  "same_primary_since": 57491,
                  "last_scrub": "66229'2498429",
                  "last_scrub_stamp": "2026-05-25T22:38:48.571877+0000",
                  "last_deep_scrub": "55105'2360712",
                  "last_deep_scrub_stamp": "2026-05-22T11:04:06.548433+0000",
                  "last_clean_scrub_stamp": "2026-05-23T16:45:27.754337+0000",
                  "prior_readable_until_ub": 0
              },
              "stats": {
                  "version": "57489'2457583",
                  "reported_seq": 5758897,
                  "reported_epoch": 57489,
                  "state": "active+remapped+backfilling",
                  "last_fresh": "2026-05-24T21:50:02.820435+0000",
                  "last_change": "2026-05-24T21:41:27.185455+0000",
                  "last_active": "2026-05-24T21:50:02.820435+0000",
                  "last_peered": "2026-05-24T21:50:02.820435+0000",
                  "last_clean": "2026-05-24T21:37:26.372400+0000",
                  "last_became_active": "2026-05-24T21:37:29.893650+0000",
                  "last_became_peered": "2026-05-24T21:37:29.893650+0000",
                  "last_unstale": "2026-05-24T21:50:02.820435+0000",
                  "last_undegraded": "2026-05-24T21:50:02.820435+0000",
                  "last_fullsized": "2026-05-24T21:50:02.820435+0000",
                  "mapping_epoch": 57491,
                  "log_start": "56304'2456642",
                  "ondisk_log_start": "56304'2456642",
                  "created": 1643,
                  "last_epoch_clean": 49824,
                  "parent": "0.0",
                  "parent_split_bits": 14,
                  "last_scrub": "55384'2409112",
                  "last_scrub_stamp": "2026-05-23T16:45:27.754337+0000",
                  "last_deep_scrub": "55105'2360712",
                  "last_deep_scrub_stamp": "2026-05-22T11:04:06.548433+0000",
                  "last_clean_scrub_stamp": "2026-05-23T16:45:27.754337+0000",
                  "objects_scrubbed": 6064,
                  "log_size": 941,
                  "log_dups_size": 3000,
                  "ondisk_log_size": 941,
                  "stats_invalid": false,
                  "dirty_stats_invalid": false,
                  "omap_stats_invalid": false,
                  "hitset_stats_invalid": false,
                  "hitset_bytes_stats_invalid": false,
                  "pin_stats_invalid": false,
                  "manifest_stats_invalid": false,
                  "snaptrimq_len": 0,
                  "last_scrub_duration": 3,
                  "scrub_schedule": "no scrub is scheduled",
                  "scrub_duration": 2380,
                  "objects_trimmed": 0,
                  "snaptrim_duration": 0,
                  "stat_sum": {
                      "num_bytes": 25636335616,
                      "num_objects": 6175,
                      "num_object_clones": 0,
                      "num_object_copies": 18528,
                      "num_objects_missing_on_primary": 0,
                      "num_objects_missing": 0,
                      "num_objects_degraded": 0,
                      "num_objects_misplaced": 1,
                      "num_objects_unfound": 0,
                      "num_objects_dirty": 6175,
                      "num_whiteouts": 0,
                      "num_read": 3090171,
                      "num_read_kb": 2163051183,
                      "num_write": 2443165,
                      "num_write_kb": 2448914645,
                      "num_scrub_errors": 0,
                      "num_shallow_scrub_errors": 0,
                      "num_deep_scrub_errors": 0,
                      "num_objects_recovered": 17517,
                      "num_bytes_recovered": 71715672064,
                      "num_keys_recovered": 0,
                      "num_objects_omap": 0,
                      "num_objects_hit_set_archive": 0,
                      "num_bytes_hit_set_archive": 0,
                      "num_flush": 0,
                      "num_flush_kb": 0,
                      "num_evict": 0,
                      "num_evict_kb": 0,
                      "num_promote": 0,
                      "num_flush_mode_high": 0,
                      "num_flush_mode_low": 0,
                      "num_evict_mode_some": 0,
                      "num_evict_mode_full": 0,
                      "num_objects_pinned": 0,
                      "num_legacy_snapsets": 0,
                      "num_large_omap_objects": 0,
                      "num_objects_manifest": 0,
                      "num_omap_bytes": 0,
                      "num_omap_keys": 0,
                      "num_objects_repaired": 0
                  },
                  "up": [
                      206,
                      111,
                      202
                  ],
                  "acting": [
                      206,
                      111,
                      202
                  ],
                  "avail_no_missing": [
                      "111",
                      "143",
                      "202" 
                  ],
                  "object_location_counts": [
                      {
                          "shards": "111,143,202",
                          "objects": 6176
                      }
                  ],
                  "blocked_by": [],
                  "up_primary": 206,
                  "acting_primary": 206,
                  "purged_snaps": []
              },
              "empty": 0,
              "dne": 0,
              "incomplete": 0,
              "last_epoch_started": 57492,
              "hit_set_history": {
                  "current_last_update": "0'0",
                  "history": []
              }
          }
      ],
      "recovery_state": [
          {
              "name": "Started/Primary/Active",
              "enter_time": "2026-05-24T21:50:05.297855+0000",
              "might_have_unfound": [],
              "recovery_progress": {
                  "backfill_targets": [],
                  "waiting_on_backfill": [],
                  "last_backfill_started": "MIN",
                  "backfill_info": {
                      "begin": "MIN",
                      "end": "MIN",
                      "objects": []
                  },
                  "peer_backfill_info": [],
                  "backfills_in_flight": [],
                  "recovering": [],
                  "pg_backend": {
                      "pull_from_peer": [],
                      "pushing": []
                  }
              }
          },
          {
              "name": "Started",
              "enter_time": "2026-05-24T21:50:04.035297+0000" 
          }
      ],
      "scrubber": {
          "active": false,
          "must_scrub": false,
          "must_deep_scrub": false,
          "must_repair": false,
          "need_auto": false,
          "scrub_reg_stamp": "2026-05-27T00:14:44.115113+0000",
          "schedule": "scrub scheduled @ 2026-05-27T00:14:44.115 (2026-05-27T00:14:44.115)" 
      },
      "agent_state": {}
  }

RZ Updated by Radoslaw Zarzynski 6 months ago Actions #4

@Ronen Friedman: ^^.

RF Updated by Ronen Friedman 6 months ago Actions #5

@elias Carter - can you provide debug (level 20) logs (I actually do not see any logs attached to the tracker).
Thanks

RF Updated by Ronen Friedman 6 months ago Actions #6

  • Status changed from New to Need More Info

EC Updated by Elias Carter 6 months ago Actions #7

@elias Carter - can you provide debug (level 20) logs (I actually do not see any logs attached to the tracker).
Thanks

@Ronen Friedman

Which daemon do you want logs from, just the OSD?

RF Updated by Ronen Friedman 6 months ago Actions #8

Yes - just the OSDs (level 20)

EC Updated by Elias Carter 5 months ago Actions #9

Ronen Friedman wrote in #note-8:

Yes - just the OSDs (level 20)

Just to confirm. Do you need the OSDs running at level 20 before this event happens, or can we enable level 20 after the PG has been set inconsistent? I am worried that running our entire prod cluster at level 20 will cause issues due to log volume.

LF Updated by Laura Flores 5 months ago Actions #10

Elias Carter wrote in #note-9:

Ronen Friedman wrote in #note-8:

Yes - just the OSDs (level 20)

Just to confirm. Do you need the OSDs running at level 20 before this event happens, or can we enable level 20 after the PG has been set inconsistent? I am worried that running our entire prod cluster at level 20 will cause issues due to log volume.

It's always ideal to provide logs before the event happens. I would recommend setting debug_osd=20 on as many OSDs as you can to increase the likelihood of capturing the issue. 3 OSDs is better than just one, for example. I would do as many as possible with your cluster configuration.

EC Updated by Elias Carter 5 months ago Actions #11

Laura Flores wrote in #note-10:

Elias Carter wrote in #note-9:

Ronen Friedman wrote in #note-8:

Yes - just the OSDs (level 20)

Just to confirm. Do you need the OSDs running at level 20 before this event happens, or can we enable level 20 after the PG has been set inconsistent? I am worried that running our entire prod cluster at level 20 will cause issues due to log volume.

It's always ideal to provide logs before the event happens. I would recommend setting debug_osd=20 on as many OSDs as you can to increase the likelihood of capturing the issue. 3 OSDs is better than just one, for example. I would do as many as possible with your cluster configuration.

Ok. I will try enabling level 20 in my cluster. We have a few hundred OSDs so I will see if that is too much logging or not.

EC Updated by Elias Carter 4 months ago Actions #12

Laura Flores wrote in #note-10:

Elias Carter wrote in #note-9:

Ronen Friedman wrote in #note-8:

Yes - just the OSDs (level 20)

Just to confirm. Do you need the OSDs running at level 20 before this event happens, or can we enable level 20 after the PG has been set inconsistent? I am worried that running our entire prod cluster at level 20 will cause issues due to log volume.

It's always ideal to provide logs before the event happens. I would recommend setting debug_osd=20 on as many OSDs as you can to increase the likelihood of capturing the issue. 3 OSDs is better than just one, for example. I would do as many as possible with your cluster configuration.

Is there any other way to debug this without running at level 20? I just enabled level 20 in our stage cluster and each OSD is emitting tens of megabytes of logs per second. We have several hundred OSDs in our prod cluster and that is going to result in tens of gigabytes of logs per second, most likely more as our prod clusters have many more client IOPS.

I can enable level 20 AFTER we get the inconsistent PGs on the acting set OSDs, but I'm not sure how useful that information would be? Maybe I could enable level 20 logs and then trigger a scrub on the PG after debug logs are enabled?

EC Updated by Elias Carter 4 months ago Actions #13

Or maybe we can use ceph-objectstore-tool to get more debug info on the inconsistent PGs?

EC Updated by Elias Carter 4 months ago Actions #14

After doing some research, it looks like this PR fixes this exact issue? https://github.com/ceph/ceph/pull/68684

It seems like that PR is only in v21.0.1 and later, is this something that would be viable for a backport to v19.2.x?

LF Updated by Laura Flores 4 months ago Actions #15

RF Updated by Ronen Friedman 4 months ago Actions #17

Checking.

RF Updated by Ronen Friedman 4 months ago Actions #18

  • Status changed from Need More Info to Pending Backport
  • Backport set to tentacle
  • Pull request ID set to 68684

Note: marking pr#68684 as the PR that solved this issue, mostly to facilitate backporting

UB Updated by Upkeep Bot 4 months ago Actions #19

  • Copied to Backport #78819: tentacle: Shallow scrub can mark PG inconsistent without inconsistent objects/snapsets, but no automatic deep scrub or repair is scheduled added

UB Updated by Upkeep Bot 4 months ago Actions #20

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 4 months ago Actions #22

  • Merge Commit set to 5b0346053b3a0bb17edad286d901a0bab37adf24
  • Fixed In set to v21.0.0-1655-g5b0346053b
  • Upkeep Timestamp set to 2026-07-29T13:08:21+00:00

EC Updated by Elias Carter 4 months ago Actions #23

Is this also available for a squid backport? I originally saw this issue on squid 19.2.3

Internally, I have backported https://github.com/ceph/ceph/pull/68684 onto squid 19.2.4 and the patch applies cleanly without any modifications.

UB Updated by Upkeep Bot 3 months ago Actions #24

  • Status changed from Pending Backport to Resolved
  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2026-07-29T13:08:21+00:00 to 2026-08-27T18:43:36+00:00

UB Updated by Upkeep Bot about 1 month ago Actions #25

  • Released In set to v21.2.0~391
  • Upkeep Timestamp changed from 2026-08-27T18:43:36+00:00 to 2026-10-24T01:53:25+00:00
Actions

Also available in: PDF Atom