how to set osd_crush_initial_weight 0 without restart any service

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Folks,

Method: 1

In my lab i am playing with ceph and trying to understand how to add
new OSD without starting rebalancing.

I want to add this option on fly so i don't need to restart any
services or anything.

$ ceph tell mon.* injectargs '--osd_crush_initial_weight 0'

$ ceph daemon /var/run/ceph/ceph-mon.*.asok config show | grep
osd_crush_initial_weight
    "osd_crush_initial_weight": "0.000000",

All looks good, now i am adding OSD with ceph-ansible and you know
what look like it don't honer that option and adding OSD with default
weight (In my case i have 1.9TB SSD so weight is 1.7)

Can someone confirm injectargs work with osd_crush_initial_weight ?


Method: 2

Now i have added that option in ceph-ansible playbook like following

ceph_conf_overrides:
  osd:
    osd_crush_initial_weight: 0

and i run playbook and it did magic and added OSD with weight zero (0)
 but i have notice it restarted all OSD daemon on that node, i am
worried is it safe to restart osd daemon on ceph in production?
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux