An Online Migration Method, Device, Equipment and Medium for Heterogeneous Block Storage Data

By creating virtual cloned volumes in heterogeneous storage systems and splitting data blocks, the problem of low business system connection and failure tolerance during heterogeneous storage migration is solved, and seamless online migration and efficient data transmission are achieved.

CN120122895BActive Publication Date: 2025-07-18CHINA ELECTRONICS CLOUD DIGITAL INTELLIGENCE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510614775.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-14
Publication Date
2025-07-18
Estimated Expiration
2045-05-14

AI Technical Summary

Technical Problem

In the process of heterogeneous storage migration, it is difficult to achieve seamless connection of business systems and there is a problem of low failure tolerance, resulting in the migration process affecting business or having high complexity.

Method used

Map the volume to be migrated in the heterogeneous migration system to the local storage system, create a virtual cloned volume with the same WWN number, and take over the business through the virtual cloned volume. Use the foreground migration module to process IO requests, and the background migration module splits data blocks for migration.

Benefits of technology

It realizes seamless online migration of business systems, reduces business interruption time, improves data transmission efficiency and integrity, and ensures the reliability and consistency of the migration process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120122895B_ABST
    Figure CN120122895B_ABST
Patent Text Reader

Abstract

The present invention provides a method, apparatus, device and medium for online migration of heterogeneous block storage data, which relates to the technical field of data migration, and includes mapping a volume to be migrated in a heterogeneous migration system to a local storage system; creating a target volume in the local storage system and marking the target volume as a virtual clone volume in a database; removing the path of the volume to be migrated from a configuration file, and at the same time adding the path of the virtual clone volume to the configuration file to rediscover the virtual clone volume; receiving read and write requests of IOs by the virtual clone volume, and when the received IOs do not exist in the local storage system, reading the IOs from the heterogeneous storage system and storing them in the local storage system; splitting the data in the virtual clone volume into several data blocks according to a preset size, and sequentially reading the data blocks from the heterogeneous storage system and storing them in the local storage system. During the migration process, the present invention optimizes the data transmission efficiency and ensures the integrity and consistency of the data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data migration, and in particular, to an online heterogeneous block storage data migration method, device, equipment and medium. Background Art

[0002] Heterogeneous storage migration involves migrating data between storage systems with different architectures and taking over services. During the migration process, it is necessary to ensure the integrity of the data and at the same time not affect the existing services. In the implementation of heterogeneous storage migration, many existing technologies can only achieve offline migration. For example, first stop the service, then migrate the volume from the heterogeneous volume to the target volume, and after the data is completely migrated, provide the new volume to the service. This process may take several days and has a great impact on the user's application. In some other implementations, near-online migration can be achieved, that is, the original service is hardly affected during the migration process, but the implementation is very complex and the fault tolerance of the system is very low. Once a failure occurs, the data migration may have to start over. Summary of the Invention

[0003] The purpose of the present invention is to provide an online heterogeneous block storage data migration method, device, equipment and medium to improve the above problems. To achieve the above purpose, the technical solutions adopted by the present invention are as follows:

[0004] In a first aspect, the present application provides an online heterogeneous block storage data migration method, including:

[0005] Map the volume to be migrated in the heterogeneous migration system to the local storage system, where the heterogeneous storage system is the original storage system;

[0006] Create a target volume in the local storage system, the target volume has the same identifier as the volume to be migrated, and mark the target volume as a virtual clone volume in the database;

[0007] Remove the path of the volume to be migrated from the configuration file, and at the same time add the path of the virtual clone volume to the configuration file to rediscover the virtual clone volume, so that the virtual clone volume takes over the service;

[0008] The virtual clone volume receives read and write requests of IO. When the received IO does not exist in the local storage system, read the IO from the heterogeneous storage system and store it in the local storage system;

[0009] Divide the data in the virtual clone volume into several data blocks according to a preset size, and sequentially read the data blocks from the heterogeneous storage system and store them in the local storage system.

[0010] In a second aspect, the present application also provides an online heterogeneous block storage data migration device, including:

[0011] Mapping module: Map the volume to be migrated in the heterogeneous migration system to the local storage system, where the heterogeneous storage system is the original storage system;

[0012] Creation module: Create a target volume in the local storage system. The target volume has the same identifier as the volume to be migrated, and mark the target volume as a virtual clone volume in the database;

[0013] Removal module: Remove the path of the volume to be migrated from the configuration file, and at the same time add the path of the virtual clone volume to the configuration file to rediscover the virtual clone volume, so that the virtual clone volume takes over the service;

[0014] Foreground migration module: The virtual clone volume receives read and write requests for IO. When the received IO does not exist in the local storage system, read the IO from the heterogeneous storage system and store it in the local storage system;

[0015] Background migration module: Split the data in the virtual clone volume into several data blocks according to a preset size, and sequentially read the data blocks from the heterogeneous storage system and store them in the local storage system.

[0016] Thirdly, the present application also provides a heterogeneous block storage data online migration device, including:

[0017] A memory for storing a computer program;

[0018] A processor for implementing the steps of the heterogeneous block storage data online migration method when executing the computer program.

[0019] Fourthly, the present application also provides a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned heterogeneous block storage data online migration method are implemented.

[0020] The beneficial effects of the present invention are as follows:

[0021] By mapping the volume to be migrated to the local storage system and creating a virtual clone volume with the same WWN number, the present invention ensures seamless connection of the business system, and data migration can be completed without downtime, greatly reducing the business interruption time. In the IO processing flow, the write IO and read requests are split into 4M chunks, and whether to read data from the heterogeneous storage is determined according to the existence of local storage data, which not only optimizes the data transmission efficiency, but also ensures the integrity and consistency of the data. The automatic execution of the background migration process further improves the reliability of data migration. Even if a failure occurs during the migration process, the migration can continue from the breakpoint, avoiding repeated labor in data migration.

[0022] Other features and advantages of the present invention will be described in the subsequent specification, and, in part, will be obvious from the specification, or can be understood by implementing the embodiments of the present invention. The objectives and other advantages of the present invention can be achieved and obtained by the structures specifically pointed out in the written specification, claims, and drawings. Brief Description of the Drawings

[0023] To more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for use in the embodiments. It should be understood that the following drawings only show certain embodiments of the present invention and should not be regarded as limiting the scope. For those of ordinary skill in the art, without creative efforts, other relevant drawings can also be obtained based on these drawings.

[0024] Figure 1 Schematic flowchart of the online migration method for heterogeneous block storage data described in the embodiments of the present invention;

[0025] Figure 2 Schematic structural diagram of the online migration device for heterogeneous block storage data described in the embodiments of the present invention;

[0026] Figure 3 Schematic structural diagram of the online migration device for heterogeneous block storage data described in the embodiments of the present invention.

[0027] Reference numerals in the figures:

[0028] 800, online migration device for heterogeneous block storage data; 801, processor; 802, memory; 803, multimedia component; 804, I / O interface; 805, communication component. Detailed Description of the Embodiments

[0029] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of them. Usually, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed present invention, but only represents the selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.

[0030] It should be noted that similar reference numerals and letters denote similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. At the same time, in the description of the present invention, terms such as "first", "second", etc. are only used for distinguishing descriptions and cannot be construed as indicating or implying relative importance.

[0031] Embodiment 1:

[0032] This embodiment provides a method for online migration of heterogeneous block storage data.

[0033] Refer to Figure 1 , which shows that this method includes:

[0034] S1. Map the volume to be migrated in the heterogeneous migration system to the local storage system, where the heterogeneous storage system is the original storage system;

[0035] Specifically, step S1 includes:

[0036] S11. Identify the volume to be migrated in the heterogeneous migration system and obtain the identifier and attribute information of the volume to be migrated;

[0037] In this embodiment, a storage management tool or API is used to identify the volume to be migrated in the heterogeneous migration system. For example, through the command line tool restfu api call, attribute information such as the WWN number, LUN number, volume size, and performance parameters of the volume to be migrated is obtained.

[0038] S12. Generate a mapping command according to the identifier and attribute information of the volume to be migrated to ensure that the volume to be migrated is visible in the local storage system;

[0039] S13. Send the mapping command to the local storage system and execute the mapping operation;

[0040] S14. Identify and access the volume to be migrated on the local storage system.

[0041] Based on the above embodiments, this method further includes:

[0042] S2. Create a target volume in the local storage system, where the identifier of the target volume is the same as that of the volume to be migrated, and mark the target volume as a virtual clone volume in the database;

[0043] Specifically, step S2 includes:

[0044] S21. In the local storage system, create a new target volume according to the identifier of the volume to be migrated, so that the WWN number of the newly created target volume is exactly the same as the WWN number of the volume to be migrated;

[0045] S22. Set the size and performance parameters of the target volume according to the attribute information of the volume to be migrated. For example, according to the attribute information of the volume to be migrated, set the size of the target volume to 100 GB, and the performance parameters include a read / write speed of 100 MB / s, an IOPS of 5000, a cache policy of write_back, an I / O priority of high, a data protection level of raid_5, etc.

[0046] S23. In the database of the local storage system, mark the newly created target volume as a virtual clone volume;

[0047] S24. Verify whether the target volume is successfully created and whether the identifier and attribute parameters of the target volume are the same as those of the volume to be migrated, ensuring that the target volume can be recognized and accessed in the local storage system and that the business system can be seamlessly connected.

[0048] Based on the above embodiments, the method further includes:

[0049] S3. Remove the path of the volume to be migrated from the configuration file, and at the same time add the path of the virtual clone volume to the configuration file to rediscover the virtual clone volume, so that the virtual clone volume takes over the business;

[0050] Specifically, the step S3 includes:

[0051] S31. Read the configuration file of the storage system to obtain the list of currently mounted volume paths;

[0052] S32. Search for and delete the path of the volume to be migrated in the volume path list, and at the same time add the path of the virtual clone volume to the volume path list;

[0053] S33. Write the modified volume path list back to the configuration file to update the configuration file;

[0054] S34. Trigger the volume discovery mechanism of the storage system, so that the storage system rediscovers and mounts the virtual clone volume according to the updated configuration file.

[0055] Based on the above embodiments, the method further includes:

[0056] S4. The virtual clone volume receives the read / write requests of the IO. When the received IO does not exist in the local storage system, read the IO from the heterogeneous storage system and store it in the local storage system;

[0057] Specifically, the step S4 includes:

[0058] S41. The virtual clone volume receives an IO write request from the host;

[0059] S42. Split the received IO read request into data blocks of 4M size to obtain a number of data blocks;

[0060] S43. Traverse each data block in sequence and determine whether the traversed data block exists in the local storage system:

[0061] If so, update the local storage system;

[0062] S44. Otherwise, determine whether the data block exists in the heterogeneous storage system:

[0063] If so, read the data block in the storage heterogeneous system, merge the read data block with the currently traversed data block, and store the merged data block in the local storage system;

[0064] Otherwise, update the local storage system to ensure data integrity.

[0065] Specifically, step S4 further includes:

[0066] S45. The virtual clone volume receives an IO read request from the host;

[0067] S46. Split the received IO read request into data blocks of 4M size to obtain a number of data blocks;

[0068] S47. Traverse each data block in sequence and determine whether the traversed data block exists in the local storage system:

[0069] If so, update the local storage system;

[0070] S48. Otherwise, determine whether the data block exists in the heterogeneous storage system:

[0071] If so, read the data block in the storage heterogeneous system, store the read data block in the local storage system, and return the data range of the host read request;

[0072] Otherwise, update the local storage system.

[0073] Based on the above embodiments, the method further includes:

[0074] S5. Split the data in the virtual clone volume into a number of data blocks according to a preset size, and sequentially read the data blocks from the heterogeneous storage system and store them in the local storage system;

[0075] Specifically, step S5 includes:

[0076] S51. Start a background process, split the data in the virtual clone volume into data blocks of 4M size to obtain a number of data blocks;

[0077] S52. Traverse each data block in sequence and determine whether the traversed data block exists in the local storage system:

[0078] S53. If so, update the local storage system;

[0079] Otherwise, determine whether the database exists in the heterogeneous storage system:

[0080] S54. If it exists, read the database in the storage heterogeneous system, store the read data blocks in the local storage system, and return the data range of the host read request;

[0081] Otherwise, update the local storage system.

[0082] Through the above steps, the data in the virtual clone volume is efficiently sliced into several data blocks of 4M in size, and is sequentially read from the heterogeneous storage system and stored in the local storage system. This process not only improves the efficiency of data migration, but also ensures the integrity and consistency of the data, reducing the impact on the business system. Through the automated processing of the background migration process, the data migration process is more transparent and reliable.

[0083] Embodiment 2:

[0084] As Figure 2 shown, this embodiment provides a heterogeneous block storage data online migration device, and the device includes:

[0085] Mapping module: Map the volume to be migrated in the heterogeneous migration system to the local storage system, where the heterogeneous storage system is the original storage system;

[0086] Creation module: Create a target volume in the local storage system, where the identifier of the target volume is the same as that of the volume to be migrated, and mark the target volume as a virtual clone volume in the database;

[0087] Removal module: Remove the path of the volume to be migrated from the configuration file, and at the same time add the path of the virtual clone volume to the configuration file to rediscover the virtual clone volume, so that the virtual clone volume takes over the service;

[0088] Foreground migration module: Receive the read and write requests of IO by the virtual clone volume. When the received IO does not exist in the local storage system, read the IO from the heterogeneous storage system and store it in the local storage system;

[0089] Background migration module: Slice the data in the virtual clone volume into several data blocks according to a preset size, and sequentially read the data blocks from the heterogeneous storage system and store them in the local storage system.

[0090] Based on the above embodiments, the mapping module includes:

[0091] Identification unit: Identify the volume to be migrated in the heterogeneous migration system, and obtain the identifier and attribute information of the volume to be migrated;

[0092] Command generation unit: Generate a mapping command according to the identifier and attribute information of the volume to be migrated;

[0093] Sending unit: Send the mapping command to the local storage system and execute the mapping operation;

[0094] Access unit: Identify and access the volume to be migrated on the local storage system.

[0095] Based on the above embodiments, the creation module includes:

[0096] Creation unit: Create a new target volume in the local storage system according to the identifier of the volume to be migrated;

[0097] Setting unit: Set the size and performance parameters of the target volume according to the attribute information of the volume to be migrated;

[0098] Marking unit: Mark the newly created target volume as a virtual clone volume in the database of the local storage system;

[0099] Verification unit: Verify whether the target volume is successfully created and whether the identifier and attribute parameters of the target volume are the same as those of the volume to be migrated.

[0100] Based on the above embodiments, the removal module includes:

[0101] Reading unit: Read the configuration file of the storage system to obtain the list of currently mounted volume paths;

[0102] Searching unit: Search for the path of the volume to be migrated in the volume path list and delete it, and at the same time add the path of the virtual clone volume to the volume path list;

[0103] Updating unit: Write the modified volume path list back to the configuration file to update the configuration file;

[0104] Mounting unit: Trigger the volume discovery mechanism of the storage system to enable the storage system to re-identify and mount the virtual clone volume according to the updated configuration file.

[0105] Based on the above embodiments, the foreground migration module includes:

[0106] First receiving unit: The virtual clone volume receives an IO write request from the host;

[0107] First splitting unit: Split the received IO read request into data blocks of 4M size to obtain a number of data blocks;

[0108] First traversing unit: Traverse each data block in turn to determine whether the traversed data block exists in the local storage system:

[0109] If so, update the local storage system;

[0110] Otherwise, determine whether the data block exists in the heterogeneous storage system:

[0111] The first merging unit: If so, read the data block library in the storage heterogeneous system, and merge the read data block with the currently traversed data block and store it in the local storage system;

[0112] Otherwise, update the local storage system.

[0113] Based on the above embodiments, the foreground migration module further includes:

[0114] The second receiving unit: The virtual clone volume receives an IO read request from the host;

[0115] The second splitting unit: Split the received IO read request according to a size of 4M to obtain a number of data blocks;

[0116] The second traversing unit: Traverse each data block in turn, and determine whether the traversed data block exists in the local storage system:

[0117] If so, update the local storage system;

[0118] Otherwise, determine whether the data block exists in the heterogeneous storage system:

[0119] The second merging unit: If so, read the data block in the storage heterogeneous system, store the read data block in the local storage system, and return the data range of the host read request;

[0120] Otherwise, update the local storage system.

[0121] It should be noted that regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated here.

[0122] Embodiment 3:

[0123] Corresponding to the above method embodiments, a heterogeneous block storage data online migration device is also provided in this embodiment. A heterogeneous block storage data online migration device described below can be mutually corresponding and referred to with a heterogeneous block storage data online migration method described above.

[0124] Figure 3 It is a block diagram of a heterogeneous block storage data online migration device 800 shown according to an exemplary embodiment. As Figure 3As shown, the heterogeneous block storage data online migration device 800 may include: a processor 801 and a memory 802. The heterogeneous block storage data online migration device 800 may further include one or more of a multimedia component 803, an I / O interface 804, and a communication component 805.

[0125] Among them, the processor 801 is used to control the overall operation of the heterogeneous block storage data online migration device 800 to complete all or part of the steps in the above-mentioned heterogeneous block storage data online migration method. The memory 802 is used to store various types of data to support the operation of the heterogeneous block storage data online migration device 800. These data may include, for example, instructions for any application or method operating on the heterogeneous block storage data online migration device 800, as well as application-related data, such as contact data, sent and received messages, pictures, audio, video, and so on. The memory 802 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disc. The multimedia component 803 may include a screen and an audio component. The screen may be a touch screen, for example, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signals may be further stored in the memory 802 or sent through the communication component 805. The audio component further includes at least one speaker for outputting audio signals. The I / O interface 804 provides an interface between the processor 801 and other interface modules, and the other interface modules may be a keyboard, a mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 805 is used for wired or wireless communication between the heterogeneous block storage data online migration device 800 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, near field communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them. Accordingly, the communication component 805 may include: a Wi-Fi module, a Bluetooth module, and an NFC module.

[0126] In an exemplary embodiment, the heterogeneous block storage data online migration device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components, and is used to execute the above-mentioned heterogeneous block storage data online migration method.

[0127] In another exemplary embodiment, a computer-readable storage medium including program instructions is further provided. When the program instructions are executed by a processor, the steps of the above-mentioned heterogeneous block storage data online migration method are implemented. For example, the computer-readable storage medium may be the above-mentioned memory 802 including program instructions, and the above-mentioned program instructions may be executed by the processor 801 of the heterogeneous block storage data online migration device 800 to complete the above-mentioned heterogeneous block storage data online migration method.

[0128] Embodiment 4:

[0129] Corresponding to the above method embodiment, a readable storage medium is further provided in this embodiment. A readable storage medium described below and a heterogeneous block storage data online migration method described above can be referred to each other correspondingly.

[0130] A readable storage medium stores a computer program. When the computer program is executed by a processor, the steps of the heterogeneous block storage data online migration method in the above method embodiment are implemented.

[0131] The readable storage medium may specifically be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc, or other readable storage media that can store program codes.

[0132] The above are only the preferred embodiments of the present invention and are not used to limit the present invention. For those skilled in the art, the present invention may have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

[0133] As described above, it is only the specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of changes or substitutions, which should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. An online migration method for heterogeneous block storage data, characterized in that including: mapping the volume to be migrated in the heterogeneous migration system to the local storage system; creating a target volume in the local storage system, where the identifier of the target volume is the same as that of the volume to be migrated, and marking the target volume as a virtual clone volume in the database; removing the path of the volume to be migrated from the configuration file, and at the same time adding the path of the virtual clone volume to the configuration file to rediscover the virtual clone volume, so that the virtual clone volume takes over the service; receiving the read and write requests of the IO by the virtual clone volume, and when the received IO does not exist in the local storage system, reading the IO from the heterogeneous storage system and storing it in the local storage system, where the heterogeneous storage system is the original storage system; splitting the data in the virtual clone volume into several data blocks according to a preset size, and sequentially reading the data blocks from the heterogeneous storage system and storing them in the local storage system; wherein, mapping the volume to be migrated in the heterogeneous migration system to the local storage system includes: identifying the volume to be migrated in the heterogeneous migration system, and obtaining the identifier and attribute information of the volume to be migrated; generating a mapping command according to the identifier and attribute information of the volume to be migrated; sending the mapping command to the local storage system and performing a mapping operation; identifying and accessing the volume to be migrated on the local storage system; wherein, creating a target volume in the local storage system, where the identifier of the target volume is the same as that of the volume to be migrated, and marking the target volume as a virtual clone volume in the database includes: creating a new target volume in the local storage system according to the identifier of the volume to be migrated; setting the size and performance parameters of the target volume according to the attribute information of the volume to be migrated; marking the newly created target volume as a virtual clone volume in the database of the local storage system; verifying whether the target volume is successfully created and whether the identifier and attribute parameters of the target volume are the same as those of the volume to be migrated.

2. The online migration method of heterogeneous block stored data according to claim 1, wherein removing the path of the volume to be migrated from the configuration file, and at the same time adding the path of the virtual clone volume to the configuration file to rediscover the virtual clone volume, so that the virtual clone volume takes over the service includes: reading the configuration file of the storage system to obtain the current list of mounted volume paths; finding and deleting the path of the volume to be migrated in the volume path list, and at the same time adding the path of the virtual clone volume to the volume path list; writing the modified volume path list back to the configuration file to update the configuration file; triggering the volume discovery mechanism of the storage system, so that the storage system rediscovers and mounts the virtual clone volume according to the updated configuration file.

3. An online migration device for heterogeneous block storage data, characterized in that including: Mapping module: mapping the volume to be migrated in the heterogeneous migration system to the local storage system; Creation module: creating a target volume in the local storage system, where the identifier of the target volume is the same as that of the volume to be migrated, and marking the target volume as a virtual clone volume in the database; Removal module: removing the path of the volume to be migrated from the configuration file, and at the same time adding the path of the virtual clone volume to the configuration file to rediscover the virtual clone volume, so that the virtual clone volume takes over the service; Foreground migration module: Receives read and write requests of I / O from the virtual clone volume. When the received I / O does not exist in the local storage system, it reads the I / O from the heterogeneous storage system and stores it in the local storage system, where the heterogeneous storage system is the original storage system; Background migration module: Splits the data in the virtual clone volume into several data blocks according to a preset size, and sequentially reads the data blocks from the heterogeneous storage system and stores them in the local storage system; Among them, the mapping module includes: Identification unit: Identifies the volume to be migrated in the heterogeneous migration system, and obtains the identifier and attribute information of the volume to be migrated; Command generation unit: Generates a mapping command according to the identifier and attribute information of the volume to be migrated; Sending unit: Sends the mapping command to the local storage system and executes the mapping operation; Access unit: Identifies and accesses the volume to be migrated on the local storage system; Among them, the creation module includes: Creation unit: Creates a new target volume in the local storage system according to the identifier of the volume to be migrated; Setting unit: Sets the size and performance parameters of the target volume according to the attribute information of the volume to be migrated; Marking unit: Marks the newly created target volume as a virtual clone volume in the database of the local storage system; Verification unit: Verifies whether the target volume is successfully created and whether the identifier and attribute parameters of the target volume are the same as those of the volume to be migrated.

4. The heterogeneous block storage data online migration device according to claim 3, characterized in that, The removal module includes: Reading unit: Reads the configuration file of the storage system to obtain the list of currently mounted volume paths; Searching unit: Searches for and deletes the path of the volume to be migrated in the volume path list, and adds the path of the virtual clone volume to the volume path list at the same time; Updating unit: Writes the modified volume path list back to the configuration file to update the configuration file; Mounting unit: Triggers the volume discovery mechanism of the storage system, so that the storage system re-identifies and mounts the virtual clone volume according to the updated configuration file.

5. An online migration device for heterogeneous block storage data, characterized in that Includes: Memory, used to store computer programs; Processor, used to implement the steps of the heterogeneous block storage data online migration method according to any one of claims 1 to 2 when executing the computer program.

6. A readable storage medium, characterized in that, The computer program is stored on the readable storage medium, and when the computer program is executed by the processor, it implements the steps of the heterogeneous block storage data online migration method according to any one of claims 1 to 2.

Citation Information

Patent Citations

  • Rapid database migration method, system and device and storage medium

    CN116126823A

  • Continuous disaster protection for migrated volumes of data

    US20180246648A1