What is the number of pg in osd
This article mainly introduces "what is the number of pg in osd". In daily operation, I believe many people have doubts about the number of pg in osd. The editor consulted all kinds of data and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the question of "how much pg is in osd?" Next, please follow the editor to study!
Ceph pg dump | awk'/ pg_stat/ {col=1; while ($collocation = "up") {col++}; col++} / [0-9a-f] +. [0-9a-f] + / {match ($0 pool=substr / ^ [0-9a-f] + /); pool=substr ($0, RSTART,RLENGTH); poollist [pool] = 0; RSTART=0; RLENGTH=0; delete osds; while (up,/ [0-9] + /) > 0) {ODS [+ + I] = substr (up,RSTART,RLENGTH) Up = substr (up, RSTART+RLENGTH)} for (i in osds) {array [ODS [I], pool] +; END [ODS [I]];}} END {ODS ("\ n"); printf ("pool:\ t"); for (i in poollist) printf ("% s\ t", I); printf ("| SUM\ n"); for (i in poollist) printf ("- -"); printf ("-\ n") For (i in osdlist) {printf ("osd.%i\ t", I); sum=0;for (j in poollist) {printf ("% I\ t", array [iMagazine j]); sum+=array [iPowerj]; poollist [j] + = array [iMagazine j]}; printf ("|% I\ n", sum)} for (i in poollist) printf ("- -"); printf ("-\ n"); printf ("SUM:\ t") For (i in poollist) printf ("% s\ t", poollist [I]); printf ("|\ n");}'at this point, the study of "what is the number of pg in osd" is over, hoping to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!