<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>openATTIC (Posts about administration)</title><link>/</link><description></description><atom:link href="https://openattic.org/categories/administration.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Thu, 22 Aug 2019 20:00:55 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>How to do a Ceph cluster maintenance/shutdown</title><link>https://openattic.org/posts/how-to-do-a-ceph-cluster-maintenanceshutdown/</link><dc:creator>Kai Wagner</dc:creator><description>&lt;div&gt;&lt;p&gt;Last week someone asked on the ceph-users ML how to shutdown a Ceph cluster
and I would like to summarize the steps that are neccessary to do that.&lt;/p&gt;
&lt;ol class="arabic"&gt;
&lt;li&gt;&lt;p class="first"&gt;Stop the clients from using your Cluster
&lt;em&gt;(this step is only neccessary if you want to shutdown your whole cluster)&lt;/em&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;strong&gt;Important&lt;/strong&gt; - Make sure that your cluster is in a healthy state before proceeding&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Now you have to set some OSD flags:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
# ceph osd set noout
# ceph osd set nobackfill
# ceph osd set norecover

Those flags should be totally suffiecient to safely powerdown your cluster but you
could also set the following flags on top if you would like to pause your cluster completely::

# ceph osd norebalance
# ceph osd nodown
# ceph osd pause

## Pausing the cluster means that you can't see when OSDs come
back up again and no map update will happen
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Shutdown your service nodes one by one&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Shutdown your OSD nodes one by one&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Shutdown your monitor nodes one by one&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Shutdown your admin node&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;After maintenance just do everything mentioned above in reverse order.&lt;/p&gt;&lt;/div&gt;</description><category>administration</category><category>ceph</category><category>cluster</category><category>maintenance</category><category>shutdown</category><guid>https://openattic.org/posts/how-to-do-a-ceph-cluster-maintenanceshutdown/</guid><pubDate>Mon, 19 Feb 2018 07:18:52 GMT</pubDate></item></channel></rss>