A service system online migration method and device
By parsing data block and sector information during the business system migration process and recording and updating data block change information, the problem of business continuity interruption during the business system migration process was solved, and online smooth migration and user experience improvement were achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA CONSTRUCTION BANK
- Filing Date
- 2022-10-21
- Publication Date
- 2026-04-17
AI Technical Summary
In existing technologies, business continuity is interrupted during the migration of business systems, resulting in a poor user experience.
By obtaining the system structure of the source business system, parsing the data block and sector information, writing the data blocks to the destination to build a second business system, and recording data block change information, the data is updated using this information, thereby realizing block-level full object copying and disk sector logical migration.
It enabled a smooth online migration of business systems, ensuring business continuity during the migration process and improving user experience.
Smart Images

Figure CN115576896B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of business migration technology, and in particular to a method and apparatus for online migration of business systems. Background Technology
[0002] Business system migration refers to moving the operating system and related programs of a business system from the source host to the destination host, where they will run normally. With the gradual maturation of cloud computing technology, migrating offline business systems to the cloud has become a popular choice for many industries.
[0003] Currently, the migration of all business systems relies primarily on a large number of engineers manually migrating them from offline physical servers to online cloud virtual machines. This process begins by shutting down the services and operating system on the original physical server, and then restarting the operating system to provide services after the business systems have been migrated to the cloud virtual machines.
[0004] Since the existing offline migration methods mentioned above will cause business continuity interruption and are not conducive to users' normal use of business functions, a migration solution with fast migration speed and minimal impact on business functions is needed to ensure business continuity during the migration process and improve user experience. Summary of the Invention
[0005] In view of the above problems, this disclosure provides a method and apparatus for online migration of business systems to overcome or at least partially solve the above problems. The technical solution is as follows:
[0006] A method for online migration of a business system, comprising:
[0007] Obtain the system structure of each first file system in the first business system at the source end;
[0008] The system structure is parsed to obtain multiple data blocks corresponding to the first business system and the first sector information corresponding to each data block;
[0009] Using the first sector information corresponding to each data block, each data block is written to the destination end to construct a second business system at the destination end. The second business system includes a second file system corresponding to each of the first file systems.
[0010] During the process of constructing the second business system at the destination, data block change information corresponding to any of the data blocks in the first business system at the source is obtained;
[0011] The data block change information is recorded in a preset bitmap;
[0012] After the second business system is built at the destination, the data block change information in the preset bitmap is read.
[0013] The data block change information is used to update the data in the second business system.
[0014] Optionally, updating the data in the second business system using the data block change information includes:
[0015] When the data block change information is a newly added block, the first data block corresponding to the data block change information is obtained in the first business system at the source end, and the second sector information corresponding to the first data block is obtained.
[0016] According to the second sector information, the first data block is written to the second service system at the destination.
[0017] Optionally, updating the data in the second business system using the data block change information includes:
[0018] When the data block change information is a deleted block, the first business system at the source end determines the second data block corresponding to the data block change information and obtains the third sector information corresponding to the second data block.
[0019] In the second service system at the destination, locate the third data block corresponding to the third sector information and delete the third data block.
[0020] Optionally, the method further includes:
[0021] After the second business system is built at the destination, cloud disk snapshots corresponding to each of the second file systems in the second business system are generated respectively.
[0022] The system image corresponding to the second file system is generated using the cloud disk snapshot;
[0023] Create a target instance corresponding to the second file system using the system image;
[0024] Mount the target instance to the preset cloud data disk.
[0025] Optionally, the method further includes:
[0026] Obtain the system drivers for each of the first file systems in the first business system at the source end;
[0027] After updating the data of the second business system using the data block change information, each system driver is added to the corresponding second file system in the second business system so that each second file system can be started at the destination.
[0028] An online migration device for a business system includes: a first obtaining unit, a second obtaining unit, a data block writing unit, a third obtaining unit, an information recording unit, an information reading unit, and a data updating unit.
[0029] The first obtaining unit is used to obtain the system structure of each first file system in the first business system at the source end;
[0030] The second obtaining unit is used to parse the system structure to obtain multiple data blocks corresponding to the first business system and the first sector information corresponding to each data block;
[0031] The data block writing unit is used to write each data block into the destination end using the first sector information corresponding to each data block, so as to build a second business system at the destination end. The second business system includes a second file system corresponding to each of the first file systems.
[0032] The third obtaining unit is used to obtain data block change information corresponding to any data block in the first business system at the source end during the process of building the second business system at the destination end;
[0033] The information recording unit is used to record the data block change information in a preset bitmap;
[0034] The information reading unit is used to read the data block change information in the preset bitmap after the second business system is built at the destination end.
[0035] The data update unit is used to update the data of the second business system using the data block change information.
[0036] Optionally, the data update unit includes: a new block acquisition subunit and a new block writing subunit.
[0037] The newly added block obtaining subunit is used to obtain, in the first business system at the source end, a first data block corresponding to the data block change information and a second sector information corresponding to the first data block when the data block change information is a newly added block.
[0038] The new block writing subunit is used to write the first data block to the second service system at the destination end according to the second sector information.
[0039] Optionally, the data update unit includes: a deletion block determination subunit and a deletion block processing subunit.
[0040] The deletion block determination subunit is used to determine, in the first service system at the source end, a second data block corresponding to the data block change information when the data block change information is a deletion block, and to obtain the third sector information corresponding to the second data block.
[0041] The deletion block processing subunit is used to locate the third data block corresponding to the third sector information in the second service system at the destination end, and delete the third data block.
[0042] Optionally, the device further includes: a cloud disk snapshot generation unit, a system image generation unit, a target instance creation unit, and a target instance mounting unit.
[0043] The cloud disk snapshot generation unit is used to generate cloud disk snapshots corresponding to each of the second file systems in the second business system after the second business system is built on the destination end.
[0044] The system image generation unit is used to generate a system image corresponding to the second file system using the cloud disk snapshot;
[0045] The target instance creation unit is used to create a target instance corresponding to the second file system using the system image;
[0046] The target instance mounting unit is used to mount the target instance to a preset cloud data disk.
[0047] Optionally, the apparatus further includes: a fourth obtaining unit and a system driver adding unit.
[0048] The fourth obtaining unit is used to obtain the system drivers of each of the first file systems in the first business system at the source end;
[0049] The system driver adding unit is used to add each system driver to each of the second file systems in the second business system after the data update unit updates the data of the second business system using the data block change information, so that each of the second file systems can be started at the destination.
[0050] By employing the above technical solutions, this disclosure provides a method and apparatus for online migration of a business system. It can obtain the system structure of each first file system in the source first business system; parse the system structure to obtain multiple data blocks corresponding to the first business system and first sector information corresponding to each data block; use the first sector information corresponding to each data block to write each data block to the destination end, thereby constructing a second business system at the destination end. The second business system includes second file systems corresponding to each of the first file systems; during the construction of the second business system at the destination end, it obtains data block change information corresponding to any data block in the source first business system; records the data block change information in a preset bitmap; after the construction of the second business system at the destination end is completed, it reads the data block change information from the preset bitmap; and uses the data block change information to update the data in the second business system. This disclosure, by providing block-level full object copying and data block migration based on disk sector logic, facilitates the smooth online migration of various business systems to the destination end, thereby ensuring business continuity during the migration process and improving user experience.
[0051] The above description is merely an overview of the technical solution disclosed herein. In order to better understand the technical means of this disclosure and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this disclosure more apparent and understandable, specific embodiments of this disclosure are described below. Attached Figure Description
[0052] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this disclosure. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0053] Figure 1 A flowchart illustrating one embodiment of the online migration method for business systems provided in this disclosure is shown.
[0054] Figure 2 A flowchart illustrating another implementation of the online migration method for business systems provided in this disclosure is shown.
[0055] Figure 3 A flowchart illustrating another implementation of the online migration method for business systems provided in this disclosure is shown.
[0056] Figure 4 A logical block diagram of business system migration provided in an embodiment of this disclosure is shown;
[0057] Figure 5A reference schematic diagram of the data replication logic provided in an embodiment of this disclosure is shown;
[0058] Figure 6 A schematic diagram of the structure of the online migration device for a business system provided in an embodiment of this disclosure is shown. Detailed Implementation
[0059] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
[0060] Migrating a business system refers to moving the operating system and related programs of a business system from the source host to the destination host, where they will run normally. With the gradual maturation of cloud computing technology, its advantages such as elasticity and scalability, highly automated operation and maintenance, rich functionality, and low cost have become increasingly apparent. Migrating offline business systems to the cloud has become a choice for many industries. Examples include enterprise information systems and government systems moving to the cloud.
[0061] Before virtual machines, migration between physical machines relied on system backup and recovery technologies. The operating system and application state were backed up in real-time on the source host, then storage media was connected to the target host, and finally, the system was restored on the target host. With the widespread adoption of virtualization, migration between virtual machines has become the primary scenario for application migration. Migration refers to the ability of a virtual machine system running on one physical machine to be transferred to another physical host for running as a virtual machine.
[0062] Business migration can be categorized into online migration and offline migration based on whether the servers carrying the business need to be shut down. The migration process typically involves full / incremental migration and agent installation techniques. Virtual machines abstract and isolate hardware resources, shielding them from underlying hardware details. The emergence of migration technology allows operating systems to be dynamically transferred between different hosts, further decoupling the dependencies between software and hardware resources.
[0063] Offline migration refers to migrating a virtual machine from one physical machine to another while the virtual machine is powered off or paused. Specifically, it involves migrating the virtual machine image and its configuration files to the target host while the virtual machine is powered off. From the user's perspective, service is unavailable during offline migration.
[0064] Online migration refers to migrating virtual machines between different physical hosts while ensuring that services on the virtual machine run normally.
[0065] like Figure 1 The diagram shown illustrates a flowchart of one embodiment of the online migration method for business systems provided in this disclosure. This online migration method for business systems may include:
[0066] S100: Obtain the system structure of each first file system in the first business system of the source end.
[0067] Here, "source" refers to the source platform on which the business system is running. Optionally, the source platform can include traditional physical machines, VMware platforms, Xen virtualization platforms, Hyper-V platforms, and various domestic cloud platforms based on KVM.
[0068] The system architecture of the business system can consist of multiple file systems. Optionally, the file systems may include an Extended File System (EXT), a File Allocation Table (FAT), and a New Technology File System (NTFS).
[0069] Specifically, in this embodiment of the disclosure, the system structure of each first file system in the first business system at the source end can be obtained based on the characteristics of different file systems stored on different disk sectors at the source end. The system structure may include information such as the boot block and different block groups and their internal superblocks and innode bitmaps.
[0070] Optionally, embodiments of this disclosure may obtain the system drivers for each first file system in the first business system at the source end. It is understood that the system drivers for the first file system can be obtained simultaneously with the system structure of the first file system.
[0071] S200. Analyze the system structure to obtain multiple data blocks corresponding to the first business system and the first sector information corresponding to each data block.
[0072] In this context, a data block, also known as a disk block, is the smallest logical unit for a file system to manage disk partitions, and also the smallest unit of disk space occupied by the operating system and software. This disclosure, through analysis of the system architecture and system drivers, can obtain the data stored on the disk by the business system in units of data blocks. Based on a full object copy at the block level, the data blocks to be migrated can be obtained, facilitating subsequent migration of the business system using data blocks as the basic unit of migration.
[0073] Here, sector information refers to the storage location of a data block within the sectors of a disk. This embodiment of the disclosure uses the sector information of data blocks to perform disk logic reconstruction of the business system at the destination end, dividing sectors according to the same disk logic as the source end, so that data blocks can be written to designated sectors during business system migration.
[0074] S300. Using the first sector information corresponding to each data block, write each data block into the destination end to build a second business system at the destination end. The second business system includes a second file system corresponding to each first file system.
[0075] The destination is the target platform for migrating the business system. Optionally, the target platform may include a KVM-based virtualization platform and an ESXi-based VMware platform.
[0076] It is understood that the process of writing data blocks to the destination is the process of constructing the second business system. Specifically, in this embodiment of the disclosure, any data block can be written to the disk location in the destination corresponding to the first sector information to ensure that the source and destination are completely consistent in disk logic, thereby constructing a second business system at the destination that is logically identical to the first business system at the source.
[0077] This embodiment of the disclosure migrates the business system by using data blocks as the basic unit of migration. In the event of a network interruption and recovery, only the corresponding data blocks need to be rewritten. In the event of changes to data blocks, only the corresponding data blocks need to be synchronized, without having to rewrite all data blocks, thereby saving computer resources during the migration process.
[0078] S400. During the process of building the second business system at the destination, obtain the data block change information corresponding to any data block in the first business system at the source.
[0079] The business system migration method provided in this disclosure is an online migration. The construction of the second business system does not affect the normal service provided by the first business system. Therefore, the construction of the second business system may involve changes to some data blocks in the first business system. To synchronize the data blocks in the first business system that have been changed during the construction of the second business system, this disclosure can generate corresponding data block change information for the changed data blocks. The data block change information may include the change type of the data block and the corresponding sector information. Optionally, the change type can be adding a block or deleting a block.
[0080] S500: Record the data block change information in the preset bitmap.
[0081] Among them, the preset bitmap is also known as raster graphics or bitmap.
[0082] S600. After the second business system is built at the destination, read the data block change information in the preset bitmap.
[0083] S700: Update the data in the second business system using data block change information.
[0084] Optional, based on Figure 1 The method shown is as follows: Figure 2 As shown, this is a flowchart illustrating another implementation of the online migration method for business systems provided in this disclosure. Step S700 may include:
[0085] S710. When the data block change information is a newly added block, the first data block corresponding to the data block change information is obtained in the first business system at the source end, and the second sector information corresponding to the first data block is obtained.
[0086] S720. Write the first data block to the second service system at the destination end according to the second sector information.
[0087] This embodiment of the disclosure, by synchronizing incremental data blocks added by the first business system during the construction of the second business system to the second business system after the second business system is constructed, can completely construct a second business system with the same logic as the first business system at the destination, thus avoiding data loss during the business system migration process.
[0088] Optional, based on Figure 1 The method shown is as follows: Figure 3 As shown, this is a flowchart illustrating another implementation of the online migration method for business systems provided in this disclosure. Step S700 may include:
[0089] S730. When the data block change information is a deleted block, determine the second data block corresponding to the data block change information in the first business system at the source end, and obtain the third sector information corresponding to the second data block.
[0090] S740. Locate the third data block corresponding to the third sector information in the second service system at the destination end, and delete the third data block.
[0091] This embodiment of the disclosure synchronizes the data block information deleted by the first business system during the construction of the second business system to the second business system after the second business system is constructed. This allows the corresponding data blocks in the second business system to be deleted in a timely manner, so as to completely construct the second business system with the same logic as the first business system at the destination, and prevent data conflicts and errors from occurring in the second business system.
[0092] This disclosure provides an online migration method for a business system. It obtains the system structure of each first file system in the source first business system; parses the system structure to obtain multiple data blocks corresponding to the first business system and the first sector information corresponding to each data block; uses the first sector information corresponding to each data block to write each data block to the destination to build a second business system on the destination, wherein the second business system includes a second file system corresponding to each of the first file systems; during the construction of the second business system on the destination, it obtains data block change information corresponding to any data block in the source first business system; records the data block change information in a preset bitmap; after the construction of the second business system on the destination is completed, it reads the data block change information from the preset bitmap; and uses the data block change information to update the data in the second business system. This disclosure, by providing block-level full object copying and data block migration based on disk sector logic, facilitates the smooth online migration of various business systems to the destination, thereby ensuring business continuity during the migration process and improving user experience.
[0093] Optionally, in this embodiment of the present disclosure, after step S700, each system driver can be added to each of the second file systems in the second business system, so that the second file system can be started at the destination.
[0094] Optionally, in this embodiment of the present disclosure, after the second business system is built at the destination, cloud disk snapshots corresponding to each second file system in the second business system are generated respectively; system images corresponding to the second file systems are generated using the cloud disk snapshots; target instances corresponding to the second file systems are created using the system images; and the target instances are mounted to a preset cloud data disk.
[0095] Optional, for ease of understanding, this is combined with Figure 4 The diagram shown illustrates the logical flow of the business system migration. Figure 5The following is a reference diagram illustrating the data replication logic: This embodiment can be applied to migration tools. Based on the principles of block-level full data replication and incremental retransmission, the migration tool performs a full object copy of objects, including APP, OS, and DATA, on the source host. After confirming the availability of the public dedicated network line, the data is transmitted to the storage volume on the destination end via the public dedicated network line, and data blocks are written according to the corresponding sector positions to ensure complete logical consistency between the source and destination ends, thereby achieving file system reconstruction on the destination end. After the file system is reconstructed, the newly added and deleted blocks involved in the file system on the source end are synchronized to the corresponding file system on the destination end. A snapshot is created based on the system structure of the file system on the destination end, and an image is generated using this snapshot. A target instance is created using this image and mounted on the data disk to form a complete instance. Finally, by writing the system driver of the file system obtained from the source end to the directory of the preset file system on the destination end, the file system can be guaranteed to start normally on the destination end.
[0096] This disclosure provides a one-stop online migration method for business systems, which helps various business systems to migrate smoothly to the target cloud platform. For enterprise-level business systems with characteristics such as business centralization, data centralization, massive data capacity, high requirements for business continuity, and high availability of critical business data, it can effectively avoid the complexity and uncertainty of migration work and ensure data integrity and security during the business data migration process.
[0097] Although the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous.
[0098] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0099] Corresponding to the above method embodiments, this disclosure also provides an online migration device for a business system, the structure of which is as follows: Figure 6 As shown, it may include: a first obtaining unit 100, a second obtaining unit 200, a data block writing unit 300, a third obtaining unit 400, an information recording unit 500, an information reading unit 600, and a data updating unit 700.
[0100] The first obtaining unit 100 is used to obtain the system structure of each first file system in the first business system at the source end.
[0101] The second acquisition unit 200 is used to parse the system structure and obtain multiple data blocks corresponding to the first business system and the first sector information corresponding to each data block.
[0102] The data block writing unit 300 is used to write each data block to the destination end using the first sector information corresponding to each data block, so as to build a second business system at the destination end. The second business system includes a second file system corresponding to each of the first file systems.
[0103] The third obtaining unit 400 is used to obtain data block change information corresponding to any data block in the first business system at the source end during the process of building the second business system at the destination end.
[0104] The information recording unit 500 is used to record data block change information in a preset bitmap.
[0105] The information reading unit 600 is used to read the data block change information in the preset bitmap after the second business system is built at the destination end.
[0106] The data update unit 700 is used to update the data of the second business system using data block change information.
[0107] Optionally, the data update unit 700 includes: a new block acquisition subunit and a new block writing subunit.
[0108] The newly added block acquisition sub-unit is used to obtain the first data block corresponding to the data block change information in the first business system at the source end when the data block change information is a newly added block, and to obtain the second sector information corresponding to the first data block.
[0109] A new block writing subunit is added, which is used to write the first data block to the second business system at the destination end according to the second sector information.
[0110] Optionally, the data update unit 700 includes: a deletion block determination subunit and a deletion block processing subunit.
[0111] The deletion block determination subunit is used to determine the second data block corresponding to the data block change information in the first business system at the source end when the data block change information is a deletion block, and to obtain the third sector information corresponding to the second data block.
[0112] The deletion block processing subunit is used to locate the third data block corresponding to the third sector information in the second service system at the destination end, and delete the third data block.
[0113] Optionally, the online migration device for the business system may also include: a cloud disk snapshot generation unit, a system image generation unit, a target instance creation unit, and a target instance mounting unit.
[0114] The cloud disk snapshot generation unit is used to generate cloud disk snapshots corresponding to each second file system in the second business system after the second business system is built on the destination side.
[0115] The system image generation unit is used to generate a system image corresponding to the second file system using cloud disk snapshots.
[0116] The target instance creation unit is used to create a target instance corresponding to the second file system using the system image.
[0117] The target instance mounting unit is used to mount the target instance to the preset cloud data disk.
[0118] Optionally, the online migration device for the business system also includes: a fourth acquisition unit and a system driver addition unit.
[0119] The fourth obtaining unit is used to obtain the system drivers of each first file system in the first business system at the source end.
[0120] The system driver adding unit is used to add each system driver to each second file system in the second business system after the data update unit 700 updates the data of the second business system using data block change information, so that each second file system can be started at the destination.
[0121] This disclosure provides an online migration device for business systems. It can obtain the system structure of each first file system in a source first business system; parse the system structure to obtain multiple data blocks corresponding to the first business system and first sector information corresponding to each data block; use the first sector information corresponding to each data block to write each data block to the destination to build a second business system at the destination, wherein the second business system includes a second file system corresponding to each of the first file systems; during the construction of the second business system at the destination, it obtains data block change information corresponding to any data block in the source first business system; records the data block change information in a preset bitmap; after the construction of the second business system at the destination is completed, it reads the data block change information from the preset bitmap; and uses the data block change information to update the data in the second business system. This disclosure, by providing block-level full object copying and data block migration based on disk sector logic, facilitates the smooth online migration of various business systems to the destination, thereby ensuring business continuity during the migration process and improving user experience.
[0122] Regarding the apparatus in the above embodiments, the specific manner in which each unit performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0123] The online migration device for the business system includes a processor and a memory. The first acquisition unit 100, the second acquisition unit 200, the data block writing unit 300, the third acquisition unit 400, the information recording unit 500, the information reading unit 600, and the data updating unit 700 are all stored in the memory as program units. The processor executes the program units stored in the memory to realize the corresponding functions.
[0124] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and by adjusting kernel parameters, block-level full object copying and disk sector-based data block migration can be provided. This facilitates the smooth online migration of various business systems to the destination, ensuring business continuity during the migration process and ultimately improving user experience.
[0125] This disclosure provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the online migration method for the business system.
[0126] This disclosure provides a processor for running a program, wherein the program executes the online migration method for the business system during runtime.
[0127] This disclosure provides an electronic device, including at least one processor, at least one memory connected to the processor, and a bus; wherein the processor and memory communicate with each other via the bus; the processor is used to call program instructions in the memory to execute the above-described online migration method for a business system. The electronic device described herein may be a server, PC, PAD, mobile phone, etc.
[0128] This disclosure also provides a computer program product that, when executed on an electronic device, is suitable for performing the initialization steps of a business system online migration method.
[0129] This disclosure is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus, electronic devices (systems), and computer program products according to embodiments of this disclosure. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations 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, special-purpose computer, embedded processor, or other programmable device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable device, generate instructions for implementing the flowchart. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0130] In a typical configuration, an electronic device includes one or more processors (CPUs), memory, and a bus. The electronic device may also include input / output interfaces, network interfaces, etc.
[0131] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, like read-only memory (ROM) or flash RAM, and memory includes at least one memory chip. Memory is an example of computer-readable media.
[0132] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0133] In the description of this disclosure, it should be understood that if the terms "upper", "lower", "front", "rear", "left" and "right" are used to indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, they are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the position or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this disclosure.
[0134] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.
[0135] Those skilled in the art will understand that embodiments of this disclosure can be provided as methods, systems, or computer program products. Therefore, this disclosure can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this disclosure can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0136] The above are merely embodiments of this disclosure and are not intended to limit the scope of this disclosure. Various modifications and variations can be made to this disclosure by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the scope of the claims of this disclosure.
Claims
1. A method for online migration of a business system, characterized by, include: Obtain the system structure of each first file system in the first business system at the source end; The system structure is parsed to obtain multiple data blocks corresponding to the first business system and the first sector information corresponding to each data block; Using the first sector information corresponding to each data block, each data block is written to the destination end to construct a second business system at the destination end. The second business system includes a second file system corresponding to each of the first file systems. During the process of constructing the second business system at the destination, data block change information corresponding to any of the data blocks in the first business system at the source is obtained; The data block change information is recorded in a preset bitmap; After the second business system is built at the destination, the data block change information in the preset bitmap is read. Using the data block change information, the second business system is updated with data, including: When the data block change information is a new block, the first data block corresponding to the data block change information is obtained in the first business system at the source end, and the second sector information corresponding to the first data block is obtained; according to the second sector information, the first data block is written to the second business system at the destination end. When the data block change information is a deleted block, the first service system at the source end determines the second data block corresponding to the data block change information and obtains the third sector information corresponding to the second data block; the second service system at the destination end locates the third data block corresponding to the third sector information and deletes the third data block.
2. The method according to claim 1, characterized in that, Also includes: After the second business system is built at the destination, cloud disk snapshots corresponding to each of the second file systems in the second business system are generated respectively. The system image corresponding to the second file system is generated using the cloud disk snapshot; Create a target instance corresponding to the second file system using the system image; Mount the target instance to the preset cloud data disk.
3. The method according to claim 1, characterized in that, Also includes: Obtain the system drivers for each of the first file systems in the first business system at the source end; After updating the data of the second business system using the data block change information, each system driver is added to the corresponding second file system in the second business system so that each second file system can be started at the destination.
4. An online migration device for a business system, characterized in that, include: The system comprises a first acquisition unit, a second acquisition unit, a data block writing unit, a third acquisition unit, an information recording unit, an information reading unit, and a data updating unit. The first obtaining unit is used to obtain the system structure of each first file system in the first business system at the source end; The second obtaining unit is used to parse the system structure to obtain multiple data blocks corresponding to the first business system and the first sector information corresponding to each data block; The data block writing unit is used to write each data block into the destination end using the first sector information corresponding to each data block, so as to build a second business system at the destination end. The second business system includes a second file system corresponding to each of the first file systems. The third obtaining unit is used to obtain data block change information corresponding to any data block in the first business system at the source end during the process of building the second business system at the destination end; The information recording unit is used to record the data block change information in a preset bitmap; The information reading unit is used to read the data block change information in the preset bitmap after the second business system is built at the destination end. The data update unit is used to update the data of the second business system using the data block change information; The data update unit includes: a new block acquisition subunit, a new block writing subunit, a delete block determination subunit, and a delete block processing subunit; The newly added block obtaining subunit is used to obtain, in the first business system at the source end, a first data block corresponding to the data block change information and a second sector information corresponding to the first data block when the data block change information is a newly added block. The new block writing subunit is used to write the first data block into the second service system at the destination end according to the second sector information; The deletion block determination subunit is used to determine, in the first service system at the source end, a second data block corresponding to the data block change information when the data block change information is a deletion block, and to obtain the third sector information corresponding to the second data block. The deletion block processing subunit is used to locate the third data block corresponding to the third sector information in the second service system at the destination end, and delete the third data block.
5. The apparatus according to claim 4, characterized in that, Also includes: The cloud disk snapshot generation unit, system image generation unit, target instance creation unit, and target instance mounting unit are all included. The cloud disk snapshot generation unit is used to generate cloud disk snapshots corresponding to each of the second file systems in the second business system after the second business system is built on the destination end. The system image generation unit is used to generate a system image corresponding to the second file system using the cloud disk snapshot; The target instance creation unit is used to create a target instance corresponding to the second file system using the system image; The target instance mounting unit is used to mount the target instance to a preset cloud data disk.
6. The apparatus according to claim 4, characterized in that, Also includes: The fourth acquisition unit and system driver addition unit; The fourth obtaining unit is used to obtain the system drivers of each of the first file systems in the first business system at the source end; The system driver adding unit is used to add each system driver to each of the second file systems in the second business system after the data update unit updates the data of the second business system using the data block change information, so that each of the second file systems can be started at the destination.
Citation Information
Patent Citations
System and method for realizing non-stop migration of service system
CN111737197A
Data migration method, device and equipment and readable storage medium
CN112083889A