Re: Is there an efficient way to list all namespaces in a pool?
On Fri, Dec 19, 2025 at 6:32 AM Florian Haas via ceph-users <ceph-users@ceph.io> wrote:
Hello everyone,
I've been wondering if there is a way of listing all namespaces in a RADOS pool in a way that is both human- and machine-readable, and is more efficient than this:
rados -p <pool> ls --all -f json \ | jq -r "[.[] | .namespace] | unique"
There are of course several variations of this approach, but they all seem to boil down to enumerating *all objects* and then picking out their namespaces — which is, shall we say, impractical if a pool contains millions of objects.
Does a fundamentally different option exist?
the osds don't maintain an index of namespace names, so i'm afraid you're stuck scanning all objects
Cheers, Florian _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
participants (1)
-
Casey Bodley