In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces how to solve the HEALTH_WARN too few PGs per OSD problem in ceph. It is very detailed and has a certain reference value. Friends who are interested must finish it!
Health HEALTH_WARN too few PGs per OSD (16
< min 30) 执行ceph -s 发现集群状态并非ok,具体信息如下: $ sudo ceph -s cluster 257faba1-f259-4164-a0f9-1726bd70b05a health HEALTH_WARN too few PGs per OSD (16 < min 30) monmap e1: 1 mons at {bdc217=192.168.13.217:6789/0} election epoch 2, quorum 0 bdc217 osdmap e50: 8 osds: 8 up, 8 in flags sortbitwise pgmap v119: 64 pgs, 1 pools, 0 bytes data, 0 objects 715 MB used, 27550 GB / 29025 GB avail 64 active+clean 由于是新配置的集群,只有一个pool $ sudo ceph osd lspools0 rbd, 查看rbd pool的PGS $ sudo ceph osd pool get rbd pg_numpg_num: 64 pgs为64,因为是2副本的配置,所以当有8个osd的时候,每个osd上均分了64/8 *2=16个pgs,也就是出现了如上的错误 小于最小配置30个 解决办法:修改默认pool rbd的pgs $ sudo ceph osd pool set rbd pg_num 128set pool 0 pg_num to 128$ sudo ceph -s cluster 257faba1-f259-4164-a0f9-1726bd70b05a health HEALTH_WARN 64 pgs stuck inactive 64 pgs stuck unclean pool rbd pg_num 128 >Pgp_num 64 monmap e1: 1 mons at {bdc217=192.168.13.217:6789/0} election epoch 2, quorum 0 bdc217 osdmap e52: 8 osds: 8 up, 8 in flags sortbitwise pgmap v121: 128 pgs, 1 pools, 0 bytes data, 0 objects 715 MB used, 27550 GB / 29025 GB avail 64 active+clean 64 creating
It is found that the pgp_num needs to be modified as well. By default, both pg_num and pgp_num are of the same size as 64. Here, the values of both are set to 128.
$sudo ceph osd pool set rbd pgp_num 128set pool 0 pgp_num to 128
Finally, check the cluster status, which is displayed as OK, and error resolution:
$sudo ceph-s cluster 257faba1-f259-4164-a0f9-1726bd70b05a health HEALTH_OK monmap e1: 1 mons at {bdc217=192.168.13.217:6789/0} election epoch 2, quorum 0 bdc217 osdmap e54: 8 osds: 8 up, 8 in flags sortbitwise pgmap v125: 128 pgs, 1 pools, 0 bytes data, 0 objects 718 MB used 27550 GB / 29025 GB avail 128active+clean and above are all the contents of the article "how to solve the HEALTH_WARN too few PGs per OSD problem in ceph" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.