Is there some logic behind why ceph is doing this -1, or is this some 
coding error?

0.80000 gives 0.79999, and 0.80001 gives 0.80000

(ceph 12.2.4)


[@~]# ceph osd reweight 11 0.80000
reweighted osd.11 to 0.8 (cccc)

[@~]# ceph osd df
ID CLASS WEIGHT  REWEIGHT SIZE   USE    AVAIL  %USE  VAR  PGS
11   hdd 3.00000  0.79999  2794G  2503G   290G 89.59 1.33  38



[@~]# ceph osd reweight 11 0.80001
reweighted osd.11 to 0.80001 (cccd)

[@~]# ceph osd df
ID CLASS WEIGHT  REWEIGHT SIZE   USE    AVAIL  %USE  VAR  PGS
11   hdd 3.00000  0.80000  2794G  2503G   290G 89.59 1.33  38




_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to