Re: Working ceph cluster reports large amount of pgs in state unknown/undersized and objects degraded

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Some additional information. Even though the pgs report unknown, directly querying them seems like they are correctly up.

What could be causing this disconnect in reported pg states?

```
$ ceph pg dump_stuck inactive | head
ok
PG_STAT  STATE    UP  UP_PRIMARY  ACTING  ACTING_PRIMARY
16.fc    unknown  []          -1      []              -1
16.fb    unknown  []          -1      []              -1
16.fa    unknown  []          -1      []              -1
...
...
...
```

```
$ ceph osd dump | grep epoch
epoch 54661
```

```
$ ceph pg 16.fc query
{
    "snap_trimq": "[]",
    "snap_trimq_len": 0,
    "state": "active+clean",
    "epoch": 54661,
    "up": [
        5,
        0,
        4
    ],
    "acting": [
        5,
        0,
        4
    ],
    "acting_recovery_backfill": [
        "0(1)",
        "4(2)",
        "5(0)"
    ],
    "info": {
        "pgid": "16.fcs0",
        "last_update": "54599'266234",
        "last_complete": "54599'266234",
        "log_tail": "54406'263772",
        "last_user_version": 266234,
        "last_backfill": "MAX",
        "purged_snaps": [],
        "history": {
            "epoch_created": 14243,
            "epoch_pool_created": 2798,
            "last_epoch_started": 54660,
            "last_interval_started": 54659,
            "last_epoch_clean": 54660,
            "last_interval_clean": 54659,
            "last_epoch_split": 14243,
            "last_epoch_marked_full": 24149,
            "same_up_since": 54659,
            "same_interval_since": 54659,
            "same_primary_since": 54586,
            "last_scrub": "54579'266179",
            "last_scrub_stamp": "2024-04-18T01:20:28.226815+0200",
            "last_deep_scrub": "53783'261235",
            "last_deep_scrub_stamp": "2024-03-26T03:29:22.874529+0100",
            "last_clean_scrub_stamp": "2024-04-18T01:20:28.226815+0200",
            "prior_readable_until_ub": 0
        },
        "stats": {
            "version": "54599'266234",
            "reported_seq": 1432180,
            "reported_epoch": 54661,
            "state": "active+clean",
            "last_fresh": "2024-04-18T21:09:57.484866+0200",
            "last_change": "2024-04-18T20:57:24.855741+0200",
            "last_active": "2024-04-18T21:09:57.484866+0200",
            "last_peered": "2024-04-18T21:09:57.484866+0200",
            "last_clean": "2024-04-18T21:09:57.484866+0200",
            "last_became_active": "2024-04-18T20:57:24.855556+0200",
            "last_became_peered": "2024-04-18T20:57:24.855556+0200",
            "last_unstale": "2024-04-18T21:09:57.484866+0200",
            "last_undegraded": "2024-04-18T21:09:57.484866+0200",
            "last_fullsized": "2024-04-18T21:09:57.484866+0200",
            "mapping_epoch": 54659,
            "log_start": "54406'263772",
            "ondisk_log_start": "54406'263772",
            "created": 14243,
            "last_epoch_clean": 54660,
            "parent": "0.0",
            "parent_split_bits": 8,
            "last_scrub": "54579'266179",
            "last_scrub_stamp": "2024-04-18T01:20:28.226815+0200",
            "last_deep_scrub": "53783'261235",
            "last_deep_scrub_stamp": "2024-03-26T03:29:22.874529+0100",
            "last_clean_scrub_stamp": "2024-04-18T01:20:28.226815+0200",
            "log_size": 2462,
            "ondisk_log_size": 2462,
            "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,
            "stat_sum": {
                "num_bytes": 100198672069,
                "num_objects": 24008,
                "num_object_clones": 0,
                "num_object_copies": 72024,
                "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": 24008,
                "num_whiteouts": 0,
                "num_read": 481265,
                "num_read_kb": 589512788,
                "num_write": 160947,
                "num_write_kb": 164785104,
                "num_scrub_errors": 0,
                "num_shallow_scrub_errors": 0,
                "num_deep_scrub_errors": 0,
                "num_objects_recovered": 132312,
                "num_bytes_recovered": 548853441237,
                "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": [
                5,
                0,
                4
            ],
            "acting": [
                5,
                0,
                4
            ],
            "avail_no_missing": [],
            "object_location_counts": [],
            "blocked_by": [],
            "up_primary": 5,
            "acting_primary": 5,
            "purged_snaps": []
        },
        "empty": 0,
        "dne": 0,
        "incomplete": 0,
        "last_epoch_started": 54660,
        "hit_set_history": {
            "current_last_update": "0'0",
            "history": []
        }
    },
    "peer_info": [
        {
            "peer": "0(1)",
            "pgid": "16.fcs1",
            "last_update": "54599'266234",
            "last_complete": "54599'266234",
            "log_tail": "54406'263772",
            "last_user_version": 266234,
            "last_backfill": "MAX",
            "purged_snaps": [],
            "history": {
                "epoch_created": 14243,
                "epoch_pool_created": 2798,
                "last_epoch_started": 54660,
                "last_interval_started": 54659,
                "last_epoch_clean": 54660,
                "last_interval_clean": 54659,
                "last_epoch_split": 14243,
                "last_epoch_marked_full": 24149,
                "same_up_since": 54659,
                "same_interval_since": 54659,
                "same_primary_since": 54586,
                "last_scrub": "54579'266179",
                "last_scrub_stamp": "2024-04-18T01:20:28.226815+0200",
                "last_deep_scrub": "53783'261235",
                "last_deep_scrub_stamp": "2024-03-26T03:29:22.874529+0100",
                "last_clean_scrub_stamp": "2024-04-18T01:20:28.226815+0200",
                "prior_readable_until_ub": 0
            },
            "stats": {
                "version": "54599'266234",
                "reported_seq": 1432105,
                "reported_epoch": 54599,
                "state": "active+clean",
                "last_fresh": "2024-04-18T16:59:22.048690+0200",
                "last_change": "2024-04-18T04:12:58.494926+0200",
                "last_active": "2024-04-18T16:59:22.048690+0200",
                "last_peered": "2024-04-18T16:59:22.048690+0200",
                "last_clean": "2024-04-18T16:59:22.048690+0200",
                "last_became_active": "2024-04-18T04:12:43.776065+0200",
                "last_became_peered": "2024-04-18T04:12:43.776065+0200",
                "last_unstale": "2024-04-18T16:59:22.048690+0200",
                "last_undegraded": "2024-04-18T16:59:22.048690+0200",
                "last_fullsized": "2024-04-18T16:59:22.048690+0200",
                "mapping_epoch": 54659,
                "log_start": "54406'263772",
                "ondisk_log_start": "54406'263772",
                "created": 14243,
                "last_epoch_clean": 54587,
                "parent": "0.0",
                "parent_split_bits": 8,
                "last_scrub": "54579'266179",
                "last_scrub_stamp": "2024-04-18T01:20:28.226815+0200",
                "last_deep_scrub": "53783'261235",
                "last_deep_scrub_stamp": "2024-03-26T03:29:22.874529+0100",
                "last_clean_scrub_stamp": "2024-04-18T01:20:28.226815+0200",
                "log_size": 2462,
                "ondisk_log_size": 2462,
                "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,
                "stat_sum": {
                    "num_bytes": 100198672069,
                    "num_objects": 24008,
                    "num_object_clones": 0,
                    "num_object_copies": 72024,
                    "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": 24008,
                    "num_whiteouts": 0,
                    "num_read": 481265,
                    "num_read_kb": 589512788,
                    "num_write": 160947,
                    "num_write_kb": 164785104,
                    "num_scrub_errors": 0,
                    "num_shallow_scrub_errors": 0,
                    "num_deep_scrub_errors": 0,
                    "num_objects_recovered": 132312,
                    "num_bytes_recovered": 548853441237,
                    "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": [
                    5,
                    0,
                    4
                ],
                "acting": [
                    5,
                    0,
                    4
                ],
                "avail_no_missing": [],
                "object_location_counts": [],
                "blocked_by": [],
                "up_primary": 5,
                "acting_primary": 5,
                "purged_snaps": []
            },
            "empty": 0,
            "dne": 0,
            "incomplete": 0,
            "last_epoch_started": 54660,
            "hit_set_history": {
                "current_last_update": "0'0",
                "history": []
            }
        },
        {
            "peer": "4(2)",
            "pgid": "16.fcs2",
            "last_update": "54599'266234",
            "last_complete": "54599'266234",
            "log_tail": "54406'263772",
            "last_user_version": 266234,
            "last_backfill": "MAX",
            "purged_snaps": [],
            "history": {
                "epoch_created": 14243,
                "epoch_pool_created": 2798,
                "last_epoch_started": 54660,
                "last_interval_started": 54659,
                "last_epoch_clean": 54660,
                "last_interval_clean": 54659,
                "last_epoch_split": 14243,
                "last_epoch_marked_full": 24149,
                "same_up_since": 54659,
                "same_interval_since": 54659,
                "same_primary_since": 54586,
                "last_scrub": "54579'266179",
                "last_scrub_stamp": "2024-04-18T01:20:28.226815+0200",
                "last_deep_scrub": "53783'261235",
                "last_deep_scrub_stamp": "2024-03-26T03:29:22.874529+0100",
                "last_clean_scrub_stamp": "2024-04-18T01:20:28.226815+0200",
                "prior_readable_until_ub": 0
            },
            "stats": {
                "version": "54599'266234",
                "reported_seq": 1432105,
                "reported_epoch": 54599,
                "state": "active+clean",
                "last_fresh": "2024-04-18T16:59:22.048690+0200",
                "last_change": "2024-04-18T04:12:58.494926+0200",
                "last_active": "2024-04-18T16:59:22.048690+0200",
                "last_peered": "2024-04-18T16:59:22.048690+0200",
                "last_clean": "2024-04-18T16:59:22.048690+0200",
                "last_became_active": "2024-04-18T04:12:43.776065+0200",
                "last_became_peered": "2024-04-18T04:12:43.776065+0200",
                "last_unstale": "2024-04-18T16:59:22.048690+0200",
                "last_undegraded": "2024-04-18T16:59:22.048690+0200",
                "last_fullsized": "2024-04-18T16:59:22.048690+0200",
                "mapping_epoch": 54659,
                "log_start": "54406'263772",
                "ondisk_log_start": "54406'263772",
                "created": 14243,
                "last_epoch_clean": 54587,
                "parent": "0.0",
                "parent_split_bits": 8,
                "last_scrub": "54579'266179",
                "last_scrub_stamp": "2024-04-18T01:20:28.226815+0200",
                "last_deep_scrub": "53783'261235",
                "last_deep_scrub_stamp": "2024-03-26T03:29:22.874529+0100",
                "last_clean_scrub_stamp": "2024-04-18T01:20:28.226815+0200",
                "log_size": 2462,
                "ondisk_log_size": 2462,
                "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,
                "stat_sum": {
                    "num_bytes": 100198672069,
                    "num_objects": 24008,
                    "num_object_clones": 0,
                    "num_object_copies": 72024,
                    "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": 24008,
                    "num_whiteouts": 0,
                    "num_read": 481265,
                    "num_read_kb": 589512788,
                    "num_write": 160947,
                    "num_write_kb": 164785104,
                    "num_scrub_errors": 0,
                    "num_shallow_scrub_errors": 0,
                    "num_deep_scrub_errors": 0,
                    "num_objects_recovered": 132312,
                    "num_bytes_recovered": 548853441237,
                    "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": [
                    5,
                    0,
                    4
                ],
                "acting": [
                    5,
                    0,
                    4
                ],
                "avail_no_missing": [],
                "object_location_counts": [],
                "blocked_by": [],
                "up_primary": 5,
                "acting_primary": 5,
                "purged_snaps": []
            },
            "empty": 0,
            "dne": 0,
            "incomplete": 0,
            "last_epoch_started": 54660,
            "hit_set_history": {
                "current_last_update": "0'0",
                "history": []
            }
        }
    ],
    "recovery_state": [
        {
            "name": "Started/Primary/Active",
            "enter_time": "2024-04-18T20:57:24.774643+0200",
            "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": {
                    "recovery_ops": [],
                    "read_ops": []
                }
            }
        },
        {
            "name": "Started",
            "enter_time": "2024-04-18T20:57:23.760477+0200"
        }
    ],
    "scrubber": {
        "epoch_start": "54566",
        "active": false
    },
    "agent_state": {}
}
```
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux