forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: zhengxiu <zhengxiu@huawei.com> Co-committed-by: zhengxiu <zhengxiu@huawei.com>
66 lines
12 KiB
HTML
66 lines
12 KiB
HTML
<a name="css_02_0120"></a><a name="css_02_0120"></a>
|
|
|
|
<h1 class="topictitle1">Can a Deleted CSS Cluster Be Restored?</h1>
|
|
<div id="body0000001350428305"><p id="css_02_0120__p2513657384">Yes. You can use a snapshot stored in OBS to restore a cluster. A deleted cluster that has no snapshots in OBS cannot be restored. Exercise caution when deleting a cluster.</p>
|
|
<p id="css_02_0120__p063991573515">To restore a deleted cluster using one of its snapshots stored in OBS, perform the following steps:</p>
|
|
<ol id="css_02_0120__ol4493193512359"><li id="css_02_0120__li349393563519">Log in to the <span id="css_02_0120__text194931035103514">CSS</span> management console.</li><li id="css_02_0120__li5736142015443">Click <strong id="css_02_0120__b125681313205818">Create Cluster</strong> in the upper right corner to create a cluster. During the cluster creation, disable the cluster snapshot function. After the cluster is created, enable the cluster snapshot function.<div class="notice" id="css_02_0120__note154862216110"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="css_02_0120__p4548142216117">To restore a deleted cluster to a new cluster, ensure they are in the same region. The new cluster version must be the same as or later than that of the deleted cluster. The quantity of nodes in the new cluster must be greater than half of that in the deleted cluster. Otherwise, the cluster may fail to be restored.</p>
|
|
</div></div>
|
|
</li><li id="css_02_0120__li1479018342000">If the status of the new cluster changes to <strong id="css_02_0120__b1138511231192">Available</strong>, click the cluster name to go to the <strong id="css_02_0120__b15610128298">Cluster Information</strong> page.</li><li id="css_02_0120__li104931435153512">In the navigation pane on the left, choose <strong id="css_02_0120__b9583204095918">Cluster Snapshots</strong>. Enable the cluster snapshot function. Set the OBS bucket and backup path to those set for the cluster that needs to be restored.<p id="css_02_0120__p9672155820711">After the configuration is saved, you can view the snapshot information of the deleted cluster in the snapshot management list <strong id="css_02_0120__b27913620595">a few minutes later</strong>. <strong id="css_02_0120__b941328153917">If the snapshot is not displayed, edit the basic snapshot configuration again, change the backup path to another one and then to the correct one, save the modification, and try again.</strong></p>
|
|
<div class="note" id="css_02_0120__note17920532115510"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="css_02_0120__p19920133245511">To restore the data of a deleted cluster to an existing cluster, set the OBS bucket and backup path to those of the deleted cluster.</p>
|
|
</div></div>
|
|
</li><li id="css_02_0120__li24931735143516">Locate the target snapshot and click <strong id="css_02_0120__b13612628161013">Restore</strong> in the <strong id="css_02_0120__b11331204814109">Operation</strong> column. The <strong id="css_02_0120__b1184214312113">Restore</strong> page is displayed.</li><li id="css_02_0120__li115316101430">On the <strong id="css_02_0120__b8704075046533">Restore</strong> page, set restoration parameters.
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_02_0120__table1356048234" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Restoration settings</caption><thead align="left"><tr id="css_02_0120__css_01_0266_row195242693014"><th align="left" class="cellrowborder" valign="top" width="30%" id="mcps1.3.3.6.2.2.3.1.1"><p id="css_02_0120__css_01_0266_p145210263309">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="70%" id="mcps1.3.3.6.2.2.3.1.2"><p id="css_02_0120__css_01_0266_p95232614309">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_02_0120__css_01_0266_row552162612306"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.3.6.2.2.3.1.1 "><p id="css_02_0120__css_01_0266_p3521126123019">Index</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.3.6.2.2.3.1.2 "><p id="css_02_0120__css_01_0266_p14529267301">Specify the name of the index you want to restore.</p>
|
|
<p id="css_02_0120__css_01_0266_p885364485710">Constraints:</p>
|
|
<ul id="css_02_0120__css_01_0266_ul14857204485715"><li id="css_02_0120__css_01_0266_li1457495018578">The value is a string of 0 to 1024 characters that cannot contain uppercase letters, spaces, or the following special characters: <span class="parmvalue" id="css_02_0120__css_01_0266_parmvalue88078315118"><b>"\<|>/?</b></span>.</li><li id="css_02_0120__css_01_0266_li14815175595713">When restoring an index whose name is prefixed with <strong id="css_02_0120__css_01_0266_b1596625814110">.kibana</strong>, the index name must be specified.</li><li id="css_02_0120__css_01_0266_li1481518555579">The <strong id="css_02_0120__css_01_0266_b56871981928">.opendistro_security</strong> index cannot be restored.</li></ul>
|
|
<p id="css_02_0120__css_01_0266_p159122024165811">Value range:</p>
|
|
<ul id="css_02_0120__css_01_0266_ul357110392584"><li id="css_02_0120__css_01_0266_li12865124185813">You can use an asterisk (*) to match multiple indexes. For example, <strong id="css_02_0120__css_01_0266_b107465311723">index*</strong> indicates that all indexes with the prefix <strong id="css_02_0120__css_01_0266_b1774618315211">index</strong> will be restored. When an asterisk (*) is used for index matching, the <strong id="css_02_0120__css_01_0266_b6979115315311">.opendistro_security</strong> index and any system indexes whose name is prefixed with <strong id="css_02_0120__css_01_0266_b76571923142">.kibana</strong> are filtered out by default.</li><li id="css_02_0120__css_01_0266_li9865134135820">You can restore indexes by specifying their names, for example, <span class="parmvalue" id="css_02_0120__css_01_0266_parmvalue148652041165817"><b>index1,index2,index3</b></span>.</li></ul>
|
|
<p id="css_02_0120__css_01_0266_p1935114112596">Default value:</p>
|
|
<p id="css_02_0120__css_01_0266_p714954175910">By default, this parameter is left blank. That is, no index name is specified, and all indexes will be restored.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_02_0120__css_01_0266_row115242613308"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.3.6.2.2.3.1.1 "><p id="css_02_0120__css_01_0266_p145222614305">Rename Pattern</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.3.6.2.2.3.1.2 "><p id="css_02_0120__css_01_0266_p185212693011">Index name matching rule. Enter a regular expression. Indexes that match the regular expression will be restored. The default value <span class="parmvalue" id="css_02_0120__css_01_0266_parmvalue1483212953120"><b>index_(.+)</b></span> indicates all indexes. The value is a string of 0 to 1024 characters that cannot contain uppercase letters, spaces, or the following special characters: <span class="parmvalue" id="css_02_0120__css_01_0266_parmvalue16684173114513"><b>"\<|>/?,</b></span>.</p>
|
|
<div class="note" id="css_02_0120__css_01_0266_note849419163219"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="css_02_0120__css_01_0266_p154991918323">The <span class="parmname" id="css_02_0120__css_01_0266_parmname12472130213378"><b>Rename Pattern</b></span> and <span class="parmname" id="css_02_0120__css_01_0266_parmname9618277293378"><b>Rename Replacement</b></span> take effect only when they are both configured at the same time.</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_02_0120__css_01_0266_row175219263308"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.3.6.2.2.3.1.1 "><p id="css_02_0120__css_01_0266_p115212266303">Rename Replacement</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.3.6.2.2.3.1.2 "><p id="css_02_0120__css_01_0266_p11521426113012">Rule for index renaming. The default value <span class="parmvalue" id="css_02_0120__css_01_0266_parmvalue1380539963378"><b>restored_index_$1</b></span> indicates that <span class="parmvalue" id="css_02_0120__css_01_0266_parmvalue627685363378"><b>restored_</b></span> will be added to the beginning of the names of all restored indexes. The value is a string of 0 to 1024 characters that cannot contain uppercase letters, spaces, or the following special characters: <span class="parmvalue" id="css_02_0120__css_01_0266_parmvalue0954937165613"><b>"\<|>/?,</b></span>.</p>
|
|
<div class="note" id="css_02_0120__css_01_0266_note72451520103217"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="css_02_0120__css_01_0266_p12451420113220">The <span class="parmname" id="css_02_0120__css_01_0266_parmname165063235213"><b>Rename Pattern</b></span> and <span class="parmname" id="css_02_0120__css_01_0266_parmname965012324524"><b>Rename Replacement</b></span> take effect only when they are both configured at the same time.</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_02_0120__css_01_0266_row45219268302"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.3.6.2.2.3.1.1 "><p id="css_02_0120__css_01_0266_p19522264302">Cluster</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.3.6.2.2.3.1.2 "><p id="css_02_0120__css_01_0266_p2065111428326">Select the cluster where you want to restore the data to. You can select the current cluster or another.</p>
|
|
<ul id="css_02_0120__css_01_0266_ul19225330115414"><li id="css_02_0120__css_01_0266_li0225173095417">You must specify a cluster whose status is <span class="parmname" id="css_02_0120__css_01_0266_parmname10174206013378"><b>Available</b></span>. If the status of the current cluster is <span class="parmname" id="css_02_0120__css_01_0266_parmname1101508913378"><b>Unavailable</b></span>, you cannot restore the snapshot to the current cluster.</li><li id="css_02_0120__css_01_0266_li222543015413">When you choose to restore data to another cluster, make sure the target cluster has the same or later version than the current cluster, and that the two clusters are in the same region. After a frozen index is restored using a snapshot, the index is stored on the local node and is read-only by default. To make it writable, run the following command to configure the index:<pre class="screen" id="css_02_0120__css_01_0266_screen151451928165410">PUT <em id="css_02_0120__css_01_0266_i14601158155420">index_name</em>/_settings
|
|
{
|
|
"index.blocks.write": null
|
|
}</pre>
|
|
</li><li id="css_02_0120__css_01_0266_li722563012541">If the destination cluster has same-name indexes as the source cluster, data in these indexes will be overwritten. Exercise caution when performing this operation.</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="fignone" id="css_02_0120__en-us_topic_0000001583300810_en-us_topic_0000001268314505_fig128071912118"><span class="figcap"><b>Figure 1 </b>Restore Snapshot</span><br><span><img id="css_02_0120__en-us_topic_0000001583300810_en-us_topic_0000001268314505_image1343149208" src="en-us_image_0000001933159230.png"></span></div>
|
|
</li><li id="css_02_0120__li14267162211412">Click <strong id="css_02_0120__b521181520714">OK</strong> to get started. If restoration succeeds, <span class="parmname" id="css_02_0120__en-us_topic_0000001583300810_en-us_topic_0000001268314505_parmname8592039183412"><b>Task Status</b></span> of the snapshot in the snapshot list will change to <span class="parmvalue" id="css_02_0120__en-us_topic_0000001583300810_en-us_topic_0000001268314505_parmvalue1661842133414"><b>Restoration succeeded</b></span>, and the index data is re-generated based on the snapshot.<div class="fignone" id="css_02_0120__en-us_topic_0000001583300810_en-us_topic_0000001268314505_fig25181595119"><span class="figcap"><b>Figure 2 </b>Restoration succeeded</span><br><span><img id="css_02_0120__en-us_topic_0000001583300810_en-us_topic_0000001268314505_image168371133144215" src="en-us_image_0000001933159234.png"></span></div>
|
|
</li></ol>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_02_0147.html">CSS Cluster Backup and Restoration</a></div>
|
|
</div>
|
|
</div>
|
|
|