Method and application of server business data migration

By performing data balancing migration, parallel migration with balancing function disabled, and one-to-one data migration in the second environment server cluster, the problems of low efficiency, high cost, and poor security in migrating from VMware to the domestic environment were solved, and efficient and secure data migration was achieved.

CN116319991BActive Publication Date: 2025-09-19ANCHAO CLOUD SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310177249.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2025-09-19
Estimated Expiration
2043-02-28

AI Technical Summary

Technical Problem

Existing technologies for migrating business data from VMware environments to domestic environments have problems such as low migration efficiency, high costs, poor data security, and impact on storage performance.

Method used

By creating a second environment server cluster, using the data balancing function to migrate business data to multiple second environment servers, after turning off the balancing function, the first environment server is added to the cluster as a new node and a one-to-one parallel migration is performed. Finally, the second environment server that has completed the migration is deleted, and data striping technology is used to ensure that the data is evenly distributed.

Benefits of technology

It reduces data migration costs, improves migration efficiency and security, avoids uneven data distribution affecting storage performance, and is suitable for multi-site concurrent migration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116319991B_ABST
    Figure CN116319991B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and application for migrating server business data, wherein business data is migrated from a first environment server to a second environment server. The method includes the following steps: creating a second environment server cluster, wherein the second environment server cluster includes multiple second environment servers; when the data balancing function of the second environment server cluster is enabled, migrating business data on the first environment server to the multiple second environment servers; disabling the data balancing function of the second environment server cluster; adding the first environment server as a new node to the second environment server cluster; and migrating business data on the second environment server to the first environment server in parallel one-to-one, and deleting the second environment server for which data migration has completed. This method can effectively improve the efficiency of data migration, reduce the risk of data migration, and ensure the storage performance of the server cluster.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electronic communications, and in particular to a method and application of server business data migration. Background Art

[0002] Due to the need for localization under existing technologies and other reasons, many enterprises and departments are currently migrating businesses originally deployed in VMware environments to domestic environments. VMware environments and domestic environments are identical in hardware; the primary difference lies in the virtualization software technology deployed on the servers. Virtualization software technology abstracts server hardware into software functions and provides them to customers. Different virtualization technologies deployed on the same server can provide different software functions to customers. Some domestic virtualization software technologies abstract software functions from servers that not only provide similar service capabilities to VMware but also offer better compatibility with domestic chips and operating systems.

[0003] Migrating services from a VMware environment to a domestic environment requires redeploying domestic virtualization software on the VMware-deployed server. However, redeploying virtualization software often requires formatting disks, which can damage service data stored on the server disks. Therefore, during the service migration process, service data must be migrated to protect the integrity and security of the original service data.

[0004] Currently, common data migration solutions include transit server-based data migration, node replacement-based data migration, and node deletion-based data migration. All of these data migration technologies have technical flaws. The main technical flaws are that, for transit server-based data migration solutions, due to the high price of transit servers and external storage devices, only one set can be purchased due to cost constraints. In the case of multiple business migration sites, the migration process can only be carried out site by site, resulting in low migration efficiency. For node replacement-based data migration solutions, the number of data copies decreases during the node replacement process, thereby reducing data security. For node deletion-based data migration solutions, data needs to be migrated between different servers multiple times during the node deletion process. The more nodes that need to be deleted, the larger the amount of data to be migrated. Furthermore, after multiple node deletions and data balancing, the amount of data on each server node in the cluster is likely to be different, which will have a certain impact on the cluster's storage performance.

[0005] The information disclosed in this background technology section is only intended to enhance understanding of the overall background of the invention and should not be regarded as an admission or any form of suggestion that the information constitutes the prior art already known to a person skilled in the art. Summary of the Invention

[0006] The purpose of the present invention is to provide a method and application for migrating server business data, which can improve the efficiency of data migration, reduce the risk of data migration, and ensure the storage performance of the server cluster.

[0007] To achieve the above objectives, an embodiment of the present invention provides a method for migrating server service data.

[0008] In one or more embodiments of the present invention, business data is migrated from a first environment server to a second environment server, and the method includes: creating a second environment server cluster, wherein the second environment server cluster includes multiple second environment servers; when the data balancing function of the second environment server cluster is turned on, migrating the business data on the first environment server to the multiple second environment servers; turning off the data balancing function of the second environment server cluster; adding the first environment server as a new node to the second environment server cluster; and migrating the business data on the second environment server to the first environment server in parallel one-to-one, and deleting the second environment server for which data migration has completed.

[0009] In one or more embodiments of the present invention, the newly establishing the second environment server cluster includes: creating the second environment server cluster through server nodes, wherein the server nodes deploy the second environment virtualization technology.

[0010] In one or more embodiments of the present invention, when the number of the second environment servers is greater than or equal to the number of the first environment servers, the second environment servers with the same number as the first environment servers are selected to perform one-to-one parallel data migration, and the second environment servers performing data migration have the same number of disks as the first environment servers.

[0011] In one or more embodiments of the present invention, migrating the business data on the first environment server to the multiple second environment servers includes: connecting the first environment server to the second environment server cluster through a wired connection, and using a migration tool to read the business data on the first environment server; and dividing the business data through data striping technology, and combining the data balancing function of the second environment server cluster to evenly write the business data to the disk of the second environment server of each node.

[0012] In one or more embodiments of the present invention, adding the first environment server as a new node to the second environment server cluster includes: replacing the original virtualization technology deployed by the first environment server with the second environment virtualization technology deployed by the second environment server cluster, so that the first environment server is transformed into a second environment server.

[0013] In one or more embodiments of the present invention, adding the first environment server as a new node to the second environment server cluster also includes: adding the transformed first environment server as a new node to the second environment server cluster through the cluster node adding function in the second environment virtualization technology.

[0014] In one or more embodiments of the present invention, the business data on the second environment server is migrated to the first environment server in a one-to-one parallel manner, including: connecting the second environment server for data migration and the first environment server through a wired connection, deploying a migration tool on the first environment server and reading the business data on the second environment server; and using data striping technology to cut the business data and evenly write the business data to the disk of the first environment server.

[0015] In one or more embodiments of the present invention, the method further includes: after deleting all second environment servers that have completed data migration, re-enabling the data balancing function of the second environment server cluster.

[0016] In one or more embodiments of the present invention, the first environment server includes a VMware environment server, and the second environment server includes a domestic environment server.

[0017] In another aspect of the present invention, a device for migrating business data of a first environment server to a second environment server is provided, which includes a cluster creation module, a data migration module, a function shutdown module, a cluster addition module and a parallel migration module.

[0018] The cluster creation module is used to create a second environment server cluster, wherein the second environment server cluster includes multiple second environment servers.

[0019] The data migration module is used to migrate the business data on the first environment server to the multiple second environment servers when the data balancing function of the second environment server cluster is turned on.

[0020] The function shutdown module is used to shut down the data balancing function of the second environment server cluster.

[0021] The cluster new adding module is used to add the first environment server as a new node to the second environment server cluster.

[0022] The parallel migration module is used to migrate the business data on the second environment server to the first environment server in a one-to-one parallel manner, and delete the second environment server where the data migration is completed.

[0023] In one or more embodiments of the present invention, the cluster creation module is further configured to: create a second environment server cluster using server nodes, wherein the server nodes deploy a second environment virtualization technology.

[0024] In one or more embodiments of the present invention, the data migration module is also used to: connect the first environment server to the second environment server cluster through a wired connection, and use a migration tool to read the business data on the first environment server; and divide the business data through data striping technology, and combine the data balancing function of the second environment server cluster to evenly write the business data to the disk of the second environment server of each node.

[0025] In one or more embodiments of the present invention, the cluster new module is also used to: replace the original virtualization technology deployed by the first environment server with the second environment virtualization technology deployed by the second environment server cluster, so that the first environment server is transformed into a second environment server.

[0026] In one or more embodiments of the present invention, the cluster adding module is further used to: add the transformed first environment server as a new node to the second environment server cluster through the cluster node adding function in the second environment virtualization technology.

[0027] In one or more embodiments of the present invention, the parallel migration module is also used to: connect the second environment server for data migration and the first environment server through a wired connection, deploy a migration tool on the first environment server and read the business data on the second environment server; and use data striping technology to cut the business data and evenly write the business data on the disk of the first environment server.

[0028] In one or more embodiments of the present invention, the parallel migration module is further configured to: after deleting all second environment servers that have completed data migration, re-enable the data balancing function of the second environment server cluster.

[0029] In one or more embodiments of the present invention, the parallel migration module is also used to: when the number of second environment servers is greater than or equal to the number of first environment servers, select second environment servers with the same number as the first environment servers to perform one-to-one parallel data migration, and the second environment servers performing data migration have the same number of disks as the first environment servers.

[0030] In another aspect of the present invention, an electronic device is provided, comprising: at least one processor; and a memory, wherein the memory stores instructions, which, when executed by the at least one processor, enable the at least one processor to execute the method of migrating business data of a first environment server to a second environment server as described above.

[0031] In another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for migrating business data of a first environment server to a second environment server are implemented.

[0032] Compared with the existing technology, the method for migrating server business data according to the embodiment of the present invention can solve the problem of high equipment cost. By building a new cluster in the second environment to migrate data, the cost of data migration is reduced, and concurrent migration of multi-site business data can be performed at a lower cost; through one-to-one parallel migration between servers in the cluster, the number of data operations is reduced and the data migration efficiency is improved; by keeping the number of data copies unchanged during the entire migration process, the security of data during the data migration process is improved and the risk of migration is reduced; by flexibly turning on and off the data balancing function of the cluster, the problem of uneven data distribution on each server node in the cluster after the data migration is completed, thereby affecting the cluster storage performance, is avoided, and the impact of data migration on the cluster storage performance is reduced; it can be applied to the scenario of migrating the business data of VMware environment servers to domestic environment servers, and has wide applicability. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 is a flow chart of a method for migrating server business data according to an embodiment of the present invention;

[0034] Figure 2 is an exemplary flow chart of a method for migrating server service data according to an embodiment of the present invention;

[0035] Figure 3 is an exemplary structural diagram of a method for migrating server service data according to an embodiment of the present invention;

[0036] Figure 4 is an example structural diagram of server service data migration according to an embodiment of the present invention;

[0037] Figure 5 is an exemplary structural diagram of a method for migrating server service data according to an embodiment of the present invention;

[0038] Figure 6is an exemplary structural diagram of a method for migrating server service data according to an embodiment of the present invention;

[0039] Figure 7 is a structural diagram of an apparatus for migrating server service data according to an embodiment of the present invention;

[0040] Figure 8 4 is a hardware structure diagram of a computing device for migrating server business data according to an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings, but it should be understood that the protection scope of the present invention is not limited by the specific embodiments.

[0042] Unless expressly stated otherwise, throughout the specification and claims, the term "comprise" or variations such as "include" or "comprising", etc., will be understood to include the stated elements or components but not to exclude other elements or other components.

[0043] The technical solutions provided by various embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0044] In the prior art, there are three common server data migration solutions: 1) Data migration based on a transit server. With the help of a transit server and an external storage device, all business data originally on the first environment is migrated to the external storage device of the transit server. After the server originally deployed with the first environment is transformed into a domestic environment, a new cluster is formed with the new server, and then the business data is migrated back to the new cluster from the external storage device of the transit server. 2) Data migration based on node replacement. A cluster is directly formed using a new server, and then the server nodes in the new cluster are replaced with the first environment server in turn. After each replacement, the data on the first environment server needs to be redistributed within the cluster before the next replacement can be performed. 3) Data migration based on node deletion. The first environment server and the new server are formed into a new cluster, and the business data on the first environment server is distributed to the entire cluster through the cluster's data balancing function, and then new servers equal to the number of first environment servers are deleted from the cluster one by one. Each time a server is deleted, it is necessary to wait for the data on the deleted server to be re-migrated to other servers in the cluster through the data balancing function, and the next server is processed after the migration is completed.

[0045] Example 1

[0046] like Figure 1 As shown, a method for migrating server business data in an embodiment of the present invention is introduced, and the method includes the following steps.

[0047] This embodiment takes the migration of business data from a first environment server to a second environment server as an example.

[0048] In step S101 , a second environment server cluster is created, wherein the second environment server cluster includes a plurality of second environment servers.

[0049] In this embodiment, the cluster configuration of server nodes can provide high availability and scalability, and multiple servers in the cluster maintain uninterrupted communication. When a node in the cluster is unavailable due to an error or maintenance, another node will immediately provide service to achieve fault tolerance.

[0050] In step S102 , when the data balancing function of the second environment server cluster is enabled, the business data on the first environment server is migrated to the plurality of second environment servers.

[0051] In this embodiment, the first environment server is connected to the second environment server cluster via a wired connection, and a migration tool is used to read the business data on the first environment server. This business data is then segmented using data striping technology, and combined with the data balancing function of the second environment server cluster, the business data is evenly written to the disks of each node in the first environment server. This operation avoids the use of expensive transit servers and external storage devices, thereby reducing costs.

[0052] In step S103, the data balancing function of the second environment server cluster is disabled.

[0053] In this embodiment, the cluster's data balancing function is to evenly write data to each disk by rebuilding the data layout. Disabling the cluster's data balancing function is to prevent data from being automatically distributed to newly added servers in the original first environment, which would cause uneven data distribution and affect storage performance.

[0054] In step S104, the first environment server is added to the second environment server cluster as a new node.

[0055] In this embodiment, all servers in the first environment are added as new nodes to the newly created second-stage server cluster, while the servers in the first environment are retained. Compared to data migration solutions based on node deletion that also retain servers in the first environment, this invention can reduce the number of data migrations and avoid the problem of uneven data distribution after migration.

[0056] In step S105 , the business data on the second environment server is migrated to the first environment server in parallel on a one-to-one basis, and the second environment server on which data migration has been completed is deleted.

[0057] In this embodiment, within a domestic server cluster, business data is migrated one-to-one in parallel between multiple first-environment servers and second-stage servers. This reduces the number of data operations, improves data migration efficiency, and avoids uneven data distribution after migration, which can affect cluster storage performance. After the data migration is complete, the second-environment servers that have completed the data migration are deleted, and the original first-environment servers and the second-environment servers that did not participate in the data migration are retained to form a new second-environment server cluster.

[0058] The first environment server includes a VMware environment server, and the second environment server includes another environment server including a localized environment server.

[0059] It should be noted that the present invention does not specifically limit the virtualization technology used by the first environment server and the second environment server, but only provides an application. The present invention is applicable to all servers in a cluster environment that can be implemented.

[0060] Example 2

[0061] like Figure 2 As shown, a method for migrating business data of a VMware environment server to a domestic environment server in an embodiment of the present invention is introduced, and the method includes the following steps.

[0062] In step S101 , a second environment server cluster is created, wherein the second environment server cluster includes a plurality of second environment servers.

[0063] In this embodiment, a second environment server cluster is created through server nodes, wherein the server nodes deploy the second environment virtualization technology.

[0064] In step S102 , when the data balancing function of the second environment server cluster is enabled, the business data on the first environment server is migrated to the plurality of second environment servers.

[0065] In this embodiment, the first environment server is connected to the second environment server cluster via a wired connection, and a migration tool is used to read the business data on the first environment server. This business data is then segmented using data striping technology, and combined with the data balancing function of the second environment server cluster, the business data is evenly written to the disks of each node in the second environment server. This operation avoids the use of expensive transit servers and external storage devices, thereby reducing costs.

[0066] Specifically, striping technology automatically balances I / O load across multiple physical disks. This technology splits a continuous block of data into equal-sized blocks and writes each segment to a different disk in the array. Striping ensures that business data is evenly written to each disk in the secondary environment server at each node during data read and write operations.

[0067] In step S103, the data balancing function of the second environment server cluster is disabled.

[0068] In this embodiment, the cluster's data balancing function is to evenly write data to each disk by rebuilding the data layout. Disabling the cluster's data balancing function is to prevent data from being automatically distributed to newly added servers in the original first environment, which would cause uneven data distribution and affect storage performance.

[0069] In step S104, the first environment server is added to the second environment server cluster as a new node.

[0070] In this embodiment, the original virtualization technology deployed on the first environment server is replaced with the second environment virtualization technology deployed on the second environment server cluster, so that the first environment server is transformed into a second environment server. The original first environment server transformed into the second environment server is retained.

[0071] Furthermore, through the cluster node adding function in the second environment virtualization technology, the transformed first environment server is added to the second environment server cluster as a new node.

[0072] In step S105 , the business data on the second environment server is migrated to the first environment server in parallel on a one-to-one basis, and the second environment server on which data migration has been completed is deleted.

[0073] In this embodiment, when the number of second environment servers is greater than or equal to the number of first environment servers, second environment servers with the same number as the first environment servers are selected for one-to-one parallel data migration, and the second environment servers performing data migration have the same number of disks as the first environment servers.

[0074] Specifically, the second environment server for data migration is connected to the first environment server through a wired connection, a migration tool is deployed on the first environment server and the business data on the second environment server is read; and data striping technology is used to cut the business data and evenly write the business data to the disk of the first environment server.

[0075] Furthermore, after deleting all the second environment servers that have completed data migration, the data balancing function of the second environment server cluster is re-enabled.

[0076] Example 3

[0077] like Figures 2 to 6 As shown, a specific example of a method for migrating server business data in an embodiment of the present invention is introduced.

[0078] This embodiment uses the VMware environment server as the first environment server and the domestic environment server as the second environment server, that is, introduces a specific method for migrating business data of the VMware environment server to the domestic environment server, which includes the following steps.

[0079] In step S201 , a domestic server cluster is created, wherein the domestic server cluster includes a plurality of domestic servers.

[0080] In this embodiment, the cluster configuration of server nodes provides high availability and scalability, ensuring uninterrupted connectivity between multiple servers within the cluster. If a node in the cluster becomes unavailable due to an error or maintenance, another node immediately provides service, achieving fault tolerance. The domestically produced servers are servers that have all deployed domestically produced virtualization technology, forming a domestically produced server cluster.

[0081] Specifically, a domestic server cluster is created by using one or more server nodes, wherein the server nodes deploy domestic virtualization technology, namely domestic servers. The present invention does not limit the method for creating the domestic server cluster and the domestic virtualization technology, and any achievable technology can be used.

[0082] like Figure 3 As shown, the data migration of two VMware environment servers D and E is used as an example to explain the embodiment of the present invention in detail. A new domestic server cluster is created by deploying three server nodes A, B, and C that use domestic virtualization technology.

[0083] In step S202, when the data balancing function of the domestic server cluster is turned on, the business data on the VMware environment server is migrated to the multiple domestic servers.

[0084] Specifically, based on the existing data migration solution based on transit servers, the present invention creates a new domestic server cluster, eliminating the need for expensive transit servers and external storage devices, thereby reducing costs. All business data on VMware environment servers is migrated to multiple domestic servers, and the business data is evenly distributed across the multiple domestic servers.

[0085] In this embodiment, the VMware environment server is connected to the domestic server cluster via a wired connection, and a migration tool is used to read the business data on the VMware environment server. The business data is segmented using data striping technology, and combined with the data balancing function of the domestic server cluster, the business data is evenly written to the disk of each node's domestic server. This operation avoids the use of expensive transit servers and external storage devices, thereby reducing costs.

[0086] like Figure 3 As shown, the business data on two VMware environment servers D and E are migrated to the newly established domestic server cluster. During the migration process, the two original VMware environment servers D and E are connected to the domestic server cluster via a wired connection, and then the migration tool is used to read the business data on servers D and E. The read business data is divided using data striping technology and evenly written to each disk of the domestic server on each node. At this time, the cluster's data balancing function can identify the distribution of business data on each disk, and if it is not evenly written to the disks of each node due to special reasons during the writing process, the data balancing function can evenly distribute the data to each disk by rebuilding the data layout. After the above operations, all business data on VMware environment servers D and E is evenly distributed on servers A, B, and C.

[0087] In step S203, the data balancing function of the domestic server cluster is turned off.

[0088] like Figure 4 The upper right corner shows that the cluster's data balancing function is disabled. This function evenly distributes data across disks by reconfiguring the data layout. Disabling this function prevents data from being automatically distributed to two newly added VMware servers, which could cause uneven data distribution and impact storage performance.

[0089] In step S204, the VMware environment server is added as a new node to the domestic server cluster.

[0090] In this embodiment, all VMware environment servers are added as new nodes to the newly built domestic server cluster, while the VMware environment servers are retained. Compared with the data migration solution based on node deletion, which can also retain VMware environment servers, this invention can reduce the number of data migrations and avoid the problem of uneven data distribution after migration.

[0091] Specifically, the original virtualization technology deployed in the VMware environment server is replaced with the domestic virtualization technology deployed in the domestic server cluster, thereby converting the VMware environment server into a domestic server. Using the cluster node addition function in the domestic virtualization technology, the converted VMware environment server is added to the domestic server cluster as a new node.

[0092] like Figure 5 As shown in the figure, after completing the data migration, the two servers D and E, which originally deployed the VMware environment, were re-deployed with the same domestic virtualization software as the server nodes, transforming them into domestic servers. Using the cluster node addition function in the domestic virtualization technology, the two transformed servers D and E were added as new nodes to the created domestic server cluster.

[0093] In a data migration solution based on node replacement, the number of data copies will decrease during the gradual replacement of nodes. Taking the data migration of two VMware servers as an example, during the process of node replacement, the data copies are changed from the original two copies to a single copy, resulting in reduced data security. In this embodiment, since the business data on the original VMware environment server has been completely migrated to the domestically produced servers in the new cluster, the situation in which the number of data copies decreases and security decreases in the node replacement solution is avoided. In addition, servers D and E have also been transformed into new domestically produced servers, the original data has been cleared, and the cluster has turned off the data balancing function, so the business data will not be automatically distributed to servers D and E after servers D and E join the cluster. Due to the above reasons, the two VMware environment servers D and E that join the cluster do not contain business data.

[0094] In step S205, the business data on the domestic servers are migrated one-to-one in parallel to the VMware environment server, and the domestic servers that have completed data migration are deleted to restore the data balancing function of the cluster.

[0095] In this embodiment, if the number of domestically produced servers is greater than or equal to the number of VMware environment servers, domestically produced servers with the same number of VMware environment servers are selected for one-to-one parallel data migration, and the domestically produced servers performing data migration and the VMware environment servers have the same number of disks. If there are two VMware environment servers, any two domestically produced servers need to be selected for data migration, with one VMware environment server connected to another domestically produced server, and the domestically produced servers and VMware environment servers have the same number of disks, thereby achieving one-to-one parallel migration.

[0096] Specifically, the domestic server for data migration and the VMware environment server are connected through a wired connection, a migration tool is deployed on the VMware environment server and the business data on the domestic server is read; and data striping technology is used to cut the business data and evenly write the business data to the disk of the VMware environment server.

[0097] Furthermore, after deleting all the domestic servers that have completed data migration, the data balancing function of the domestic server cluster is re-enabled.

[0098] like Figure 5 As shown, after adding VMware environment servers D and E to the created domestic server cluster, data from any two domestic servers can be migrated in parallel, one-to-one, to the transformed VMware environment servers D and E. This one-to-one parallel data migration avoids the issues of multiple data migrations and uneven data distribution after migration encountered in the node deletion solution, and only requires one migration, improving migration efficiency. The figure shows the migration of business data from domestic servers B and C to VMware environment servers D and E. The specific data migration process is illustrated using the migration of business data from domestic server C to VMware environment server E.

[0099] Connect two servers, C and E, via a wired connection. Then, deploy a migration tool on server E to read the data from the localized server C. Then, use data striping technology to evenly distribute the data across E's disks. Since servers C and E have the same number of disks, the data layout remains the same before and after the migration, so it can be understood as if the data is simply stored on hardware with the same configuration. This one-to-one migration ensures that the data remains evenly distributed across the cluster's server nodes after the migration is complete. After the one-to-one migration, all business data originally stored in the VMware environment is evenly distributed across the five servers A, B, C, D, and E. The business data on servers B and C is identical to that on servers D and E.

[0100] like Figure 6 As shown in the figure, after the one-to-one parallel data migration is complete, the two domestically produced servers B and C that completed the data transfer are removed from the cluster, and the cluster's data balancing function is restored. Since the data on servers D and E is identical to the business data on servers B and C, deleting them does not cause any loss of the original VMware environment's business data. This eliminates the need to wait for data rebalancing after node deletion, as is required in node-deletion-based data migration solutions. Furthermore, since the data balancing function is disabled, the data on server A will not be automatically migrated to other nodes during the entire migration process, ensuring the consistency and integrity of business data on nodes not participating in the data migration. At this point, all business data on servers D and E in the original VMware environment, originally distributed across servers A, B, and C, is now distributed across servers A, D, and E. The new cluster consisting of servers A, D, and E has received all the business data from the original VMware environment, completing the data migration.

[0101] The method for migrating server business data according to the embodiment of the present invention can solve the problem of high equipment cost. By building a new cluster in the second environment to migrate data, the cost of data migration is reduced, and concurrent migration of multi-site business data can be performed at a lower cost. Through one-to-one parallel migration between servers in the cluster, the number of data operations is reduced and the data migration efficiency is improved. By keeping the number of data copies unchanged during the entire migration process, the security of data during data migration is improved and the risk of migration is reduced. By flexibly turning on and off the data balancing function of the cluster, the problem of uneven data distribution on each server node in the cluster after the data migration is completed, thereby affecting the cluster storage performance, is avoided, and the impact of data migration on the cluster storage performance is reduced. It can be applied to the scenario of migrating the business data of VMware environment servers to domestic environment servers, and has wide applicability.

[0102] like Figure 7 As shown, a device for migrating server business data according to a specific embodiment of the present invention is introduced.

[0103] In an embodiment of the present invention, the apparatus for migrating server service data includes a cluster creation module 701 , a data migration module 702 , a function shutdown module 703 , a cluster addition module 704 and a parallel migration module 705 .

[0104] The cluster creation module 701 is configured to create a second environment server cluster, wherein the second environment server cluster includes a plurality of second environment servers.

[0105] The data migration module 702 is configured to migrate the business data on the first environment server to the plurality of second environment servers when the data balancing function of the second environment server cluster is enabled.

[0106] The function closing module 703 is used to close the data balancing function of the second environment server cluster.

[0107] The cluster adding module 704 is used to add the first environment server as a new node to the second environment server cluster.

[0108] The parallel migration module 705 is configured to perform a one-to-one parallel migration of the business data on the second environment server to the first environment server, and delete the second environment server on which data migration has been completed.

[0109] The cluster creation module 701 is further configured to create a second environment server cluster using server nodes, wherein the server nodes deploy the second environment virtualization technology.

[0110] The data migration module 702 is also used to: connect the first environment server to the second environment server cluster through a wired connection, and use the migration tool to read the business data on the first environment server; and divide the business data through data striping technology, and combine the data balancing function of the second environment server cluster to evenly write the business data to the disk of the second environment server of each node.

[0111] The cluster adding module 703 is further used to replace the original virtualization technology deployed by the first environment server with the second environment virtualization technology deployed by the second environment server cluster, so that the first environment server is transformed into a second environment server.

[0112] The cluster adding module 703 is further configured to: add the transformed first environment server as a new node to the second environment server cluster through the cluster node adding function in the second environment virtualization technology.

[0113] The parallel migration module 704 is also used to: connect the second environment server for data migration and the first environment server through a wired connection, deploy the migration tool on the first environment server and read the business data on the second environment server; and use data striping technology to cut the business data and evenly write the business data on the disk of the first environment server.

[0114] The parallel migration module 704 is further configured to: after deleting all second environment servers that have completed data migration, re-enable the data balancing function of the second environment server cluster.

[0115] The parallel migration module 704 is also used to: when the number of servers in the second environment is greater than or equal to the number of servers in the first environment, select the second environment servers with the same number as the first environment servers to perform one-to-one parallel data migration, and the second environment servers performing data migration have the same number of disks as the first environment servers.

[0116] Figure 8 FIG. 8 shows a hardware structure diagram of a computing device 80 for server service data migration according to an embodiment of the present specification. Figure 8 As shown, the computing device 80 may include at least one processor 801, a memory 802 (e.g., a non-volatile memory), a storage 803, and a communication interface 804, and the at least one processor 801, the memory 802, the storage 803, and the communication interface 804 are connected together via a bus 805. The at least one processor 801 executes at least one computer-readable instruction stored or encoded in the storage 802.

[0117] It should be understood that the computer executable instructions stored in the memory 802, when executed, cause at least one processor 801 to perform the above combined operations in various embodiments of this specification. Figure 1-8 Describes the various operations and functions.

[0118] In the embodiments of the present specification, the computing device 80 may include, but is not limited to, a personal computer, a server computer, a workstation, a desktop computer, a laptop computer, a notebook computer, a mobile computing device, a smart phone, a tablet computer, a cellular phone, a personal digital assistant (PDA), a handheld device, a messaging device, a wearable computing device, a consumer electronic device, and the like.

[0119] According to one embodiment, a program product such as a machine-readable medium is provided. The machine-readable medium may have instructions (i.e., the above-mentioned elements implemented in software form), which, when executed by a machine, causes the machine to perform the above-mentioned combined embodiments of the present specification. Figure 1-8 Specifically, a system or device equipped with a readable storage medium can be provided, on which software program codes for implementing the functions of any of the above-mentioned embodiments are stored, and a computer or processor of the system or device can be enabled to read and execute the instructions stored in the readable storage medium.

[0120] The method for migrating server business data according to the embodiment of the present invention can solve the problem of high equipment cost. By building a new cluster in the second environment to migrate data, the cost of data migration is reduced, and concurrent migration of multi-site business data can be performed at a lower cost. Through one-to-one parallel migration between servers in the cluster, the number of data operations is reduced and the data migration efficiency is improved. By keeping the number of data copies unchanged during the entire migration process, the security of data during data migration is improved and the risk of migration is reduced. By flexibly turning on and off the data balancing function of the cluster, the problem of uneven data distribution on each server node in the cluster after the data migration is completed, thereby affecting the cluster storage performance, is avoided, and the impact of data migration on the cluster storage performance is reduced. It can be applied to the scenario of migrating the business data of VMware environment servers to domestic environment servers, and has wide applicability.

[0121] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0122] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0123] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0124] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 The steps for the function specified in one or more boxes.

[0125] The foregoing descriptions of specific exemplary embodiments of the present invention are for purposes of illustration and description. These descriptions are not intended to limit the invention to the precise forms disclosed, and it is apparent that many variations and modifications are possible in light of the foregoing teachings. The exemplary embodiments have been selected and described for the purpose of explaining the specific principles of the invention and their practical application, thereby enabling those skilled in the art to realize and utilize a variety of exemplary embodiments of the invention and various options and modifications. The scope of the invention is intended to be defined by the claims and their equivalents.

Claims

1. A method for migrating server business data, wherein business data is migrated from a first environment server to a second environment server, characterized in that: The method comprises: Creating a second environment server cluster, wherein the second environment server cluster includes a plurality of second environment servers; When the data balancing function of the second environment server cluster is enabled, migrating the business data on the first environment server to the plurality of second environment servers; Disable the data balancing function of the second environment server cluster; Adding the first environment server as a new node to the second environment server cluster; and The business data on the second environment server is migrated to the first environment server in parallel one-to-one, and the second environment server on which the data migration has been completed is deleted.

2. The method for migrating server service data according to claim 1, wherein: The step of creating a second environment server cluster includes: A second environment server cluster is created through server nodes, wherein the server nodes deploy a second environment virtualization technology.

3. The method for migrating server service data according to claim 1, wherein: When the number of servers in the second environment is greater than or equal to the number of servers in the first environment, select the second environment servers with the same number as the first environment servers for one-to-one parallel data migration, and the second environment servers for data migration have the same number of disks as the first environment servers.

4. The method for migrating server service data according to claim 1, wherein: The migrating of the business data on the first environment server to the plurality of second environment servers includes: Connecting the first environment server to the second environment server cluster through a wired connection, and using a migration tool to read the business data on the first environment server; and The business data is divided by data striping technology, and combined with the data balancing function of the second environment server cluster, the business data is evenly written to the disk of the second environment server of each node.

5. The method for migrating server service data according to claim 2, wherein: Adding the first environment server as a new node to the second environment server cluster includes: The original virtualization technology deployed on the first environment server is replaced with the second environment virtualization technology deployed on the second environment server cluster, so that the first environment server is transformed into a second environment server.

6. The method for migrating server service data according to claim 5, wherein: Adding the first environment server as a new node to the second environment server cluster further includes: By using the cluster node adding function in the second environment virtualization technology, the transformed first environment server is added to the second environment server cluster as a new node.

7. The method for migrating server service data according to claim 1, wherein: Migrating the business data on the second environment server to the first environment server in parallel on a one-to-one basis includes: Connecting a second environment server for data migration to the first environment server via a wired connection, deploying a migration tool on the first environment server and reading business data on the second environment server; and The business data is cut using data striping technology, and the business data is evenly written to the disk of the first environment server.

8. The method for migrating server service data according to claim 1, wherein: The method further comprises: After deleting all second environment servers that have completed data migration, re-enable the data balancing function of the second environment server cluster.

9. The method for migrating server service data according to claim 1, wherein: The first environment server includes a VMware environment server, and the second environment server includes a domestic environment server.

10. A device for migrating server business data, characterized in that: The device comprises: A cluster creation module, configured to create a second environment server cluster, wherein the second environment server cluster includes a plurality of second environment servers; A data migration module, configured to migrate the business data on the first environment server to the plurality of second environment servers when the data balancing function of the second environment server cluster is enabled; A function shutdown module, used to shut down the data balancing function of the second environment server cluster; a cluster adding module, configured to add the first environment server as a new node to the second environment server cluster; and The parallel migration module is used to migrate the business data on the second environment server to the first environment server in a one-to-one parallel manner, and delete the second environment server where the data migration is completed.

11. An electronic device, characterized in that: include: at least one processor; as well as A memory storing instructions, which, when executed by the at least one processor, causes the at least one processor to execute the method for migrating server business data according to any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method for migrating server business data according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Virtual machine automatic migration method

    CN109800058A

  • Conversion and migration method and system of virtual machine

    CN111679889A