CN112612417A - Data migration method, device, equipment and storage medium - Google Patents

Data migration method, device, equipment and storage medium Download PDF

Info

Publication number
CN112612417A
CN112612417A CN202011557246.0A CN202011557246A CN112612417A CN 112612417 A CN112612417 A CN 112612417A CN 202011557246 A CN202011557246 A CN 202011557246A CN 112612417 A CN112612417 A CN 112612417A
Authority
CN
China
Prior art keywords
data
disk
computer
source computer
position information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011557246.0A
Other languages
Chinese (zh)
Other versions
CN112612417B (en
Inventor
程方全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Clerware Technology Co ltd
Original Assignee
Shenzhen Clerware Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Clerware Technology Co ltd filed Critical Shenzhen Clerware Technology Co ltd
Priority to CN202011557246.0A priority Critical patent/CN112612417B/en
Publication of CN112612417A publication Critical patent/CN112612417A/en
Application granted granted Critical
Publication of CN112612417B publication Critical patent/CN112612417B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0647Migration mechanisms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0683Plurality of storage devices
    • G06F3/0689Disk arrays, e.g. RAID, JBOD
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention belongs to the technical field of data migration, and discloses a data migration method, a data migration device, data migration equipment and a storage medium. The method comprises the steps of migrating system data of a preset area in a guide disk of a source computer to a data disk of the source computer; recording the position information of system data in a data disk of a source computer; the method comprises the steps of sending position information, first effective data of a guide disk of a source computer and second effective data of a data disk of the source computer to a target computer, enabling the target computer to receive the position information, the first effective data and the second effective data through a preset operating system, migrating system data to a preset area of the guide disk of the target computer through the position information after the first effective data and the second effective data are received, and compared with the existing migration mode that an operating system is not migrated only by a migration service system, the method can achieve migration of the operating system and the service system and solve the problem of compatibility in the migration process.

Description

Data migration method, device, equipment and storage medium
Technical Field
The present invention relates to the field of data migration technologies, and in particular, to a data migration method, apparatus, device, and storage medium.
Background
With the development of cloud computing technology, many companies have a need to migrate hosts to a cloud platform, or to migrate hosts of one cloud platform to another cloud platform. Because operating systems of various versions are preset in virtual machines of a plurality of current cloud computing platforms, the system cannot be installed from starting media such as ISO or U disks, and the system can only be guided from a specific hard disk, how to migrate data and the system of a host to the cloud platform is troublesome, because when a source machine system is migrated to a cloud host, the system of the cloud host needs to be destroyed, and if the system is destroyed, subsequent migration cannot be performed. Therefore, the currently common method is to only migrate business system data and not to migrate an operating system, which requires a series of business system software to be installed on a cloud host and then data is migrated, which is not only labor-consuming, but also easy to encounter compatibility problems.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a data migration method, a data migration device, data migration equipment and a storage medium, and aims to solve the technical problem that only business system data is migrated, and an operating system is not migrated, and compatibility exists in the migration process in the prior art.
In order to achieve the above object, the present invention provides a data migration method, including the steps of:
migrating system data of a preset area in a guide disk of a source computer to a data disk of the source computer;
recording the position information of the system data in a data disk of the source computer;
and sending the position information, first effective data of a guide disk of the source computer and second effective data of a data disk of the source computer to a target computer, so that the target computer receives the position information, the first effective data and the second effective data through a preset operating system, and after the first effective data and the second effective data are received, migrating the system data to a preset area of the guide disk of the target computer through the position information, wherein the preset operating system is stored in the preset area of the guide disk of the target computer.
Preferably, before the step of migrating the system data in the preset area in the boot disk of the source computer to the data disk of the source computer, the method further includes:
receiving the size of an area sent by a target computer, wherein the size of the area is determined by the target computer according to the size of a space of a guide disk occupied by a preset operating system;
and determining a preset area of a guide disk of the source computer according to the area size.
Preferably, before the step of sending the location information, the first valid data of the boot disk of the source computer, and the second valid data of the data disk of the source computer to the destination computer, the method further includes:
acquiring disk information of a boot disk and a data disk in a source computer;
and sending the disk information to a target computer so that the target computer creates a guide disk and a data disk on the target computer according to the disk information.
In addition, in order to achieve the above object, the present invention further provides a data migration apparatus, where the data migration apparatus includes a system data migration module, a location information recording module, and a migration module;
the system data migration module is used for migrating system data in a preset area in a guide disk of the source computer to a data disk of the source computer;
the recording position information module is used for recording the position information of the system data in a data disk of the source computer;
the migration module is used for sending the position information, first effective data of a guide disk of the source computer and second effective data of a data disk of the source computer to a target computer, so that the target computer receives the position information, the first effective data and the second effective data through a preset operating system, and after the first effective data and the second effective data are received, the system data are migrated to a preset area of the guide disk of the target computer through the position information, and the preset operating system is stored in the preset area of the guide disk of the target computer.
In addition, to achieve the above object, the present invention further provides a data migration method, including the steps of:
installing a preset operating system in a target computer, and storing the preset operating system into a preset area of a boot disk of the target computer;
receiving position information, first effective data and second effective data sent by a source computer, wherein the first effective data are effective data in a guide disk in the source computer, the second effective data are effective data in a data disk in the source computer, and the position information is position information after system data in a preset area in the guide disk of the source computer are migrated to the data disk of the source computer;
and after the first effective data and the second effective data are received, migrating the system data corresponding to the position information to a preset area of a guide disk of the target computer through the position information.
Preferably, after the step of installing the preset operating system in the target computer and storing the preset operating system in the preset area of the boot disk of the target computer, the method further includes:
acquiring the space size of a guide disk occupied by a preset operating system, and taking the space size as the area size of a preset area;
and sending the area size of the preset area to a source computer so that the source computer receives the area size of the preset area and determines the preset area of a guide disk of the source computer according to the area size of the preset area.
Preferably, before the step of receiving the location information, the first valid data and the second valid data sent by the source computer, the method further includes:
acquiring disk information sent by a source computer;
and creating a corresponding guide disk and a corresponding data disk on the target computer according to the disk information.
In addition, in order to achieve the above object, the present invention further provides a data migration apparatus, which includes an installation module, a receiving module, and a system data copy module;
the installation module is used for installing a preset operating system in a target computer and storing the preset operating system into a preset area of a guide disk of the target computer;
the system comprises a receiving module, a data processing module and a data processing module, wherein the receiving module is used for receiving position information, first effective data and second effective data sent by a source computer, the first effective data is effective data in a guide disk in the source computer, the second effective data is effective data in a data disk in the source computer, and the position information is position information after system data in a preset area in the guide disk of the source computer are migrated to the data disk of the source computer;
and the system data copying module is used for migrating the system data corresponding to the position information to a preset area of a guide disk of the target computer through the position information after the first effective data and the second effective data are received.
In addition, to achieve the above object, the present invention further provides a data migration apparatus, including: a memory, a processor, and a data migration program stored on the memory and executable on the processor, the data migration program configured to implement the steps of the data migration method as described above.
In addition, to achieve the above object, the present invention further provides a storage medium having a data migration program stored thereon, wherein the data migration program, when executed by a processor, implements the steps of the data migration method as described above.
The method comprises the steps of migrating system data of a preset area in a guide disk of a source computer to a data disk of the source computer; recording the position information of system data in a data disk of a source computer; the method comprises the steps of sending position information, first effective data of a guide disk of a source computer and second effective data of a data disk of the source computer to a target computer, enabling the target computer to receive the position information, the first effective data and the second effective data through a preset operating system, migrating system data to a preset area of the guide disk of the target computer through the position information after the first effective data and the second effective data are received, and compared with the existing migration mode that an operating system is not migrated only by a migration service system, the method can achieve migration of the operating system and the service system and solve the problem of compatibility in the migration process.
Drawings
FIG. 1 is a schematic structural diagram of a data migration device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a data migration method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a data migration method according to a second embodiment of the present invention;
FIG. 4 is a block diagram of a data migration apparatus according to a first embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a framework in which the data migration method of the present invention is located;
FIG. 6 is a flowchart illustrating a data migration method according to a third embodiment of the present invention;
FIG. 7 is a diagram illustrating migration results according to an embodiment of the data migration method of the present invention;
FIG. 8 is a flowchart illustrating a data migration method according to a fourth embodiment of the present invention;
FIG. 9 is a block diagram of a data migration apparatus according to a third embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a data migration device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the data migration apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in FIG. 1 does not constitute a limitation of the data migration apparatus and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a data storage module, a network communication module, a user interface module, and a data migration program.
In the data migration apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the data migration apparatus of the present invention may be disposed in the data migration apparatus, and the data migration apparatus calls the data migration program stored in the memory 1005 through the processor 1001 and executes the data migration method provided in the embodiment of the present invention.
Based on the data migration device, an embodiment of the present invention provides a data migration method, and referring to fig. 2, fig. 2 is a schematic flow diagram of a first embodiment of the data migration method according to the present invention.
In this embodiment, the data migration method includes the following steps:
step S10: and migrating the system data of the preset area in the guide disk of the source computer to the data disk of the source computer.
It should be noted that the execution subject of the present embodiment may be a computing service device with network communication and program operation, such as a mobile phone, a tablet computer, a personal computer, etc., or may be a source computer with similar functions, and the present embodiment and each of the following embodiments are described below by taking the source computer as an example.
It should be noted that the source computer may be a computer that provides data to be migrated when the data migration method is performed, the boot disk may be a disk that plays a role in booting program operation, for example, in general, the system is started from a hard disk, and when the system is damaged (virus or misoperation is deleted), the system cannot be started, and then the system is started by using the boot disk, and then the system is repaired or set, where the preset area may be an area with a preset size in the boot disk, the system data may be data in the preset area in the boot disk, and the data disk may be another disk in the source computer except for the boot disk.
Step S20: and recording the position information of the system data in a data disk of the source computer.
It should be noted that the location information may be storage information of the system data in a data disk of the source computer, for example, the first 512MB of the system data is stored in a 1GB area of the data disk, the second 512MB is stored in a 1GB to 2GB area of the data disk, the third 512MB is stored in a 2GB to 3GB area of the data disk, and the fourth 512MB is stored in a 3GB to 4GB area of the data disk, or may be sequentially stored or separately stored in different data disks, and the location information of the system data in the data disk of the source computer is recorded, which is not limited in this embodiment.
In specific implementation, a data migration program on a source computer searches an available space on a data disk, acquires the data disk with the largest available space in the source computer, creates a temporary file on the data disk with the largest available space, migrates system data in the preset area into the temporary file, and records the position of the temporary file as the position information.
Further, in order to avoid a problem of data loss caused by data change in the process of migrating the system data to the data disk, this embodiment further includes monitoring whether the system data in the preset area of the boot disk is changed, and when the system data is changed, synchronously migrating the changed data to the data disk, so as to ensure that the system data in the boot disk is consistent with the data migrated to the data disk.
Step S30: and sending the position information, first effective data of a guide disk of the source computer and second effective data of a data disk of the source computer to a target computer, so that the target computer receives the position information, the first effective data and the second effective data through a preset operating system, and after the first effective data and the second effective data are received, migrating the system data to a preset area of the guide disk of the target computer through the position information, wherein the preset operating system is stored in the preset area of the guide disk of the target computer.
It should be noted that the target computer may be a computer that receives migration data, the first valid data is valid data in a boot disk in the source computer, the second valid data is valid data in a data disk in the source computer, the preset operating system may be a reduced operating system installed in the target computer for data migration, the preset area may be an area with a preset size in the boot disk in the target computer, and the area size of the preset area of the target computer may be the same as the area size of the preset area of the source computer.
It should be understood that, in the process of data migration, the system is stored in the preset area of the boot disk of the target computer, and if the system data is migrated in advance during the migration, the operating system of the target computer may be damaged. In some cases, a manner of migrating system data of a preset area of the source computer may also be adopted, and the embodiment is not limited herein.
Further, in order to enable the target computer to better receive the migration data sent by the source computer, the disk information of a boot disk and a data disk in the source computer may be acquired, and the disk information is sent to the target computer, so that the target computer creates the boot disk and the data disk on the target computer according to the disk information. The disk information may be the number and space size information of the boot disks and the data disks in the source computer, for example, the boot disks in the source computer have 60GB, and the data disks have 80GB, 60GB, and 40GB, the disk information is sent to the target computer, so that the hard disk of the target computer is also configured to be the corresponding boot disks 60GB, and the data disks are 80GB, 60GB, and 40GB, respectively, during the migration process, the boot disk data in the source computer is migrated to the boot disk of the target computer, the data of the data disk in the 60GB space of the source computer is migrated to the data disk occupying the 60GB space of the target computer, and so on, in some cases, for example, the hard disk space of the target computer is much larger than the hard disk space of the source computer, and corresponding disks may also be reasonably created according to the number of the disks of the source computer, the embodiment is not limited herein.
Further, in order to avoid the problem of data loss caused by data change during the migration process, this embodiment further includes monitoring whether the data in the data disk is changed during the migration process, and synchronously migrating the changed data to the target computer when the data is changed.
In the embodiment, system data in a preset area in a boot disk of a source computer is migrated to a data disk of the source computer; recording the position information of system data in a data disk of a source computer; the method comprises the steps of sending position information, first effective data of a guide disk of a source computer and second effective data of a data disk of the source computer to a target computer, enabling the target computer to receive the position information, the first effective data and the second effective data through a preset operating system, migrating system data to a preset area of the guide disk of the target computer through the position information after the first effective data and the second effective data are received, and compared with the existing migration mode that an operating system is not migrated only by a migration service system, the migration of the operating system and the migration service system can be achieved, and the problem of compatibility in the migration process is solved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a data migration method according to a second embodiment of the present invention.
Based on the first embodiment, in this embodiment, before the step S10, the method further includes:
step S01: and receiving the size of an area sent by a target computer, wherein the size of the area is determined by the target computer according to the size of the space of a guide disk occupied by a preset operating system.
It should be noted that the size of the area may be the size of the space occupied by the preset operating system installed in the target computer in the boot disk.
It should be understood that, during the migration process, in order not to destroy the original operating system of the target computer, a thin operating system is installed for the target computer and stored in a preset area of the target computer, in the migration process, if the data in the preset area is migrated in advance, the thin operating system of the target computer is damaged, so that subsequent migration cannot be performed or migration fails, therefore, in the migration process, in order to realize the final migration of the system data in the preset area, the source computer receives the area size of the preset area sent by the target computer, migrates the system data in the preset area to the data disk, and when the migration of the first valid data and the migration of the second valid data are completed, migrating the system data of the preset area.
Step S02: and determining a preset area of a guide disk of the source computer according to the area size.
It should be understood that the determining the preset area of the boot disk of the source computer according to the area size may be determining a specific disk space in a front portion of the boot disk of the source computer according to the area size, for example, if the area size is 2GB, then the front 2GB space of the boot disk of the source computer is taken as the preset area.
In this embodiment, a size of an area sent by a target computer is received, where the size of the area is determined by the target computer according to a size of a space of a boot disk occupied by a preset operating system, and a preset area of the boot disk of the source computer is determined according to the size of the area, and the preset area of the boot disk of the source computer is determined according to the size of the area by obtaining the size of the area determined by the target computer according to the size of the space of the boot disk occupied by the preset operating system, so that in a data migration process, system data in the preset area in the target computer is not damaged before migration of the position information, the first valid data and the second valid data is completed, and the migration process can be smoothly performed.
Referring to fig. 4, fig. 4 is a block diagram of a data migration apparatus according to a first embodiment of the present invention.
As shown in fig. 4, the data migration apparatus according to the embodiment of the present invention includes a system data migration module 10, a recording location information module 20, and a migration module 30;
the system data migration module 10 is configured to migrate system data in a preset area in a boot disk of a source computer to a data disk of the source computer;
a recording position information module 20, configured to record position information of the system data in a data disk of the source computer;
the migration module 30 is configured to send the location information, the first valid data of the guide disk of the source computer, and the second valid data of the data disk of the source computer to the target computer, so that the target computer receives the location information, the first valid data, and the second valid data through a preset operating system, and after the first valid data and the second valid data are received, the location information migrates the system data to the preset area of the guide disk of the target computer, and the preset operating system stores the system data in the preset area of the guide disk of the target computer.
In the embodiment, system data in a preset area in a boot disk of a source computer is migrated to a data disk of the source computer; recording the position information of system data in a data disk of a source computer; the method comprises the steps of sending position information, first effective data of a guide disk of a source computer and second effective data of a data disk of the source computer to a target computer, enabling the target computer to receive the position information, the first effective data and the second effective data through a preset operating system, migrating system data to a preset area of the guide disk of the target computer through the position information after the first effective data and the second effective data are received, and compared with the existing migration mode that an operating system is not migrated only by a migration service system, the migration of the operating system and the migration service system can be achieved, and the problem of compatibility in the migration process is solved.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may refer to the parameter operation method provided in any embodiment of the present invention, and are not described herein again.
Based on the first embodiment of the data migration apparatus of the present invention, a second embodiment of the data migration apparatus of the present invention is provided.
In this embodiment, the system data migration module 10 is further configured to receive a size of an area sent by a target computer, where the size of the area is determined by the target computer according to a size of a space occupied by a preset operating system for a boot disk; and determining a preset area of a guide disk of the source computer according to the area size.
Further, the migration module 30 is further configured to obtain disk information of a boot disk and a data disk in the source computer; and sending the disk information to a target computer so that the target computer creates a guide disk and a data disk on the target computer according to the disk information.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a framework in which the data migration method of the present invention is located.
It should be noted that, with reference to fig. 5, when data migration is performed, a data migration program is installed in advance in the source computer and the target computer, and is connected to the migration management platform according to the data migration program, after the target computer and the source computer are connected to the migration management platform, a source host and a target host that need to be migrated may be selected on an operation interface of the migration management platform, and a migration task may be started after the selection is completed.
Based on the structure of the frame where the data migration method is located, the data migration method embodiment of the invention is provided.
Referring to fig. 6, fig. 6 is a flowchart illustrating a data migration method according to a third embodiment of the present invention.
In this embodiment, the data migration method includes the following steps:
step S100: installing a preset operating system in a target computer, and storing the preset operating system into a preset area of a boot disk of the target computer.
It should be noted that the execution subject of the present embodiment may be a computing service device with network communication and program operation, such as a mobile phone, a tablet computer, a personal computer, etc., or may be a target computer with similar functions, and the present embodiment and the following embodiments are described below by taking the target computer as an example.
It should be understood that the target computer may be a computer that receives migration data, the preset operating system may be a reduced operating system installed in the target computer for data migration, the preset area may be an area with a preset size in a boot disk in the target computer, and the area size of the preset area of the target computer may be the same as that of the preset area of the source computer.
Step S200: the method comprises the steps of receiving position information, first effective data and second effective data sent by a source computer, wherein the first effective data are effective data in a guide disk in the source computer, the second effective data are effective data in a data disk in the source computer, and the position information is the position information after system data in a preset area in the guide disk of the source computer are migrated to the data disk of the source computer.
It should be noted that the source computer may be a computer that provides data to be migrated when the data migration method is performed.
Further, in order to enable the target computer to better receive migration data sent by the source computer, before receiving the position information, the first valid data and the second valid data sent by the source computer, the disk information of the boot disk and the data disk in the source computer sent by the source computer may be acquired, and the boot disk and the data disk are created on the target computer according to the disk information. The disk information may be the number and space size information of boot disks and data disks in the source computer, for example, in a source computer there are 60GB for boot disks, 80GB, 60GB and 40GB for data disks, the hard disk of the target computer is also configured to be the corresponding 60GB boot disk, and the data disks are 80GB, 60GB and 40GB, respectively, and during the migration, the data of the boot disk in the source computer is migrated to the boot disk of the target computer, the data of the data disk in the 60GB space of the source computer is migrated to the data disk occupying the 60GB space of the target computer, and so on, in some cases, for example, the hard disk space of the target computer is much larger than that of the source computer, and the corresponding disks may also be reasonably created according to the number of disks of the source computer, which is not limited herein.
Step S300: and after the first effective data and the second effective data are received, migrating the system data corresponding to the position information to a preset area of a guide disk of the target computer through the position information.
It should be understood that, in the process of data migration, the system is stored in the preset area of the boot disk of the target computer, and if the system data is migrated in advance during the migration, the operating system of the target computer may be damaged.
Referring to fig. 7, fig. 7 is a schematic diagram illustrating a migration result according to an embodiment of the data migration method of the present invention.
It should be noted that, with reference to fig. 7, in an embodiment, a reduced operating system is installed in front of a boot disk of a target computer, and the size of the reduced operating system is 2GB, a temporary file is created in a data disk of a source computer, data in front of the boot disk of the source computer, 2GB, is stored in the temporary file in the data disk of the source computer, and then migration is performed based on the data migration methods in the above embodiments, where the size of the boot disk of the target computer, 60GB, and the size of the data disk, 80GB, are created according to disk information in the source computer.
In this embodiment, a preset operating system is installed in a target computer, and the preset operating system is stored in a preset area of a boot disk of the target computer; receiving position information, first effective data and second effective data sent by a source computer, wherein the first effective data are effective data in a guide disk in the source computer, the second effective data are effective data in a data disk in the source computer, and the position information is position information after system data in a preset area in the guide disk of the source computer are migrated to the data disk of the source computer; and after the first effective data and the second effective data are received, migrating the system data corresponding to the position information to a preset area of a guide disk of the target computer through the position information. Compared with the existing migration mode that only the business system is migrated and the operating system is not migrated, the migration method and the migration device can realize the migration of the operating system and the business system and solve the problem of compatibility in the migration process.
Referring to fig. 8, fig. 8 is a flowchart illustrating a data migration method according to a fourth embodiment of the present invention.
Based on the foregoing embodiments, in this embodiment, after the step S100, the method further includes:
step S101: the method comprises the steps of obtaining the space size of a preset operating system occupied by a guide disk, and taking the space size as the area size of a preset area.
It should be noted that the size of the space may be the size of the space occupied by the preset operating system on the boot disk, and the size of the area may be the size of the space occupied by the preset operating system installed in the target computer on the boot disk.
It should be understood that, in the migration process, in order to not destroy the original operating system of the target computer, a thin operating system is installed for the target computer, and the thin operating system is stored in a preset area of the target computer, and in the migration process, if data in the preset area is migrated in advance, the thin operating system of the target computer is damaged, and subsequent migration cannot be performed or migration fails, so in the migration process, in order to implement the final migration of the system data in the preset area, the size of the space occupied by the preset operating system on the boot disk is obtained, and the size of the space is used as the area size of the preset area.
Step S102: and sending the area size of the preset area to a source computer so that the source computer receives the area size of the preset area and determines the preset area of a guide disk of the source computer according to the area size of the preset area.
It should be understood that, in the process of data migration, in order to not destroy the reduced operating system of the target computer, data of a position of a disk space occupied by the reduced operating system in the target computer is migrated after the position information, the first valid data, and the second valid data are migrated, so that the area size of the preset area needs to be sent to the source computer, so that the source computer receives the area size of the preset area, determines a preset area of a guide disk of the source computer according to the area size of the preset area, migrates data of the preset area to a data disk, and migrates the data after the position information, the first valid data, and the second valid data are migrated.
The method comprises the steps of obtaining the space size of a guide disk occupied by a preset operating system, and taking the space size as the area size of a preset area; and sending the area size of the preset area to a source computer so that the source computer receives the area size of the preset area and determines the preset area of a guide disk of the source computer according to the area size of the preset area. In this embodiment, in the data migration process, the system data in the preset area in the target computer is not damaged before the location information, the first valid data, and the second valid data are migrated, so that the migration process can be smoothly performed.
Referring to fig. 9, fig. 9 is a block diagram of a data migration apparatus according to a third embodiment of the present invention.
As shown in fig. 9, the data migration apparatus according to the embodiment of the present invention includes an installation module 100, a receiving module 200, and a system data copy module 300;
an installation module 100, configured to install a preset operating system in a target computer, and store the preset operating system in a preset area of a boot disk of the target computer;
a receiving module 200, configured to receive position information, first valid data, and second valid data sent by a source computer, where the first valid data is valid data in a boot disk in the source computer, the second valid data is valid data in a data disk in the source computer, and the position information is position information after system data in a preset area in the boot disk of the source computer is migrated to the data disk of the source computer;
the system data copying module 300 is configured to migrate, after the first valid data and the second valid data are received, the system data corresponding to the location information to a preset area of a boot disk of the target computer through the location information.
In this embodiment, a preset operating system is installed in a target computer, and the preset operating system is stored in a preset area of a boot disk of the target computer; receiving position information, first effective data and second effective data sent by a source computer, wherein the first effective data are effective data in a guide disk in the source computer, the second effective data are effective data in a data disk in the source computer, and the position information is position information after system data in a preset area in the guide disk of the source computer are migrated to the data disk of the source computer; and after the first effective data and the second effective data are received, migrating the system data corresponding to the position information to a preset area of a guide disk of the target computer through the position information. Compared with the existing migration mode that only the business system is migrated and the operating system is not migrated, the migration method and the migration device can realize the migration of the operating system and the business system and solve the problem of compatibility in the migration process.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may refer to the parameter operation method provided in any embodiment of the present invention, and are not described herein again.
Based on the third embodiment of the data migration apparatus of the present invention, a fourth embodiment of the data migration apparatus of the present invention is provided.
In this embodiment, the installation module 100 is further configured to obtain a space size of a boot disk occupied by a preset operating system, and use the space size as an area size of a preset area; and sending the area size of the preset area to a source computer so that the source computer receives the area size of the preset area and determines the preset area of a guide disk of the source computer according to the area size of the preset area.
Further, the receiving module 200 is further configured to obtain disk information sent by a source computer; and creating a corresponding guide disk and a corresponding data disk on the target computer according to the disk information.
Other embodiments or specific implementation manners of the data migration apparatus of the present invention may refer to the above method embodiments, and are not described herein again.
In addition, an embodiment of the present invention further provides a storage medium, where the storage medium stores a data migration program, and the data migration program, when executed by a processor, implements the steps of the data migration method described above.
In addition, an embodiment of the present invention further provides a data migration device, where the data migration device includes: a memory, a processor, and a data migration program stored on the memory and executable on the processor, the data migration program when executed by the processor implementing the steps of the data migration method described above.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., a rom/ram, a magnetic disk, an optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A data migration method, characterized in that the data migration method comprises the steps of:
migrating system data of a preset area in a guide disk of a source computer to a data disk of the source computer;
recording the position information of the system data in a data disk of the source computer;
and sending the position information, first effective data of a guide disk of the source computer and second effective data of a data disk of the source computer to a target computer, so that the target computer receives the position information, the first effective data and the second effective data through a preset operating system, and after the first effective data and the second effective data are received, migrating the system data to a preset area of the guide disk of the target computer through the position information, wherein the preset operating system is stored in the preset area of the guide disk of the target computer.
2. The data migration method of claim 1, wherein before the step of migrating the system data of the preset area in the boot disk of the source computer to the data disk of the source computer, the method further comprises:
receiving the size of an area sent by a target computer, wherein the size of the area is determined by the target computer according to the size of a space of a guide disk occupied by a preset operating system;
and determining a preset area of a guide disk of the source computer according to the area size.
3. The data migration method of claim 1, wherein prior to the step of sending the location information, the first valid data of the boot disk of the source computer, and the second valid data of the data disk of the source computer to the destination computer, further comprising:
acquiring disk information of a boot disk and a data disk in a source computer;
and sending the disk information to a target computer so that the target computer creates a guide disk and a data disk on the target computer according to the disk information.
4. A data migration device is characterized by comprising a system data migration module, a position information recording module and a migration module;
the system data migration module is used for migrating system data in a preset area in a guide disk of the source computer to a data disk of the source computer;
the recording position information module is used for recording the position information of the system data in a data disk of the source computer;
the migration module is used for sending the position information, first effective data of a guide disk of the source computer and second effective data of a data disk of the source computer to a target computer, so that the target computer receives the position information, the first effective data and the second effective data through a preset operating system, and after the first effective data and the second effective data are received, the system data are migrated to a preset area of the guide disk of the target computer through the position information, and the preset operating system is stored in the preset area of the guide disk of the target computer.
5. A data migration method, characterized in that the data migration method comprises the steps of:
installing a preset operating system in a target computer, and storing the preset operating system into a preset area of a boot disk of the target computer;
receiving position information, first effective data and second effective data sent by a source computer, wherein the first effective data are effective data in a guide disk in the source computer, the second effective data are effective data in a data disk in the source computer, and the position information is position information after system data in a preset area in the guide disk of the source computer are migrated to the data disk of the source computer;
and after the first effective data and the second effective data are received, migrating the system data corresponding to the position information to a preset area of a guide disk of the target computer through the position information.
6. The data migration method according to claim 5, wherein after the step of installing the preset operating system in the target computer and storing the preset operating system in a preset area of a boot disk of the target computer, the method further comprises:
acquiring the space size of a guide disk occupied by a preset operating system, and taking the space size as the area size of a preset area;
and sending the area size of the preset area to a source computer so that the source computer receives the area size of the preset area and determines the preset area of a guide disk of the source computer according to the area size of the preset area.
7. The data migration method of claim 5, wherein the step of receiving the location information, the first valid data and the second valid data sent by the source computer is preceded by the step of:
acquiring disk information sent by a source computer;
and creating a corresponding guide disk and a corresponding data disk on the target computer according to the disk information.
8. A data migration device is characterized by comprising an installation module, a receiving module and a system data copying module;
the installation module is used for installing a preset operating system in a target computer and storing the preset operating system into a preset area of a guide disk of the target computer;
the system comprises a receiving module, a data processing module and a data processing module, wherein the receiving module is used for receiving position information, first effective data and second effective data sent by a source computer, the first effective data is effective data in a guide disk in the source computer, the second effective data is effective data in a data disk in the source computer, and the position information is position information after system data in a preset area in the guide disk of the source computer are migrated to the data disk of the source computer;
and the system data copying module is used for migrating the system data corresponding to the position information to a preset area of a guide disk of the target computer through the position information after the first effective data and the second effective data are received.
9. A data migration apparatus, characterized in that the apparatus comprises: a memory, a processor, and a data migration program stored on the memory and executable on the processor, the data migration program configured to implement the steps of the data migration method of any of claims 1-3 or 5-7.
10. A storage medium having stored thereon a data migration program which, when executed by a processor, implements the steps of the data migration method of any one of claims 1 to 3 or 5 to 7.
CN202011557246.0A 2020-12-24 2020-12-24 Data migration method, device, equipment and storage medium Active CN112612417B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011557246.0A CN112612417B (en) 2020-12-24 2020-12-24 Data migration method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011557246.0A CN112612417B (en) 2020-12-24 2020-12-24 Data migration method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112612417A true CN112612417A (en) 2021-04-06
CN112612417B CN112612417B (en) 2023-08-08

Family

ID=75245235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011557246.0A Active CN112612417B (en) 2020-12-24 2020-12-24 Data migration method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112612417B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113835644A (en) * 2021-11-26 2021-12-24 深圳市科力锐科技有限公司 Complete machine migration method, device, equipment and storage medium
CN114296810A (en) * 2021-12-29 2022-04-08 上海英方软件股份有限公司 Operating system migration method, device, server and storage medium
CN116185571A (en) * 2023-04-20 2023-05-30 深圳市科力锐科技有限公司 Data migration method, device, storage medium and apparatus

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050154849A1 (en) * 2004-01-13 2005-07-14 Naoki Watanabe Data-migration method
CN1979436A (en) * 2005-12-02 2007-06-13 联想(北京)有限公司 Data back-up system and method and system load-bearing apparatus
US7640292B1 (en) * 2005-04-29 2009-12-29 Netapp, Inc. Physical server to virtual server migration
WO2011055412A1 (en) * 2009-11-06 2011-05-12 Hitachi, Ltd. File management sub-system and file migration control method in hierarchical file system
CN102609299A (en) * 2012-01-13 2012-07-25 深圳市深信服电子科技有限公司 Virtualizing system, and creating method and creating device thereof
CN103605483A (en) * 2013-11-21 2014-02-26 浪潮电子信息产业股份有限公司 Feature processing method for block-level data in hierarchical storage system
CN104685443A (en) * 2012-09-30 2015-06-03 苹果公司 Pinning boot data for faster boot
US20150319222A1 (en) * 2014-04-30 2015-11-05 Vmware, Inc. Operating system migration while preserving applications, data, and settings
CN105847423A (en) * 2016-05-16 2016-08-10 国网江苏省电力公司信息通信分公司 Cloud platform capable of unified safety monitoring and management
US20170060431A1 (en) * 2015-09-02 2017-03-02 Commvault Systems, Inc. Migrating data to disk without interrupting running backup operations
CN107920117A (en) * 2017-11-20 2018-04-17 郑州云海信息技术有限公司 A kind of method for managing resource, control device and resource management system
CN110597662A (en) * 2019-09-11 2019-12-20 深圳市科力锐科技有限公司 Backup data automatic verification method and device, user equipment and storage medium
CN110928557A (en) * 2018-09-19 2020-03-27 阿里巴巴集团控股有限公司 Method, device and system for realizing migration of operating system

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050154849A1 (en) * 2004-01-13 2005-07-14 Naoki Watanabe Data-migration method
US7640292B1 (en) * 2005-04-29 2009-12-29 Netapp, Inc. Physical server to virtual server migration
CN1979436A (en) * 2005-12-02 2007-06-13 联想(北京)有限公司 Data back-up system and method and system load-bearing apparatus
WO2011055412A1 (en) * 2009-11-06 2011-05-12 Hitachi, Ltd. File management sub-system and file migration control method in hierarchical file system
CN102609299A (en) * 2012-01-13 2012-07-25 深圳市深信服电子科技有限公司 Virtualizing system, and creating method and creating device thereof
CN104685443A (en) * 2012-09-30 2015-06-03 苹果公司 Pinning boot data for faster boot
CN103605483A (en) * 2013-11-21 2014-02-26 浪潮电子信息产业股份有限公司 Feature processing method for block-level data in hierarchical storage system
US20150319222A1 (en) * 2014-04-30 2015-11-05 Vmware, Inc. Operating system migration while preserving applications, data, and settings
US20170060431A1 (en) * 2015-09-02 2017-03-02 Commvault Systems, Inc. Migrating data to disk without interrupting running backup operations
CN105847423A (en) * 2016-05-16 2016-08-10 国网江苏省电力公司信息通信分公司 Cloud platform capable of unified safety monitoring and management
CN107920117A (en) * 2017-11-20 2018-04-17 郑州云海信息技术有限公司 A kind of method for managing resource, control device and resource management system
CN110928557A (en) * 2018-09-19 2020-03-27 阿里巴巴集团控股有限公司 Method, device and system for realizing migration of operating system
CN110597662A (en) * 2019-09-11 2019-12-20 深圳市科力锐科技有限公司 Backup data automatic verification method and device, user equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
DEKA GANESH CHANDRA: "A Study on Cloud OS", 2012 INTERNATIONAL CONFERENCE ON COMMUNICATION SYSTEMS AND NETWORK TECHNOLOGIES, pages 692 - 697 *
姚凯: "数据中心中服务器操作系统平台的热迁移研究", 信息系统工程, pages 46 *
黄泽源: "一种高兼容的KVM_P2V迁移方法", 数据通信, pages 43 - 47 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113835644A (en) * 2021-11-26 2021-12-24 深圳市科力锐科技有限公司 Complete machine migration method, device, equipment and storage medium
CN114296810A (en) * 2021-12-29 2022-04-08 上海英方软件股份有限公司 Operating system migration method, device, server and storage medium
CN116185571A (en) * 2023-04-20 2023-05-30 深圳市科力锐科技有限公司 Data migration method, device, storage medium and apparatus

Also Published As

Publication number Publication date
CN112612417B (en) 2023-08-08

Similar Documents

Publication Publication Date Title
CN112612417A (en) Data migration method, device, equipment and storage medium
CN102402446B (en) Method and device for installing application software
CN102419803B (en) Method, system and device for searching and killing computer virus
CN107870968B (en) Performing real-time updates to a file system volume
EP2840495B1 (en) Container-based processing method and apparatus
US20080040714A1 (en) Method and system for automatic computer and user migration
JP5483116B2 (en) Maintenance system, maintenance method, and maintenance program
JPWO2010100769A1 (en) Security management apparatus and method, and program
CN113835644B (en) Complete machine migration method, device, equipment and storage medium
CN104216793A (en) Application program backing up and restoring method and device
CN107273146B (en) Virtual machine upgrading method and device
CN109726020B (en) System docking method, system docking device, storage medium and apparatus
CN113326105B (en) Hardware equipment configuration method, device and equipment based on host migration
CN105867962A (en) System upgrading method and device
CN112596950A (en) Virtual machine data backup method, device, equipment and storage medium
CN110597662B (en) Backup data automatic verification method and device, user equipment and storage medium
CN113485755B (en) Device driver verification method, device and storage medium
US10635523B2 (en) Fast recovery from failures in a chronologically ordered log-structured key-value storage system
CN110941516B (en) Operating system restoration method, device, equipment and storage medium
CN113791874A (en) Configuration method and device for virtual machine boot, computer equipment and storage medium
JP5439559B2 (en) Security management apparatus and method, and program
CN110825417A (en) Application program updating method and system
JP2016181091A (en) Information management apparatus, information management method, information management program, data structure, and software asset management system
WO2017076180A1 (en) Virtual machine upgrading method and device
CN111737149B (en) Real machine platform, test method and test script processing method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant