How to change a Ceph configuration dynamically?

Solution Verified - Updated

Environment

  • Red Hat Ceph Storage 1.2.3

  • Red Hat Ceph Storage 1.3

Issue

  • Is it possible to change a Ceph configuration or tunable without restarting the Ceph cluster or OSDs and MONs?

Resolution

  • Configuration changes can be injected to the Ceph cluster dynamically.

  • This process will force the Ceph cluster to update/change the configuration settings/value without a restart.

  • In order to change the setting dynamically, use:

# ceph tell mon.* injectargs '--{configurable value}' 
  • For example, to change the the 'mon_osd_full_ratio' dynamically, use:
# ceph tell mon.* injectargs '--mon_osd_full_ratio 0.99'
  • To confirm if the change has indeed taken place, use :
# ceph daemon /var/run/ceph/ceph-mon.{hostname_-s}.asok config show | grep mon_osd_full_ratio
SBR
Category
Tags

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.