Business data automated migration method, device, equipment and storage medium
Through automated business data migration methods, predicting the business scale and choosing the appropriate migration method, the problems of business interruption and data loss in traditional device update replacement are solved, and migration efficiency and security are improved.
Patent Information
- Application Number
- CN202111450695.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-29
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2041-11-29
AI Technical Summary
In traditional san storage architecture, there is a lack of fully automated tools during device update and replacement, resulting in serious problems such as business interruption and data loss.
Provides a business data automation migration method, which automatically migrates business data from the current storage volume to the target storage volume by obtaining relevant information input by users, predicts the business scale, and determines the migration method based on the prediction results.
It improves migration efficiency, reduces manpower investment, reduces business impact, and corrects errors from multiple angles, solving possible data loss problems during the migration process.
Smart Images

Figure CN114153817B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence and digital medical technology, and in particular to a method, device, equipment and storage medium for automatic migration of business data. Background Art
[0002] The underlying physical devices in the existing IT field have a life cycle. When the device completes its life cycle and the device manufacturer stops supporting the device model, or when the upper-level business needs to expand performance and more stable devices and architectures, we have to face a problem, that is, the device needs to be updated and replaced. In order to minimize the impact of this process on the upper-level business, we have different solutions in different IT architectures, such as virtualization and clustering, which can minimize the risk of replacement.
[0003] However, in the traditional SAN storage architecture, due to the replacement of SAN storage devices of different manufacturers and models, there are few fully automated tools / systems that can complete the warranty of the entire SAN storage in a user / business-unaware manner after the underlying SAN storage expires. Many companies will spend a lot of manpower and a whole year in the process of updating and replacing the equipment. During the replacement process, business performance may be affected, or the business may need to be shut down to complete the replacement. What's more, in the event of human error, serious situations such as business data loss may occur. Summary of the invention
[0004] The present invention provides a method, device, equipment and storage medium for automatic migration of business data, which can realize automatic migration of business data, improve migration efficiency and solve the problem of data loss that may be caused during the migration process.
[0005] In order to solve the above technical problems, a technical solution adopted by the present invention is to provide a method for automatic migration of business data, comprising:
[0006] Obtain the host name of the host where the current application is located, the storage name of the current storage volume used to store the business data to be migrated, the usage status of the current storage volume, the identity of the current storage volume, and the storage name of the target storage volume used to take over the business data, which are input by the user;
[0007] Counting the number of the current storage volumes according to the storage name of the current storage volume and the identity identifier of the current storage volume, and predicting the business scale of the business data migration according to the number of the current storage volumes and the usage status of the current storage volumes;
[0008] A migration method is determined according to the prediction result of the business scale, and the business data is migrated from the current storage volume to the target storage volume according to the determined migration method.
[0009] According to an embodiment of the present invention, determining the migration mode according to the prediction result of the business scale and migrating the business data from the current storage volume to the target storage volume according to the determined migration mode includes:
[0010] Comparing the predicted result of the business scale with a preset first capacity threshold;
[0011] If the business scale is smaller than the first capacity threshold, determining to adopt a first migration method to migrate the business data from the current storage volume to the target storage volume;
[0012] If the business data is greater than or equal to the first capacity threshold, it is determined to adopt a second migration method to migrate the business data from the current storage volume to the target storage volume.
[0013] According to an embodiment of the present invention, if the business scale is less than the first capacity threshold, determining to adopt a first migration method to migrate the business data from the current storage volume to the target storage volume further includes:
[0014] If the business scale is less than the first capacity threshold, obtaining the historical access times and historical traffic data of the current storage volume in each time period, and detecting whether there is an associated snapshot backup of the current storage volume;
[0015] If the current storage volume has an associated snapshot backup, then the time period in which the historical access times are the least, the historical traffic data is the lowest, and there is no associated snapshot backup in the current storage volume is determined as the migration time;
[0016] If the current storage volume does not have an associated snapshot backup, determining the time period with the least number of historical accesses and the lowest historical traffic data in the current storage volume as the migration time;
[0017] Within the migration time, the service data is migrated from the current storage volume to the target storage volume using a first migration method.
[0018] According to an embodiment of the present invention, if the business scale is less than the first capacity threshold, determining to adopt a first migration method to migrate the business data from the current storage volume to the target storage volume further includes:
[0019] If the business scale is smaller than the first capacity threshold, determining whether the business scale is larger than a preset second capacity threshold, wherein the second capacity threshold is smaller than the first capacity threshold;
[0020] If the business scale is greater than the second capacity threshold, the snapshot backup business is suspended during the migration process, and a prompt message is sent to the user. At the same time, the user is notified to perform a temporary snapshot backup after the migration is completed.
[0021] According to an embodiment of the present invention, if the business scale is greater than the second capacity threshold, suspending the snapshot backup business during the migration process, sending a prompt message to the user, and notifying the user to perform a temporary snapshot backup after the migration is completed includes:
[0022] If the business scale is greater than the second capacity threshold, obtaining the migration time consumed for migrating the business data from the current storage volume to the target storage volume according to the prediction result of the business scale;
[0023] Comparing the migration time with a preset first time threshold;
[0024] If the migration time is greater than the first time threshold, the snapshot backup service is suspended during the migration process, and a prompt message is sent to the user. At the same time, the user is informed to resume the snapshot backup service after the migration is completed.
[0025] According to an embodiment of the present invention, after determining whether the business scale is greater than a preset second capacity threshold if the business scale is less than the first capacity threshold, the method further includes:
[0026] If the business scale is less than or equal to the second capacity threshold, determining the operating system type of the host according to the host name, and acquiring the volume management software type running on the host according to the operating system type;
[0027] Acquire historical usage data of the current storage volume, and determine the migration time according to the historical usage data;
[0028] A migration strategy is determined according to the volume management software type and the migration time, and the business data is migrated from the current storage volume to the target storage volume according to the corresponding migration strategy within the migration time.
[0029] According to an embodiment of the present invention, if the business data is greater than or equal to the first capacity threshold, determining to adopt a second migration method to migrate the business data from the current storage volume to the target storage volume includes:
[0030] If the service data is greater than or equal to the first capacity threshold, obtaining a downtime window period preset by the user;
[0031] During the downtime window, the mapping relationship between the current storage volume and the host is canceled, and a mapping relationship between the target storage volume and the host is established, and the service data is synchronized to the target storage volume.
[0032] In order to solve the above technical problems, another technical solution adopted by the present invention is to provide a business data automatic migration device, comprising:
[0033] An acquisition module is used to obtain the host name of the host where the current application is located, the storage name of the current storage volume used to store the business data to be migrated, the usage status of the current storage volume, the identity of the current storage volume, and the storage name of the target storage volume used to take over the business data, which are input by the user;
[0034] A prediction module, used to count the number of the current storage volumes according to the storage name of the current storage volume and the identity identifier of the current storage volume, and predict the business scale of the business data migration according to the number of the current storage volumes and the usage status of the current storage volumes;
[0035] A migration module is used to determine a migration method according to the prediction result of the business scale and migrate the business data from the current storage volume to the target storage volume according to the determined migration method.
[0036] In order to solve the above technical problems, another technical solution adopted by the present invention is: to provide a computer device, including: a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor implements the business data automatic migration method when executing the computer program.
[0037] In order to solve the above technical problems, another technical solution adopted by the present invention is: providing a computer storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned business data automatic migration method is implemented.
[0038] The beneficial effects of the present invention are: by predicting the business scale, different migration methods can be automatically selected according to different business scales to realize automatic migration of business data, thereby improving migration efficiency, saving a lot of manpower, and minimizing the impact on the business. At the same time, errors are corrected from multiple angles, solving the problem of data loss that may be caused by the migration process. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 is a flow chart of a method for automatic migration of business data according to an embodiment of the present invention;
[0040] Figure 2 is a flow chart of step S103 in the method for automatic migration of business data in an embodiment of the present invention;
[0041] Figure 3 It is a flowchart of an implementation method of step S202 in the method for automatic migration of business data in an embodiment of the present invention;
[0042] Figure 4 is a flowchart of another implementation of step S202 in the method for automatic migration of business data in an embodiment of the present invention;
[0043] Figure 5 is a flow chart of step S402 in the method for automatic migration of business data in an embodiment of the present invention;
[0044] Figure 6 is a flowchart of step S401 in the method for automatic migration of business data in an embodiment of the present invention;
[0045] Figure 7 is a flow chart of step S203 in the method for automatic migration of business data in an embodiment of the present invention;
[0046] Figure 8 It is a structural diagram of a device for automatic migration of business data according to an embodiment of the present invention;
[0047] Fig. 9 is a schematic diagram of the structure of a computer device according to an embodiment of the present invention;
[0048] Fig.10 It is a schematic diagram of the structure of a computer storage medium according to an embodiment of the present invention. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] The terms "first", "second" and "third" in the present invention are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first", "second" and "third" can explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. All directional indications (such as up, down, left, right, front, back...) in the embodiments of the present invention are only used to explain the relative position relationship, movement, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication also changes accordingly. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.
[0051] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0052] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0053] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0054] Figure 1 is a flow chart of the automatic migration method of business data according to an embodiment of the present invention. It should be noted that if there are substantially the same results, the method of the present invention is not limited to Figure 1 The process sequence shown is limited. Figure 1 As shown, the method comprises the steps of:
[0055] Step S101: Obtain the host name of the host where the current application is located, the storage name of the current storage volume used to store the business data to be migrated, the usage status of the current storage volume, the identity of the current storage volume, and the storage name of the target storage volume used to take over the business data, which are input by the user.
[0056] In step S101, the business data is stored in the current storage volume. If the current storage volume needs to be replaced due to the expiration of the warranty or other reasons, the business data needs to be migrated from the current storage volume to the target storage volume. During the migration, the user enters the host name of the host where the current application is located, the storage name of the current storage volume, the usage status of the current storage volume, the identity of the current storage volume, and the storage name of the target storage volume through the client. The identity is the wwid identifier of the current storage volume. Each storage volume has a corresponding wwid identifier, and the wwid identifier is a unique identity identifier of the storage volume.
[0057] Step S102: Count the number of current storage volumes according to the storage name of the current storage volume and the identity of the current storage volume, and predict the business scale of business data migration according to the number of current storage volumes and the usage status of the current storage volumes.
[0058] In step S102, the business data may be distributed in multiple storage volumes, and the storage space occupied by the business data of each storage volume is the usage status of the current storage volume. This embodiment can predict the size of the business scale according to the number of current storage volumes and the usage status of the current storage volumes.
[0059] Step S103: determining a migration method according to the prediction result of the business scale and migrating the business data from the current storage volume to the target storage volume according to the determined migration method.
[0060] In step S103, different migration methods are adopted for different business scales. There are two migration methods, namely, host layer migration method and cross-storage replication migration method. For application scenarios with smaller business scales, the host layer migration method is adopted. The migration speed of this migration method is slower but the migration is more stable; for application scenarios with larger business scales, the cross-storage replication migration method is adopted. The migration time of this migration method is longer, the migration efficiency is slower and the migration success rate is lower.
[0061] In one possible embodiment, see Figure 2 , step S103 further includes the following steps:
[0062] Step S201: Compare the forecast result of the business scale with a preset first capacity threshold.
[0063] The first capacity threshold is preset by the user, for example, 3 TB, and can be adjusted according to actual needs.
[0064] Step S202: If the business scale is smaller than the first capacity threshold, determine to adopt the first migration method to migrate the business data from the current storage volume to the target storage volume.
[0065] In one embodiment, the first migration method may be a host-layer migration method. If the business scale is less than 3 TB, the host-layer migration method is used to migrate the business data from the current storage volume to the target storage volume.
[0066] Step S203: If the business data is greater than or equal to the first capacity threshold, determine to adopt the second migration method to migrate the business data from the current storage volume to the target storage volume.
[0067] In one embodiment, the second migration method is a cross-storage replication migration method. If the business data is greater than or equal to 3TB, it is determined to use the cross-storage replication migration method to migrate the business data from the current storage volume to the target storage volume.
[0068] In one possible embodiment, see Figure 3 , step S202 further includes the following steps:
[0069] Step S301: If the business scale is less than the first capacity threshold, the historical access times and historical traffic data of the current storage volume in each time period are obtained, and it is detected whether there is an associated snapshot backup of the current storage volume.
[0070] In this embodiment, the historical access times and historical traffic data of the current storage volume and whether there is an associated snapshot backup will affect the data migration speed.
[0071] Step S302: If the current storage volume has an associated snapshot backup, the time period with the least historical access times, the lowest historical traffic data and no associated snapshot backup in the current storage volume is determined as the migration time.
[0072] In step S302, in general, the migration time of storage volumes with associated snapshot backups is longer, and the migration time of storage volumes without associated snapshot backups is shorter. Storage volumes with associated snapshot backups need to select a time period without associated snapshot backups for data migration to save migration time. Furthermore, by comprehensively considering the historical access times and historical traffic data of the current storage volume in each time period, and detecting whether there is an associated snapshot backup, a better migration time can be accurately predicted. Generally, the fewer the historical access times, the lower the historical traffic data, and the time period without associated snapshot backups, the faster the migration speed, and vice versa.
[0073] Step S303: If there is no associated snapshot backup for the current storage volume, the time period with the least historical access times and the lowest historical traffic data in the current storage volume is determined as the migration time.
[0074] In step S303, if there is no associated snapshot backup for the current storage volume, when determining the migration time, only the historical access times and historical traffic data need to be considered, that is, the time period with the least historical access times and the lowest historical traffic data is selected as the migration time.
[0075] Step S304: within the migration time, the business data is migrated from the current storage volume to the target storage volume using the first migration method.
[0076] In step S304, the process of migrating business data from the current storage volume to the target storage volume using the first migration method is roughly as follows: first, determine whether the target storage volume is in use; if the target storage volume is not in use, add the target storage volume to the storage pool; then migrate the business data from the current storage volume to the target storage volume; finally, after the business data is migrated, remove the current storage volume from the storage pool.
[0077] In another possible embodiment, see Figure 4 , step S202 further includes the following steps:
[0078] Step S401: If the business scale is smaller than the first capacity threshold, determine whether the business scale is larger than a preset second capacity threshold, wherein the second capacity threshold is smaller than the first capacity threshold.
[0079] The second capacity threshold is preset by the user, for example, 1 TB, and can be adjusted according to actual needs. In this embodiment, the second capacity threshold is smaller than the first capacity threshold.
[0080] Step S402: If the service scale is greater than the second capacity threshold, the snapshot backup service is suspended during the migration process, and a prompt message is sent to the user. At the same time, the user is notified to perform a temporary snapshot backup after the migration is completed.
[0081] In this embodiment, when the business scale is less than the first capacity threshold, the business scale is further determined. When the business scale is greater than the second capacity threshold, it indicates that the business scale is relatively large, and the snapshot backup service needs to be suspended during the migration process to improve the migration efficiency and save migration time. At the same time, a prompt message is sent to the user, and the user is notified to perform a temporary snapshot backup after the migration is completed.
[0082] In one possible embodiment, see Figure 5 , step S402 further includes the following steps:
[0083] Step S501: If the business scale is greater than the second capacity threshold, the migration time required to migrate the business data from the current storage volume to the target storage volume is obtained according to the prediction result of the business scale.
[0084] In step S501, when the business scale is greater than the second capacity threshold, it means that the business scale is relatively large, which may cause the migration time to be too long. The migration time can be predicted according to the business scale.
[0085] Step S502: Compare the migration time with a preset first time threshold.
[0086] The first time threshold is preset by the user, such as 1 day, and can be adjusted according to actual needs.
[0087] Step S503: If the migration time is greater than the first time threshold, the snapshot backup service is suspended during the migration process, and a prompt message is sent to the user. At the same time, the user is informed to resume the snapshot backup service after the migration is completed.
[0088] In this embodiment, if the migration takes more than one day, the system will temporarily reject the snapshot backup requirement and send a prompt message to inform the user. After the migration is completed, the system will send another notification to inform the user to perform a temporary snapshot backup.
[0089] In one possible embodiment, see Figure 6 , step S401 further includes the following steps:
[0090] Step S601: If the business scale is less than or equal to the second capacity threshold, the operating system type of the host is determined according to the host name, and the volume management software type running on the host is obtained according to the operating system type.
[0091] In step S601, if the business scale is less than or equal to the second capacity threshold, it means that the business scale is relatively small and the migration time is short. The operating system types include but are not limited to Windows, Linux, and solaris, and the volume management software types include lvm, vxvm, and asm. Specifically, the Windows operating system can only use lvm, the Linux operating system can use lvm, vxvm, and asm, and the solaris operating system can use lvm and vxvm.
[0092] Step S602: Obtain historical usage data of the current storage volume, and determine the migration time according to the historical usage data.
[0093] In step S602, the historical usage data includes the historical access times, the historical traffic data, and whether there is an associated snapshot backup, and the migration time includes the business peak period and the business off-peak period. The business peak period and the business off-peak period of the business data migration are determined according to the historical access times, the historical traffic data, and whether there is an associated snapshot backup. For example, in this embodiment, the time period when the historical access times of the current storage volume are small, the historical traffic data is low, and / or there is no associated snapshot backup is determined as the business off-peak period; and the time period when the historical access times of the current storage volume are large, the historical traffic data is high, and there is an associated snapshot backup is determined as the business peak period.
[0094] Step S603: Determine a migration strategy according to the volume management software type and the migration time, and migrate the business data from the current storage volume to the target storage volume according to the corresponding migration strategy within the migration time.
[0095] In step S603, the migration strategy includes a migration suspension strategy, a migration speed reduction strategy, a migration speed increase strategy, and a concurrent migration strategy. During the peak business period, for the lvm and vxvm scenarios, the migration suspension strategy is executed; for the asm scenario, the migration speed reduction strategy is executed. During the off-peak business period, for the asm scenario, the migration speed increase strategy is executed; for the vxvm scenario, the concurrent migration strategy is executed.
[0096] In one possible embodiment, see Figure 7 , step S203 further includes the following steps:
[0097] Step S701: If the service data is greater than or equal to the first capacity threshold, the downtime window period preset by the user is obtained.
[0098] In one embodiment, if the business data is greater than or equal to the first capacity threshold, the type of each storage volume is determined according to the storage name of the current storage volume and the storage name of the target storage volume; whether the business data migration of the second migration mode is supported from the current storage volume to the target storage volume is determined according to the type; if supported, the downtime window period is obtained. Because storage devices from different manufacturers have various different models, and the model may affect whether the business data migration is supported. The model of the storage volume in this embodiment will be used to determine whether the business data migration of the second migration mode is supported. For example, the second migration mode is a cross-storage migration mode. Data migration from the current storage volume to the target storage volume only supports certain specific models. For example, HDS's F series storage to G series storage can support a cross-storage migration mode, and HDS to IBM's A9K series does not support a cross-storage migration mode. The cross-storage migration mode requires business data migration during the downtime window period, and the downtime window period is preset by the user or the system automatically identifies the best downtime window period based on historical downtime.
[0099] Step S702: During the downtime window, cancel the mapping relationship between the current storage volume and the host, establish a mapping relationship between the target storage volume and the host, and synchronize the service data to the target storage volume.
[0100] In one embodiment, during the downtime window, the mapping relationship between the current storage volume and the host is canceled, the current storage volume is paired with the target storage volume, and after the pairing is successful, the mapping relationship between the target storage volume and the host is established.
[0101] This method can greatly shorten the entire migration process. Experimental results show that the migration of a database larger than 300TB can be completed within 1 day, with a downtime window of only 1 hour.
[0102] The automated business data migration method of the embodiment of the present invention can predict the business scale and automatically select different migration methods according to different business scales to achieve automated business data migration, thereby improving migration efficiency, saving a lot of manpower, and minimizing the impact on the business. At the same time, it corrects errors from multiple angles and solves the problem of data loss that may be caused by the migration process.
[0103] Figure 8 Schematic diagram of the structure of the automatic migration device for business data according to an embodiment of the present invention. Figure 8 As shown, the device 80 includes an acquisition module 81 , a prediction module 82 and a migration module 83 .
[0104] The acquisition module 81 is used to obtain the host name of the host where the current application is located, the storage name of the current storage volume for storing the business data to be migrated, the usage status of the current storage volume, the identity of the current storage volume, and the storage name of the target storage volume for taking over the business data, which are input by the user;
[0105] The prediction module 82 is used to count the number of current storage volumes according to the storage name of the current storage volume and the identity of the current storage volume, and predict the business scale of business data migration according to the number of current storage volumes and the usage status of the current storage volumes;
[0106] The migration module 83 is used to determine a migration method according to the prediction result of the business scale and migrate the business data from the current storage volume to the target storage volume according to the determined migration method.
[0107] See also Fig. 9 , Fig. 9 FIG. 1 is a schematic diagram of the structure of a computer device according to an embodiment of the present invention. Fig. 9 As shown, the computer device 90 includes a processor 91 and a memory 92 coupled to the processor 91 .
[0108] The memory 92 stores program instructions for implementing the method for automatic migration of business data described in any of the above embodiments.
[0109] The processor 91 is used to execute program instructions stored in the memory 92 to perform automatic migration of business data.
[0110] The processor 91 may also be referred to as a CPU (Central Processing Unit). The processor 91 may be an integrated circuit chip having the ability to process signals. The processor 91 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0111] See also Fig.10 , Fig.10 Schematic diagram of the structure of the computer storage medium of the embodiment of the present invention. The computer storage medium of the embodiment of the present invention stores a program file 101 that can implement all the above methods, wherein the program file 101 can be stored in the above computer storage medium in the form of a software product, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned computer storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes, or terminal devices such as computers, servers, mobile phones, tablets, etc.
[0112] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0113] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0114] The above are only implementation modes of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for automatic migration of business data, characterized in that: include: Obtain the host name of the host where the current application is located, the storage name of the current storage volume used to store the business data to be migrated, the usage status of the current storage volume, the identity of the current storage volume, and the storage name of the target storage volume used to take over the business data, which are input by the user; Counting the number of the current storage volumes according to the storage name of the current storage volume and the identity identifier of the current storage volume, and predicting the business scale of the business data migration according to the number of the current storage volumes and the usage status of the current storage volumes; Determine a migration method according to the prediction result of the business scale and migrate the business data from the current storage volume to the target storage volume according to the determined migration method; The step of determining a migration method according to the prediction result of the business scale and migrating the business data from the current storage volume to the target storage volume according to the determined migration method includes: Comparing the predicted result of the business scale with a preset first capacity threshold; If the business scale is smaller than the first capacity threshold, determining to adopt a first migration method to migrate the business data from the current storage volume to the target storage volume; If the business scale is greater than or equal to the first capacity threshold, determining to adopt a second migration method to migrate the business data from the current storage volume to the target storage volume; If the business scale is less than the first capacity threshold, determining to adopt a first migration method to migrate the business data from the current storage volume to the target storage volume further includes: If the business scale is less than the first capacity threshold, obtaining the historical access times and historical traffic data of the current storage volume in each time period, and detecting whether there is an associated snapshot backup of the current storage volume; If the current storage volume has an associated snapshot backup, then the time period in which the historical access times are the least, the historical traffic data is the lowest, and there is no associated snapshot backup in the current storage volume is determined as the migration time; If the current storage volume does not have an associated snapshot backup, determining the time period with the least number of historical accesses and the lowest historical traffic data in the current storage volume as the migration time; Within the migration time, the service data is migrated from the current storage volume to the target storage volume using a first migration method.
2. The method according to claim 1, characterized in that If the business scale is less than the first capacity threshold, determining to adopt a first migration method to migrate the business data from the current storage volume to the target storage volume further includes: If the business scale is smaller than the first capacity threshold, determining whether the business scale is larger than a preset second capacity threshold, wherein the second capacity threshold is smaller than the first capacity threshold; If the business scale is greater than the second capacity threshold, the snapshot backup business is suspended during the migration process, and a prompt message is sent to the user. At the same time, the user is notified to perform a temporary snapshot backup after the migration is completed.
3. The method according to claim 2, characterized in that If the business scale is greater than the second capacity threshold, suspending the snapshot backup business during the migration process, sending a prompt message to the user, and notifying the user to perform a temporary snapshot backup after the migration is completed includes: If the business scale is greater than the second capacity threshold, obtaining the migration time consumed for migrating the business data from the current storage volume to the target storage volume according to the prediction result of the business scale; Comparing the migration time with a preset first time threshold; If the migration time is greater than the first time threshold, the snapshot backup service is suspended during the migration process, and a prompt message is sent to the user. At the same time, the user is informed to resume the snapshot backup service after the migration is completed.
4. The method according to claim 2, characterized in that: After determining whether the business scale is greater than a preset second capacity threshold if the business scale is less than the first capacity threshold, the method further includes: If the business scale is less than or equal to the second capacity threshold, determining the operating system type of the host according to the host name, and acquiring the volume management software type running on the host according to the operating system type; Acquire historical usage data of the current storage volume, and determine the migration time according to the historical usage data; A migration strategy is determined according to the volume management software type and the migration time, and the business data is migrated from the current storage volume to the target storage volume according to the corresponding migration strategy within the migration time.
5. The method according to claim 1, characterized in that If the business scale is greater than or equal to the first capacity threshold, determining to adopt a second migration method to migrate the business data from the current storage volume to the target storage volume includes: If the business scale is greater than or equal to the first capacity threshold, obtaining a downtime window period preset by the user; During the downtime window, the mapping relationship between the current storage volume and the host is canceled, and a mapping relationship between the target storage volume and the host is established, and the service data is synchronized to the target storage volume.
6. A business data automatic migration device, characterized in that: The method for automatic migration of business data as claimed in any one of claims 1 to 5 comprises: An acquisition module is used to obtain the host name of the host where the current application is located, the storage name of the current storage volume used to store the business data to be migrated, the usage status of the current storage volume, the identity of the current storage volume, and the storage name of the target storage volume used to take over the business data, which are input by the user; A prediction module, used to count the number of the current storage volumes according to the storage name of the current storage volume and the identity identifier of the current storage volume, and predict the business scale of the business data migration according to the number of the current storage volumes and the usage status of the current storage volumes; A migration module is used to determine a migration method according to the prediction result of the business scale and migrate the business data from the current storage volume to the target storage volume according to the determined migration method.
7. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for automated migration of business data as described in any one of claims 1 to 5 when executing the computer program.
8. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for automatic migration of business data as described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Data migration method and system, electronic equipment and storage medium
CN110555014A
Business migration method, device and equipment and readable storage medium
CN111061432A