Ceph POOL_HAS_TARGET_SIZE_BYTES_AND_RATIO
Check both target sizes on the pool named in the Ceph warning, decide whether PG autoscaling should use bytes or a relative weight, and clear the other value.
POOL_HAS_TARGET_SIZE_BYTES_AND_RATIO means a pool has two estimates for its expected size. When both are positive, the PG autoscaler gives the ratio precedence. Increasing the byte target will not make it take priority. Tentacle health check
[1] Find the affected pool in the warning details.
$ ceph health detailThe summary counts affected pools. The detail lists each pool by name. A byte target on one pool and a ratio on another do not meet this condition. Work through the listed pools individually. Autoscaler check
[2] Replace mypool with the name from the warning. Record both values and use the same shell for the remaining commands.
$ pool='mypool'$ ceph osd pool get "$pool" target_size_bytes$ ceph osd pool get "$pool" target_size_ratioBytes express an expected amount of data. The ratio gives the pool a weight relative to other pools with ratio targets. For example, two such pools sharing the same available space with weights of 1 each receive equal shares. If either value is already zero, check the pool name and refresh the warning. Pool property lookup · Expected pool size
[3] Apply only the change that matches the capacity plan.
Keep the relative weight. Clear the byte target to retain the ratio that already takes precedence.
$ ceph osd pool set "$pool" target_size_bytes 0To undo the change, replace the final zero with the original byte count from step 2.
Keep the byte estimate. Verify the stored byte count first. Clearing the ratio brings that estimate into use and can change the autoscaler's PG recommendation.
$ ceph osd pool set "$pool" target_size_ratio 0To undo this change, replace the final zero with the original ratio. Restoring two positive values also restores the warning condition.
[4] Read back both values with the commands in step 2. Then check the autoscaler's view and the remaining warnings.
$ ceph osd pool autoscale-status$ ceph health detailLook for the retained estimate in TARGET SIZE or TARGET RATIO. The separate SIZE column reports current usage. If the warning still lists other pools, repeat the lookup for those names. For additional codes, see how to read health detail.