forked from docs/doc-exports
Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com> Co-authored-by: Ru, Li Yi <liyiru7@huawei.com> Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
74 lines
9.6 KiB
HTML
74 lines
9.6 KiB
HTML
<a name="ddm_06_0017"></a><a name="ddm_06_0017"></a>
|
|
|
|
<h1 class="topictitle1">Restoring Metadata</h1>
|
|
<div id="body0000001733313057"><p id="ddm_06_0017__p9645118115513">DDM automatically backs up DDM instance metadata at 02:00 UTC+00:00 every day and retains the backup data for 30 days. Metadata backup is also triggered by key operations, such as deleting a schema, deleting data after shard configuration, and deleting instances.</p>
|
|
<p id="ddm_06_0017__p46473114585">When you delete a schema by mistake or your RDS for MySQL instances become abnormal, metadata restoration allows you to restore your DDM instance metadata and match the metadata with the RDS instance that has completed PITR to re-establish the relationship between your DDM instance and RDS instance. Metadata restoration supports only RDS for MySQL.</p>
|
|
<p id="ddm_06_0017__p533912361448">To restore metadata of a DDM instance, you can specify a point in time by referring to <a href="#ddm_06_0017__section128315484524">Restoring Metadata to a Point in Time</a>, or using an available backup by referring to <a href="#ddm_06_0017__section132806221525">Restoring Metadata Using Backups</a>.</p>
|
|
<p id="ddm_06_0017__p115306341696">Metadata restoration mainly restores the metadata of your DDM instance to a new DDM instance. It starts after a point-in-time recovery (PITR) for the associated data nodes is complete.</p>
|
|
<div class="section" id="ddm_06_0017__section738494914255"><h4 class="sectiontitle">Prerequisites</h4><ul id="ddm_06_0017__ul935817253264"><li id="ddm_06_0017__li23588251267">There is a source DDM instance available and associated with an RDS for MySQL instance. This DB instance is the source data node.</li><li id="ddm_06_0017__li10969101072817">The source data node has been restored to a specified time point.</li></ul>
|
|
</div>
|
|
<div class="section" id="ddm_06_0017__section16311542101119"><h4 class="sectiontitle">Constraints</h4><ul id="ddm_06_0017__ul1983134241110"><li id="ddm_06_0017__li884942201112">The destination DDM instance is not associated with any RDS for MySQL instance and has no schemas or accounts.</li><li id="ddm_06_0017__li02281512112">Restoration is not supported if the destination DDM instance is in the primary network and its associated RDS for MySQL instance is in the extended network.</li><li id="ddm_06_0017__li750871015158">The source DDM instance must be of the version 2.3.2.11 or later, and the destination DDM instance must be of the version 3.0.8 or later.</li><li id="ddm_06_0017__li3128144163914">Time points that data can be restored to depend on the backup policy set on original data nodes.</li></ul>
|
|
</div>
|
|
<div class="section" id="ddm_06_0017__section128315484524"><a name="ddm_06_0017__section128315484524"></a><a name="section128315484524"></a><h4 class="sectiontitle">Restoring Metadata to a Point in Time</h4><ol id="ddm_06_0017__ol5371100162518"><li id="ddm_06_0017__li1366514210243"><span>Log in to the DDM console.</span></li><li id="ddm_06_0017__li4793191882712"><a name="ddm_06_0017__li4793191882712"></a><a name="li4793191882712"></a><span><a href="ddm_06_0132.html">Create a new DDM instance</a> and use it as the destination DDM instance. For details, see<a href="ddm_06_0132.html">Creating a DDM Instance</a>.</span></li><li id="ddm_06_0017__li203725032512"><span>In the DDM instance list, locate the source instance and click its name.</span></li><li id="ddm_06_0017__li382416102214"><span>In the navigation pane on the left, choose <strong id="ddm_06_0017__b2066407356621">Backups & Restorations</strong>.</span></li><li id="ddm_06_0017__li723812134011"><span>Click <strong id="ddm_06_0017__b698802603620">Restore Metadata</strong>.</span></li><li id="ddm_06_0017__li179543119201"><span>On the displayed page, specify a time point. The source DDM instance will select an appropriate DDM metadata backup closest to the time point.</span><p>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ddm_06_0017__table1941672742313" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="ddm_06_0017__row11417102722314"><th align="left" class="cellrowborder" valign="top" width="24.87%" id="mcps1.3.7.2.6.2.1.2.3.1.1"><p id="ddm_06_0017__p10417112762314">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="75.13%" id="mcps1.3.7.2.6.2.1.2.3.1.2"><p id="ddm_06_0017__p4417172715233">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ddm_06_0017__row2041742752312"><td class="cellrowborder" valign="top" width="24.87%" headers="mcps1.3.7.2.6.2.1.2.3.1.1 "><p id="ddm_06_0017__p10417182702317">Restore To</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="75.13%" headers="mcps1.3.7.2.6.2.1.2.3.1.2 "><p id="ddm_06_0017__p1541713271235">Specify a point in time. DDM will restore metadata to this point in time using the most recent backup.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ddm_06_0017__row164171527112318"><td class="cellrowborder" valign="top" width="24.87%" headers="mcps1.3.7.2.6.2.1.2.3.1.1 "><p id="ddm_06_0017__p12417192719231">Destination DDM Instance</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="75.13%" headers="mcps1.3.7.2.6.2.1.2.3.1.2 "><p id="ddm_06_0017__p174171127142318">Select the DDM instance created in <a href="#ddm_06_0017__li4793191882712">2</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ddm_06_0017__row8417172719237"><td class="cellrowborder" valign="top" width="24.87%" headers="mcps1.3.7.2.6.2.1.2.3.1.1 "><p id="ddm_06_0017__p1941772722315">Destination Data Nodes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="75.13%" headers="mcps1.3.7.2.6.2.1.2.3.1.2 "><p id="ddm_06_0017__p441719279239">Select the RDS for MySQL instances that have completed PITR. DDM will match the selected data nodes with shard information in the selected metadata backup.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</p></li><li id="ddm_06_0017__li160757161013"><span>Click <strong id="ddm_06_0017__b4545118193711">OK</strong>. If a message is displayed indicating that the metadata is restored successfully, the restoration is complete.</span></li></ol>
|
|
</div>
|
|
<div class="section" id="ddm_06_0017__section132806221525"><a name="ddm_06_0017__section132806221525"></a><a name="section132806221525"></a><h4 class="sectiontitle">Restoring Metadata Using Backups</h4><ol id="ddm_06_0017__ol5281162245210"><li id="ddm_06_0017__li106372611521"><span>Log in to the DDM console.</span></li><li id="ddm_06_0017__li881143742017"><a name="ddm_06_0017__li881143742017"></a><a name="li881143742017"></a><span><a href="ddm_06_0132.html">Create a new DDM instance</a> and use it as the destination DDM instance. For details, see<a href="ddm_06_0132.html">Creating a DDM Instance</a>.</span></li><li id="ddm_06_0017__li2065410461265"><span>In the DDM instance list, locate the source instance and click its name.</span></li><li id="ddm_06_0017__li1828118220524"><span>In the navigation pane on the left, choose <strong id="ddm_06_0017__b18421019163711">Backups</strong>.</span></li><li id="ddm_06_0017__li1528112265210"><span>Locate the required backup based on the instance name and backup time and click <strong id="ddm_06_0017__b137151723143718">Restore</strong> in the <strong id="ddm_06_0017__b1371519233371">Operation</strong> column.</span><p><p id="ddm_06_0017__p42821322165212"></p>
|
|
</p></li><li id="ddm_06_0017__li10282152255212"><span>On the displayed page, configure required parameters.</span><p>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ddm_06_0017__table5752162417313" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter description</caption><thead align="left"><tr id="ddm_06_0017__row13753624163111"><th align="left" class="cellrowborder" valign="top" width="26.26%" id="mcps1.3.8.2.6.2.1.2.3.1.1"><p id="ddm_06_0017__p3753192410319">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="73.74000000000001%" id="mcps1.3.8.2.6.2.1.2.3.1.2"><p id="ddm_06_0017__p7753924173119">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ddm_06_0017__row13753172417319"><td class="cellrowborder" valign="top" width="26.26%" headers="mcps1.3.8.2.6.2.1.2.3.1.1 "><p id="ddm_06_0017__p475392418317">Backup Name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="73.74000000000001%" headers="mcps1.3.8.2.6.2.1.2.3.1.2 "><p id="ddm_06_0017__p107531424133110">Name of the backup to be restored.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ddm_06_0017__row10753162412318"><td class="cellrowborder" valign="top" width="26.26%" headers="mcps1.3.8.2.6.2.1.2.3.1.1 "><p id="ddm_06_0017__p7753924143114">Destination DDM Instance</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="73.74000000000001%" headers="mcps1.3.8.2.6.2.1.2.3.1.2 "><p id="ddm_06_0017__p275312248311">Select the DDM instance created in <a href="#ddm_06_0017__li881143742017">2</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ddm_06_0017__row7753524143120"><td class="cellrowborder" valign="top" width="26.26%" headers="mcps1.3.8.2.6.2.1.2.3.1.1 "><p id="ddm_06_0017__p10753824153111">Destination Data Nodes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="73.74000000000001%" headers="mcps1.3.8.2.6.2.1.2.3.1.2 "><p id="ddm_06_0017__p375342483120">Select the RDS for MySQL instances that have completed PITR. DDM will match the selected data nodes with shard information in the selected metadata backup.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</p></li><li id="ddm_06_0017__li13282222195212"><span>Click <strong id="ddm_06_0017__b1171242963619">OK</strong>. If a message is displayed indicating that the metadata is restored successfully, the restoration is complete.</span></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="ddm_03_0067.html">Backups and Restorations</a></div>
|
|
</div>
|
|
</div>
|
|
|