Ceph health (or status) reported warning: too many PGs per OSD, how to solve this?
health HEALTH_WARN too many PGs per OSD (320 > max 300)
What is this warning means:
The average number PGs in an (default number is 300)
=> The total number of PGs in all pools / Total number of OSDs,
If the above is more than the default (i.e 300), ceph monitor will report warning.
How to solve/suppress this warning message:
Use injectargs to modify the “mon_pg_warn_max_per_osd to 0”, temporarily,the till
the ceph mon server restart.
# ceph tell mon.* injectargs "--mon_pg_warn_max_per_osd 0"
To make the above change persistence, update the ceph.conf with below line and
restart the ceph mons:
mon_pg_warn_max_per_osd = 0