doc-exports/docs/dws/umn/dws_01_0029.html
luhuayi 85562e1879 DWS UMN 831.100 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: luhuayi <luhuayi@huawei.com>
Co-committed-by: luhuayi <luhuayi@huawei.com>
2024-11-13 08:55:54 +00:00

52 lines
13 KiB
HTML

<a name="EN-US_TOPIC_0000001924728744"></a><a name="EN-US_TOPIC_0000001924728744"></a>
<h1 class="topictitle1">Restoring a Snapshot to a New Cluster</h1>
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_section197315504370"><h4 class="sectiontitle">Scenario</h4><p id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_p8060118">This section describes how to restore a snapshot to a new cluster when you want to check point-in-time snapshot data of the cluster.</p>
<p id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_p044212315597">When a snapshot is restored to a new cluster, the restoration time is determined by the amount of data backed up by the snapshot. If a snapshot contains a large amount of data, the restoration will be slow. A small snapshot can be quickly restored.</p>
<p id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_p13264151563816">Automatic snapshots are incremental backups. When restoring a snapshot to a new cluster, GaussDB(DWS) uses all snapshots between the latest full backup and the current snapshot. You can set the backup frequency. If snapshots are backed up only once a week, the backup will be slow if the incremental data volume is large. You are advised to increase the backup frequency.</p>
<div class="notice" id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_note182641215143812"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_ul6264181513386"><li id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_li14264181593815">Currently, you can only use the snapshots stored in OBS to restore data to a new cluster.</li><li id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_li201078341115">By default, the new cluster created during restoration has the same specifications and node quantity as the original cluster.</li><li id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_li18413205913342">Restoring data to a new cluster does not affect the services running in the original cluster.</li><li id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_li784317167201">If cold and hot tables are used, snapshots cannot be used to restore cold data to a new cluster.</li><li id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_li179092386271">Fine-grained restoration does not support tables in absolute or relative tablespace.</li><li id="EN-US_TOPIC_0000001924728744__li48203162047">Logical clusters and resource pools cannot be restored to a new cluster.</li></ul>
</div></div>
</div>
<div class="section" id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_section7335122917"><h4 class="sectiontitle">Prerequisites</h4><ul id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_ul9708105143016"><li id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_li128011511524">The resources required for restoring data to a new cluster do not exceed your available resource quota.</li><li id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_li387171343010">The snapshot is in the <strong id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_b1792404581711">Available</strong> state.</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_section3487218143910"><h4 class="sectiontitle">Procedure</h4><ol id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_ol12013513315"><li id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_li185333863918"><span>Log in to the GaussDB(DWS) console.</span></li><li id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_li985319381394"><span>In the navigation pane, choose <strong id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_b133531628121411">Snapshots</strong>. All snapshots are displayed by default.</span></li><li id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_li344634433115"><span>In the <strong id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_b12104115418372">Operation</strong> column of a snapshot, click <strong id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_b196065033720">Restore</strong>.</span></li><li id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_li8160533194219"><span>On the <strong id="EN-US_TOPIC_0000001924728744__b5573142631">Restore Snapshot</strong> page, configure the parameters of the new cluster, as shown in the following figure. </span><p><ul id="EN-US_TOPIC_0000001924728744__ul103412597327"><li id="EN-US_TOPIC_0000001924728744__li16341859143214">Restore to a single-AZ cluster.</li></ul>
<p id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_p1112719920170">You can modify cluster parameters. For details, see <a href="#EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_table2991343171911">Table 1</a>. By default, other parameters are the same as those in the snapshot. For details, see <a href="dws_01_0089.html#EN-US_TOPIC_0000001924728816__en-us_topic_0000001360169333_en-us_topic_0000001231278872_table1355651818416">Table 2</a>.</p>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_table2991343171911"></a><a name="en-us_topic_0000001360289709_en-us_topic_0000001180320217_table2991343171911"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_table2991343171911" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters for the new cluster</caption><thead align="left"><tr id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_row19991204317197"><th align="left" class="cellrowborder" valign="top" width="21.22%" id="mcps1.3.3.2.4.2.3.2.3.1.1"><p id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_p2099124351916">Category</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="78.78%" id="mcps1.3.3.2.4.2.3.2.3.1.2"><p id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_p169911443111916">Operation</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_row11991194316199"><td class="cellrowborder" valign="top" width="21.22%" headers="mcps1.3.3.2.4.2.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_p9991114316198">Basic settings</p>
</td>
<td class="cellrowborder" valign="top" width="78.78%" headers="mcps1.3.3.2.4.2.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_p1199118438195">Region, AZ, node flavor, cluster name, database port, VPC, subnet, security group, public access, and enterprise project</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_row1146920132016"><td class="cellrowborder" valign="top" width="21.22%" headers="mcps1.3.3.2.4.2.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_p15146162092017">Advanced settings</p>
</td>
<td class="cellrowborder" valign="top" width="78.78%" headers="mcps1.3.3.2.4.2.3.2.3.1.2 "><div class="p" id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_p18762515200">If <span class="parmvalue" id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_parmvalue1336795554112124"><b>Custom</b></span> is selected, configure the following parameters:<ul id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_ul5840537172013"><li id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_li38409371207"><strong id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_b122351521432">Tag</strong>: If encryption is enabled for the original cluster, you can configure a key name.</li></ul>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</p></li><li id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_li18688111631"><span>Click <strong id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_b377768908112124">Restore</strong> to go to the confirmation page.</span></li><li id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_li573921115318"><span>Click <span class="uicontrol" id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_uicontrol1729478627112124"><b>Submit</b></span> to restore the snapshot to the new cluster.</span><p><p id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_p1785311388395">When the status of the new cluster changes to <span class="parmvalue" id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_parmvalue662338246112124"><b>Available</b></span>, the snapshot is restored.</p>
<p id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_p4853163823912">After the snapshot is restored, the private network address and EIP (if <span class="parmname" id="EN-US_TOPIC_0000001924728744__parmname11722121674713"><b>EIP</b></span> is set to <span class="parmvalue" id="EN-US_TOPIC_0000001924728744__parmvalue20723816134713"><b>Automatically assign</b></span>) are automatically assigned.</p>
<div class="note" id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_note17854133817391"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001360289709_en-us_topic_0000001180320217_p6854103810396">If the number of requested nodes, vCPU (cores), or memory (GB) exceed the user's remaining quota, a warning dialog box is displayed, indicating that the quota is insufficient and displaying the detailed remaining quota and the current quota application. You can click <strong id="EN-US_TOPIC_0000001924728744__b942705872112124">Increase quota</strong> in the warning dialog box to submit a service ticket and apply for higher node quota. Once approved, we will update your resource quota accordingly and send you a notification. </p>
</div></div>
</p></li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000001924728744__section3352124912136"><h4 class="sectiontitle">Viewing Restoration Details</h4><ol id="EN-US_TOPIC_0000001924728744__ol107998362425"><li id="EN-US_TOPIC_0000001924728744__li19727242164218"><span>Log in to the GaussDB(DWS) console.</span></li><li id="EN-US_TOPIC_0000001924728744__li16727204234216"><span>Choose <strong id="EN-US_TOPIC_0000001924728744__b395091873613">Clusters</strong> &gt; <strong id="EN-US_TOPIC_0000001924728744__b19950141813363">Dedicated Clusters</strong>.</span></li><li id="EN-US_TOPIC_0000001924728744__li1172724214421"><span>In the cluster list, if the cluster status is <strong id="EN-US_TOPIC_0000001924728744__b4786020103617">Restoring</strong>, click <strong id="EN-US_TOPIC_0000001924728744__b1278616206368">View Details</strong>.</span></li><li id="EN-US_TOPIC_0000001924728744__li127744502163"><span>You can view the snapshot restoration progress of the cluster on the task details page.</span><p><div class="note" id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001422959297_note233018517547"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001422959297_ul1452315217533"><li id="EN-US_TOPIC_0000001924728744__en-us_topic_0000001422959297_li193990613545">The estimated duration in the task details is for reference only. The actual duration depends on the current data volume.</li><li id="EN-US_TOPIC_0000001924728744__li6479133117129">In the restore phase, click <strong id="EN-US_TOPIC_0000001924728744__b158815283367">View</strong> to view the kernel restoration process. Note that there may be a time gap between the task time displayed in the task details area and the actual kernel execution time due to task scheduling and restart.</li></ul>
</div></div>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_01_1015.html">Restoration Using a Snapshot</a></div>
</div>
</div>