[ceph-users] Increasing mon_pg_warn_max_per_osd in v12.2.2

Wido den Hollander wido at 42on.com
Mon Dec 4 02:12:21 PST 2017


> Op 4 december 2017 om 10:59 schreef SOLTECSIS - Victor Rodriguez Cortes <vrodriguez at soltecsis.com>:
> 
> 
> Hello,
> 
> I have upgraded from v12.2.1 to v12.2.2 and now a warning shows using
> "ceph status":
> 
> ---
> # ceph status
>   cluster:
>     id:    
>     health: HEALTH_WARN
>             too many PGs per OSD (208 > max 200)
> ---
> 
> I'm ok with the amount of PGs, so I'm trying to increase the max PGs.

Why are you OK with this? A high amount of PGs can cause serious peering issues. OSDs might eat up a lot of memory and CPU after a reboot or such.

Wido

> I've tried adding this to /etc/ceph/ceph.conf and restarting
> services/servers:
> 
> ---
> [global]
> mon_pg_warn_max_per_osd = 300
> ---
> 
> 
> I've also tried to inject the config  to running daemons with:
> 
> ---
> ceph tell mon.* injectargs  "-mon_pg_warn_max_per_osd 0"
> ---
> 
> But I'm getting "Error EINVAL: injectargs: failed to parse arguments:
> --mon_pg_warn_max_per_osd,300" messages and I'm still getting the
> HEALTH_WARN message in the status command.
> 
> How can I increase mon_pg_warn_max_per_osd?
> 
> Thank you!
> 
> 
> 
> _______________________________________________
> ceph-users mailing list
> ceph-users at lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


More information about the ceph-users mailing list