Restoring MOTService Service Data
Scenario
Restore MOTService data in the following scenarios: Data is modified or deleted accidentally, or needs to be recovered; data exceptions occur or the change results are not as expected after major operations such as upgrade or data modification are performed on MOTService; all modules are faulty and become unavailable; data is migrated to a new cluster.
Users can create MOTService restoration tasks on FusionInsight Manager to restore MOTService data. Only manual restoration tasks are supported.
- Data can be restored only when the system version during data backup is the same as the current system version.
- To restore data when services are normal, manually back up the latest management data before restoring data. Otherwise, the MOTService data generated after the data backup and before the data restoration will be lost.
Impact on the System
- During data restoration, user authentication stops and users cannot create new connections.
- After the data is restored, the data generated after the data backup and before the data restoration is lost.
- After the data is restored, the upper-layer applications of MOTService need to be restarted.
Prerequisites
- You have prepared a standby cluster if you need to restore data remotely from HDFS. If the active cluster is deployed in security mode (with Kerberos authentication enabled) and the active and standby clusters are not managed by the same FusionInsight Manager, mutual trust must be configured. For details, see Configuring Cross-Manager Mutual Trust Between Clusters. If the active cluster is deployed in normal mode (with Kerberos authentication disabled), mutual trust is not required.
- The time on the active and standby clusters must be the same, and the NTP service on the active and standby clusters uses the same time source.
- The database for storing restored data tables, the location for storing the data tables in HDFS, and the list of users who can access the restored data have been planned.
- The location for storing MOTService backup files is correct.
- The upper-layer applications of MOTService have been stopped.
- You have logged in to FusionInsight Manager by referring to Logging In to FusionInsight Manager.
Procedure
- On FusionInsight Manager, choose O&M > Backup and Restoration > Backup Management.
- In the Operation column of a specified task in the task list, click More and select View History to view historical execution records of backup tasks.
In the window that is displayed, select a success record and click View in the Backup Path column to view its backup path information and find the following information:
- Backup Object: indicates the backup data source.
- Backup Path: indicates the full path for storing backup files.
Select the correct path and copy the full path of backup files in Backup Path.
- On FusionInsight Manager, choose O&M > Backup and Restoration > Restoration Management.
- Click Create.
- Set Task Name to the name of the restoration task.
- Select the desired cluster from Recovery Object.
- In Restoration Configuration, select MOTService under Service data.
- Set Path Type of MOTService to a backup directory type.
Currently, only the RemoteHDFS type is available.
RemoteHDFS: indicates that backup files are stored in HDFS of the standby cluster. If you select this option, you also need to configure the following parameters:- Source NameService Name: indicates the NameService name of the backup data cluster, for example, hacluster. You can obtain it from the NameService Management page of HDFS of the standby cluster.
- IP Mode: indicates the mode of the target IP address. The system automatically selects an IP address mode based on the cluster network type, for example, IPv4 or IPv6.
- Source Active NameNode IP Address: indicates the service plane IP address of the active NameNode in the standby cluster.
- Source Standby NameNode IP Address: indicates the service plane IP address of the standby NameNode in the standby cluster.
- Source NameNode RPC Port: indicates the value of dfs.namenode.rpc.port in the HDFS basic configuration of the destination cluster.
- Source Path: indicates the full path of the HDFS directory for storing backup data of the standby cluster. For details, see Backup Path obtained in 2, for example, Backup path/Backup task name_Data source_Task creation time/.
- Click OK.
- Choose Cluster > Services > MOTService. On the Dashboard page that is displayed, click Stop to stop the MOTService service as prompted.
- In the restoration task list, locate a created task and click Start in the Operation column to execute the restoration task. After the restoration task is complete, manually start the MOTService service.
- After the restoration is successful, the progress bar is in green.
- After the restoration is successful, the restoration task cannot be re-executed.
- If the restoration task fails during the first execution, rectify the fault and click Retry to re-execute the task.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot