<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Back up and restore a cluster | Dynatrace help</title>
    <description></description>
    <link>https://www.dynatrace.com/support/help/</link>
    <atom:link href="https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-managed/operation/back-up-and-restore-a-cluster/feed.xml" rel="self" type="application/rss+xml"/>
    <lastBuildDate>Fri, 18 Oct 2019 07:17:18 +0200</lastBuildDate>
    <pubDate>Mon, 06 May 2019 16:30:33 +0200</pubDate>
    <generator>Metalsmith v2.3.0</generator>
    <item>
      <title>Back up and restore a cluster updated on Mon, 06 May 2019 16:30:33 +0200</title>
      <description>&lt;p&gt;See below to understand how to back up and restore a Managed cluster.&lt;/p&gt;
&lt;h2 id=&quot;back-up-a-cluster&quot;&gt;Back up a cluster
      &lt;span class=&quot;shortlink-copy shortlink-copy-js&quot; data-clipboard-text=&quot;https://www.dynatrace.com/support/help/shortlink/managed-cluster-restore#back-up-a-cluster&quot;&gt;
      &lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;All important Dynatrace Managed configuration files (naming rules, tags, management zones, alerting profiles, and more) and monitoring data can be backed up automatically on a daily basis. For maximum security, it&amp;apos;s a good idea to save your backup files to an off-site location.&lt;/p&gt;
&lt;p&gt;The configuration files and internal database are contained in an uncompressed &lt;code&gt;tar&lt;/code&gt; archive.&lt;/p&gt;
&lt;p&gt;Each node should be connected to the NFS (the NFS disk should be mounted at the same shared directory on each node). The Dynatrace server process should have read/write permissions for the NFS. The protocol used to transmit data depends on your configuration. We recommend NFSv4. We don&amp;apos;t recommend CIFS.&lt;/p&gt;
&lt;div class=&quot;callout information&quot;&gt;
&lt;span class=&quot;callout__title&quot;&gt;No transaction storage backup&lt;/span&gt;
&lt;p&gt;Transaction storage isn&amp;apos;t backed up, so when you restore backups you may see some gaps in deep monitoring data.&lt;/p&gt;

&lt;/div&gt;

&lt;h3 id=&quot;cassandra&quot;&gt;Cassandra
      &lt;span class=&quot;shortlink-copy shortlink-copy-js&quot; data-clipboard-text=&quot;https://www.dynatrace.com/support/help/shortlink/managed-cluster-restore#cassandra&quot;&gt;
      &lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;Dynatrace backs up each node individually and keeps only the latest backup.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;To estimate your Cassandra backup size, see&amp;#xA0;&lt;a href=&quot;https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-managed/operation/estimating-cluster-backup-size/#estimate-cassandra-cluster-backup-size&quot;&gt;Estimating cluster back up size&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&quot;backup-characteristics&quot;&gt;Backup characteristics&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;The backup is done daily; it&amp;apos;s not incremental.&lt;/li&gt;
&lt;li&gt;Any data that&amp;apos;s replicated between nodes is also stored in the backup (there is no deduplication).&lt;/li&gt;
&lt;li&gt;Dynatrace excludes the most frequently changing column families (excluded column families are about 80% of the entire storage).&lt;/li&gt;
&lt;li&gt;

&lt;span class=&quot;tag&quot;&gt;Managed 1.166 or later&lt;/span&gt;

 Dynatrace excludes 1 minute and 5 minute resolution data.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;elasticsearch&quot;&gt;Elasticsearch
      &lt;span class=&quot;shortlink-copy shortlink-copy-js&quot; data-clipboard-text=&quot;https://www.dynatrace.com/support/help/shortlink/managed-cluster-restore#elasticsearch&quot;&gt;
      &lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;Dynatrace backs up the entire cluster. While the data is replicated across nodes and there are two replicas in addition to the primary shard, the backup excludes the replicated data.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;To estimate your Elasticsearch backup size, see&amp;#xA0;&lt;a href=&quot;https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-managed/operation/estimating-cluster-backup-size/#estimate-elasticsearch-cluster-backup-size&quot;&gt;Estimating cluster back up size&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&quot;backup-characteristics-1&quot;&gt;Backup characteristics&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The backup is done hourly and is incremental.&lt;br&gt;
Initially, Dynatrace copies the entire data set and then creates snapshots of the differences. Snapshots are copied hourly. Older snapshots are removed gradually once they are 6 months old. Dynatrace keeps at least one snapshot per month.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;For a one-node or two-node cluster, Dynatrace stores only one of the two replicas per index. As a result, the ratio of backup size to disk size is higher for one-node and two-node clusters.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Since Dynatrace keeps some of the older snapshots, backup size grows regardless of the current size on disk. The snapshots are incremental, but Elasticsearch merges data segments over time, which results in certain duplicates in the backup.&lt;/p&gt;
&lt;h2 id=&quot;restore-a-cluster&quot;&gt;Restore a cluster
      &lt;span class=&quot;shortlink-copy shortlink-copy-js&quot; data-clipboard-text=&quot;https://www.dynatrace.com/support/help/shortlink/managed-cluster-restore#restore-a-cluster&quot;&gt;
      &lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;To restore a cluster, follow the steps below.&lt;/p&gt;
&lt;h3 id=&quot;before-you-begin&quot;&gt;Before you begin
      &lt;span class=&quot;shortlink-copy shortlink-copy-js&quot; data-clipboard-text=&quot;https://www.dynatrace.com/support/help/shortlink/managed-cluster-restore#before-you-begin&quot;&gt;
      &lt;/span&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Make sure the machines prepared for the cluster restore have similar hardware and disk layout as the original cluster and sufficient capacity to handle the load after restore.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;callout information&quot;&gt;
&lt;span class=&quot;callout__title&quot;&gt;We recommend&lt;/span&gt;
&lt;p&gt;We recommend that you restore the cluster to the same number of nodes as the backed up cluster. In exceptional cases it&amp;apos;s possible to restore to a cluster with up to two nodes less than the backed up cluster. You risk losing the cluster configuration if you attempt to restore to a cluster that is more than two nodes short of the original backed up cluster.&lt;/p&gt;

&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;On each target node, mount the NFS backup storage, for example to &lt;code&gt;/mnt/backup&lt;/code&gt;, referred to as &lt;code&gt;&amp;lt;path-to-backup&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Ensure the installer has read permissions to the NFS. For example:
&lt;code&gt;sudo adduser dynatrace &amp;amp;&amp;amp; sudo chown -R dynatrace:dynatrace &amp;lt;path-to-backup&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Create your cluster inventory. You&amp;apos;ll need this information during the restore.
&lt;ul&gt;
&lt;li&gt;IDs of nodes in the cluster - The backup of each node is stored in a dedicated directory named after its identifier, in the format &lt;code&gt;node_&amp;lt;node_id&amp;gt;&lt;/code&gt; (for example, &lt;code&gt;node_1&lt;/code&gt;, &lt;code&gt;node_5&lt;/code&gt;, etc).&lt;/li&gt;
&lt;li&gt;IPv4 addresses of the new machines.&lt;/li&gt;
&lt;li&gt;Decide what the target machine for each node will be.&lt;/li&gt;
&lt;li&gt;Decide which node will become the master (seed) node in the cluster.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;restore-from-backup&quot;&gt;Restore from backup
      &lt;span class=&quot;shortlink-copy shortlink-copy-js&quot; data-clipboard-text=&quot;https://www.dynatrace.com/support/help/shortlink/managed-cluster-restore#restore-from-backup&quot;&gt;
      &lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;To restore a cluster, follow the steps below:&lt;/p&gt;
&lt;div class=&quot;step&quot;&gt;
&lt;p&gt;&lt;strong&gt;Copy the installer to target nodes&lt;/strong&gt;&lt;br&gt;
To restore the cluster, you need to use the exact same installer version as in the original one. Copy the installer from &lt;code&gt;&amp;lt;path-to-backup&amp;gt;/&amp;lt;UUID&amp;gt;/node_&amp;lt;node_id&amp;gt;/&lt;/code&gt; to a local disk on each target node.&lt;br&gt;
For example &lt;code&gt;cp &amp;lt;path-to-backup&amp;gt;/&amp;lt;UUID&amp;gt;/node_&amp;lt;node_id&amp;gt;/files/backup-001-dynatrace-managed-installer.sh /tmp/&lt;/code&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;div class=&quot;step&quot;&gt;
&lt;p&gt;&lt;strong&gt;Launch Dynatrace restore on each node&lt;/strong&gt;&lt;br&gt;
In parallel, on each node, execute the Dynatrace Managed installer using the following parameters:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;--restore&lt;/code&gt; - switches the installer into the restore mode.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;--cluster-ip&lt;/code&gt; - IPv4 address of the node on which you run the installer.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;--cluster-nodes&lt;/code&gt; - the comma-delimited list of IDs and IP addresses of all nodes in the cluster, including the one on which you run the installer, in the following format &lt;code&gt;&amp;lt;node_id&amp;gt;:&amp;lt;node_ip&amp;gt;,&amp;lt;node_id&amp;gt;:&amp;lt;node_ip&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;--seed-ip&lt;/code&gt; - IPv4 address of the seed node.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;backup-file&lt;/code&gt; - the path to the backup &lt;code&gt;*.tar&lt;/code&gt; file.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Get the IDs and IP addresses from the inventory you created before you started.&lt;/p&gt;
&lt;p&gt;For example:&lt;br&gt;
&lt;code&gt;10.176.41.168&lt;/code&gt; - The IP address of the node to restore&lt;br&gt;
&lt;code&gt;1: 10.176.41.168, 3: 10.176.41.169, 5: 10.176.41.170&lt;/code&gt; - Node IDs and new IP addresses of all nodes in the cluster&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell hljs&quot;&gt;sudo /tmp/backup-001-dynatrace-managed-installer.sh/
--restore
--cluster-ip &amp;quot;10.176.41.168&amp;quot;
--cluster-nodes &amp;quot;1:10.176.41.168,3:10.176.41.169,5:10.176.41.170&amp;quot;
--seed-ip &amp;quot;10.176.41.169&amp;quot;
--backup-file /mnt/backup/bckp/c9dd47f0-87d7-445e-bbeb-26429fac06c6/node_1/files/backup-001.tar
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;div class=&quot;step&quot;&gt;
&lt;p&gt;&lt;strong&gt;Start the firewall, Cassandra and Elasticsearch&lt;/strong&gt;&lt;br&gt;
On each node successively, start the firewall, Cassandra and Elasticsearch using the launcher script:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;hljs&quot;&gt;&lt;span class=&quot;hljs-regexp&quot;&gt;/opt/&lt;/span&gt;dynatrace-managed&lt;span class=&quot;hljs-regexp&quot;&gt;/launcher/&lt;/span&gt;firewall.sh start
&lt;span class=&quot;hljs-regexp&quot;&gt;/opt/&lt;/span&gt;dynatrace-managed&lt;span class=&quot;hljs-regexp&quot;&gt;/launcher/&lt;/span&gt;cassandra.sh start
&lt;span class=&quot;hljs-regexp&quot;&gt;/opt/&lt;/span&gt;dynatrace-managed&lt;span class=&quot;hljs-regexp&quot;&gt;/launcher/&lt;/span&gt;elasticsearch.sh start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;div class=&quot;step&quot;&gt;
&lt;p&gt;&lt;strong&gt;Verify Cassandra state&lt;/strong&gt;&lt;br&gt;
On each node, check if Cassandra is running. Execute the command:&lt;br&gt;
&lt;code&gt;&amp;lt;dynatrace-install-dir&amp;gt;/utils/cassandra-nodetool.sh status&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;All the nodes of the restored cluster should be listed in the response with the following values:&lt;br&gt;
&lt;code&gt;Status = Up&lt;/code&gt;&lt;br&gt;
&lt;code&gt;State = Normal&lt;/code&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;div class=&quot;step&quot;&gt;
&lt;p&gt;&lt;strong&gt;Verify Elasticsearch state&lt;/strong&gt;&lt;br&gt;
On each node, check if Elasticsearch is running. Execute the command:&lt;br&gt;
&lt;code&gt;curl -s -N -XGET &amp;apos;http://localhost:9200/_cluster/health?pretty&amp;apos; | grep status&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;You should get the following response:&lt;br&gt;
&lt;code&gt;&amp;quot;status&amp;quot; : &amp;quot;green&amp;quot;&lt;/code&gt;&lt;br&gt;
or for one node setup:&lt;br&gt;
&lt;code&gt;&amp;quot;status&amp;quot; : &amp;quot;yellow&amp;quot;&lt;/code&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;div class=&quot;step&quot;&gt;
&lt;p&gt;&lt;strong&gt;Restore the Elasticsearch database&lt;/strong&gt;&lt;br&gt;
On  the master (seed) node, run the following command:
&lt;code&gt;&amp;lt;dynatrace-install-dir&amp;gt;/utils/restore-elasticsearch-data.sh &amp;lt;path-to-backup&amp;gt;/&amp;lt;UUID&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;div class=&quot;step&quot;&gt;
&lt;p&gt;&lt;strong&gt;Restore Cassandra data files&lt;/strong&gt;&lt;br&gt;
On each node successively, starting with the seed node, run the following command:&lt;br&gt;
&lt;code&gt;&amp;lt;dynatrace-install-dir&amp;gt;/utils/restore-cassandra-data.sh &amp;lt;path-to-backup&amp;gt;/&amp;lt;UUID&amp;gt;/node_&amp;lt;node_id&amp;gt;/files/backup-001.tar&lt;/code&gt;&lt;br&gt;
Wait until Cassandra has its cluster fully set. Use the command:&lt;br&gt;
&lt;code&gt;&amp;lt;dynatrace-install-dir&amp;gt;/utils/cassandra-nodetool.sh status&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You should get the following response:&lt;br&gt;
&lt;code&gt;Status = Up&lt;/code&gt;&lt;br&gt;
&lt;code&gt;State = Normal&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;div class=&quot;step&quot;&gt;
&lt;p&gt;

&lt;span class=&quot;tag&quot;&gt;Optional&lt;/span&gt;

 &lt;strong&gt;Repair Cassandra&lt;/strong&gt;&lt;br&gt;
On one of the nodes, initiate the cluster-wide Cassandra repair:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell hljs&quot;&gt;&amp;lt;dynatrace-install-dir&amp;gt;/utils/cassandra-nodetool.sh repair
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is for ensuring data consistency between the nodes. &lt;strong&gt;This step may take several hours to complete&lt;/strong&gt;.&lt;/p&gt;

&lt;/div&gt;
&lt;div class=&quot;step&quot;&gt;
&lt;p&gt;&lt;strong&gt;Start Dynatrace&lt;/strong&gt;&lt;br&gt;
On each node successively, starting with the seed node, run the following command:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell hljs&quot;&gt;&amp;lt;dynatrace-install-dir&amp;gt;/launcher/dynatrace.sh start
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Wait until you can sign in to Cluster Management Console.&lt;/p&gt;

&lt;/div&gt;
&lt;div class=&quot;step&quot;&gt;
&lt;p&gt;

&lt;span class=&quot;tag&quot;&gt;Optional&lt;/span&gt;

 &lt;strong&gt;Remove remaining references to old nodes&lt;/strong&gt;&lt;br&gt;
In case you decided to restore fewer nodes than in the original cluster, remove the nodes marked as &lt;code&gt;Offline&lt;/code&gt; in the Cluster Management Console. For more information, see &lt;a href=&quot;https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-managed/operation/remove-a-cluster-node/&quot;&gt;Remove a cluster node&lt;/a&gt;&lt;/p&gt;

&lt;/div&gt;
&lt;div class=&quot;step&quot;&gt;
&lt;p&gt;&lt;strong&gt;Switch OneAgents to the new cluster address&lt;/strong&gt;&lt;br&gt;
If you originally configured the cluster with the DNS for OneAgents, you only need to update the DNS records as explained in the next step.&lt;/p&gt;
&lt;p&gt;Otherwise, you must configure Cluster ActiveGates (or OneAgents if no ActiveGates are used) with the new target address and restart them.&lt;/p&gt;
&lt;p&gt;Execute the following cluster API call for each node, replacing &lt;code&gt;&amp;lt;node-id&amp;gt;&lt;/code&gt; with the node identifier, &lt;code&gt;&amp;lt;node-ip&amp;gt;&lt;/code&gt; with the node IPV4 address, and &lt;code&gt;&amp;lt;Api-Token&amp;gt;&lt;/code&gt; with a valid Cluster API token.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell hljs&quot;&gt;curl -ikS -X PUT -d &amp;lt;node-ip&amp;gt; https://&amp;lt;node_ip&amp;gt;:8021/api/v1.0/onpremise/endpoint/publicIp/agents/&amp;lt;node-id&amp;gt;?Api-Token=&amp;lt;Api-Token&amp;gt; -H  &amp;quot;accept: application/json&amp;quot; -H  &amp;quot;Content-Type: application/json&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You should receive the &lt;code&gt;200&lt;/code&gt; response as in the example below:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell hljs&quot;&gt;HTTP/1.1 200 OK
Date: Tue, 19 Feb 2019 17:49:06 GMT
X-Robots-Tag: noindex
Server: ruxit server
Content-Length: 0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;div class=&quot;step&quot;&gt;
&lt;p&gt;

&lt;span class=&quot;tag&quot;&gt;Optional&lt;/span&gt;

 &lt;strong&gt;Update cluster DNS records&lt;/strong&gt;&lt;br&gt;
If the cluster restore resulted in changing the IP addresses, update the DNS records.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If you use automatic domain and certificate management, execute to following cluster API call for each node, replacing &lt;code&gt;&amp;lt;node-id&amp;gt;&lt;/code&gt; with the node identifier, &lt;code&gt;&amp;lt;node-ip&amp;gt;&lt;/code&gt; with the node IPV4 address, and &lt;code&gt;&amp;lt;Api-Token&amp;gt;&lt;/code&gt; with a valid &lt;a href=&quot;https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/basics/dynatrace-api-authentication/&quot;&gt;API token&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell hljs&quot;&gt;curl -ikS -X PUT -d &amp;lt;node-ip&amp;gt; https://&amp;lt;Node-ip&amp;gt;:8021/api/v1.0/onpremise/endpoint/publicIp/domain/&amp;lt;node-id&amp;gt;?Api-Token=&amp;lt;Api-Token&amp;gt; -H  &amp;quot;accept: application/json&amp;quot; -H  &amp;quot;Content-Type: application/json&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You should receive the &lt;code&gt;200&lt;/code&gt; response as in the example below:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell hljs&quot;&gt;HTTP/1.1 200 OK
Date: Tue, 19 Feb 2019 17:49:06 GMT
X-Robots-Tag: noindex
Server: ruxit server
Content-Length: 0
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;If you use your own DNS, update your cluster domain to a new IP address.&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;div class=&quot;step&quot;&gt;
&lt;p&gt;Cluster is ready.&lt;/p&gt;

&lt;/div&gt;
</description>
      <pubDate>Mon, 06 May 2019 16:30:33 +0200</pubDate>
      <link>https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-managed/operation/back-up-and-restore-a-cluster/?updated=mon-06-may-2019-16-30-33-0200</link>
      <guid isPermaLink="true">https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-managed/operation/back-up-and-restore-a-cluster/</guid>
    </item>
  </channel>
</rss>