forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Reviewed-by: Rechenburg, Matthias <matthias.rechenburg@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
48 lines
24 KiB
HTML
48 lines
24 KiB
HTML
<a name="admin_guide_000216"></a><a name="admin_guide_000216"></a>
|
|
|
|
<h1 class="topictitle1">Restoring Manager Data</h1>
|
|
<div id="body1530063345587"><div class="section" id="admin_guide_000216__safc2b00533004c3788bff296c58f1e8d"><h4 class="sectiontitle">Scenario</h4><p id="admin_guide_000216__en-us_topic_0046736771_p25960845">Manager data needs to be recovered in the following scenarios: data is modified or deleted unexpectedly and needs to be restored. After an administrator performs critical data adjustment in <span id="admin_guide_000216__text67509419010">MRS</span> Manager, an exception occurs or the operation has not achieved the expected result. All modules are faulty and become unavailable.</p>
|
|
<div class="p" id="admin_guide_000216__en-us_topic_0046736771_p32321019">System administrators can create a restoration task in <span id="admin_guide_000216__text194922404165">MRS</span> Manager to recover Manager data. Only manual restoration tasks are supported.<div class="notice" id="admin_guide_000216__note28021641171459"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="admin_guide_000216__ul9966781171459"><li id="admin_guide_000216__li2225500171510">Data restoration can be performed only when the system version is consistent with that of data backup.</li><li id="admin_guide_000216__li60759743171459">To recover data when the service is running properly, you are advised to manually back up the latest management data before recovering data. Otherwise, the Manager data that is generated after the data backup and before the data restoration will be lost.</li></ul>
|
|
</div></div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="admin_guide_000216__s1fd7ea57302248acb667b3bcff0914a7"><h4 class="sectiontitle">Impact on the System</h4><ul id="admin_guide_000216__en-us_topic_0046736771_ul62344304"><li id="admin_guide_000216__en-us_topic_0046736771_li24227825">In the restoration process, the Controller needs to be restarted and <span id="admin_guide_000216__text1290004131610">MRS</span> Manager cannot be logged in or operated during the restart.</li><li id="admin_guide_000216__en-us_topic_0046736771_li16723840">In the restoration process, all clusters need to be restarted and cannot be accessed during the restart.</li><li id="admin_guide_000216__en-us_topic_0046736771_li16296837">After data restoration, the data, such as system configuration, user information, alarm information, and audit information, that is generated after the data backup and before the data restoration will be lost. This may result in data query failure or cluster access failure.</li><li id="admin_guide_000216__li381184133310">After the Manager data is recovered, the system forces the LdapServer of each cluster to synchronize data from the OLadp.</li></ul>
|
|
</div>
|
|
<div class="section" id="admin_guide_000216__s67a2038be72b4ce386d42778b477898b"><h4 class="sectiontitle">Prerequisites</h4><ul id="admin_guide_000216__ul1222213533213"><li id="admin_guide_000216__l6b2ccbf0a54a4d7994c8b888340d4fc3">To restore data from a remote HDFS, you need to prepare a standby cluster. If the active cluster is deployed in security mode and the active and standby clusters are not managed by the same <span id="admin_guide_000216__text83811543111610">MRS</span> Manager, system mutual trust needs to be configured. For details, see <a href="admin_guide_000177.html">Configuring Cross-Manager Mutual Trust Between Clusters</a>. If the active cluster is deployed in normal mode, no mutual trust is required.</li></ul>
|
|
<ul id="admin_guide_000216__ul1750229226"><li id="admin_guide_000216__lfde42b9aa55947f79d6253ef3ddd298b">Cross-cluster replication has been configured for the active and standby clusters. For details, see <a href="admin_guide_000200.html">Enabling Cross-Cluster Replication</a>.</li><li id="admin_guide_000216__lb80a243195ff415bb79d73f765e4982c">Time is consistent between the active and standby clusters and the NTP services on the active and standby clusters use the same time source.</li></ul>
|
|
<ul id="admin_guide_000216__en-us_topic_0046736771_ul44975421"><li id="admin_guide_000216__en-us_topic_0046736771_li60396122">The status of the OMS resources and the LdapServer instances of each cluster is normal. If the status is abnormal, data restoration cannot be performed.</li><li id="admin_guide_000216__en-us_topic_0046736771_li6694187">The status of the cluster hosts and services is normal. If the status is abnormal, data restoration cannot be performed.</li><li id="admin_guide_000216__en-us_topic_0046736771_li60247685">The cluster host topologies during data restoration and data backup are the same. If the topologies are different, data restoration cannot be performed and you need to back up data again.</li><li id="admin_guide_000216__en-us_topic_0046736771_li5358257">The services added to the cluster during data restoration and data backup are the same. If the topologies are different, data restoration cannot be performed and you need to back up data again.</li><li id="admin_guide_000216__en-us_topic_0046736771_li48224321">The upper-layer applications that depend on the cluster are stopped.</li></ul>
|
|
</div>
|
|
<div class="section" id="admin_guide_000216__scfa2f31cdcb44a10b86dd991eef78b36"><h4 class="sectiontitle">Procedure</h4><ol id="admin_guide_000216__ol53386267171558"><li id="admin_guide_000216__li61395388171558"><span>On <span id="admin_guide_000216__text08229443161">MRS</span> Manager, choose <strong id="admin_guide_000216__b2120327036115010">O&M</strong> > <strong id="admin_guide_000216__b889870888115010">Backup and Restoration</strong> > <strong id="admin_guide_000216__b1531026680115010">Backup Management</strong>.</span></li><li id="admin_guide_000216__li11500162171558"><span>In the <strong id="admin_guide_000216__b097910129513">Operation</strong> column of a specified task in the task list, choose <span class="menucascade" id="admin_guide_000216__menucascade1725929716115010"><b><span class="uicontrol" id="admin_guide_000216__uicontrol90934038115010">More</span></b> > <b><span class="uicontrol" id="admin_guide_000216__uicontrol1243765491115010">View History</span></b></span> to view the historical backup task execution records.</span><p><p class="litext" id="admin_guide_000216__p6970521171558">In the displayed window, locate a specified success record and click <strong id="admin_guide_000216__b158524471583">View</strong> in the <strong id="admin_guide_000216__b107721851589">Backup Path</strong> column to view the backup path information of the task and find the following information:</p>
|
|
<ul class="subitemlist" id="admin_guide_000216__ul32453652171558"><li id="admin_guide_000216__li62734691171558"><strong id="admin_guide_000216__b465637567115010">Backup Object</strong> specifies the data source of the backup data.</li><li id="admin_guide_000216__li48345204171558"><strong id="admin_guide_000216__b156388927115010">Backup Path</strong> specifies the full path where the backup files are saved.<p id="admin_guide_000216__p27741310171558">Select the correct item, and manually copy the full path of backup files in <strong id="admin_guide_000216__b1580987645115010">Backup Path</strong>.</p>
|
|
</li></ul>
|
|
</p></li><li id="admin_guide_000216__li36392602171558"><span>On <span id="admin_guide_000216__text1434504611613">MRS</span> Manager, choose <strong id="admin_guide_000216__b1831805618115010">O&M</strong> > <strong id="admin_guide_000216__b365380047115010">Backup and Restore</strong> > <strong id="admin_guide_000216__b268533670115010">Restoring Management</strong>. On the displayed page, click <strong id="admin_guide_000216__b788771073115010">Create</strong>.</span></li><li id="admin_guide_000216__li22206217171558"><span>Set <strong id="admin_guide_000216__b505000052115010">Task Name</strong> to the name of the restoration task.</span></li><li id="admin_guide_000216__li202922055164713"><span>Set <strong id="admin_guide_000216__b2064516913169">Recovery Object</strong> to <strong id="admin_guide_000216__b3265513171611">OMS</strong>.</span></li><li id="admin_guide_000216__li53873137171558"><span>Select <strong id="admin_guide_000216__b3538101813167">OMS</strong>.</span></li><li id="admin_guide_000216__li44923309171558"><span>Set <strong id="admin_guide_000216__b936413274169">Path Type</strong> of <strong id="admin_guide_000216__b143649273168">OMS</strong> to a backup directory type.</span><p><p class="litext" id="admin_guide_000216__p15096186171558">The settings vary according to backup directory types:</p>
|
|
<ul class="subitemlist" id="admin_guide_000216__ul34817640171558"><li class="subitemlist" id="admin_guide_000216__li1936310102252"><strong id="admin_guide_000216__b1624696365115010">LocalDir</strong>: indicates that the backup files are stored on the local disk of the active management node.<p class="subitemlist" id="admin_guide_000216__p1393919107256">If you select <strong id="admin_guide_000216__b92911832216">LocalDir</strong>, you also need to set <strong id="admin_guide_000216__b1710920151818">Source Path</strong> to select the backup file to be restored, for example, <em id="admin_guide_000216__i571151488115010">Version_Data source_Task execution time</em><strong id="admin_guide_000216__b1221033696115010">.tar.gz</strong>.</p>
|
|
</li><li class="subitemlist" id="admin_guide_000216__li13488825172515"><strong id="admin_guide_000216__b335046889115010">LocalHDFS</strong>: indicates that the backup files are stored in the HDFS directory of the current cluster.<div class="subitemlist" id="admin_guide_000216__p5856162502511">If you select <strong id="admin_guide_000216__b1957712351203">LocalHDFS</strong>, set the following parameters:<ul id="admin_guide_000216__ul5598371171628"><li id="admin_guide_000216__li40251709171558"><strong id="admin_guide_000216__b254078123115010">Source Path</strong>: indicates the full path of the backup file in the HDFS, for example, <em id="admin_guide_000216__i1778780938115010">Backup path/Backup task name_Task creation time/Version_Data source_Task execution time</em><strong id="admin_guide_000216__b140461543115010">.tar.gz</strong>.</li><li id="admin_guide_000216__li337161420295"><strong id="admin_guide_000216__b973905618348">Cluster for Restoration</strong>: Enter the name of the cluster used during restoration task execution.</li><li id="admin_guide_000216__li16922841171558"><strong id="admin_guide_000216__b993658867115010">Source NameService Name</strong>: indicates the NameService name that corresponds to the backup directory when a restoration task is executed. The default value is <strong id="admin_guide_000216__b2029808489115010">hacluster</strong>.</li></ul>
|
|
</div>
|
|
</li><li class="subitemlist" id="admin_guide_000216__li12536153318255"><strong id="admin_guide_000216__b114716477115010">RemoteHDFS</strong>: indicates that the backup files are stored in the HDFS directory of the standby cluster.<div class="subitemlist" id="admin_guide_000216__p32881343251">If you select <strong id="admin_guide_000216__b19955152421916">RemoteHDFS</strong>, set the following parameters:<ul id="admin_guide_000216__ul21138357171644"><li id="admin_guide_000216__li9681194592517"><strong id="admin_guide_000216__b59907222115010">Source NameService Name</strong>: <span id="admin_guide_000216__text1999418995115010">indicates the NameService name of the backup data cluster. </span>You can enter the built-in NameService name of the remote cluster, for example, <strong id="admin_guide_000216__b1989021421115010">haclusterX</strong>, <strong id="admin_guide_000216__b1439512678115010">haclusterX1</strong>, <strong id="admin_guide_000216__b1185478885115010">haclusterX2</strong>, <strong id="admin_guide_000216__b1411731821115010">haclusterX3</strong>, or <strong id="admin_guide_000216__b1390072930115010">haclusterX4</strong>. You can also enter a configured NameService name of the remote cluster.</li><li id="admin_guide_000216__li14220204811610"><strong id="admin_guide_000216__b785853474115010">IP Mode</strong>: indicates the mode of the target IP address. The system automatically selects the IP address mode based on the cluster network type, for example, <strong id="admin_guide_000216__b1334974285115010">IPv4</strong> or <strong id="admin_guide_000216__b414786294115010">IPv6</strong>.</li><li id="admin_guide_000216__li18087842171558"><strong id="admin_guide_000216__b1547370562115010">Source NameNode IP Address</strong>: indicates the NameNode service plane IP address of the standby cluster, supporting the active node or standby node.</li><li id="admin_guide_000216__li18183347171558"><strong id="admin_guide_000216__b547835486115010">Source Path</strong>: indicates the full path of HDFS directory for storing backup data of the standby cluster, for example, <em id="admin_guide_000216__i1445087460115010">Backup path/Backup task name_Data source_Task creation time/Version_Data source_Task execution time</em><strong id="admin_guide_000216__b75577197115010">.tar.gz</strong>.</li><li id="admin_guide_000216__li11812175183018"><strong id="admin_guide_000216__b0215153517125">Source Cluster</strong>: Select the cluster of the Yarn queue used by the recovery data.</li><li id="admin_guide_000216__li3868626171558"><strong id="admin_guide_000216__b974890320115010">Queue Name</strong>: indicates the name of the Yarn queue used for backup task execution. The name must be the same as the name of the queue that is running properly in the cluster.</li></ul>
|
|
</div>
|
|
</li><li id="admin_guide_000216__li1612033610574"><strong id="admin_guide_000216__b1675720073115010">NFS</strong>: indicates that backup files are stored in the NAS using the NFS protocol. If you select <strong id="admin_guide_000216__b8658103331817">NFS</strong>, set the following parameters:<ul id="admin_guide_000216__ul51213360578"><li id="admin_guide_000216__li040871275519"><strong id="admin_guide_000216__b1467316202115010">IP Mode</strong>: indicates the mode of the target IP address. The system automatically selects the IP address mode based on the cluster network type, for example, <strong id="admin_guide_000216__b875198959115010">IPv4</strong> or <strong id="admin_guide_000216__b9074179115010">IPv6</strong>.</li><li id="admin_guide_000216__li31219365573"><strong id="admin_guide_000216__b1661075420115010">Server IP Address</strong>: indicates the IP address of the NAS server.</li><li id="admin_guide_000216__li113712933810"><strong id="admin_guide_000216__b1613437821115010">Source Path</strong>: indicates the complete path of the backup file on the NAS server, for example, <em id="admin_guide_000216__i486177696115010">Backup path/Backup task name_Data source_Task creation time/Version_Data source_Task execution time</em><strong id="admin_guide_000216__b32967883115010">.tar.gz</strong>.</li></ul>
|
|
</li><li id="admin_guide_000216__li81261936125719"><strong id="admin_guide_000216__b1938215717258">CIFS</strong>: indicates that backup files are stored in the NAS using the CIFS protocol. If you select <strong id="admin_guide_000216__b1237110321267">CIFS</strong>, set the following parameters:<ul id="admin_guide_000216__ul312712363577"><li id="admin_guide_000216__li1279025712300"><strong id="admin_guide_000216__b198414310115010">IP Mode</strong>: indicates the mode of the target IP address. The system automatically selects the IP address mode based on the cluster network type, for example, <strong id="admin_guide_000216__b218836271115010">IPv4</strong> or <strong id="admin_guide_000216__b642398928115010">IPv6</strong>.</li><li id="admin_guide_000216__li91281236125716"><strong id="admin_guide_000216__b958297473115010">Server IP Address</strong>: indicates the IP address of the NAS server.</li><li id="admin_guide_000216__li16129123695711"><strong id="admin_guide_000216__b1733538146115010">Port</strong>: indicates the port number used to connect to the NAS server over the CIFS protocol. The default value is <strong id="admin_guide_000216__b1532316448115010">445</strong>.</li><li id="admin_guide_000216__li1412953610578"><strong id="admin_guide_000216__b4376444305">Username</strong>: indicates the username set when the CIFS protocol is configured.</li><li id="admin_guide_000216__li15130153635719"><strong id="admin_guide_000216__b51471721183017">Password</strong>: indicates the password set when the CIFS protocol is configured.</li><li id="admin_guide_000216__li17967636151014"><strong id="admin_guide_000216__b111174579115010">Source Path</strong>: indicates the full path of the backup file on the NAS server, for example, <em id="admin_guide_000216__i965005358115010">Backup path/Backup task name_Data source_Task creation time/Version_Data source_Task execution time</em><strong id="admin_guide_000216__b71085488115010">.tar.gz</strong>.</li></ul>
|
|
</li><li class="subitemlist" id="admin_guide_000216__li441312313569"><strong id="admin_guide_000216__b933969910115010">SFTP</strong>: indicates that backup files are stored in the server using the SFTP protocol.<div class="subitemlist" id="admin_guide_000216__p841418318563">If you select <strong id="admin_guide_000216__b15341145533110">SFTP</strong>, set the following parameters:<ul id="admin_guide_000216__ul127408275"><li id="admin_guide_000216__li1834016223114"><strong id="admin_guide_000216__b13880359143113">IP Mode</strong>: indicates the mode of the target IP address. The system automatically selects the IP address mode based on the cluster network type, for example, <strong id="admin_guide_000216__b153512383215">IPv4</strong> or <strong id="admin_guide_000216__b935183133219">IPv6</strong>.</li></ul>
|
|
<ul id="admin_guide_000216__ul241493118561"><li id="admin_guide_000216__li839016539217"><strong id="admin_guide_000216__b19717135143219">Server IP Address</strong>: indicates the IP address of the server where the backup data is stored.</li><li id="admin_guide_000216__li4390145352112"><strong id="admin_guide_000216__b182461107322">Port</strong>: indicates the port number used to connect to the backup server over the SFTP protocol. The default value is <strong id="admin_guide_000216__b8252810113210">22</strong>.</li><li id="admin_guide_000216__li939125352119"><strong id="admin_guide_000216__b1983411317324">Username</strong>: indicates the username for connecting to the server using the SFTP protocol.</li><li id="admin_guide_000216__li93914538210"><strong id="admin_guide_000216__b13641424143220">Password</strong>: indicates the password for connecting to the server using the SFTP protocol.</li><li id="admin_guide_000216__li524741513333"><strong id="admin_guide_000216__b2041913327327">Source Path</strong>: indicates the full path of the backup file on the backup server, for example, <em id="admin_guide_000216__i197541849193211">Backup path/Backup task name_Data source_Task creation time/Version_Data source_Task execution time</em><strong id="admin_guide_000216__b14754649173213">.tar.gz</strong>.</li></ul>
|
|
</div>
|
|
</li><li id="admin_guide_000216__li12829195701319"><strong id="admin_guide_000216__b87961052143218">OBS</strong>: indicates that backup files are stored in OBS. <p id="admin_guide_000216__p1661115485268">If you select <strong id="admin_guide_000216__b64885513315">OBS</strong>, set the following parameters:</p>
|
|
<ul id="admin_guide_000216__ul9606337175418"><li id="admin_guide_000216__li6606103718547"><strong id="admin_guide_000216__b1646223434115010">Source Path</strong>: indicates the full OBS path of a backup file, for example, <em id="admin_guide_000216__i1445559904115010">Backup path/Backup task name_Data source_Task creation time/Version_Data source_Task execution time</em><strong id="admin_guide_000216__b1299734772115010">.tar.gz</strong>.<div class="note" id="admin_guide_000216__note257324712408"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="admin_guide_000216__p10573114716405">Only MRS 3.1.0 or later supports saving backup files in OBS.</p>
|
|
</div></div>
|
|
</li></ul>
|
|
</li></ul>
|
|
</p></li><li id="admin_guide_000216__li14909425171558"><span>Click <strong id="admin_guide_000216__b1200898636115010">OK</strong>.</span></li><li id="admin_guide_000216__li65467827171558"><span>In the restoration task list, locate a created task and click <strong id="admin_guide_000216__b1368113583330">Start</strong> in the <strong id="admin_guide_000216__b368717586336">Operation</strong> column to execute the restoration task.</span><p><ul class="subitemlist" id="admin_guide_000216__ul3293758171558"><li id="admin_guide_000216__li66812740171558">After the restoration is successful, the progress bar is in green.</li><li id="admin_guide_000216__li64443756171558">After the restoration is successful, the restoration task cannot be executed again.</li><li id="admin_guide_000216__li52561756171558">If the restoration task fails during the first execution, rectify the fault and click <strong id="admin_guide_000216__b524051398115010">Retry</strong> to execute the task again.</li></ul>
|
|
</p></li><li id="admin_guide_000216__li1293785171558"><span>Log in to the active and standby management nodes as user <strong id="admin_guide_000216__b1856865513115010">omm</strong> using PuTTY.</span></li><li id="admin_guide_000216__li27972720171558"><span>Run the following command to restart OMS:</span><p><p class="litext" id="admin_guide_000216__p37687767171558"><strong id="admin_guide_000216__b4031613311106">sh ${BIGDATA_HOME}/om-server/om/sbin/restart-oms.sh</strong></p>
|
|
<p class="litext" id="admin_guide_000216__p3645591171558">The command is run successfully if the following information is displayed:</p>
|
|
<pre class="screen" id="admin_guide_000216__screen32810326171558">start HA successfully.</pre>
|
|
<p class="litext" id="admin_guide_000216__p40390782171558">Run <strong id="admin_guide_000216__b42973195115010">sh ${BIGDATA_HOME}/om-server/om/sbin/status-oms.sh</strong> to check whether <strong id="admin_guide_000216__b1214555549115010">HAAllResOK</strong> of the management node is <strong id="admin_guide_000216__b378801616115010">Normal</strong> and whether <span id="admin_guide_000216__text964154817167">MRS</span> Manager can be logged in again. If yes, OMS is restarted successfully.</p>
|
|
</p></li><li id="admin_guide_000216__li50427894171558"><span>On <span id="admin_guide_000216__text1269884911163">MRS</span> Manager, click <strong id="admin_guide_000216__b819753054416">Cluster</strong>, click the name of the target cluster, and choose <strong id="admin_guide_000216__b7102152414454">Services</strong> > <strong id="admin_guide_000216__b192761833114512">KrbServer</strong>. On the displayed page, choose <strong id="admin_guide_000216__b16886133194618">More</strong> > <strong id="admin_guide_000216__b95573664616">Synchronize Configuration</strong>, click <strong id="admin_guide_000216__b184417912462">OK</strong>, and wait for the KrbServer configuration to be synchronized and the service to be restarted.</span></li><li id="admin_guide_000216__li51197863171558"><span>Choose <strong id="admin_guide_000216__b687116245482">Cluster</strong>, click the name of the desired cluster, and choose <strong id="admin_guide_000216__b112721853134813">More</strong> > <strong id="admin_guide_000216__b91964587482">Synchronize Configurations</strong>, click <strong id="admin_guide_000216__b1756410314498">OK</strong>, and wait until the cluster configuration is synchronized successfully.</span></li><li id="admin_guide_000216__li58127590171558"><span>On <span id="admin_guide_000216__text1135425121612">MRS</span> Manager, click <strong id="admin_guide_000216__b15906134825018">Cluster</strong>, click the name of the target cluster, and choose <strong id="admin_guide_000216__b676225613501">More</strong> > <strong id="admin_guide_000216__b1557965915012">Restart</strong>. On the displayed page, enter the password of the current login user, click <strong id="admin_guide_000216__b8653113111518">OK</strong>, and wait for the cluster to be restarted.</span></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="admin_guide_000215.html">Recovering Data</a></div>
|
|
</div>
|
|
</div>
|
|
|