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

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

Info

Publication number
CN112612417B
CN112612417B CN202011557246.0A CN202011557246A CN112612417B CN 112612417 B CN112612417 B CN 112612417B CN 202011557246 A CN202011557246 A CN 202011557246A CN 112612417 B CN112612417 B CN 112612417B
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.)
Active
Application number
CN202011557246.0A
Other languages
Chinese (zh)
Other versions
CN112612417A (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

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 invention migrates system data of a preset area in a boot disk of a source computer to a data disk of the source computer; recording 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 guiding 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 operation system, and after the first effective data and the second effective data are received, migrating system data to a preset area of the guiding disk of the target computer through the position information.

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 a host to a cloud platform, or to migrate a host of one cloud platform to another cloud platform. Because various versions of operating systems are preset in the virtual machines of many cloud computing platforms at present, the media installation system is not supported to be started from an ISO or U disk and the like, and the system can only be guided from a specific hard disk, how to migrate data of a host and the system to the cloud platform is a troublesome matter, because when a source machine system is migrated to the cloud host, the system of the cloud host needs to be broken, and if the system is broken, no method is provided for subsequent migration. Therefore, the conventional method is to migrate only the service system data and not the operating system, which requires installing a series of service system software on the cloud host and then migrating the data, which is not only energy-consuming but also prone to compatibility problems.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a data migration method, a device, equipment and a storage medium, and aims to solve the technical problem that only service system data is migrated when data migration is performed in the prior art, and compatibility exists between an operating system and a migration process.
In order to achieve the above object, the present invention provides a data migration method, which includes the steps of:
migrating system data of a preset area in a boot disk of the source computer to a data disk of the source computer;
recording position information of the system data in a data disk of the source computer;
and transmitting the position information, the first effective data of the guide disk of the source computer and the second effective data of the 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 of 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 space size of a guide disk occupied by a preset operating system;
And determining a preset area of the boot 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 target computer, the method further includes:
obtaining disk information of a guide 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 also provides a data migration apparatus, where the data migration apparatus includes a system data migration module, a recording location information module, and a migration module;
the system data migration module is used for migrating system data of a preset area in a boot disk of the source computer to a data disk of the source computer;
a recording position information module for recording position information of the system data in a data disk of the source computer;
the migration module is configured to send 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 a 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 migrate the system data to a preset area of the boot disk of the target computer through the location information after the first valid data and the second valid data are received, where the preset operating system is stored in the preset area of the boot disk of the target computer.
In addition, to achieve the above object, the present invention also provides a data migration method, which includes the steps of:
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;
receiving position information, first effective data and second effective data sent by a source computer, wherein the first effective data is effective data in a guide disk of the source computer, the second effective data is effective data in a data disk of the source computer, and the position information is position information after system data of a preset area in the guide disk of the source computer is migrated to the data disk of the source computer;
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 boot disk of the target computer through the position information.
Preferably, after the step of installing a 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 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 transmitting 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 determining the preset area of a guiding 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:
obtaining 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 also provides a data migration apparatus, which includes 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 storage module and a storage 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 of the source computer, the second effective data is effective data in a data disk of the source computer, and the position information is position information after system data of a preset area in the guide disk of the source computer is 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 also proposes a data migration apparatus, the apparatus comprising: 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, in order to achieve the above object, the present invention also proposes a storage medium having stored thereon a data migration program which, when executed by a processor, implements the steps of the data migration method as described above.
The invention migrates system data of a preset area in a boot disk of a source computer to a data disk of the source computer; recording 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 guiding 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 operation system, and after the first effective data and the second effective data are received, migrating system data to a preset area of the guiding disk of the target computer through the position information.
Drawings
FIG. 1 is a schematic diagram of a data migration device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of 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 illustrating a first embodiment of a data migration apparatus according to the present invention;
FIG. 5 is a schematic diagram of a framework in which the data migration method of the present invention is located;
FIG. 6 is a flowchart illustrating a third embodiment of a data migration method according to 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 of a fourth embodiment of a data migration method according to the present invention;
fig. 9 is a block diagram of a third embodiment of a data migration apparatus according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic diagram of a data migration device structure of a hardware running 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 (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further 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 high-speed random access memory (Random Access Memory, RAM) memory or a stable nonvolatile memory (Non-VolatileMemory, NVM), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the structure shown in fig. 1 does not constitute a limitation of the data migration apparatus, and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a data storage module, a network communication module, a user interface module, and a data migration program may be included in the memory 1005 as one type of storage medium.
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, where the data migration apparatus invokes a data migration program stored in the memory 1005 through the processor 1001, and executes the data migration method provided by the embodiment of the present invention.
Based on the above 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 chart of a first embodiment of the data migration method of 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 boot disk of the source computer to the data disk of the source computer.
It should be noted that, the execution body of the present embodiment may be a computing service device with network communication and program operation, for example, a mobile phone, a tablet computer, a personal computer, or the like, or may be a source computer with similar functions, and the present embodiment and the following embodiments will be described 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 performing the data migration method, the boot disk may be a disk that performs a booting function when a program is executed, for example, in general, the system is started from a hard disk, when the system is damaged (a virus or a mishandling is deleted), 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 of 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 other disks in the source computer except for the boot disk.
Step S20: and recording the position information of the system data in the data disk of the source computer.
It should be noted that the location information may be storage information of the system data in the 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 may be recorded.
In specific implementation, a data migration program on a source computer searches for available space on the data disk, acquires a 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 the problem that the system data is lost due to the change of the data in the process of migrating the system data to the data disk, the embodiment further includes monitoring whether the system data in the preset area of the boot disk is changed, and synchronously migrating the changed data to the data disk when the system data is changed, 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 transmitting the position information, the first effective data of the guide disk of the source computer and the second effective data of the 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 of a preset size in the boot disk in the target computer, and an area of a preset area of the target computer may be the same as an area of a preset area of the source computer.
It should be understood that, during the data migration process, the system is stored in the preset area of the boot disk of the target computer, if the system data is migrated in advance during the migration process, the operating system of the target computer is destroyed, and in this embodiment, after the first valid data and the second valid data are received, the system data are migrated to the preset area of the boot disk of the target computer through the location information. In some cases, the system data of the preset area of the source computer may be migrated, which is not limited herein.
Further, in order to enable the target computer to better receive the migration data sent by the source computer, disk information of a boot disk and a data disk in the source computer can be obtained, 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 disk and the data disk in the source computer, for example, the boot disk in the source computer has 60GB, the data disk has 80GB, 60GB and 40GB, and then the disk information is sent to the target computer, so that the hard disk of the target computer is also configured as the corresponding boot disk 60GB, the data disk is 80GB, 60GB and 40GB, respectively, and during the migration process, the boot disk data in the source computer is migrated to the boot disk of the target computer, the data disk of the 60GB space of the source computer is migrated to the data disk of the target computer, which occupies 60GB space, and so on, in some cases, for example, the hard disk space of the target computer is far greater than the hard disk space of the source computer, and the corresponding disk may also be created reasonably according to the number of the source disk, which is not limited herein.
Further, in order to avoid the problem that data is lost due to the change of data in the migration process, the embodiment further includes monitoring whether the data in the data disk is changed in the migration process, and synchronously migrating the changed data to the target computer when the data is changed.
In the embodiment, system data of a preset area in a boot disk of a source computer is migrated to a data disk of the source computer; recording 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 operation system, and after the first effective data and the second effective data are received, migrating system data to a preset area of the guide disk of the target computer through the position information.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of a data migration method according to 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 the area sent by the target computer, wherein the size of the area is determined by the target computer according to the space size of the guide disk occupied by a preset operating system.
It should be noted that the area size may be the space size of the boot disk occupied by the preset operating system installed in the target computer.
It should be understood that, in the migration process, in order not to destroy the original operating system of the target computer, a reduced operating system is installed for the target computer, and the reduced operating system is stored in a preset area of the target computer, in the migration process, if data in the preset area is migrated in advance, the reduced operating system of the target computer is destroyed, and subsequent migration cannot be performed or fails, so in the migration process, in order to implement 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 a data disk, and when migration of the first valid data and the second valid data is completed, migrates the system data in the preset area.
Step S02: and determining a preset area of the boot 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 determine a specific disk space at the front portion of the boot disk calculated by the source according to the area size, for example, the area size is 2GB, and then the front 2GB space of the boot disk of the source computer is taken as the preset area.
According to the method, the device and the system, the area size sent by the target computer is received, the area size is determined by the target computer according to the space size of the guide disk occupied by the preset operating system, the preset area of the guide disk of the source computer is determined according to the area size by acquiring the area size determined by the target computer according to the space size of the guide disk of the target computer occupied by the preset operating system, and therefore the system data in the preset area of the target computer are not destroyed before the position information, the first effective data and the second effective data are migrated, and the migration process can be smoothly carried out.
Referring to fig. 4, fig. 4 is a block diagram illustrating a first embodiment of a data migration apparatus according to 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 of a preset area in a boot disk of the source computer to a data disk of the source computer;
a record location information module 20 for recording location 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 boot disk of the source computer, and the second valid data of the data disk of the source computer to a 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 migrate the system data to a preset area of the boot disk of the target computer through the location information after the first valid data and the second valid data are received, where the preset operating system is stored in the preset area of the boot disk of the target computer.
In the embodiment, system data of a preset area in a boot disk of a source computer is migrated to a data disk of the source computer; recording 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 operation system, and after the first effective data and the second effective data are received, migrating system data to a preset area of the guide disk of the target computer through the position information.
It should be noted that the above-described working procedure is merely illustrative, and does not limit the scope of the present invention, and in practical application, a person skilled in the art may select part or all of them according to actual needs to achieve the purpose of the embodiment, which is not limited herein.
In addition, 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 above-mentioned first embodiment of the data migration apparatus of the present invention, a second embodiment of the data migration apparatus of the present invention is proposed.
In this embodiment, the system data migration module 10 is further configured to receive a region size sent by a target computer, where the region size is determined by the target computer according to a space size of a boot disk occupied by a preset operating system; and determining a preset area of the boot disk of the source computer according to the area size.
Further, the migration module 30 is further configured to obtain disk information of the boot disk and the 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, referring to fig. 5, when data migration is performed, the source computer and the target computer may pre-install a data migration program, connect to a migration management platform according to the data migration program, and after the target computer and the source computer connect to the migration management platform, select a source host and a target host that need to be migrated on an operation interface of the migration management platform, and after the selection, may start a migration task.
Based on the structure of the framework where the data migration method is located, the embodiment of the data migration method is provided.
Referring to fig. 6, fig. 6 is a flowchart illustrating a third embodiment of a data migration method according to 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 in a preset area of a boot disk of the target computer.
The execution body of the present embodiment may be a computing service device with network communication and program operation, for example, a mobile phone, a tablet computer, a personal computer, or a target computer with similar functions, and the present embodiment and the following embodiments will be 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 of a preset size in a boot disk in the target computer, and an area size of the preset area of the target computer may be the same as an area size of the preset area of the source computer.
Step S200: receiving position information, first effective data and second effective data sent by a source computer, wherein the first effective data is effective data in a guiding disk of the source computer, the second effective data is effective data in a data disk of the source computer, and the position information is position information after system data of a preset area in the guiding disk of the source computer is 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 performing the data migration method.
Further, in order to enable the target computer to better receive the 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, disk information of a boot disk and a data disk in the source computer sent by the source computer can be obtained, 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 the boot disk and the data disk in the source computer, for example, the boot disk in the source computer has 60GB, the data disk has 80GB, 60GB and 40GB, and then the hard disk of the target computer is configured as the corresponding boot disk 60GB, the data disk has 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 in the 60GB space of the target computer, and so on, in some cases, for example, the hard disk space of the target computer is far greater than the hard disk space of the source computer, and the corresponding disk may also be reasonably created according to the number of the disks of the source computer, which is not limited herein.
Step S300: 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 boot disk of the target computer through the position information.
It should be understood that, during the data migration process, the system is stored in the preset area of the boot disk of the target computer, if the system data is migrated in advance during the migration process, the operating system of the target computer is destroyed, and this embodiment adopts a manner of migrating the system data to the preset area of the boot disk of the target computer through the location information after the first valid data and the second valid data are received, which may also be used in some cases, but the embodiment is not limited herein.
Referring to fig. 7, fig. 7 is a schematic diagram of migration results in an embodiment of a data migration method according to the present invention.
It should be noted that, referring to fig. 7, in an embodiment, a reduced operating system is installed in front of the boot disk of the target computer, where the reduced operating system is 2GB, a temporary file is created in the data disk of the source computer, and 2GB of data in front of the boot disk of the source computer is stored in the temporary file of the data disk of the source computer, so that migration is performed according to the data migration method of the foregoing embodiments, where the size of the boot disk of the target computer is 60GB and the size of the data disk is 80GB, which are created according to the disk information in the source computer.
In the embodiment, a preset operating system is installed in a target computer, and the preset operating system is stored in a preset area of a guide 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 is effective data in a guide disk of the source computer, the second effective data is effective data in a data disk of the source computer, and the position information is position information after system data of a preset area in the guide disk of the source computer is migrated to the data disk of the source computer; 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 boot disk of the target computer through the position information. Compared with the existing migration mode that only the service system is not migrated and the operating system is not migrated, the migration method and the migration device can achieve migration of the operating system and the service system and solve the compatibility problem in the migration process.
Referring to fig. 8, fig. 8 is a flowchart of a fourth embodiment of a data migration method according to the present invention.
Based on the above embodiments, in this embodiment, after step S100, the method further includes:
Step S101: 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.
The space size may be a space size of the boot disk occupied by the preset operating system, and the area size may be a space size of the boot disk occupied by the preset operating system installed in the target computer.
It should be understood that, in the migration process, in order not to destroy the original operating system of the target computer, a reduced operating system is installed for the target computer, and the reduced operating system is stored in a preset area of the target computer, in the migration process, if data in the preset area is migrated in advance, the reduced operating system of the target computer is destroyed, and subsequent migration cannot be performed or fails, so in the migration process, in order to realize final migration of the system data in the preset area, the space size of the boot disk occupied by the preset operating system is obtained, and the space size is taken as the area size of the preset area.
Step S102: and transmitting 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 determining the preset area of a guiding disk of the source computer according to the area size of the preset area.
It should be understood that, in the process of performing data migration, in order not to destroy the reduced operating system of the target computer, data of a location of a disk space occupied by the reduced operating system in the target computer is migrated after the location 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 the preset area of the boot disk of the source computer according to the area size of the preset area, migrates the data of the preset area to the data disk, and then migrates after the location information, the first valid data and the second valid data are migrated.
The method comprises the steps that the space size of a guide disk occupied by a preset operating system is obtained, and the space size is used as the area size of a preset area; and transmitting 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 determining the preset area of a guiding disk of the source computer according to the area size of the preset area. In the data migration process, the system data in the preset area in the target computer is not destroyed before the migration of the position information, the first effective data and the second effective data is completed, so that the migration process can be smoothly performed.
Referring to fig. 9, fig. 9 is a block diagram illustrating a third embodiment of a data migration apparatus according to 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 copying 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;
the receiving module 200 is configured to receive location 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 location information is location information after system data in a preset area in the boot disk of the source computer migrates to the data disk of the source computer;
and the system data copying module 300 is used for migrating the system data corresponding to the position information to a preset area of a boot disk of the target computer through the position information after the first effective data and the second effective data are received.
In the embodiment, a preset operating system is installed in a target computer, and the preset operating system is stored in a preset area of a guide 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 is effective data in a guide disk of the source computer, the second effective data is effective data in a data disk of the source computer, and the position information is position information after system data of a preset area in the guide disk of the source computer is migrated to the data disk of the source computer; 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 boot disk of the target computer through the position information. Compared with the existing migration mode that only the service system is not migrated and the operating system is not migrated, the migration method and the migration device can achieve migration of the operating system and the service system and solve the compatibility problem in the migration process.
It should be noted that the above-described working procedure is merely illustrative, and does not limit the scope of the present invention, and in practical application, a person skilled in the art may select part or all of them according to actual needs to achieve the purpose of the embodiment, which is not limited herein.
In addition, 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 above-described third embodiment of the data migration apparatus of the present invention, a fourth embodiment of the data migration apparatus of the present invention is proposed.
In this embodiment, the installation module 100 is further configured to obtain a space size of the boot disk occupied by the preset operating system, and take the space size as an area size of the preset area; and transmitting 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 determining the preset area of a guiding 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 the 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 implementations of the data migration apparatus of the present invention may refer to the above method embodiments, and are not described herein.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium stores a data migration program, and the data migration program realizes the steps of the data migration method when being executed by a processor.
In addition, the embodiment of the invention also provides a data migration device, which comprises: the data migration system comprises a memory, a processor and a data migration program stored on the memory and capable of running on the processor, wherein the data migration program realizes the steps of the data migration method when being executed by the processor.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. read-only memory/random-access memory, magnetic disk, optical disk), comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

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 boot disk of the source computer to a data disk of the source computer;
recording position information of the system data in a data disk of the source computer;
and transmitting the position information, the first effective data of the guide disk of the source computer and the second effective data of the 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 according to claim 1, further comprising, before the step of migrating system data of a predetermined area in a boot disk of the source computer to a data disk of the source computer:
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 space size of a guide disk occupied by a preset operating system;
and determining a preset area of the boot disk of the source computer according to the area size.
3. The data migration method of claim 1, wherein before the step of transmitting 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 target computer, further comprises:
obtaining disk information of a guide 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. The data migration device is characterized by comprising a system data migration module, a recording position information module and a migration module;
The system data migration module is used for migrating system data of a preset area in a boot disk of the source computer to a data disk of the source computer;
a recording position information module for recording position information of the system data in a data disk of the source computer;
the migration module is configured to send 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 a 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 migrate the system data to a preset area of the boot disk of the target computer through the location information after the first valid data and the second valid data are received, where the preset operating system is stored in the preset area of the boot 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 guide 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 is effective data in a guide disk of the source computer, the second effective data is effective data in a data disk of the source computer, and the position information is position information after system data of a preset area in the guide disk of the source computer is migrated to the data disk of the source computer;
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 boot disk of the target computer through the position information.
6. The data migration method of claim 5, wherein after the step of installing a 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 transmitting 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 determining the preset area of a guiding disk of the source computer according to the area size of the preset area.
7. The data migration method of claim 5, wherein prior to the step of receiving the location information, the first valid data, and the second valid data transmitted by the source computer, further comprising:
obtaining 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. The 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 storage module and a storage 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 of the source computer, the second effective data is effective data in a data disk of the source computer, and the position information is position information after system data of a preset area in the guide disk of the source computer is 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, the apparatus comprising: a memory, a processor and a data migration program stored on the memory and executable on the processor, the data migration program being configured to implement the steps of the data migration method of any one of claims 1 to 3 or 5 to 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 CN112612417A (en) 2021-04-06
CN112612417B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113835644B (en) * 2021-11-26 2022-03-01 深圳市科力锐科技有限公司 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
CN116185571B (en) * 2023-04-20 2023-07-21 深圳市科力锐科技有限公司 Data migration method, device, storage medium and apparatus

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4500057B2 (en) * 2004-01-13 2010-07-14 株式会社日立製作所 Data migration method
US9811375B2 (en) * 2014-04-30 2017-11-07 Vmware, Inc. Operating system migration while preserving applications, data, and settings
US10101913B2 (en) * 2015-09-02 2018-10-16 Commvault Systems, Inc. Migrating data to disk without interrupting running backup operations

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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 (1)

* Cited by examiner, † Cited by third party
Title
一种高兼容的KVM_P2V迁移方法;黄泽源;数据通信;43-47 *

Also Published As

Publication number Publication date
CN112612417A (en) 2021-04-06

Similar Documents

Publication Publication Date Title
CN112612417B (en) Data migration method, device, equipment and storage medium
CN107870968B (en) Performing real-time updates to a file system volume
US10296423B2 (en) System and method for live virtual incremental restoring of data from cloud storage
JP5483116B2 (en) Maintenance system, maintenance method, and maintenance program
EP1983432A1 (en) Booting system, boot program, and method therefor
CN113835644B (en) Complete machine migration method, device, equipment and storage medium
JP5376258B2 (en) Maintenance system, maintenance method, and maintenance program
CN107526608B (en) OTA upgrade package upgrading method and device
CN108475201B (en) Data acquisition method in virtual machine starting process and cloud computing system
CN113326105B (en) Hardware equipment configuration method, device and equipment based on host migration
CN109359092B (en) File management method, desktop display method, device, terminal and medium
CN107203480B (en) Data prefetching method and device
CN105867962A (en) System upgrading method and device
CN112596950A (en) Virtual machine data backup method, device, equipment and storage medium
CN114756290B (en) Operating system installation method, device and readable storage medium
CN113485755B (en) Device driver verification method, device and storage medium
CN116185571B (en) Data migration method, device, storage medium and apparatus
CN110941516B (en) Operating system restoration method, device, equipment and storage medium
CN101977231A (en) Method for downloading mapping file
CN111782474A (en) Log processing method and device, electronic equipment and medium
CN115766429A (en) Matching method and device of system and edge computing gateway
CN114296764A (en) System upgrading method and device, storage medium and electronic equipment
EP4086756A1 (en) Method and apparatus for processing virtual machine component
CN115033182A (en) Processing method and device
CN113986471A (en) Method, device, equipment and storage medium for safely deleting mirror image file of virtual machine

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