Hi,
One time I search undersized PG's with only one replica (as I remember)
Snippet left in my notes, so may be help you

ceph pg dump | grep undersized | awk '{print $1 " " $17 " " $18 " " $19}' | awk 
-vOFS='\t' '{ print length($4), $0 }' | sort -k1,1n | cut -f2- | head



k

> On 10 Sep 2021, at 14:49, George Shuklin <george.shuk...@gmail.com> wrote:
> 
> I wonder if there is a way to see how many replicas are available for each 
> object (or, at least, PG-level statistics). Basically, if I have damaged 
> cluster, I want to see the scale of damage, and I want to see the most 
> degraded objects (which has 1 copy, then objects with 2 copies, etc).
> 
> Are there a way? pg list is not very informative, as it does not show how 
> badly 'unreplicated' data are.

_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io

Reply via email to