Feature #11692
Updated by Kefu Chai over 8 years ago
> I want to verify the behavior of ceph cluster with full osd case, so I change the default full ratio with following cmds: > > <pre> > ceph --admin-daemon /var/run/ceph/ceph-osd.0.asok config set mon_osd_full_ratio 0.20 > ceph --admin-daemon /var/run/ceph/ceph-osd.0.asok config set mon_osd_nearfull_ratio 0.15 > </pre> > > Then I create big file in the associated disk. df -lh shows the disk is over 20%. I expected ceph cluster should give osd full warnning. > However, ceph -s doesn't show osd full warnnings. > The observation is online change of mon_osd_full_ratio and mon_osd_nearfull_ratio doesn't take effect. currently we can change the runtime full_ratio settings using <pre> ceph pg set_full_ratio 0.20 ceph pg set_nearfull_ratio 0.15 </pre> but this might confuse our user: as per http://docs.ceph.com/docs/master/rados/configuration/mon-config-ref/#storage-capacity, we are using <pre> mon osd full ratio = .80 mon osd nearfull ratio = .70 </pre> for setting the full ratio, but adjusting them does not work if the PG is already created. maybe we can let @PGMonitor@ inherit from @md_config_obs_t@ and watch the change of "mon osd full ratio" and "mon osd nearfull ratio", and add the new setting to the pending proposal.