Bug #9808
Updated by Loïc Dachary over 9 years ago
Steps to reproduce
* modify vstart.sh with
<pre>
@@ -337,6 +337,9 @@ if [ "$start_mon" -eq 1 ]; then
osd pg bits = 3
osd pgp bits = 5 ; (invalid, but ceph should cope!)
osd crush chooseleaf type = 0
+ osd pool default size = 2
+ osd_max_backfills = 2
+ osd min pg log entries = 5
osd pool default min size = 1
osd pool default erasure code directory = .libs
osd pool default erasure code profile = plugin=jerasure technique=reed_sol_van k=2 m=1 ruleset-failure-domain=osd
</pre>
* rm -fr dev out ; mkdir -p dev ; MON=1 OSD=3 ./vstart.sh -d -n -l mon osd
* rados -p rbd bench 1 write -b 4096 --no-cleanup
* ceph tell osd.* injectargs -- --osd_backfill_full_ratio 0
* pkill -f 'ceph-osd -i 0'
* ceph osd out 0
* sleep 30
* ceph tell osd.* injectargs -- --osd_backfill_full_ratio 0.8
* sleep 30
* ceph pg dump
<pre>
...
pg_stat objects mip degr misp unf bytes log disklog state state_stamp v reported up up_primary acting acting_primary last_scrub scrub_stamp last_deep_scrub deep_scrub_stamp
0.3 9 0 9 9 0 36864 6 6 active+undersized+degraded+remapped 2014-10-17 16:02:23.710060 11'9 16:34 [2,1] 2 [2] 2 0'0 2014-10-17 16:01:48.864991 0'0 2014-10-17 16:01:48.864991
...
</pre>
It should notice that the full_ratio has changed back to 0.8 but does not for some reason
<pre>
$ ceph daemon osd.2 config get osd_backfill_full_ratio
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
{ "osd_backfill_full_ratio": "0.8"}
loic@fold:~/software/ceph/ceph/src$ ceph daemon osd.1 config get osd_backfill_full_ratio
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
{ "osd_backfill_full_ratio": "0.8"}
</pre>