In Ceph, the command rados --pgid <pgid> ls
allows you to list all the rados objects that are stored in a specific placement group. My question is: is there a command that does the reverse? So, is it possible, given a specific rados object name, to determine the placement group that object is stored in? I did not find any such command in the rados man page.
Several sources state that the formula is pgid = hash(object_name)%pg_num
, so if that is accurate I guess I'm looking for a command line tool that can do that calculation.
I know I could resort to listing the contents of all pgs until I find the object I need, but that is very inefficient and I would like to avoid it if at all possible.