{"id":1295,"date":"2016-05-27T16:19:29","date_gmt":"2016-05-27T14:19:29","guid":{"rendered":"https:\/\/elkano.org\/blog\/?p=1295"},"modified":"2016-10-13T11:11:39","modified_gmt":"2016-10-13T09:11:39","slug":"changing-osd-configuration-restarting","status":"publish","type":"post","link":"https:\/\/elkano.org\/blog\/changing-osd-configuration-restarting\/","title":{"rendered":"Changing osd configuration without restarting"},"content":{"rendered":"<p>If you want to change some settings in your OSDs but you don&#8217;t want to reboot them this is the way to do it. There are two ways to change the settings on the osd:<\/p>\n<p>If you are in a server where a specific OSD is running on like the OSD.3 in the example, you can use ceph daemon command to get and set settings on the OSD:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-linenumbers=\"false\" data-enlighter-theme=\"atomic\">\r\n# ceph daemon osd.3 config get osd_deep_scrub_interval\r\n{\r\n    &quot;osd_deep_scrub_interval&quot;: &quot;604800&quot;\r\n}\r\n<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-linenumbers=\"false\" data-enlighter-theme=\"atomic\">\r\n ceph daemon osd.3 config set osd_deep_scrub_interval 4838400\r\n{\r\n&quot;success&quot;: &quot;osd_deep_scrub_interval = &#039;4.8384e+06&#039; &quot;\r\n}\r\n<\/pre>\n<p>If you want to change settings in remote OSDs or you want to change all OSDs at once you can use injectargs:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-linenumbers=\"false\" data-enlighter-theme=\"atomic\">\r\nceph tell osd.4 injectargs &#039;--osd-deep-scrub-interval 4838400&#039;\r\nosd_deep_scrub_interval = &#039;4.8384e+06&#039;\r\n<\/pre>\n<p>To change all of them:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-linenumbers=\"false\" data-enlighter-theme=\"atomic\">\r\nceph tell osd.* injectargs &#039;--osd-deep-scrub-interval 4838400&#039;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you want to change some settings in your OSDs but you don&#8217;t want to reboot them this is the way to do it. There are two ways to change the settings on the osd: If you are in a server where a specific OSD is running on like the OSD.3 in the example, you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[156],"tags":[121,182,183],"_links":{"self":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/1295"}],"collection":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/comments?post=1295"}],"version-history":[{"count":6,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/1295\/revisions"}],"predecessor-version":[{"id":1314,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/1295\/revisions\/1314"}],"wp:attachment":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/media?parent=1295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/categories?post=1295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/tags?post=1295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}