Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to view the distribution of pg on osd

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to view the distribution of pg on osd. I hope you will get something after reading this article. Let's discuss it together.

1. View the distribution of primary pg on osd

Ceph pg ls-by-primary [root@ceph2 ~] # for i in `ceph osd ls`; do echo-n osd.$i:;ceph pg ls-by-primary $I | grep-v PG_STAT | wc-l; doneosd.0:36osd.1:34osd.2:24osd.3:24osd.4:41osd.5:36osd.6:24osd.7:37osd.8:36osd.9:40osd.10:22osd.11:36osd.12:35osd.13:41

View the distribution and statistics of pg on pool:

Ceph pg ls-by-pool ceph pg ls-by-pool rbd | grep-v PG_STAT | wc-l

View all pg status on an osd

Ceph pg ls-by-osd

After reading this article, I believe you have a certain understanding of "how to view the distribution of pg on osd". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report