Data processor and method and system for realizing data backup based on data processor
Through the connection of the data processor to multiple data centers, the disk array computing module is used for redundant protection or disaster recovery backup of bare disk cabinets, which solves the problems of complex data backup operations and high resource consumption in the existing technology, and achieves high efficiency. , secure data storage and recovery.
Patent Information
- Application Number
- CN202410974549.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-10-15
AI Technical Summary
Existing data backup technology has complex operation logic in big data storage and consumes a lot of resources. Moreover, redundant operations increase the resource consumption of the server, making it difficult to achieve efficient and safe data storage and recovery.
Establish connections with at least two data centers through the data processor (DPU), and use the disk array computing module to perform RAID redundancy protection or disaster recovery backup of bare disk cabinets, reducing the redundancy of traditional backup operations and reducing server resource consumption.
It achieves efficient data backup and recovery, is suitable for different data center scenarios, reduces server resource consumption, and improves the security and reliability of data storage.
Smart Images

Figure CN118779156A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data backup, and in particular to a data processor and a method and system for implementing data backup based on the data processor. Background Art
[0002] As the big data industry is increasingly used, the demand for data file storage is growing. As an enterprise in the big data industry, you need to have a more appropriate, more suitable, more secure and lower-cost storage method to meet storage needs, and you must first ensure data security, that is, ensure that data cannot be lost.
[0003] In some related technologies, a two-site multi-center storage method is usually adopted. When the server writes data to the storage device, the storage device needs to perform a series of operations such as data reception, remote replication, cache mirroring, data compass, etc., and the operation logic is complex; and traditional storage devices are usually designed with dual controllers. For example, in order to keep the data on the two controllers consistent, mutual mirroring is required when using cache to ensure that the server can also read related data from the other controller, which increases redundancy and increases the resource consumption in the server for processing data. Summary of the invention
[0004] In order to solve at least one of the problems mentioned in the above background technology, the present application provides a data processor and a method and system for implementing data backup based on the data processor, which establishes a connection with at least two data centers through a DPU, and can connect to a bare disk cabinet without RAID redundancy protection through the DPU to achieve disaster recovery backup. The DPU can also be used to connect to an array storage that has been protected by RAID redundancy to achieve disaster recovery backup, and the operational redundancy of traditional backup data is reduced, reducing resource consumption in the server.
[0005] The specific technical solutions provided by the embodiments of this application are as follows:
[0006] In a first aspect, a data processor is provided, wherein the data processor is applied on a server, and the data processor comprises:
[0007] A PCIE interface, used to connect the data processor and the server;
[0008] A remote connection module, used to establish a communication connection between a data center used to store data in the server and the data processor;
[0009] a hard disk simulation module, configured to configure a data center connected to the data processor as a simulated disk, so that the server can recognize the simulated disk information;
[0010] The disk array calculation module is used to calculate and process the data to be stored in the server to obtain the data to be written, so that the server writes the data to be written into the data center corresponding to the simulated disk according to the simulated disk information.
[0011] In a second aspect, a method for implementing data backup based on the data processor as described above is provided, wherein the data processor is applied to a server, and the method comprises:
[0012] Configure at least two data centers, the data centers are used to store data in the servers; deploy the data centers and the data processors to access the network to achieve communication connection between the data processors and the data centers; in response to writing data to the data centers, obtain the data to be written in the server, use the disk array computing module in the data processor to process the data to be stored according to the number of the data centers to obtain at least two copies of the data to be written; and write the data to be written into the data centers respectively.
[0013] In a specific embodiment, at least three data centers are configured, and the types of the data centers are configured as array storage with redundant protection or bare disks without redundant protection, and the method further includes:
[0014] The data center is configured as an array storage for redundant protection, and the disk array computing module processes the data to be written to obtain at least three identical storage data; the storage data are written into the data center respectively; or, the data is configured as a bare disk without redundant protection, and the disk array computing module divides the data to be stored to obtain at least three divided data, and calculates the check value corresponding to each divided data; the divided data and the check value corresponding to the divided data are written into the data center respectively.
[0015] In a specific embodiment, after the data center is deployed and the data processor is connected to a network to achieve communication connection between the data processor and the data center, the method further includes:
[0016] Starting the data center and the server; in response to the first use of the data processor, specifying the type of the data center; so that the data processor initializes and sets the property values corresponding to the PCIE interface and the hard disk simulation module according to the configured type of the data center; in response to the operating system of the server being started, scanning the data processor connected to the PCIE interface to obtain information about the simulated disk in the data processor; configuring the application corresponding to the data to be stored on the server to use the simulated disk; in response to the data center being configured as array storage for redundant protection, the storage devices in each of the data centers report the block devices obtained through different paths to the data processor; obtaining the identification code of each of the block devices through the multipath function module in the data processor; and merging the multiple block devices into one logical block device according to the identification code, so that the logical block device identified in the server has a unique preset identification code.
[0017] In a specific embodiment, the storage devices in the three data centers have the same capacity and the storage devices in the three data centers have the same model.
[0018] In a specific embodiment, the method further includes: when the data is configured as an array storage for redundant protection, responding to receiving a read data request; according to the read data request, reading data from the first data center through the data processor and transmitting it to the server; or, when the data is configured as a bare disk without redundant protection, responding to receiving a read data request; according to the read data request, reading data corresponding to the read data request from each data center, and calculating the original data through the data processor; transmitting the original data to the server.
[0019] In a specific embodiment, the method further includes: in response to a failure in one of the data centers, it is necessary to obtain lost data; when the data center is configured as an array storage for redundant protection, copying data from any other data center to obtain the lost data; when the data center is configured as a bare disk without redundant protection, reading normal data from the other two data centers that are operating normally; and calculating the lost data based on the normal data by the data processor.
[0020] In a third aspect, a system for implementing data backup based on a data processor for implementing the above method is provided, wherein the data processor is applied to a server, and the system comprises:
[0021] A configuration unit, configured to configure at least two data centers, wherein the data centers are used to store data in the server;
[0022] A deployment unit, used to deploy the data center and the data processor to access the network, so as to achieve communication connection between the data processor and the data center;
[0023] An execution unit is used to execute in response to writing data to the data center, obtain the data to be written in the server, use the disk array computing module in the data processor to process the data to be written according to the number of the data centers to obtain at least two copies of the data to be stored, and write the data to be written to the data centers respectively.
[0024] In a fourth aspect, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps of the method described below:
[0025] Step A: configuring at least two data centers, wherein the data centers are used to store data in the server;
[0026] Step B: deploying the data center and the data processor to access the network to achieve communication connection between the data processor and the data center;
[0027] Step C: in response to writing data to the data center, obtaining the data to be stored in the server, and using the disk array computing module in the data processor to process the data to be stored according to the number of data centers to obtain at least two copies of the data to be written, and the data to be written corresponds to the data center one by one;
[0028] Step D: writing the data to be written into the data center respectively.
[0029] In a fifth aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
[0030] Step A: configuring at least two data centers, wherein the data centers are used to store data in the server;
[0031] Step B: deploying the data center and the data processor to access the network to achieve communication connection between the data processor and the data center;
[0032] Step C: in response to writing data to the data center, obtaining the data to be stored in the server, and using the disk array computing module in the data processor to process the data to be stored according to the number of data centers to obtain at least two copies of the data to be written, and the data to be written corresponds to the data center one by one;
[0033] Step D: writing the data to be written into the data center respectively.
[0034] In a sixth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0035] Step A: configuring at least two data centers, wherein the data centers are used to store data in the server;
[0036] Step B: deploying the data center and the data processor to access the network to achieve communication connection between the data processor and the data center;
[0037] Step C: in response to writing data to the data center, obtaining the data to be stored in the server, and using the disk array computing module in the data processor to process the data to be stored according to the number of data centers to obtain at least two copies of the data to be written, and the data to be written corresponds to the data center one by one;
[0038] Step D: writing the data to be written into the data center respectively.
[0039] The embodiments of the present application have the following beneficial effects:
[0040] 1. The embodiment of the present application provides a configuration of at least two data centers, where the data centers are used to store data generated by applications in the servers. A network is deployed to achieve network communication connection between a data processor and the data center. When the server starts to write data, a disk array computing module in the data processor performs RAID computing on the data to be written to obtain at least two copies of the data to be stored. The data to be stored are written to the data centers respectively, so that when one of the data centers fails, the data can be recovered by reading the data from another data center.
[0041] 2. In the present application, the data center is configured as an array storage for redundant protection or a bare disk without redundant protection. Specifically, when the data center is configured as an array storage for redundant protection, the data to be written is processed by the disk array computing module to obtain at least three identical storage data; the storage data is written to the data center respectively; if the data is configured as a bare disk without redundant protection, the data to be written is divided by the disk array computing module to obtain at least three divided data, and the check value corresponding to each divided data is calculated; the divided data is written to the data center respectively; thereby, the data backup method in the present application is applicable to different data center scenarios, and those skilled in the art can select different data backup methods according to the actual storage object. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0043] Figure 1 A schematic diagram showing the architecture of a data processor according to the present application;
[0044] Figure 2 A schematic diagram of a method for implementing data backup based on a data processor according to the present application is shown;
[0045] Figure 3 A schematic diagram showing a bare disk without redundant protection configured in a data center according to the present application;
[0046] Figure 4 A schematic diagram showing array storage configured for redundant protection in a data center according to the present application;
[0047] Figure 5 A schematic diagram of a system for implementing data backup based on a data processor according to the present application is shown;
[0048] Figure 6 A schematic diagram showing a computer device according to the present application. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0050] The data processor provided by this application, such as Figure 1 As shown, the server to be used for storing data has a specific data processor configured as a network card, namely a DPU card. The DPU card is inserted into a card slot of the server. The specific architecture of the data processor is as follows, including a PCIE interface, which is added to the PCIE slot of the server through the PCIE interface to realize the communication connection between the data processor and the server.
[0051] like Figure 1As shown, the data processor of this embodiment is also configured with a hard disk simulation module, a disk array computing module, a multipath module, a remote connection module and a network interface which are connected in sequence in a direction away from the server, wherein the remote connection module is used to establish a communication connection between the data center used to store data in the server and the data processor, that is, the data processor is connected to the storage device in the data center through a network interface, and its implementation methods include NVMe-over-RDMA and NVMe-over-TCP, thereby realizing the communication connection between the server and the data processor, and at the same time, the data processor and the data center are connected through network communication, thereby realizing the communication connection between the server and the data center through the data processor, thereby realizing the subsequent writing of data in the server into the data center through the data processor.
[0052] It should be noted that the hard disk simulation module is used to configure the data center connected to the data processor as a simulated disk, that is, when the data processor card is inserted into the slot in the server, the simulated disk simulated by the hard disk simulation module is recognized by the server and the relevant simulated disk information is obtained, so that the server can communicate with the simulated disk through the simulated disk information, and the server uses the simulated disk directly as a local device.
[0053] Furthermore, the multipath module in the data processor is used to obtain the identification code of each block device through the multipath function module in the data processor; and merge the multiple block devices into one logical block device according to the identification code, so that the logical block device can be identified in the server as having a unique preset identification code. Wherein the data center is configured as an array storage for redundant protection or a bare disk without redundant protection. When the data center is configured as an array storage for redundant protection, the array storage for redundant protection can be configured as a multi-controller array storage device. After each storage device is reported to the data processor from different controllers through different network paths, the multipath module merges the block devices reported by multiple paths into one logical block device according to the universal unique identification code of the block device, so that the names of the disks obtained by the server through different paths identified by the multipath module are unified.
[0054] The disk array calculation module is used to calculate and process the data to be stored in the server, so that the server writes the data to be written into the data center corresponding to the simulated disk according to the simulated disk information; when there are three data centers, the data center is configured as a bare disk without redundant protection. At this time, the disk array calculation module will split the data written by the server and calculate the check value, and write the three copies of data into the disks corresponding to the three data centers respectively. It should be noted that the disk configuration corresponding to the data center is EBOF, which is an NVMe-SSD cabinet connected via Ethernet.
[0055] In a specific embodiment, the data processor has a user configuration function. After the data processor establishes a connection with the server for the first time, user configuration is required when it is used. The capacity provided by the simulated disk of the PCIE interface in the data processor is confirmed according to the storage space of the storage device in the data center. When there are three or more data centers, the storage devices in each data center need to be configured to be the same, that is, the storage devices have the same model and capacity.
[0056] Furthermore, when the data center is configured as array storage for redundant protection, the capacity of the simulated disk identified by the server through the PCIE interface is the capacity of the storage device included in one data center, and the minimum write granularity is the minimum write granularity of the storage device in the data center; when the data center is configured as a bare disk without redundant protection, the capacity of the simulated disk identified by the server through the PCIE interface is the capacity of the storage devices in two data centers, and the minimum write granularity is confirmed by the disk array computing module, and the specific minimum write granularity is two-thirds of the RAID stripe size.
[0057] By designing the above data processor card, the server is connected to the data center through the data processor card for communication, so as to perform the subsequent data writing process for the server and the data reading process from the data center.
[0058] In one embodiment, the present application provides a method for implementing data backup based on the above data processor, which can be applied to Figure 3 and Figure 4 In the application environment shown. That is, the data processor is applied to the server to store data, and the specific data processor is configured as a network card, which is inserted into the card slot of the server. At the same time, the data processor is connected to the data center through network communication, so as to realize the communication connection between the server and the data center through the data processor. The server can be implemented by an independent server or a server cluster composed of multiple servers.
[0059] In one embodiment, Figure 2 As shown, a method for implementing data backup based on a data processor is provided, wherein the data processor is applied to a server and comprises the following steps:
[0060] Step 1: Configure at least two data centers, where the data centers are used to store data in the server.
[0061] In order to achieve storage backup of data in applications in the server, at least two data centers are set up. The data centers are used to store the data in the server. Two copies of the data are stored simultaneously in the two data centers, so that when one of the data centers fails, the relevant data can be read from the storage device of the other data center.
[0062] Furthermore, it is also necessary to select the same storage device in each data center. The specific storage device supports NVMe-over-Fabrics to provide external connection interfaces, and can also support NVMe-over-RDMA and NVMe-over-TCP. The exemplary NVMe-over-RDMA is selected as "RoCEv2".
[0063] Step 2: deploy the data center and the data processor to access the network to achieve communication connection between the data processor and the data center.
[0064] Specifically, a server is deployed, and the data processor card as described above is inserted into a slot of the server. At the same time, the storage device of the data center is connected to the network, and the network interface of the data processor inserted in the server is connected to the network. By deploying the data center and connecting the data processor to the network, the data processor can be communicated with the data center.
[0065] In a specific embodiment, after the data center is deployed and the data processor is connected to the network to achieve communication connection between the data processor and the data center, it also includes: starting the data center and the server; in response to the first use of the data processor, specifying the type of the data center; so that the data processor initializes and sets the property values corresponding to the PCIE interface and the hard disk simulation module according to the configured type of the data center.
[0066] After starting the storage device and server of the data center, the data processor is configured for the first use to specify the type of storage device of the connected data center. Specifically, the type of the data center is configured as array storage with redundant protection or bare disk without redundant protection. When the data processor is connected to the storage device of the data center, it runs initialization according to the user configuration and sets the property value corresponding to the simulated disk of the PCIE interface.
[0067] Exemplarily, the attribute value corresponding to the hard disk simulation module is set to include an IP address, that is, the IP addresses of the connected data centers are configured into the data processor.
[0068] Step 3: In response to writing data to the data center, the data to be stored in the server is obtained, and the disk array computing module in the data processor is used to process the data to be stored according to the number of the data centers to obtain at least two copies of the data to be written.
[0069] Step 4: Write the data to be written into the data center respectively.
[0070] It should be noted that when there are two data centers, the disk array calculation module in the data processor processes the data to be written according to the number of data centers used to store data to obtain two copies of the data to be stored, and the data to be stored corresponds to the data center one by one. Specifically, when there are two data centers, the disk array calculation module performs RAID calculation processing on the data to be written to obtain two copies of the data to be written, and the two copies of the data to be written obtained by the processing are the same data, that is, when one of the data centers fails, at this time, it can be recovered by reading the data of the other data center.
[0071] In a specific embodiment, Figure 3 and Figure 4 As shown, at least three data centers are configured, and the type of the data center is configured as array storage with redundant protection or bare disk without redundant protection, wherein the capacity of the storage devices in the three data centers is the same, and the model of the storage devices in the three data centers is the same.
[0072] In a specific embodiment, in response to the operating system of the server being started, the data processor connected to the PCIE interface is scanned to obtain information about the simulated disk in the data processor; the application corresponding to the data to be stored on the server is configured to use the simulated disk; in response to the data center being configured as array storage for redundant protection, the storage devices in each of the data centers report block devices obtained through different paths to the data processor; an identification code of each block device is obtained through a multipath function module in the data processor; and multiple block devices are merged into one logical block device according to the identification code, so that the logical block device identified in the server has a unique preset identification code.
[0073] After the server's operating system is started, the server scans the data processor of the PCIE interface so that the server uses the storage device in the external data center as a local simulated disk, that is, configures the application program in the server to use the above simulated disk.
[0074] When the data center is configured with array storage for redundant protection, the array storage for redundant protection can be configured as a multi-controller array storage device. After each storage device is reported to the data processor from different controllers through different network paths, the multi-path module merges the block devices reported by multiple paths into one logical block device according to the universal unique identification code of the block device, so that the names of the disks obtained by the server through different paths identified by the multi-path module are unified, so as to improve the accuracy of data storage and avoid data errors.
[0075] The method further includes: the data center is configured as an array storage for redundant protection, the disk array computing module is used to process the data to be written to obtain at least three identical storage data; the storage data are respectively written into the data center; or, the data is configured as a bare disk without redundant protection, the disk array computing module is used to divide the data to be written to obtain at least three divided data, and a check value corresponding to each divided data is calculated; the divided data and the check value corresponding to the divided data are respectively written into the data.
[0076] Exemplarily, when the data generated by the application in the server is written to three data centers, and the data center is selected as a bare disk without redundant protection, the data to be written is divided into two copies of data by the disk array computing module in the data processor, and then the two copies of data are combined to perform RAID calculation to obtain the third copy of data, and the check values corresponding to each copy of data are calculated in combination with RAID. Specifically, the check value of the first copy of data is "1", and the check value of the second copy of data is "0". At this time, the check value of the third copy of data calculated is "1", and the check values of the first copy of data and the second copy of data are both "1" or "0". At this time, the check value of the third copy of data calculated is "0", and the above three copies of data are respectively stored in the storage device of the data center, and exemplarily, written to the EBOF storage of the data center.
[0077] Exemplarily, when data generated by an application in a server is written to three data centers and the data centers are selected as array storage for redundant protection, three copies of the same data are obtained through a disk array computing module and the three copies of the data are written to the storage devices of the data centers respectively.
[0078] In a specific embodiment, when an application in a server needs to read data, when the array storage in the data is configured for redundant protection, in response to receiving a read data request; according to the read data request, data is read from the first data center by the data processor and transmitted to the server; or, when the data is configured as a bare disk without redundant protection, in response to receiving a read data request; according to the read data request, data corresponding to the read data request is read from each data center, and original data is calculated by the data processor; and the original data is transmitted to the server.
[0079] Specifically, when one of the data centers fails, in response to the failure of one of the data centers, lost data needs to be obtained; when the data center is configured as an array storage for redundant protection, data is copied from any other data center to obtain the lost data; or, when the data center is configured as a bare disk without redundant protection, normal data is read from the other two data centers that are operating normally; and the lost data is calculated by the data processor based on the normal data.
[0080] Exemplarily, when the data is configured as three or more, when the data center is configured as a bare disk without redundant protection, normal data and the check value corresponding to the normal data are read from the other two data centers that are operating normally. The check value of the third normal data can be calculated in combination with the two normal check values, thereby obtaining the third normal data, that is, the third normal data is the lost data, and therefore the lost data can be calculated in combination with the above method.
[0081] Through the above scheme, when one of the data centers fails, data recovery can be achieved by reading data in other data centers; and a connection is established with at least two data centers through the DPU, and the DPU can be used to connect to bare disk cabinets that are not protected by RAID redundancy to achieve disaster recovery backup, and the DPU can also be used to connect to array storage that has been protected by RAID redundancy to achieve disaster recovery backup, and the operational redundancy of traditional backup data is reduced, reducing resource consumption in the server.
[0082] It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0083] In one embodiment, Figure 5 As shown, a system for implementing data backup based on a data processor is provided, wherein the data processor is applied to a server, and the system comprises:
[0084] A configuration unit, configured to configure at least two data centers, wherein the data centers are used to store data in the server;
[0085] A deployment unit, used to deploy the data center and the data processor to access the network, so as to achieve communication connection between the data processor and the data center;
[0086] An execution unit is used to execute in response to writing data to the data center, obtain the data to be stored in the server, use the disk array computing module in the data processor to process the data to be stored according to the number of the data centers to obtain at least two copies of the data to be written, the data to be stored corresponds to the data center one by one, and write the data to be written to the data center respectively.
[0087] In a specific embodiment, when at least three data centers are configured, the type of the data center is configured as array storage for redundant protection or bare disk without redundant protection; the execution unit is specifically used for, when the data center is configured as array storage for redundant protection, processing the data to be stored through the disk array computing module to obtain at least three identical copies of the data to be written; writing the data to be written to the data center respectively; or, when the data is configured as a bare disk without redundant protection, dividing the data to be stored through the disk array computing module to obtain at least three copies of the data, and calculating the check value corresponding to each copy of the data; writing the data and the check value corresponding to the data to the data center respectively.
[0088] In a specific embodiment, the deployment unit is also used to start the data center and the server; in response to the first use of the data processor, specify the type of the data center; so that the data processor initializes and sets the attribute values corresponding to the PCIE interface and the hard disk simulation module according to the configured type of the data center; in response to the operating system of the server being started, scan the data processor connected to the PCIE interface to obtain information about the simulated disk in the data processor; configure the application corresponding to the data to be stored on the server to use the simulated disk; in response to the data center being configured as array storage for redundant protection, the storage devices in each of the data centers report the block devices obtained through different paths to the data processor; obtain the identification code of each block device through the multipath function module in the data processor; and merge the multiple block devices into one logical block device according to the identification code, so that the logical block device identified in the server has a unique preset identification code.
[0089] In a specific embodiment, the storage devices in the three data centers have the same capacity and the storage devices in the three data centers have the same model.
[0090] In a specific embodiment, it also includes a reading unit, which is used to respond to receiving a read data request when the data is configured as an array storage for redundant protection; read data from the first data center through the data processor according to the read data request and transmit it to the server; or, when the data is configured as a bare disk without redundant protection, respond to receiving a read data request; read data corresponding to the read data request from each data center according to the read data request, and calculate the original data through the data processor; and transmit the original data to the server.
[0091] In a specific embodiment, it also includes a recovery unit for responding to a failure in one of the data centers and needing to obtain lost data; when the data center is configured as an array storage for redundant protection, copying data from any other data center to obtain lost data; or, when the data center is configured as a bare disk without redundant protection, reading normal data from the other two data centers that are operating normally; and calculating the lost data based on the normal data by the data processor.
[0092] For the specific definition of the system for implementing data backup based on a data processor, please refer to the definition of the method for implementing data backup based on a data processor above, which will not be repeated here. Each module in the above-mentioned system for implementing data backup based on a data processor can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0093] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data to be configured by the user. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for realizing data backup based on a data processor is implemented.
[0094] Those skilled in the art will understand that Figure 6The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0095] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps of the following method:
[0096] Step 101: configure at least two data centers, where the data centers are used to store data in the server;
[0097] Step 102: deploy the data center and the data processor to access the network to achieve communication connection between the data processor and the data center;
[0098] Step 103: in response to writing data to the data center, obtaining the data to be stored in the server, and using the disk array computing module in the data processor to process the data to be stored according to the number of the data centers to obtain at least two copies of the data to be written, wherein the data to be written corresponds to the data center in a one-to-one manner;
[0099] Step 104: Write the data to be written into the data center respectively.
[0100] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the data center is configured as an array storage for redundant protection, the data to be written is processed by the disk array computing module to obtain at least three identical storage data; the storage data is written to the data center respectively; or, the data is configured as a bare disk without redundant protection, the data to be written is divided by the disk array computing module to obtain at least three divided data, and a check value corresponding to each divided data is calculated; the divided data and the check value corresponding to the divided data are written to the data center respectively.
[0101] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: starting the data center and the server; in response to the first use of the data processor, specifying the type of the data center; so that the data processor initializes and sets the attribute values corresponding to the PCIE interface and the hard disk simulation module according to the configured type of the data center; in response to the operating system of the server being started, scanning the data processor connected to the PCIE interface to obtain information about the simulated disk in the data processor; configuring the application corresponding to the data to be stored on the server to use the simulated disk; in response to the data center being configured as array storage for redundant protection, the storage devices in each of the data centers report the block devices obtained through different paths to the data processor; obtaining the identification code of each block device through the multipath function module in the data processor; and merging multiple block devices into one logical block device according to the identification code, so that the logical block device identified in the server has a unique preset identification code.
[0102] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the data is configured as an array storage for redundant protection, responding to receiving a read data request; according to the read data request, reading data from the first data center through the data processor and transmitting it to the server; or, when the data is configured as a bare disk without redundant protection, responding to receiving a read data request; according to the read data request, reading data corresponding to the read data request from each data center, and calculating the original data through the data processor; transmitting the original data to the server.
[0103] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: in response to a failure in one of the data centers, lost data needs to be obtained; when the data center is configured as an array storage for redundant protection, data is copied from any other data center to obtain lost data; when the data center is configured as a bare disk without redundant protection, normal data is read from the other two data centers that are operating normally; and the lost data is calculated by the data processor based on the normal data.
[0104] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0105] Step 201: configure at least two data centers, where the data centers are used to store data in the server;
[0106] Step 202: deploy the data center and the data processor to access the network to achieve communication connection between the data processor and the data center;
[0107] Step 203: in response to writing data to the data center, obtaining the data to be stored in the server, and using the disk array computing module in the data processor to process the data to be stored according to the number of the data centers to obtain at least two copies of the data to be written, wherein the data to be written corresponds to the data center in a one-to-one manner;
[0108] Step 204: Write the data to be written into the data center respectively.
[0109] In one embodiment, when the processor executes the computer program, the following steps are also implemented: the data center is configured as an array storage for redundant protection, the data to be written is processed by the disk array computing module to obtain at least three identical storage data; the storage data is written to the data center respectively; or, the data is configured as a bare disk without redundant protection, the data to be written is divided by the disk array computing module to obtain at least three divided data, and a check value corresponding to each of the divided data is calculated; the divided data and the check value corresponding to the divided data are written to the data center respectively.
[0110] In one embodiment, the processor further implements the following steps when executing the computer program: starting the data center and the server; in response to the first use of the data processor, specifying the type of the data center; enabling the data processor to initialize and set the property values corresponding to the PCIE interface and the hard disk simulation module according to the configured type of the data center; in response to the operating system of the server being started, scanning the data processor connected to the PCIE interface to obtain information about the simulated disk in the data processor; configuring the application corresponding to the data to be stored on the server to use the simulated disk; in response to the data center being configured as array storage for redundant protection, the storage devices in each of the data centers report the block devices obtained through different paths to the data processor; obtaining the identification code of each of the block devices through the multipath function module in the data processor; and merging the plurality of block devices into one logical block device according to the identification code, so that the logical block device identified in the server has a unique preset identification code.
[0111] In one embodiment, when the processor executes the computer program, the following steps are also implemented: when the data is configured as an array storage for redundant protection, responding to receiving a read data request; according to the read data request, reading data from the first data center through the data processor and transmitting it to the server; or, when the data is configured as a bare disk without redundant protection, responding to receiving a read data request; according to the read data request, reading data corresponding to the read data request from each data center, and calculating the original data through the data processor; transmitting the original data to the server.
[0112] In one embodiment, the processor further implements the following steps when executing the computer program: in response to a failure in one of the data centers, it is necessary to obtain lost data; when the data center is configured as an array storage for redundant protection, copying data from any other data center to obtain lost data; when the data center is configured as a bare disk without redundant protection, reading normal data from the other two data centers that are operating normally; and calculating the lost data based on the normal data by the data processor.
[0113] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0114] Step 301: configure at least two data centers, where the data centers are used to store data in the server;
[0115] Step 302: deploy the data center and the data processor to access the network to achieve communication connection between the data processor and the data center;
[0116] Step 303: in response to writing data to the data center, obtaining the data to be stored in the server, and using the disk array computing module in the data processor to process the data to be stored according to the number of the data centers to obtain at least two copies of the data to be written, wherein the data to be written corresponds to the data center in a one-to-one manner;
[0117] Step 304: write the data to be written into the data center respectively.
[0118] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the data center is configured as an array storage for redundant protection, the data to be written is processed by the disk array computing module to obtain at least three identical storage data; the storage data is written to the data center respectively; or, the data is configured as a bare disk without redundant protection, the data to be written is divided by the disk array computing module to obtain at least three divided data, and a check value corresponding to each divided data is calculated; the divided data and the check value corresponding to the divided data are written to the data center respectively.
[0119] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: starting the data center and the server; in response to the first use of the data processor, specifying the type of the data center; so that the data processor initializes and sets the attribute values corresponding to the PCIE interface and the hard disk simulation module according to the configured type of the data center; in response to the operating system of the server being started, scanning the data processor connected to the PCIE interface to obtain information about the simulated disk in the data processor; configuring the application corresponding to the data to be stored on the server to use the simulated disk; in response to the data center being configured as array storage for redundant protection, the storage devices in each of the data centers report the block devices obtained through different paths to the data processor; obtaining the identification code of each block device through the multipath function module in the data processor; and merging multiple block devices into one logical block device according to the identification code, so that the logical block device identified in the server has a unique preset identification code.
[0120] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the data is configured as an array storage for redundant protection, responding to receiving a read data request; according to the read data request, reading data from the first data center through the data processor and transmitting it to the server; or, when the data is configured as a bare disk without redundant protection, responding to receiving a read data request; according to the read data request, reading data corresponding to the read data request from each data center, and calculating the original data through the data processor; transmitting the original data to the server.
[0121] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: in response to a failure in one of the data centers, lost data needs to be obtained; when the data center is configured as an array storage for redundant protection, data is copied from any other data center to obtain lost data; when the data center is configured as a bare disk without redundant protection, normal data is read from the other two data centers that are operating normally; and the lost data is calculated by the data processor based on the normal data.
[0122] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0123] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0124] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A data processor, characterized in that: The data processor is applied on a server, and the data processor comprises: a PCIE interface for connecting the data processor with the server; a remote connection module, used to establish a communication connection between a data center used to store data in a server and the data processor; a hard disk simulation module, used to configure the data center connected to the data processor as a simulated disk, so that the server can recognize the simulated disk information; The disk array calculation module is used to calculate and process the data to be stored in the server to obtain the data to be written, so that the server writes the data to be written into the data center corresponding to the simulated disk according to the simulated disk information.
2. A method for implementing data backup based on the data processor described in claim 1, characterized in that: The data processor is applied to a server, and the method comprises: configuring at least two data centers, wherein the data centers are used to store data in the server; Deploy the data center and the data processor to access the network to achieve communication connection between the data processor and the data center; In response to writing data to the data center, obtaining the data to be stored in the server, and using the disk array computing module in the data processor to process the data to be stored according to the number of data centers to obtain at least two copies of the data to be written, wherein the data to be written corresponds to the data center in a one-to-one manner; The data to be written are written into the data centers respectively.
3. The method for implementing data backup based on a data processor according to claim 2, characterized in that: At least three data centers are configured, and the types of the data centers are configured as array storage with redundant protection or bare disks without redundant protection. The method further includes: The data center is configured as array storage for redundant protection, and the disk array computing module processes the data to be stored to obtain at least three identical copies of the data to be written; Writing the data to be written into the data center respectively; Alternatively, the data is configured as a bare disk without redundant protection, and the disk array computing module is used to divide the data to be stored into at least three pieces of data, and a checksum corresponding to each piece of data is calculated; The sub-data and the check value corresponding to the sub-data are respectively written into the data center.
4. The method for implementing data backup based on a data processor according to claim 3, characterized in that: After the data center is deployed and the data processor is connected to a network to achieve communication connection between the data processor and the data center, the method further includes: Starting the data center and the server; In response to a first use of the data processor, specifying a type of the data center; So that the data processor initializes and sets the attribute values corresponding to the PCIE interface and the hard disk simulation module according to the type of the configured data center; In response to the operating system of the server being started, scanning the data processor connected to the PCIE interface to obtain information of the simulated disk in the data processor; Configuring an application corresponding to the data to be stored on the server to use the simulated disk; In response to the data center being configured as array storage for redundant protection, the storage devices in each of the data centers report block devices obtained through different paths to the data processor; Acquire an identification code of each of the block devices through a multipath function module in the data processor; And according to the identification code, the plurality of block devices are merged into one logical block device, so that the server can recognize that the logical block device has a unique preset identification code.
5. The method for implementing data backup based on a data processor according to claim 4, characterized in that: The storage devices in the three data centers have the same capacity and the storage devices in the three data centers have the same model.
6. The method for implementing data backup based on a data processor according to claim 3, characterized in that: The method further comprises: When the data is stored in an array configured for redundant protection, in response to receiving a request to read the data; According to the data read request, the data is read from the first data center by the data processor, and transmitted to the server; or, when the data center is configured as a bare disk without redundant protection, in response to receiving a request to read data; According to the data read request, reading data corresponding to the data read request from each of the data centers, and calculating original data by the data processor; The original data is transmitted to a server.
7. The method for implementing data backup based on a data processor according to any one of claims 4 to 6, characterized in that: The method further comprises: In response to a failure in one of the data centers, it is necessary to obtain lost data; When the data center is configured as array storage for redundant protection, data is copied from any other data center to obtain the lost data; Alternatively, when the data center is configured as a bare disk without redundant protection, normal data is read from the other two data centers that are operating normally; The data processor calculates the lost data based on the normal data.
8. A system for implementing data backup based on a data processor for implementing the method according to any one of claims 2 to 7, characterized in that: The data processor is applied to a server, and the system includes: A configuration unit, configured to configure at least two data centers, wherein the data centers are used to store data in the server; A deployment unit, used to deploy the data center and the data processor to access the network, so as to achieve communication connection between the data processor and the data center; An execution unit is used to execute in response to writing data to the data center, obtain the data to be stored in the server, use the disk array computing module in the data processor to process the data to be stored according to the number of the data centers to obtain at least two copies of the data to be written, and write the data to be written to the data centers respectively.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 2 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 2 to 7 are implemented.
