Yes, I know you can do that. I parsed this very output, then wrote a script to verify. I did not read in the crush map, but used my own knowledge of the crush rule to verify the placements. It would be nice to have a way to do this for an arbitrary crush rule and a pool using it. -Chris -----Original Message----- From: Stephen Smith6 <esmith@xxxxxxx> To: Christopher Durham <caduceus42@xxxxxxx>; ceph-users@xxxxxxx <ceph-users@xxxxxxx> Sent: Wed, Jan 11, 2023 2:00 pm Subject: Re: pg mapping verification #yiv3876159325 filtered {}#yiv3876159325 filtered {}#yiv3876159325 p.yiv3876159325MsoNormal, #yiv3876159325 li.yiv3876159325MsoNormal, #yiv3876159325 div.yiv3876159325MsoNormal {margin:0in;font-size:10.0pt;font-family:sans-serif;}#yiv3876159325 a:link, #yiv3876159325 span.yiv3876159325MsoHyperlink {color:blue;text-decoration:underline;}#yiv3876159325 span.yiv3876159325EmailStyle19 {font-family:sans-serif;color:windowtext;}#yiv3876159325 .yiv3876159325MsoChpDefault {font-size:10.0pt;}#yiv3876159325 filtered {}#yiv3876159325 div.yiv3876159325WordSection1 {}I think “ceph pg dump” is what you’re after, look for the “UP” and “ACTIVE” fields to map a PG to an OSD. From there it’s just a matter of verifying your PG placement matches the CRUSH rule. From:Christopher Durham <caduceus42@xxxxxxx> Date: Wednesday, January 11, 2023 at 3:56 PM To: ceph-users@xxxxxxx <ceph-users@xxxxxxx> Subject: [EXTERNAL] pg mapping verification Hi, For a given crush rule and pool that uses it, how can I verify hat the pgs in that pool folllow the rule? I have a requirement to 'prove' that the pgs are mapping correctly. I see: https://pypi.org/project/crush/ This allows me to read in a crushmap file that I could then use to verify a pg with some scripting, but this pypi is very old and seems not to be maintained or updatedsince 2017. I am sure there is a way, using osdmaptool or something else, but it is not obvious. Before i spend alot of time searching, I thought I would ask here. Basically, having a list of pgs like this: [[1,2,3,4,5],[2,3,4,5,6],...] Given a read-in crushmap and a specific rule therein, I want to verify that all pgs in my list are consistent with the rule specified. Let me know if there is a proper way to do this, and thanks. -Chris _______________________________________________ ceph-users mailing list -- ceph-users@xxxxxxx To unsubscribe send an email to ceph-users-leave@xxxxxxx _______________________________________________ ceph-users mailing list -- ceph-users@xxxxxxx To unsubscribe send an email to ceph-users-leave@xxxxxxx