Files
doc-exports/docs/mrs/umn/admin_guide_000202.html
Yang, Tong 2195db241c MRS UMN 20231220 version update
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>
2024-05-16 09:40:21 +00:00

67 lines
22 KiB
HTML

<a name="admin_guide_000202"></a><a name="admin_guide_000202"></a>
<h1 class="topictitle1">Backing Up Manager Data</h1>
<div id="body1530063333239"><div class="section" id="admin_guide_000202__sa55823ae80154f04a012e47ea72e52c2"><h4 class="sectiontitle">Scenario</h4><p id="admin_guide_000202__en-us_topic_0046736763_p10970105">To ensure data security of <span id="admin_guide_000202__text67509419010">MRS</span> Manager routinely or before and after a critical operation (such as capacity expansion and reduction) on <span id="admin_guide_000202__text18109128151411">MRS</span> Manager, you need to back up <span id="admin_guide_000202__text127321113151411">MRS</span> Manager data. The backup data can be used to recover the system if an exception occurs or the operation has not achieved the expected result, minimizing the adverse impacts on services.</p>
<p id="admin_guide_000202__en-us_topic_0046736763_p31622089">You can create a backup task on <span id="admin_guide_000202__text11342216141413">MRS</span> Manager to back up Manager data. Both automatic and manual backup tasks are supported.</p>
</div>
<div class="section" id="admin_guide_000202__en-us_topic_0046736763_section667395"><h4 class="sectiontitle">Prerequisites</h4><ul id="admin_guide_000202__en-us_topic_0046736763_ul11252413"><li id="admin_guide_000202__en-us_topic_0046736763_li34162860">If data needs to be backed up to the remote HDFS, you have prepared a standby cluster for data backup. The authentication mode of the standby cluster is the same as that of the active cluster. For other backup modes, you do not need to prepare the standby cluster.</li><li id="admin_guide_000202__en-us_topic_0046736763_li39030290">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_000202__text821610186142">MRS</span> Manager, mutual trust has been 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><li id="admin_guide_000202__en-us_topic_0046736763_li7336944">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_000202__en-us_topic_0046736763_li57421566">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><li id="admin_guide_000202__en-us_topic_0046736763_li47032046">The backup type, period, policy, and other specifications have been planned based on the service requirements and you have checked whether <em id="admin_guide_000202__i473607887115249">Data storage path</em><strong id="admin_guide_000202__b233392364115249">/LocalBackup/</strong> has sufficient space on the active and standby management nodes.</li><li id="admin_guide_000202__li751416216162">If you want to back up data to NAS, you have deployed the NAS server in advance.</li><li id="admin_guide_000202__li107784143346">If you want to back up data to OBS, you have connected the current cluster to OBS and have the permission to access OBS. </li></ul>
</div>
<div class="section" id="admin_guide_000202__sbc18196bd39448198643849c424b4d98"><h4 class="sectiontitle">Procedure</h4><ol id="admin_guide_000202__ol34410596145456"><li id="admin_guide_000202__li66975272145447"><span>On <span id="admin_guide_000202__text6356112271418">MRS</span> Manager, choose <strong id="admin_guide_000202__b791560758115249">O&amp;M</strong> &gt; <strong id="admin_guide_000202__b642590851115249">Backup and Restoration</strong> &gt; <strong id="admin_guide_000202__b1066769383115249">Backup Management</strong>.</span></li><li id="admin_guide_000202__li56287983145447"><span>Click <strong id="admin_guide_000202__b1022647655115249">Create</strong>.</span></li><li id="admin_guide_000202__li46313859152022"><span>Set <strong id="admin_guide_000202__b953318129115249">Name</strong> to the name of the backup task.</span></li><li id="admin_guide_000202__li56869192288"><span>Set <strong id="admin_guide_000202__b11614146181915">Backup Object</strong> to <strong id="admin_guide_000202__b157481054181910">OMS</strong>.</span></li><li id="admin_guide_000202__li470610459486"><span>Set <strong id="admin_guide_000202__b1901655706115249">Mode</strong> to the type of the backup task.</span><p><p id="admin_guide_000202__p226614614816"><strong id="admin_guide_000202__b371514894115249">Periodic</strong> indicates that the backup task is executed by the system periodically. <strong id="admin_guide_000202__b812964105115249">Manual</strong> indicates that the backup task is executed manually.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="admin_guide_000202__table193081738154917" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Periodic backup parameters</caption><thead align="left"><tr id="admin_guide_000202__row430813818490"><th align="left" class="cellrowborder" valign="top" width="21.84%" id="mcps1.3.3.2.5.2.2.2.3.1.1"><p id="admin_guide_000202__p113081938184918">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="78.16%" id="mcps1.3.3.2.5.2.2.2.3.1.2"><p id="admin_guide_000202__p173081538114915">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="admin_guide_000202__row18308838144917"><td class="cellrowborder" valign="top" width="21.84%" headers="mcps1.3.3.2.5.2.2.2.3.1.1 "><p id="admin_guide_000202__p030893804920">Started</p>
</td>
<td class="cellrowborder" valign="top" width="78.16%" headers="mcps1.3.3.2.5.2.2.2.3.1.2 "><p id="admin_guide_000202__p103081838144917">Indicates the time when the task is started for the first time.</p>
</td>
</tr>
<tr id="admin_guide_000202__row1530813813494"><td class="cellrowborder" valign="top" width="21.84%" headers="mcps1.3.3.2.5.2.2.2.3.1.1 "><p id="admin_guide_000202__p1930833815494">Period</p>
</td>
<td class="cellrowborder" valign="top" width="78.16%" headers="mcps1.3.3.2.5.2.2.2.3.1.2 "><p id="admin_guide_000202__p7308183834918">Indicates the task execution interval. The options include <strong id="admin_guide_000202__b1565984820115249">Hours</strong> and <strong id="admin_guide_000202__b2118934324115249">Days</strong>.</p>
</td>
</tr>
<tr id="admin_guide_000202__row7308103810493"><td class="cellrowborder" valign="top" width="21.84%" headers="mcps1.3.3.2.5.2.2.2.3.1.1 "><p id="admin_guide_000202__p16308153834910">Backup Policy</p>
</td>
<td class="cellrowborder" valign="top" width="78.16%" headers="mcps1.3.3.2.5.2.2.2.3.1.2 "><ul id="admin_guide_000202__ul17277134745017"><li id="admin_guide_000202__li7277247105018"><strong id="admin_guide_000202__b1075302128115249">Full backup at the first time and incremental backup subsequently</strong></li><li id="admin_guide_000202__li0512161105112"><strong id="admin_guide_000202__b659411536115249">Full backup every time</strong></li><li id="admin_guide_000202__li10673122011516"><strong id="admin_guide_000202__b1491809934115249">Full backup once every n times</strong></li></ul>
<div class="note" id="admin_guide_000202__note181551254522"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="admin_guide_000202__ul61731492817"><li id="admin_guide_000202__li161733452817">Incremental backup is not supported when Manager data and component metadata are backed up. Only <strong id="admin_guide_000202__b815963700115249">Full backup every time</strong> is supported.</li><li id="admin_guide_000202__li1074775142813">If <strong id="admin_guide_000202__b126205592115249">Path Type</strong> is set to <strong id="admin_guide_000202__b161478284115249">NFS</strong> or <strong id="admin_guide_000202__b608096212115249">CIFS</strong>, incremental backup cannot be used. When incremental backup is used for NFS or CIFS backup, the latest full backup data is updated each time the incremental backup is performed. Therefore, no new recovery point is generated.</li></ul>
</div></div>
</td>
</tr>
</tbody>
</table>
</div>
</p></li><li id="admin_guide_000202__li44928952152042"><span>In <strong id="admin_guide_000202__b41935362211">Configuration</strong>, select <strong id="admin_guide_000202__b10376201713233">OMS</strong>.</span></li><li id="admin_guide_000202__li29306337152037"><span>Set <strong id="admin_guide_000202__b588805008115249">Path Type</strong> of <strong id="admin_guide_000202__b1386737135115249">OMS</strong> to a backup directory type.</span><p><div class="litext" id="admin_guide_000202__p18034738145447">The following backup directory types are supported:<ul class="subitemlist" id="admin_guide_000202__ul59904501145447"><li class="subitemlist" id="admin_guide_000202__li585241915581"><strong id="admin_guide_000202__b748133929115249">LocalDir</strong>: indicates that the backup files are stored on the local disk of the active management node and the standby management node automatically synchronizes the backup files.<p class="subitemlist" id="admin_guide_000202__p12759612174613">The default storage directory is <em id="admin_guide_000202__i905698843115249">Data storage path</em><strong id="admin_guide_000202__b21578914115249">/LocalBackup/</strong>, for example, <strong id="admin_guide_000202__b833809625115249">/srv/BigData/LocalBackup</strong>.</p>
<p class="subitemlist" id="admin_guide_000202__p1746662018581">If you select this option, you need to set the maximum number of replicas to specify the number of backup file sets that can be retained in the backup directory.</p>
</li><li class="subitemlist" id="admin_guide_000202__li207603257588"><strong id="admin_guide_000202__b33090644115249">LocalHDFS</strong>: indicates that the backup files are stored in the HDFS directory of the current cluster.<div class="subitemlist" id="admin_guide_000202__p16449132675817">If you select this option, set the following parameters:<ul id="admin_guide_000202__ul38600751145642"><li id="admin_guide_000202__li12991874145447"><strong id="admin_guide_000202__b490626192115249">Target Path</strong>: indicates the HDFS directory for storing the backup files. The storage path cannot be an HDFS hidden directory, such as a snapshot or recycle bin directory, or a default system directory, such as <strong id="admin_guide_000202__b399879918115249">/hbase</strong> or <strong id="admin_guide_000202__b250237919115249">/user/hbase/backup</strong>.</li><li id="admin_guide_000202__li49818004145447"><strong id="admin_guide_000202__b913391717115249">Maximum Number of Backup Copies</strong>: indicates the number of backup file sets that can be retained in the backup directory.</li><li id="admin_guide_000202__li8911155534918"><strong id="admin_guide_000202__b08783754615">Cluster for Backup</strong>: Enter the cluster name mapping to the backup directory.</li><li id="admin_guide_000202__li11429892145447"><strong id="admin_guide_000202__b760571568115249">Target NameService Name</strong>: indicates the NameService name of the backup directory. The default value is <strong id="admin_guide_000202__b493434207115249">hacluster</strong>.</li></ul>
</div>
</li><li class="subitemlist" id="admin_guide_000202__li6818114715589"><strong id="admin_guide_000202__b2048084139115249">RemoteHDFS</strong>: indicates that the backup files are stored in the HDFS directory of the standby cluster.<div class="subitemlist" id="admin_guide_000202__p4401348125813">If you select this option, set the following parameters:<ul id="admin_guide_000202__ul35551413145719"><li id="admin_guide_000202__li10541031232"><strong id="admin_guide_000202__b1338666894115249">Destination NameService Name</strong>: indicates the NameService name of the standby cluster. You can set it to the NameService name (<strong id="admin_guide_000202__b125841328135419">haclusterX</strong>, <strong id="admin_guide_000202__b138417308545">haclusterX1</strong>, <strong id="admin_guide_000202__b494313165418">haclusterX2</strong>, <strong id="admin_guide_000202__b1521423514544">haclusterX3</strong>, or <strong id="admin_guide_000202__b1774793795416">haclusterX4</strong>) of the built-in remote cluster of the cluster, or the NameService name of a configured remote cluster.</li><li id="admin_guide_000202__li139191741185317"><strong id="admin_guide_000202__b740183847115249">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_000202__b217709093115249">IPv4</strong> or <strong id="admin_guide_000202__b292937894115249">IPv6</strong>.</li><li id="admin_guide_000202__li35760164145447"><strong id="admin_guide_000202__b1517452382115249">Target NameNode IP Address</strong>: indicates the IP address of the NameNode service plane in the standby cluster. It can be of an active or standby node.</li><li id="admin_guide_000202__li53406027145447"><strong id="admin_guide_000202__b865461856115249">Target Path</strong>: indicates the HDFS directory for storing standby cluster backup data. The storage path cannot be an HDFS hidden directory, such as a snapshot or recycle bin directory, or a default system directory, such as <strong id="admin_guide_000202__b636381310573">/hbase</strong> or <strong id="admin_guide_000202__b736991365719">/user/hbase/backup</strong>.</li><li id="admin_guide_000202__li10892201145447"><strong id="admin_guide_000202__b2712201813572">Maximum Number of Backup Copies</strong>: indicates the number of backup file sets that can be retained in the backup directory.</li><li id="admin_guide_000202__li11812175183018"><strong id="admin_guide_000202__b777410351577">Source Cluster</strong>: Select the cluster of the Yarn queue used by the backup data.</li><li id="admin_guide_000202__li21569136145447"><strong id="admin_guide_000202__b1420470788115249">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 source cluster.</li></ul>
</div>
</li><li class="subitemlist" id="admin_guide_000202__li14600141619599"><strong id="admin_guide_000202__b53397410115249">NFS</strong>: indicates that backup files are stored in the NAS using the NFS protocol.<div class="subitemlist" id="admin_guide_000202__p59691816165919">If you select this option, set the following parameters:<ul id="admin_guide_000202__ul131981043121213"><li id="admin_guide_000202__li040871275519"><strong id="admin_guide_000202__b1265712825912">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_000202__b0836720135913">IPv4</strong> or <strong id="admin_guide_000202__b584482055915">IPv6</strong>.</li><li id="admin_guide_000202__li84531639101211"><strong id="admin_guide_000202__b385124034115249">Server IP Address</strong>: indicates the IP address of the NAS server.</li><li id="admin_guide_000202__li168383310145"><strong id="admin_guide_000202__b349780605115249">Server Shared Path</strong>: indicates the configured shared directory of the NAS server. (The shared path of the server cannot be set to the root directory, and the user group and owner group of the shared path must be <strong id="admin_guide_000202__b250032414352">nobody:nobody</strong>.)</li><li id="admin_guide_000202__li198291514135817"><strong id="admin_guide_000202__b1692216483592">Maximum Number of Backup Copies</strong>: indicates the number of backup file sets that can be retained in the backup directory.</li></ul>
</div>
</li><li class="subitemlist" id="admin_guide_000202__li1989192214594"><strong id="admin_guide_000202__b518699132115249">CIFS</strong>: indicates that backup files are stored in the NAS using the CIFS protocol.<div class="subitemlist" id="admin_guide_000202__p20352322195913">If you select this option, set the following parameters:<ul id="admin_guide_000202__ul19998175216165"><li id="admin_guide_000202__li11325185302310"><strong id="admin_guide_000202__b17819141215015">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_000202__b105042159016">IPv4</strong> or <strong id="admin_guide_000202__b85051115809">IPv6</strong>.</li><li id="admin_guide_000202__li14202144861616"><strong id="admin_guide_000202__b17303172117015">Server IP Address</strong>: indicates the IP address of the NAS server.</li><li id="admin_guide_000202__li5203184891618"><strong id="admin_guide_000202__b1827682800115249">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_000202__b248006392115249">445</strong>.</li><li id="admin_guide_000202__li121901359121615"><strong id="admin_guide_000202__b1261033164115249">Username</strong>: indicates the username set when the CIFS protocol is configured.</li><li id="admin_guide_000202__li10297967178"><strong id="admin_guide_000202__b1810106096115249">Password</strong>: indicates the password set when the CIFS protocol is configured.</li><li id="admin_guide_000202__li1220411480164"><strong id="admin_guide_000202__b747422950115249">Server Shared Path</strong>: indicates the configured shared directory of the NAS server. (The shared path of the server cannot be set to the root directory, and the user group and owner group of the shared path must be <strong id="admin_guide_000202__b156816266352">nobody:nobody</strong>.)</li><li id="admin_guide_000202__li20742334182813"><strong id="admin_guide_000202__b1771359405">Maximum Number of Backup Copies</strong>: indicates the number of backup file sets that can be retained in the backup directory.</li></ul>
</div>
</li><li class="subitemlist" id="admin_guide_000202__li441312313569"><strong id="admin_guide_000202__b501769127115249">SFTP</strong>: indicates that backup files are stored in the server using the SFTP protocol.<div class="subitemlist" id="admin_guide_000202__p841418318563">If you select this option, set the following parameters:<ul id="admin_guide_000202__ul107826472233"><li id="admin_guide_000202__li20331828142414"><strong id="admin_guide_000202__b129325334116">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_000202__b4496163615113">IPv4</strong> or <strong id="admin_guide_000202__b9497163610114">IPv6</strong>.</li></ul>
<ul id="admin_guide_000202__ul241493118561"><li id="admin_guide_000202__li34142310564"><strong id="admin_guide_000202__b11868154315118">Server IP Address</strong>: indicates the IP address of the server where the backup data is stored.</li><li id="admin_guide_000202__li194142031155611"><strong id="admin_guide_000202__b176561657715">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_000202__b565865710112">22</strong>.</li><li id="admin_guide_000202__li241473114565"><strong id="admin_guide_000202__b456615515210">Username</strong>: indicates the username for connecting to the server using the SFTP protocol.</li><li id="admin_guide_000202__li241412313562"><strong id="admin_guide_000202__b13571991525">Password</strong>: indicates the password for connecting to the server using the SFTP protocol.</li><li id="admin_guide_000202__li6414113120563"><strong id="admin_guide_000202__b1946671613215">Server Shared Path</strong>: indicates the backup path on the SFTP server.</li><li id="admin_guide_000202__li11414113111563"><strong id="admin_guide_000202__b3569419123">Maximum Number of Backup Copies</strong>: indicates the number of backup file sets that can be retained in the backup directory.</li></ul>
</div>
</li><li id="admin_guide_000202__li12829195701319"><strong id="admin_guide_000202__b1998775854115249">OBS</strong>: indicates that backup files are stored in OBS. <p id="admin_guide_000202__p14717132912121">If you select this option, set the following parameters:</p>
<ul id="admin_guide_000202__ul1455972611153"><li id="admin_guide_000202__li107421936181611"><strong id="admin_guide_000202__b1155376143115249">Target Path</strong>: indicates the OBS directory for storing backup data.</li><li id="admin_guide_000202__li131101937171"><strong id="admin_guide_000202__b15580113811219">Maximum Number of Backup Copies</strong>: indicates the number of backup file sets that can be retained in the backup directory.<div class="note" id="admin_guide_000202__note112236183519"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="admin_guide_000202__p18741958332">Only MRS 3.1.0 or later supports data backup to OBS.</p>
</div></div>
</li></ul>
</li></ul>
</div>
</p></li><li id="admin_guide_000202__li1995788315217"><span>Click <strong id="admin_guide_000202__b576630458115249">OK</strong>.</span></li><li id="admin_guide_000202__li15251369152110"><span>In the <strong id="admin_guide_000202__b1571338826115249">Operation</strong> column of the created task in the backup task list, click <strong id="admin_guide_000202__b1205485129115249">More</strong> and select <strong id="admin_guide_000202__b1736084594115249">Back Up Now</strong> to execute the backup task.</span><p><p id="admin_guide_000202__p6735152645413">After the backup task is executed, the system automatically creates a subdirectory for each backup task in the backup directory. The format of the subdirectory name is <em id="admin_guide_000202__i1388698390115249">Backup task name</em><strong id="admin_guide_000202__b62609136115249">_</strong><em id="admin_guide_000202__i989820337115249">Task creation time</em>, and the subdirectory is used to save data source backup files.</p>
<p id="admin_guide_000202__p64008922152111">The format of the backup file name is <em id="admin_guide_000202__i204483711115249">Version</em><strong id="admin_guide_000202__b523746011115249">_</strong><em id="admin_guide_000202__i7939978115249">Data source</em><strong id="admin_guide_000202__b30240324115249">_</strong><em id="admin_guide_000202__i211024342115249">Task execution time</em><strong id="admin_guide_000202__b785411069115249">.tar.gz</strong>.</p>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="admin_guide_000201.html">Backing Up Data</a></div>
</div>
</div>