CN111104201A - System migration method and device, electronic equipment and storage medium - Google Patents

System migration method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111104201A
CN111104201A CN201911268421.1A CN201911268421A CN111104201A CN 111104201 A CN111104201 A CN 111104201A CN 201911268421 A CN201911268421 A CN 201911268421A CN 111104201 A CN111104201 A CN 111104201A
Authority
CN
China
Prior art keywords
data
disk
migrated
virtual machine
cloud platform
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.)
Pending
Application number
CN201911268421.1A
Other languages
Chinese (zh)
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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201911268421.1A priority Critical patent/CN111104201A/en
Publication of CN111104201A publication Critical patent/CN111104201A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • G06F9/441Multiboot arrangements, i.e. selecting an operating system to be loaded
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The present disclosure provides a system migration method and apparatus, an electronic device, and a storage medium, including: acquiring the partition information of a system disk of a system to be migrated in a source host, migrating the data to be migrated in the system disk to a data disk of a transfer machine according to the partition information of the system disk, modifying the universal unique identification code of the data to be migrated in the data disc to generate a multi-operating-system startup program corresponding to the data to be migrated in the data disc, deploying the virtual machine on the cloud platform according to the data to be migrated in the data disk, so that a user starts the virtual machine based on the modified universal unique identification code and the multi-operating-system startup program, by migrating the data to be migrated in the system disk to the data disk of the transfer machine according to the partition information of the system disk, the data migration method and the data migration system have the advantages that safe and reliable migration of the data to be migrated is achieved, and the migration of the system of the source end host is completed by deploying the virtual machine on the cloud platform according to the data to be migrated in the data disk.

Description

System migration method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a system migration method and apparatus, an electronic device, and a storage medium.
Background
With the development of science and technology and the continuous progress of internet technology, cloud computing provides on-demand, flexible and scalable computing and storage resources for users through computer networks. With the development of cloud computing, a form of accessing an application program and data through a cloud end as required becomes an increasingly important computing and service mode, and more enterprises establish own private cloud. A public cloud is a public-facing cloud that is independent of enterprise companies, while a private cloud is an organization-interior-facing cloud. A hybrid cloud is an infrastructure formed by combining two or more private or public clouds.
In the operation of the cloud platform, the container online migration technology migrates the container in operation to another host computer for operation, meanwhile, the service is kept uninterrupted, resource scheduling, disaster backup, online maintenance and upgrade can be realized, electric energy can be saved, and elasticity, expandability, high availability and the like are provided. In the prior art, the system migration method mainly adopted is to use winpe to receive data, then restart the winpe, and replace the winpe with the source host that needs to be migrated.
However, in the process of implementing the present disclosure, the inventors found that at least the following problems exist: system disks are not supported to be migrated together and the migration process is complicated.
Disclosure of Invention
The disclosure provides a system migration method and device, an electronic device and a storage medium, which are used for solving the problems that system disks are not supported to be migrated together and the migration process is complex in the prior art.
In one aspect, an embodiment of the present disclosure provides a system migration method, where the method includes:
acquiring partition information of a system disk of a system to be migrated in a source host;
migrating the data to be migrated in the system disk to a data disk of a transfer machine according to the partition information of the system disk, wherein the transfer machine is arranged on a cloud platform;
modifying the universal unique identification code of the data to be migrated in the data disc;
generating a multi-operating-system starting program corresponding to the data to be migrated in the data disk;
and deploying a virtual machine on the cloud platform according to the data to be migrated in the data disk, so that a user can start the virtual machine based on the modified universal unique identification code and the multi-operating-system starting program.
In some embodiments, the deploying virtual machines on the cloud platform according to the data to be migrated in the data disk comprises:
generating a mirror image corresponding to a system disk of data to be migrated in the data disks;
deploying the virtual machine on the cloud platform according to the image.
In some embodiments, the migrating the data to be migrated in the system disk to the data disk of the transfer machine according to the partition information of the system disk includes:
partitioning the data disk of the transfer machine according to the capacity information of the system disk;
mounting the file system in the data disc after partition processing;
migrating the data to be migrated to the data disk based on the mounted file system;
and the capacity information corresponding to the data disk of the transfer machine after the partition processing is the same as the capacity information of the system disk.
In some embodiments, after the deploying the virtual machine according to the data to be migrated in the data disk, the method further includes:
and verifying the attribute information of the data to be migrated in the virtual machine based on the attribute information of the data to be migrated, and verifying the multi-operating-system startup program.
In another aspect, an embodiment of the present disclosure further provides a system migration apparatus, where the apparatus includes:
the system comprises an acquisition module, a migration module and a migration module, wherein the acquisition module is used for acquiring the partition information of a system disk of a system to be migrated in a source host;
the migration module is used for migrating the data to be migrated in the system disk to a data disk of a transfer machine according to the partition information of the system disk, wherein the transfer machine is arranged on a cloud platform;
the modification module is used for modifying the universal unique identification code of the data to be migrated in the data disk;
the generating module is used for generating a multi-operating-system starting program corresponding to the data to be migrated in the data disk;
and the deployment module is used for deploying the virtual machine on the cloud platform according to the data to be migrated in the data disk, so that a user can start the virtual machine based on the modified universal unique identification code and the multi-operating-system starting program.
In some embodiments, the deployment module is configured to generate an image corresponding to a system disk of data to be migrated in the data disk, and deploy the virtual machine on the cloud platform according to the image.
In some embodiments, the partition information of the system disk includes capacity information of the system disk and a system file, and the migration module is configured to partition the data disk of the transfer machine according to the capacity information of the system disk, mount the file system in the partitioned data disk, and migrate the data to be migrated to the data disk based on the mounted file system, where the capacity information corresponding to the partitioned data disk of the transfer machine is the same as the capacity information of the system disk.
In some embodiments, the apparatus further comprises:
and the verification module is used for verifying the attribute information of the data to be migrated in the virtual machine based on the attribute information of the data to be migrated and verifying the multi-operating-system starting program.
In another aspect, an embodiment of the present disclosure further provides an electronic device, including: a memory, a processor;
a memory for storing the processor-executable instructions;
wherein the processor, when executing the instructions in the memory, is configured to implement a method as in any of the embodiments above.
In another aspect, the disclosed embodiments also provide a computer-readable storage medium, in which computer-executable instructions are stored, and when executed by a processor, the computer-executable instructions are used to implement the method according to any one of the above embodiments.
The present disclosure provides a system migration method and apparatus, an electronic device, and a storage medium, including: acquiring partition information of a system disk of a system to be migrated in a source host, migrating data to be migrated in the system disk to a data disk of a transfer machine according to the partition information of the system disk, wherein the transfer machine is arranged on a cloud platform, modifying a universal unique identification code of the data to be migrated in the data disk, generating a multi-operating system starting program corresponding to the data to be migrated in the data disk, deploying a virtual machine on the cloud platform according to the data to be migrated in the data disk, so that a user starts the virtual machine based on the modified universal unique identification code and the multi-operating system starting program, migrating the data to be migrated in the system disk to the data disk of the transfer machine according to the partition information of the system disk, so as to realize safe and reliable migration of the data to be migrated, and deploying the virtual machine on the cloud platform according to the data to be migrated in the data disk, the migration of the system of the source end host is completed, the universal unique identification code of the data to be migrated in the data disk is modified, and the multi-operating-system startup program is generated, so that after the deployment of the virtual machine is completed on the cloud platform, namely after the migration of the system of the source end host is completed, a user can start the virtual machine based on the modified universal unique identification code and the multi-operating-system startup program.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic view of an application scenario of a system migration method according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart diagram illustrating a system migration method according to an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating a method for deploying a virtual machine on a cloud platform according to data to be migrated in a data disk according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of a method for migrating data to be migrated in a system disk to a data disk of a transfer machine according to partition information of the system disk according to an embodiment of the present disclosure;
FIG. 5 is a schematic flow chart diagram illustrating a system migration method according to another embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a system migration apparatus according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a system migration apparatus according to another embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure;
reference numerals: 100. the system comprises a source end host, 200, a cloud platform, 10, an acquisition module, 20, a migration module, 30, a modification module, 40, a generation module, 50, a deployment module, 60 and a verification module.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In the prior art, data is received mainly by using winpe, and then the winpe is restarted, and migration of the system is realized by replacing the winpe with a source end host needing migration. In order to solve the problems, the inventor obtains the technical scheme implemented by the disclosure through creative work. In the embodiment of the present disclosure, data to be migrated is migrated based on partition information of a system disk of a system to be migrated of a source host, so that consistency and reliability of data migration can be ensured, and by deploying a virtual machine, migration of the system disk together is realized, and a user starts the virtual machine based on a modified universal unique identifier and a multi-os boot program.
The system migration method provided by the embodiment of the disclosure can be applied to the application scenario shown in fig. 1.
In the application scenario shown in fig. 1, the source host 100 is a computer, and the source host 100 and the cloud platform 200 are communicatively connected through a communication link.
The source host 100 may be a computer corresponding to an individual user, or may also be a computer corresponding to an enterprise user. And, the source host 100 may transmit data and the like stored therein to the cloud platform 200 through the communication link. Similarly, the cloud platform 200 may also transmit the data and the like stored by the cloud platform to the source host 100 through the communication link.
If the source host 100 is a computer corresponding to an individual user, when the individual user cannot operate the source host 100 on site, the system corresponding to the source host can be migrated to the cloud platform 200, and after the cloud platform 200 logs in an account and a password, the source host 100 is remotely operated.
Of course, in some embodiments, the source host 100 may be a computer corresponding to an enterprise user, and specifically may be an overall server corresponding to the enterprise. If the source end host 100 is a computer corresponding to an enterprise, the source end host 100 may send partition information of a system disk of a system to be migrated to the cloud platform 200, the cloud platform 200 receives the partition information of the system disk sent by the source end host 100, migrates data to be migrated in the system disk to a data disk of a transfer machine in the cloud platform 200 according to the partition information of the system disk, and modifies a universal unique identifier of the data to be migrated stored in the data disk after migration of the data to be migrated is completed, that is, when the data to be migrated is stored in the data disk, and generates a multi-operating system startup program corresponding to the data to be migrated stored in the data disk, so that a subsequent worker of the enterprise performs a startup operation on the migrated system, and deploys a virtual machine according to the data to be migrated stored in the data disk.
The following describes the technical solutions of the present disclosure and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present disclosure will be described below with reference to the accompanying drawings.
In one aspect, the embodiment of the present disclosure provides a system migration method suitable for the application scenario.
Referring to fig. 2, fig. 2 is a flowchart illustrating a system migration method according to an embodiment of the disclosure.
As shown in fig. 2, the method includes:
s101: and acquiring the partition information of the system disk of the system to be migrated in the source host.
The main body executing the system migration method according to the embodiment of the present disclosure may be a system migration apparatus, and the system migration apparatus may be a cloud platform as described in the application scenario above.
In some embodiments, the system migration apparatus may also be a third party computer or a third party server. For example, the system migration device is a third-party server, the source host determines partition information of the system disk, and sends the determined partition information of the system disk to the third-party server, and the third-party server obtains the partition information of the system disk of the source host and migrates the system to be migrated to the cloud platform.
The partition information of the system disk may include capacity information of the system disk, and the capacity information includes the partition of the disk and the capacity of each partitioned disk.
For example, the system disk is divided into four disks. If the source host is a personal user computer, the four disks can be respectively a working disk A, a learning disk B, an album disk C and an entertainment disk D; if the source host is a server of an enterprise user, the four disks can be a management department disk A, a personnel department disk B, a sales department disk C and a production department disk D respectively. Where working disk A is XXGB, and so on.
The partition information of the system disk may further include a file system.
The partition information of the system disk may further include information such as files in each disk.
The data to be migrated in the system disk of the source host can be received through the data disk of the transfer machine based on open source software RSYNC.
S102: and migrating the data to be migrated in the system disk to the data disk of the transfer machine according to the partition information of the system disk.
Wherein, the transfer machine sets up on the cloud platform.
In this step, the data to be migrated in the system disk is migrated to the data disk of the transfer machine based on the partition information of the system disk. As can be seen from the above example, the partition information of the system disk includes the partition of the disk of the system disk, the capacity information of the partitioned disk, and the like, that is, in this step, the data to be migrated in the system disk is migrated based on the partition of the disk of the system disk, the capacity information of the partitioned disk, and the like, so as to implement safe and reliable migration of the data to be migrated from the system disk to the data disk disposed on the transfer machine.
S103: and modifying the universal unique identification code of the data to be migrated in the data disc.
The Universal Unique Identifier (UUID) is a standard for software construction. The method aims to ensure that all elements in the distributed system can have unique identification information without specifying the identification information through a central control end. Therefore, in the embodiment of the present disclosure, after the data to be migrated is migrated to the data disk, the universal unique identification code of the data to be migrated in the data disk may be modified, so as to subsequently identify and open the corresponding data information. Also, in some embodiments, the universally unique identification code may be a Globally Unique Identifier (GUID).
In some embodiments, this step comprises: and collecting the universal unique identification code of the data to be migrated in the data disc, and modifying the collected universal unique identification code.
S104: and generating a multi-operating-system starting program corresponding to the data to be migrated in the data disk.
Among them, the multiple operating system boot program (GRAND Unified boot, GRUB) is a multiple operating system boot program from GNU project. GRUB is an implementation of a multi-boot specification that allows a user to have multiple operating systems simultaneously within a computer and select the operating system that he wishes to run at computer boot. GRUB may be used to select different kernels on the operating system partition and may also be used to pass boot parameters to these kernels. Therefore, in the embodiment of the present disclosure, by generating the multiple operating system boot program, it is possible to subsequently implement starting of the virtual machine on the cloud platform based on the multiple operating system boot program and perform corresponding operations.
S105: and deploying the virtual machine on the cloud platform according to the number to be migrated in the data disk, so that a user can start the virtual machine based on the modified universal unique identification code and the multi-operating-system starting program.
In this step, the virtual machine is deployed on the cloud platform so that users (such as the individual users and the enterprise users in the foregoing examples) operate the virtual machine based on the cloud platform.
The embodiment of the disclosure provides a new system migration method, which includes: acquiring partition information of a system disk of a system to be migrated in a source host, migrating data to be migrated in the system disk to a data disk of a transfer machine according to the partition information of the system disk, wherein the transfer machine is arranged on a cloud platform, modifying a universal unique identification code of the data to be migrated in the data disk, generating a multi-operating system starting program corresponding to the data to be migrated in the data disk, deploying a virtual machine on the cloud platform according to the data to be migrated in the data disk, so that a user starts the virtual machine based on the modified universal unique identification code and the multi-operating system starting program, migrating the data to be migrated in the system disk to the data disk of the transfer machine according to the partition information of the system disk, so as to realize safe and reliable migration of the data to be migrated, and deploying the virtual machine on the cloud platform according to the data to be migrated in the data disk, the migration of the system of the source end host is completed, the universal unique identification code of the data to be migrated in the data disk is modified, and the multi-operating-system startup program is generated, so that after the deployment of the virtual machine is completed on the cloud platform, namely after the migration of the system of the source end host is completed, a user can start the virtual machine based on the modified universal unique identification code and the multi-operating-system startup program.
It should be noted that, before S101, a step of initialization is further included, such as turning off selinux function in the server, and installing virtio (kvm) driver.
For example, whether selinux of the source host is closed is checked, and if so, the configuration file of selinux is modified. And checking whether a virtio (kvm) driver is installed on the source end host, if not, installing the virtio (kvm) driver on the source end host, if so, checking whether RSYNC software is installed on the source end host, if so, checking whether RSYNC software is also installed on the transfer machine, and if so, starting the RSYNC software on the transfer machine in a daemon mode.
As can be seen in fig. 3 (fig. 3 is a flowchart illustrating a method for deploying a virtual machine on a cloud platform according to data to be migrated in a data disk according to an embodiment of the present disclosure), in some embodiments, S105 includes:
s51: and generating a mirror image corresponding to a system disk of the data to be migrated in the data disks.
In some embodiments, the data disk may be unloaded on the cloud platform, and the control node is logged in, and an image corresponding to the system disk is generated.
Wherein the mirror can be made based on the shader and the angle commands of the OpenStack bottom layer.
S52: and deploying the virtual machine on the cloud platform according to the mirror image.
That is to say, in the embodiment of the present disclosure, an image of a system disk is generated, and after the generation of the image of the system disk is completed, a virtual machine is deployed on a cloud platform based on the image.
Referring to fig. 4 (fig. 4 is a flowchart illustrating a method for migrating data to be migrated in a system disk to a data disk of a transfer machine according to partition information of the system disk according to an embodiment of the present disclosure), in some embodiments, the partition information of the system disk includes capacity information of the system disk and a system file, and S102 includes:
s21: and partitioning the data disk of the transfer machine according to the capacity information of the system disk.
The capacity information corresponding to the data disk of the relay device subjected to the partition processing is the same as the capacity information of the system disk.
Based on the above example, the system disk is divided into four disks, and the data disk is also divided into four disks. And, if the capacity of the disk a in the system disk is XXGB, the capacity of the disk a in the data disk is also XXGB.
S22: and mounting the file system in the data disc after partition processing.
S23: and migrating the data to be migrated to the data disk based on the mounted file system.
The Logical Volume Manager (LVM) is now described as follows:
establishing a boot partition file system, establishing a swap and root directory system, mounting the file system, transmitting data of the boot directory file, and transmitting data of the root directory file, so as to migrate data to be migrated from a system disk to a data disk.
It should be noted that the data to be migrated may be all data in the system disk, or may be partial data in the system disk. That is, the data to be migrated may be selected based on the requirement, and the selected data to be migrated may be migrated.
Fig. 5 is a flowchart illustrating a system migration method according to another embodiment of the disclosure.
As shown in fig. 5, the method includes:
s201: and acquiring the partition information of the system disk of the system to be migrated in the source host.
S202: and migrating the data to be migrated in the system disk to the data disk of the transfer machine according to the partition information of the system disk.
S203: and modifying the universal unique identification code of the data to be migrated in the data disc.
S204: and generating a multi-operating-system starting program corresponding to the data to be migrated in the data disk.
S205: and deploying a virtual machine on the cloud platform according to the data to be migrated in the data disk.
For reference, the descriptions of S101 to S105 may be referred to for S201 to S205, which are not repeated herein.
S206: and verifying the attribute information of the data to be migrated in the virtual machine based on the attribute information of the data to be migrated, and verifying the multi-operating-system startup program, so that a user can start the virtual machine based on the modified universal unique identification code and the multi-operating-system startup program.
After the virtual machine is deployed on the cloud platform, in order to ensure consistency between the virtual machine and the source host, the virtual machine needs to be verified, and the verification may include verification of attribute information of data to be migrated in the virtual machine and verification of a multi-operating system boot program.
In some embodiments, the attribute information may include type, rights, and the like.
According to another aspect of the embodiments of the present disclosure, a system migration apparatus is also provided.
Referring to fig. 6, fig. 6 is a schematic diagram of a system migration apparatus according to an embodiment of the disclosure.
As shown in fig. 6, the apparatus includes:
an obtaining module 10, configured to obtain partition information of a system disk of a system to be migrated in a source host;
the migration module 20 is configured to migrate data to be migrated in the system disk to a data disk of a transfer machine according to the partition information of the system disk, where the transfer machine is disposed on a cloud platform;
a modification module 30, configured to modify a universal unique identifier of the data to be migrated in the data disk;
a generating module 40, configured to generate a multiple operating system boot program corresponding to the data to be migrated in the data disk;
and the deployment module 50 is configured to deploy a virtual machine on the cloud platform according to the data to be migrated in the data disk, so that a user starts the virtual machine based on the modified universal unique identification code and the multi-operating system boot program.
In some embodiments, the deployment module 50 is configured to generate an image corresponding to a system disk of the data disk to be migrated, and deploy the virtual machine on the cloud platform according to the image.
In some embodiments, the partition information of the system disk includes capacity information of the system disk and a system file, and the migration module 20 is configured to perform partition processing on the data disk of the relay unit according to the capacity information of the system disk, mount the file system in the data disk after partition processing, and migrate the data to be migrated to the data disk based on the mounted file system, where the capacity information corresponding to the data disk of the relay unit after partition processing is the same as the capacity information of the system disk.
As can be seen in conjunction with fig. 7, in some embodiments, the apparatus further comprises:
the verification module 60 is configured to verify the attribute information of the data to be migrated in the virtual machine based on the attribute information of the data to be migrated, and verify the multi-os boot program.
According to another aspect of the embodiments of the present disclosure, there is also provided an electronic device, including: a memory, a processor;
a memory for storing processor-executable instructions;
wherein, when executing the instructions in the memory, the processor is configured to implement the method of any of the embodiments above.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
As shown in fig. 8, the electronic device includes a memory and a processor, and the electronic device may further include a communication interface and a bus, wherein the processor, the communication interface, and the memory are connected by the bus; the processor is used to execute executable modules, such as computer programs, stored in the memory.
The Memory may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Via at least one communication interface, which may be wired or wireless), the communication connection between the network element of the system and at least one other network element may be implemented using the internet, a wide area network, a local network, a metropolitan area network, etc.
The bus may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc.
The memory is used for storing a program, and the processor executes the program after receiving an execution instruction.
The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The steps of the method disclosed in connection with the embodiments of the present disclosure may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
According to another aspect of the embodiments of the present disclosure, there is also provided a computer-readable storage medium having stored therein computer-executable instructions, which when executed by a processor, are configured to implement the method according to any one of the embodiments.
The reader should understand that in the description of this specification, reference to the description of the terms "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiments of the present disclosure.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present disclosure may be substantially or partially contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present disclosure. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should also be understood that, in the embodiments of the present disclosure, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure.
While the present disclosure has been described with reference to specific embodiments, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A method of system migration, the method comprising:
acquiring partition information of a system disk of a system to be migrated in a source host;
migrating the data to be migrated in the system disk to a data disk of a transfer machine according to the partition information of the system disk, wherein the transfer machine is arranged on a cloud platform;
modifying the universal unique identification code of the data to be migrated in the data disc;
generating a multi-operating-system starting program corresponding to the data to be migrated in the data disk;
and deploying a virtual machine on the cloud platform according to the data to be migrated in the data disk, so that a user can start the virtual machine based on the modified universal unique identification code and the multi-operating-system starting program.
2. The method of claim 1, wherein deploying virtual machines on the cloud platform according to the data to be migrated in the data disk comprises:
generating a mirror image corresponding to a system disk of data to be migrated in the data disks;
deploying the virtual machine on the cloud platform according to the image.
3. The method of claim 1, wherein the partition information of the system disk includes capacity information of the system disk and system files, and the migrating the data to be migrated in the system disk to a data disk of a transfer machine according to the partition information of the system disk includes:
partitioning the data disk of the transfer machine according to the capacity information of the system disk;
mounting the file system in the data disc after partition processing;
migrating the data to be migrated to the data disk based on the mounted file system;
and the capacity information corresponding to the data disk of the transfer machine after the partition processing is the same as the capacity information of the system disk.
4. The method according to any one of claims 1 to 3, wherein after said deploying virtual machines according to the data to be migrated in the data disk, the method further comprises:
and verifying the attribute information of the data to be migrated in the virtual machine based on the attribute information of the data to be migrated, and verifying the multi-operating-system startup program.
5. A system migration apparatus, the apparatus comprising:
the system comprises an acquisition module, a migration module and a migration module, wherein the acquisition module is used for acquiring the partition information of a system disk of a system to be migrated in a source host;
the migration module is used for migrating the data to be migrated in the system disk to a data disk of a transfer machine according to the partition information of the system disk, wherein the transfer machine is arranged on a cloud platform;
the modification module is used for modifying the universal unique identification code of the data to be migrated in the data disk;
the generating module is used for generating a multi-operating-system starting program corresponding to the data to be migrated in the data disk;
and the deployment module is used for deploying the virtual machine on the cloud platform according to the data to be migrated in the data disk, so that a user can start the virtual machine based on the modified universal unique identification code and the multi-operating-system starting program.
6. The apparatus according to claim 5, wherein the deployment module is configured to generate an image corresponding to a system disk of the data disks to be migrated, and deploy the virtual machine on the cloud platform according to the image.
7. The apparatus according to claim 5, wherein the partition information of the system disk includes capacity information of the system disk and a system file, and the migration module is configured to partition the data disk of the relay device according to the capacity information of the system disk, mount the file system on the data disk after partition processing, and migrate the data to be migrated to the data disk based on the mounted file system, where the capacity information corresponding to the data disk of the relay device after partition processing is the same as the capacity information of the system disk.
8. The apparatus of any of claims 5 to 7, further comprising:
and the verification module is used for verifying the attribute information of the data to be migrated in the virtual machine based on the attribute information of the data to be migrated and verifying the multi-operating-system starting program.
9. An electronic device, comprising: a memory, a processor;
a memory for storing the processor-executable instructions;
wherein the processor, when executing the instructions in the memory, is configured to implement the method of any of claims 1-4.
10. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, are configured to implement the method of any one of claims 1 to 4.
CN201911268421.1A 2019-12-11 2019-12-11 System migration method and device, electronic equipment and storage medium Pending CN111104201A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911268421.1A CN111104201A (en) 2019-12-11 2019-12-11 System migration method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911268421.1A CN111104201A (en) 2019-12-11 2019-12-11 System migration method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111104201A true CN111104201A (en) 2020-05-05

Family

ID=70422424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911268421.1A Pending CN111104201A (en) 2019-12-11 2019-12-11 System migration method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111104201A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111797059A (en) * 2020-07-07 2020-10-20 优刻得科技股份有限公司 Method for online cloud host migration across clouds, migration controller and cloud server
CN111913753A (en) * 2020-07-10 2020-11-10 江苏安超云软件有限公司 Method and system for changing starting mode in cloud migration of windows system
CN111930707A (en) * 2020-07-10 2020-11-13 江苏安超云软件有限公司 Method and system for correcting drive letter of windows cloud migration
CN112181488A (en) * 2020-08-24 2021-01-05 苏州浪潮智能科技有限公司 Method, system and computer readable medium for migrating applications
CN112395013A (en) * 2020-11-12 2021-02-23 华云数据控股集团有限公司 Method for correcting BPB (business process bus) parameters of cloud hard disk and electronic equipment
CN112394881A (en) * 2020-11-04 2021-02-23 华云数据控股集团有限公司 Cloud host migration method and electronic equipment
CN113805804A (en) * 2021-08-27 2021-12-17 济南浪潮数据技术有限公司 Method, device, equipment and medium for data offline migration

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843682A (en) * 2016-03-29 2016-08-10 新浪网技术(中国)有限公司 Method and apparatus for migrating virtual machine to IaaS cloud platform
CN106933517A (en) * 2017-03-17 2017-07-07 深信服科技股份有限公司 A kind of data migration method and device
CN108345493A (en) * 2018-03-13 2018-07-31 国云科技股份有限公司 A method of based on cloudy across the cloud migration of system Windows virtual machines under the overall leadership
CN109213570A (en) * 2018-08-28 2019-01-15 郑州云海信息技术有限公司 A kind of virtual machine migration method, device, equipment and readable storage medium storing program for executing
CN109522088A (en) * 2018-09-30 2019-03-26 华为技术有限公司 A kind of virtual machine migration method and device
CN112394881A (en) * 2020-11-04 2021-02-23 华云数据控股集团有限公司 Cloud host migration method and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843682A (en) * 2016-03-29 2016-08-10 新浪网技术(中国)有限公司 Method and apparatus for migrating virtual machine to IaaS cloud platform
CN106933517A (en) * 2017-03-17 2017-07-07 深信服科技股份有限公司 A kind of data migration method and device
CN108345493A (en) * 2018-03-13 2018-07-31 国云科技股份有限公司 A method of based on cloudy across the cloud migration of system Windows virtual machines under the overall leadership
CN109213570A (en) * 2018-08-28 2019-01-15 郑州云海信息技术有限公司 A kind of virtual machine migration method, device, equipment and readable storage medium storing program for executing
CN109522088A (en) * 2018-09-30 2019-03-26 华为技术有限公司 A kind of virtual machine migration method and device
CN112394881A (en) * 2020-11-04 2021-02-23 华云数据控股集团有限公司 Cloud host migration method and electronic equipment

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111797059A (en) * 2020-07-07 2020-10-20 优刻得科技股份有限公司 Method for online cloud host migration across clouds, migration controller and cloud server
CN111913753A (en) * 2020-07-10 2020-11-10 江苏安超云软件有限公司 Method and system for changing starting mode in cloud migration of windows system
CN111930707A (en) * 2020-07-10 2020-11-13 江苏安超云软件有限公司 Method and system for correcting drive letter of windows cloud migration
CN111930707B (en) * 2020-07-10 2022-08-02 江苏安超云软件有限公司 Method and system for correcting drive letter of windows cloud migration
CN112181488A (en) * 2020-08-24 2021-01-05 苏州浪潮智能科技有限公司 Method, system and computer readable medium for migrating applications
CN112181488B (en) * 2020-08-24 2022-07-08 苏州浪潮智能科技有限公司 Method, system and computer readable medium for migrating applications
CN112394881A (en) * 2020-11-04 2021-02-23 华云数据控股集团有限公司 Cloud host migration method and electronic equipment
CN112394881B (en) * 2020-11-04 2024-03-19 华云数据控股集团有限公司 Cloud host migration method and electronic equipment
CN112395013A (en) * 2020-11-12 2021-02-23 华云数据控股集团有限公司 Method for correcting BPB (business process bus) parameters of cloud hard disk and electronic equipment
CN113805804A (en) * 2021-08-27 2021-12-17 济南浪潮数据技术有限公司 Method, device, equipment and medium for data offline migration
CN113805804B (en) * 2021-08-27 2024-02-13 济南浪潮数据技术有限公司 Method, device, equipment and medium for offline migration of data

Similar Documents

Publication Publication Date Title
CN111104201A (en) System migration method and device, electronic equipment and storage medium
CN108809722B (en) Method, device and storage medium for deploying Kubernetes cluster
JP7391862B2 (en) AUTOMATICALLY DEPLOYED INFORMATION TECHNOLOGY (IT) SYSTEMS AND METHODS
EP3686739B1 (en) Method and system for enabling agentless backup and restore operations on a container orchestration platform
EP2306320B1 (en) Server image migration
US20160335066A1 (en) System and method for automatically deploying cloud
CN108089913B (en) Virtual machine deployment method of super-fusion system
CN113032085A (en) Management method, device, server, management system and medium of cloud operating system
CN109587331B (en) Method and system for automatically repairing cloud mobile phone fault
US11886886B2 (en) System and method for runtime synchronization and authentication of pre-boot device drivers for a rescue operating system
CN108509215B (en) System software replacing method and device, terminal equipment and storage medium
CN106873970B (en) Installation method and device of operating system
CN108319492B (en) Method, device and system for resetting physical machine
CN105450759A (en) System mirror image management method and device
CN105068836A (en) SAS (serial attached SCSI) network based remotely-shareable start-up system
CN112579008A (en) Storage deployment method, device, equipment and storage medium of container arrangement engine
CN114968477A (en) Container heat transfer method and container heat transfer device
US20230229481A1 (en) Provisioning dpu management operating systems
US20230229480A1 (en) Provisioning dpu management operating systems using firmware capsules
CN112925653B (en) Virtualization cluster expansion method, related equipment and computer readable storage medium
US11295018B1 (en) File system modification
US11575763B2 (en) System and method for managing configuration data of monitoring agents
CN104572255B (en) A kind of multilayer application trustship method, apparatus and system
CN104461757A (en) Method and device for restoring virtual machines
CN110688130A (en) Physical machine deployment method, physical machine deployment device, readable storage medium and electronic equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200505

RJ01 Rejection of invention patent application after publication