Get past epoch pg map
Is there a way to get a pg dump for a previous epoch? I have a situation where I want to make sure all of the PGs that used to be on a specific OSD are deep scrubbed. However, since that OSD is now down and all the PGs have been relocated, I don't know what the PG numbers are. I know the epoch number I want to look at, and I can "ceph osd getmap <epoch>". But I'm not sure if there's a way to use this to get/view the pg map.
I think you will need to use the "osdmaptool" with the "--test-map-pgs-dump" flag https://docs.ceph.com/en/latest/man/8/osdmaptool/ Respectfully, *Wes Dillingham* LinkedIn <http://www.linkedin.com/in/wesleydillingham> wes@wesdillingham.com On Fri, Jun 27, 2025 at 12:49 PM Darrell Enns <darrelle@knowledge.ca> wrote:
Is there a way to get a pg dump for a previous epoch?
I have a situation where I want to make sure all of the PGs that used to be on a specific OSD are deep scrubbed. However, since that OSD is now down and all the PGs have been relocated, I don't know what the PG numbers are. I know the epoch number I want to look at, and I can "ceph osd getmap <epoch>". But I'm not sure if there's a way to use this to get/view the pg map. _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
Never mind - I answered my own question. For epoch 1234: ceph osd getmap 1234 > osdmap osdmaptool osdmap --test-map-pgs-dump-all > pgdump.txt
Hi Darrell, I am not sure to understand what you mean by "all the PGs have been relocated, I don't know what the PG numbers are". PG numbers never change. So if you know the PG number you want to check, you should be able to check its status, by comparing the last deep scrubs date with the date it was moved. Michel Sent from my mobile Le 27 juin 2025 18:49:39 Darrell Enns <darrelle@knowledge.ca> a écrit :
Is there a way to get a pg dump for a previous epoch?
I have a situation where I want to make sure all of the PGs that used to be on a specific OSD are deep scrubbed. However, since that OSD is now down and all the PGs have been relocated, I don't know what the PG numbers are. I know the epoch number I want to look at, and I can "ceph osd getmap <epoch>". But I'm not sure if there's a way to use this to get/view the pg map. _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
participants (3)
-
Darrell Enns
-
Michel Jouvin
-
Wesley Dillingham