Re: List pg with heavily degraded objects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.shuklin@xxxxxxxxx> 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@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux