CN108763405A - Service data migration method, device and system and readable storage medium - Google Patents
Service data migration method, device and system and readable storage medium Download PDFInfo
- Publication number
- CN108763405A CN108763405A CN201810497592.0A CN201810497592A CN108763405A CN 108763405 A CN108763405 A CN 108763405A CN 201810497592 A CN201810497592 A CN 201810497592A CN 108763405 A CN108763405 A CN 108763405A
- Authority
- CN
- China
- Prior art keywords
- data
- business datum
- virtual
- mirror image
- machine
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000013508 migration Methods 0.000 title claims abstract description 31
- 230000005012 migration Effects 0.000 title claims abstract description 31
- 230000005540 biological transmission Effects 0.000 claims description 24
- 238000004590 computer program Methods 0.000 claims description 14
- 238000011084 recovery Methods 0.000 claims description 12
- 238000006243 chemical reaction Methods 0.000 claims description 10
- 230000001617 migratory effect Effects 0.000 claims description 3
- 238000007711 solidification Methods 0.000 claims 2
- 230000008023 solidification Effects 0.000 claims 2
- 238000005516 engineering process Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 4
- 238000012795 verification Methods 0.000 description 4
- 150000001875 compounds Chemical class 0.000 description 3
- 238000010009 beating Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 239000012141 concentrate Substances 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a business data migration method, which comprises the following steps: determining base image data and service data of a source end host; and sending the base mirror image data and the service data to a destination end so that the destination end recovers the base mirror image data and the service data of a host of the destination end through the base mirror image data and the service data. Therefore, in the scheme, when the service data is migrated, the service data is not only needed to be migrated to the destination, but also needed to be migrated simultaneously, so that the overall rapid and seamless migration of the service system can be realized, and the migration of the service system is simpler and more convenient; the invention also discloses a service data migration device, a system and a computer readable storage medium, which can also realize the technical scheme.
Description
Technical field
The present invention relates to business datum migrating technology fields, more specifically to a kind of business datum moving method, dress
It sets, system and computer readable storage medium.
Background technology
Currently, in the industry all in the construction of concern cloud computing, but in terms of business datum migration, such as between public cloud,
It is not convenient in terms of business datum migration and deployment between private clound and public cloud, between other virtualized environments and cloud
Data Migration mode.Specifically, the migration for realizing business datum at present, needs to re-establish new system ring in destination
Then border redeploys the business datum of source in newly-established system environments, this migration pattern is complex, needs
New system environments is re-established, and during data redeploy and distribute, verification to data and the behaviour such as compound
Make relatively complicated, can not ensure the safety of Data Migration.
Therefore, how business datum is migrated, is those skilled in the art's problem to be solved.
Invention content
The purpose of the present invention is to provide a kind of business datum moving method, device, system and computer-readable storage mediums
Matter simply, easily migrates business datum with realizing.
To achieve the above object, an embodiment of the present invention provides following technical solutions:
A kind of business datum moving method, the method includes:
Determine the base mirror image data and business datum of source end host;
The base mirror image data and the business datum are sent to destination, so that the destination passes through the base mirror
As data and the business datum restore the base mirror image data and business datum of purpose end main frame.
Wherein, the base mirror image data and business datum of the determining source end host, including:
Determine the base mirror image data and virtual-machine data of the source end host;
According to the size of data of the virtual-machine data, the message transmission rate of source to destination, the source can between
At least one of disconnected business duration demand judges whether to need to execute the first snapshot operation to the virtual-machine data;
If desired, then the curing data of the virtual-machine data is generated, and using the curing data as the business number
According to;If not needing, using the virtual-machine data as the business datum.
Wherein, snapshot operation if desired is executed to the virtual-machine data, then the business datum moving method further includes:
Determine that the source end host executes newly generated virtual-machine data time interval and the execution of the second snapshot operation
Number;Wherein, the newly generated virtual-machine data is produced by the source end host executes after first snapshot operation
's;
The is executed to the newly generated virtual-machine data of the source end host according to the time interval and the execution number
Two snapshot operations, and it is sent to the destination by the incremental data that second snapshot operation is generated is executed, so that described
Destination restores the virtual-machine data of purpose end main frame according to the incremental data.
A kind of business datum moving apparatus, including:
Data determining module, the base mirror image data for determining source end host and business datum;
Data transmission blocks, for the base mirror image data and the business datum to be sent to destination, so that described
Destination carries out the base mirror image data and business datum of purpose end main frame by the base mirror image data and the business datum
Restore.
Wherein, the data determining module includes:
First determination unit, the base mirror image data for determining the source end host and virtual-machine data;
Judging unit, for according to the size of data of the virtual-machine data, the message transmission rate of source to destination,
The source can be interrupted at least one of business duration demand, judge whether to need to execute first soon to the virtual-machine data
According to operation;
First snapshot operation execution unit when for needing to execute the first snapshot operation to the virtual-machine data, generates
The curing data of the virtual-machine data;
Business datum determination unit will be described solid when for needing to execute the first snapshot operation to the virtual-machine data
Change data as the business datum;When need not execute the first snapshot operation to the virtual-machine data, by the virtual machine
Data are as the business datum.
Wherein, the data determining module further includes:
Second determination unit, for determining that the source end host executes the second snapshot operation to newly generated virtual-machine data
Time interval and execute number;Wherein, the newly generated virtual-machine data is that the source end host executes described first soon
Caused by after operation;
Second snapshot operation execution unit is used for according to the time interval and the execution number to the source end host
Newly generated virtual-machine data executes the second snapshot operation;
Transmission unit is sent to the destination for will execute the incremental data that second snapshot operation is generated,
So that the destination restores the virtual-machine data of purpose end main frame according to the incremental data.
A kind of computer readable storage medium is stored with computer program on the computer readable storage medium, described
The step of above-mentioned business datum moving method based on source is realized when computer program is executed by processor.
A kind of business datum moving method, the method includes:
Receive the base mirror image data and business datum of the source end host that source is sent;
According to the base mirror image data and the business datum, base mirror image data and business datum to purpose end main frame into
Row restores.
Wherein, after the base mirror image data and business datum of the source end host that the reception source is sent, further include:
Judge the base mirror image data received and the format of the business datum, if scheduled with the source end host
Format is identical;
If it is different, then carrying out format conversion to the base mirror image data and the business datum, transformed base mirror is utilized
As data and business datum execute the step of base mirror image data and business datum to purpose end main frame restores.
Wherein, described according to the base mirror image data and the business datum, base mirror image data to purpose end main frame and
Business datum is restored, including:
The base mirror image data is distributed to corresponding virtual machine in purpose end main frame, and creates the original of each virtual machine
Virtual-machine data;
If the business datum includes virtual-machine data, corresponding original virtual is replaced using the virtual-machine data
Machine data;
If the business datum includes the curing data of virtual-machine data, replaced using the curing data corresponding
Original virtual machine data.
Wherein, further include:
Receive the incremental data that the source is sent;
Restore the virtual-machine data of corresponding virtual machine using the incremental data;
Wherein, the incremental data is the source according to determining time interval and executes number, to the source master
Machine newly generated virtual-machine data after first snapshot operation executes what snapshot operation generated.
A kind of business datum moving apparatus, including:
Data reception module, the base mirror image data and business datum of the source end host for receiving source transmission;
Data recovery module is used for according to the base mirror image data and the business datum, to the base mirror of purpose end main frame
As data and business datum are restored.
Wherein, further include:
Judgment module, for judge reception the base mirror image data and the business datum format, if with it is described
The scheduled format of source end host is identical;
Format converting module, in the base mirror image data of reception and the format of the business datum and the source
When the scheduled format difference of host, format conversion is carried out to the base mirror image data and the business datum;Wherein, the data
Recovery module is specifically used for executing the base mirror image to purpose end main frame using transformed base mirror image data and business datum
Data and business datum are restored.
Wherein, the data recovery module includes:
File distributing unit, for the base mirror image data to be distributed to corresponding virtual machine in purpose end main frame;
Virtual-machine data creating unit, the original virtual machine data for creating each virtual machine;
First replacement unit, for when the business datum includes virtual-machine data, utilizing the virtual-machine data
Replace corresponding original virtual machine data;
Second replacement unit, for when the business datum includes the curing data of virtual-machine data, using described
Curing data replaces corresponding original virtual machine data.
Wherein, further include:
Incremental data receiving module, the incremental data sent for receiving the source;
Virtual-machine data recovery module, the virtual-machine data for restoring corresponding virtual machine using the incremental data;Its
In, the incremental data is the source according to determining time interval and executes number, to the source end host described the
Newly generated virtual-machine data executes what snapshot operation generated after one snapshot operation.
A kind of computer readable storage medium is stored with computer program on the computer readable storage medium, described
The step of above-mentioned business datum moving method based on destination is realized when computer program is executed by processor.
A kind of business datum migratory system, including source and destination:
The source is used to determine the base mirror image data and business datum of source end host, and by the base mirror image data and institute
It states business datum and is sent to destination;
The destination is used for according to the base mirror image data and the business datum, to the base mirror image of purpose end main frame
Data and business datum are restored.
By above scheme it is found that a kind of business datum moving method provided in an embodiment of the present invention, the method includes:
Determine the base mirror image data and business datum of source end host;The base mirror image data and the business datum are sent to purpose
End so that the destination by the base mirror image data and the business datum to the base mirror image data and industry of purpose end main frame
Business data are restored.
As it can be seen that when in the present solution, carrying out the migration of business datum, migrated to purpose necessary not only for by business datum
End, it is also necessary to the operating system data of host where business datum are carried out at the same time migration, can realize operation system in this way
Whole quick seamless migration, keeps the migration of operation system more simple and convenient;The invention also discloses a kind of business numbers
According to moving apparatus, system and computer readable storage medium, above-mentioned technical proposal equally may be implemented.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of business datum moving method flow diagram disclosed by the embodiments of the present invention;
Fig. 2 is a kind of business datum moving apparatus structural schematic diagram disclosed by the embodiments of the present invention;
Fig. 3 is another business datum moving method flow diagram disclosed by the embodiments of the present invention;
Fig. 4 is another business datum moving apparatus structural schematic diagram disclosed by the embodiments of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of business datum moving method, device, system and computer readable storage medium,
Simply, easily business datum is migrated with realizing.
Referring to Fig. 1, a kind of business datum moving method provided in an embodiment of the present invention, the method includes:
S101, the base mirror image data and business datum for determining source end host;
Specifically, being to migrate business datum to destination from source in the present embodiment, source end host is industry to be migrated
The host for data of being engaged in, base mirror image data are the basic data of source end host, the such as conventional data of operating system, business datum
For data such as database, static images.When business datum migration to be carried out, it is necessary first to the determination business host to be migrated,
The business host is the source end host in this programme, and then determines the base mirror image and business datum of source end host, to carry out
The migration of data.
The base mirror image data and the business datum are sent to destination by S102, so that the destination is described in
Base mirror image data and the business datum restore the base mirror image data and business datum of purpose end main frame.
It is understood that after determining the base mirror image and business datum of source end host, it can be by the base mirror image and industry
Data copy of being engaged in is to destination, so that destination carries out setting for basic data by the base mirror image data to the host of destination
It sets, and then the business datum of source is directly replaced into data caused by destination, to realize the entirety to business datum
Migration, this migration pattern need not realize business datum and system verification and it is compound it is equal operate, it is simple and convenient.
Based on the embodiment of above-mentioned business datum moving method, in the present embodiment, the base of determining source end host is provided
The specific method of mirror image data and business datum, this method include:
Determine the base mirror image data and virtual-machine data of the source end host;
According to the size of data of the virtual-machine data, the message transmission rate of source to destination, the source can between
At least one of disconnected business duration demand judges whether to need to execute the first snapshot operation to the virtual-machine data;
If desired, then the curing data of the virtual-machine data is generated, and using the curing data as the business number
According to;If not needing, using the virtual-machine data as the business datum.
Specifically, in the present embodiment, business datum may include any one in following two parts, a part is source
The virtual-machine data of end main frame, another part are consolidated to what the virtual-machine data of source end host generate after the first snapshot operation
Change data.The virtual-machine data is the virtual machine file that the virtual machine in host generates.To before destination transmission data,
It needs to be determined that the particular content of business datum, that is to say, that be necessary to determine whether to need to execute snapshot operation to virtual-machine data.
In the present embodiment, it is size of data, the message transmission rate of source to destination, institute by virtual-machine data
It states source and can be interrupted at least one of business duration demand condition and judged.Such as:Judge that the data of virtual-machine data are big
Whether small be more than predetermined threshold, if being more than the threshold value, when illustrating to consume a large amount of when migrating the virtual-machine data
Between, at this moment in order to ensure source end host normal operation and virtual-machine data normal access, can be at the moment to virtual
Machine data execute snapshot operation, generate snapshot data;It, can be without snapshot operation if not to be more than the threshold value;It can be with
It can be interrupted business duration demand according to source to be determined, it, can be by virtual-machine data if can be interrupted in duration in the business
It migrates to destination, has no effect on the normal operation of business, it at this moment can be without snapshot data;Otherwise, then it needs to virtual
Machine data carry out snapshot data;If current message transmission rate is relatively low, snapshot data can be equally carried out.
Also, comprehensive judgement can also be carried out according to these three conditions, to preferably decide whether to carry out snapshot processing.
Such as:Although virtual-machine data is not above predetermined threshold, but the reliability of its business is very high, that is, the business can between
Disconnected duration is very short, and at this moment virtual-machine data is generating always, it is therefore desirable to execute snapshot operation to virtual-machine data;It can see
Go out, if it needs to execute snapshot operation, needs to be determined according to physical condition, it is not specific herein to limit.
It is understood that if desired snapshot operation is executed to virtual-machine data, then the industry when carrying out Data Migration
Business data just include the curing data of virtual-machine data, by way of executing snapshot processing to virtual machine, can not influence source
The normal operation of end main frame after producing new data in source end host, can restore mesh by newly-generated incremental data
The virtual-machine data at end can be realized to the migration of the whole of virtual-machine data by multi-pass operation.
Based on upper business datum moving method embodiment, snapshot operation if desired is executed to virtual-machine data, then at this
In embodiment, which further includes:
Determine that the source end host executes newly generated virtual-machine data time interval and the execution of the second snapshot operation
Number;Wherein, the newly generated virtual-machine data is produced by the source end host executes after first snapshot operation
's;
The is executed to the newly generated virtual-machine data of the source end host according to the time interval and the execution number
Two snapshot operations, and it is sent to the destination by the incremental data that second snapshot operation is generated is executed, so that described
Destination restores the virtual-machine data of purpose end main frame according to the incremental data.
Specifically, can be interrupted according to the size of data of virtual-machine data, the message transmission rate of source to destination, source
These three conditions determination of business duration demand needs after executing snapshot operation, can also determine subsequently newly-generated to source end host
Virtual-machine data beats the time interval and number of operations of snapshot, and the time interval and number of operations equally can be according to above threes
Condition is determined, such as:The virtual-machine data that source end host generates is more, then the time interval is smaller, and number of operations is also got over
It is more.
It should be noted that when determining time interval and executing number, not only carried out according to above three condition true
It is fixed, snapshot operation can also be just executed after the virtual-machine data for detecting source end host generation predefined size, it is more in this way
Secondary execution snapshot operation can reduce the size for sending snapshot data, when the snapshot data of transmission is smaller required gradually
Between it is smaller, to when transmission time meet can be interrupted business duration demand after, can realize the entirety of all business datums
Migration, it can be seen that in this way, for the system or group system of data volume bigger business complexity, Ke Yitong
The mode for crossing while repeatedly beating each vm of whole system snapshot realizes whole quick, the seamless migration of operation system, can
To fast implement the true of verification system and operation system.
Business datum moving apparatus provided in an embodiment of the present invention is introduced below, business datum described below is moved
Moving device can be cross-referenced with above-described business datum moving method.
Referring to Fig. 2, a kind of business datum moving apparatus provided in an embodiment of the present invention, described device includes:
Data determining module 110, the base mirror image data for determining source end host and business datum;
Data transmission blocks 120, for the base mirror image data and the business datum to be sent to destination, so that institute
State destination by the base mirror image data and the business datum to the base mirror image data of purpose end main frame and business datum into
Row restores.
Wherein, the data determining module includes:
First determination unit, the base mirror image data for determining the source end host and virtual-machine data;
Judging unit, for according to the size of data of the virtual-machine data, the message transmission rate of source to destination,
The source can be interrupted at least one of business duration demand, judge whether to need to execute first soon to the virtual-machine data
According to operation;
First snapshot operation execution unit when for needing to execute the first snapshot operation to the virtual-machine data, generates
The curing data of the virtual-machine data;
Business datum determination unit will be described solid when for needing to execute the first snapshot operation to the virtual-machine data
Change data as the business datum;When need not execute the first snapshot operation to the virtual-machine data, by the virtual machine
Data are as the business datum.
Wherein, the data determining module further includes:
Second determination unit, for determining that the source end host executes the second snapshot operation to newly generated virtual-machine data
Time interval and execute number;Wherein, the newly generated virtual-machine data is that the source end host executes described first soon
Caused by after operation;
Second snapshot operation execution unit is used for according to the time interval and the execution number to the source end host
Newly generated virtual-machine data executes the second snapshot operation;
Transmission unit is sent to the destination for will execute the incremental data that second snapshot operation is generated,
So that the destination restores the virtual-machine data of purpose end main frame according to the incremental data.
The embodiment of the present invention provides a kind of business datum migration equipment, including:Memory, for storing computer program;
Processor realizes the first business datum moving method step based on source when for executing the computer program;
The embodiment of the present invention provides a kind of computer readable storage medium, is stored on the computer readable storage medium
The step of computer program, the computer program realizes the first business datum moving method when being executed by processor.
Wherein, which may include:USB flash disk, mobile hard disk, read-only memory (Read-Only Memory,
ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. are various can store program
The medium of code.
Wherein, the step of the first business datum moving method specifically includes:
Determine the base mirror image data and business datum of source end host;The base mirror image data and the business datum are sent
To destination so that the destination by the base mirror image data and the business datum to the base mirror image number of purpose end main frame
According to and business datum restored.
Wherein, the base mirror image data and business datum of the determining source end host, including:
Determine the base mirror image data and virtual-machine data of the source end host;Data according to the virtual-machine data are big
Message transmission rate, the source of small, source to destination can be interrupted at least one of business duration demand, judge whether
It needs to execute the first snapshot operation to the virtual-machine data;If desired, then the curing data of the virtual-machine data is generated, and
Using the curing data as the business datum;If not needing, using the virtual-machine data as the business datum.
Wherein, snapshot operation if desired is executed to the virtual-machine data, then the business datum moving method further includes:
Determine that the source end host executes the time interval of the second snapshot operation to newly generated virtual-machine data and executes number;Its
In, the newly generated virtual-machine data is caused by the source end host executes after first snapshot operation;According to
The time interval and the execution number execute the second snapshot operation to the newly generated virtual-machine data of the source end host, and
The incremental data that second snapshot operation is generated will be executed and be sent to the destination, so that the destination is according to
Incremental data restores the virtual-machine data of purpose end main frame.
To provided in an embodiment of the present invention, the business datum moving method based on destination is introduced below, is described below
The business datum moving method based on destination can be mutual with the above-described business datum moving method based on source
Reference, something in common just repeat no more.
Referring to Fig. 3, a kind of business datum moving method provided in an embodiment of the present invention, the method includes:
S201, the base mirror image data and business datum for receiving the source end host that source is sent;
S202, according to the base mirror image data and the business datum, to the base mirror image data and business of purpose end main frame
Data are restored.
Specifically, after determining the base mirror image and business datum of source end host, it can be by the base mirror image and business datum
It is copied to destination, the setting so as to destination by the base mirror image data to the host progress basic data of destination, in turn
The business datum of source is directly replaced into data caused by destination, to realize the bulk migration to business datum, this
Kind of migration pattern need not realize business datum and system verification and it is compound it is equal operate, it is simple and convenient.
Based on above-mentioned business datum moving method embodiment, in the present embodiment, the source master for receiving source and sending
After the base mirror image data and business datum of machine, further include:
Judge the base mirror image data received and the format of the business datum, if scheduled with the source end host
Format is identical;
If it is different, then carrying out format conversion to the base mirror image data and the business datum, transformed base mirror is utilized
As data and business datum execute the step of base mirror image data and business datum to purpose end main frame restores.
Specifically, in the present embodiment, in order to ensure source environment virtualization technology and destination environment virtualization
Technology is consistent, after destination receives data, format according to data is needed to judge the virtualization technology and destination of source
Whether virtualization technology is consistent;If it is inconsistent, needing to carry out format conversion, to use in destination.Mainstream at present
There is kvm, zen, vMWare etc. to concentrate popular virtualization technology, each virtualization technology and base mirror image data, virtual machine number
It is corresponding according to, the Format Type of snapshot data, such as:The virtual machine of kvm technologies, base mirror image be raw, vm file be qcow2, it is fast
According to being qcow2;When carrying out format conversion to data, it includes base mirror image data, virtual-machine data and fast to need the data converted
According to data.
Based on the embodiment of above-mentioned business datum moving method, in the present embodiment, according to base mirror image data and business number
According to restoring to the base mirror image data and business datum of purpose end main frame, specifically include:
The base mirror image data is distributed to corresponding virtual machine in purpose end main frame, and creates the original of each virtual machine
Virtual-machine data;
If the business datum includes virtual-machine data, corresponding original virtual is replaced using the virtual-machine data
Machine data;
If the business datum includes the curing data of virtual-machine data, replaced using the curing data corresponding
Original virtual machine data.
Specifically, when destination carries out the recovery of business datum according to base mirror image data and business datum, source is sent
Base mirror image as private mirror image, each virtual machine being distributed in purpose end main frame creates virtual machine file by the mirror image, and
By the virtual machine file that covering virtual machine newly creates after the virtual-machine data renaming of source transmission.If wrapped in the business datum
Snapshot data is included, after at this moment snapshot data migration comes, needs to change corresponding virtual machine file, snapshot document
Backfile is directed toward, and makes the customer service virtual machine for moving to destination according to the format normal operation of destination.When snapshot number
After being connected to corresponding virtual machine file, virtual machine is reopened, and changes the ip of virtual machine, so as to complete this business
The migration of data.
It should be noted that if source end host is also being run, at this moment source also will produce new virtual-machine data, at this moment
Source also will produce new incremental data, and be sent to destination, and therefore, which further includes:
Receive the incremental data that the source is sent;
Restore the virtual-machine data of corresponding virtual machine using the incremental data;
Wherein, the incremental data is the source according to determining time interval and executes number, to the source master
Machine newly generated virtual-machine data after first snapshot operation executes what snapshot operation generated.
As can be seen that after newly generated snapshot increment is sent to destination by source, destination is repaiied according to the incremental data
Change corresponding virtual-machine data, to the merging for the new legacy data realized, by repeatedly beating each virtual machine of whole system
The mode of snapshot realizes whole quick, the seamless migration of operation system.
Referring to Fig. 4, a kind of business datum moving apparatus provided in an embodiment of the present invention, described device includes:
Data reception module 210, the base mirror image data and business datum of the source end host for receiving source transmission;
Data recovery module 220 is used for according to the base mirror image data and the business datum, to the base of purpose end main frame
Mirror image data and business datum are restored.
Wherein, this programme further includes:
Judgment module, for judge reception the base mirror image data and the business datum format, if with it is described
The scheduled format of source end host is identical;
Format converting module, in the base mirror image data of reception and the format of the business datum and the source
When the scheduled format difference of host, format conversion is carried out to the base mirror image data and the business datum;Wherein, the data
Recovery module is specifically used for executing the base mirror image to purpose end main frame using transformed base mirror image data and business datum
Data and business datum are restored.
Wherein, the data recovery module includes:
File distributing unit, for the base mirror image data to be distributed to corresponding virtual machine in purpose end main frame;
Virtual-machine data creating unit, the original virtual machine data for creating each virtual machine;
First replacement unit, for when the business datum includes virtual-machine data, utilizing the virtual-machine data
Replace corresponding original virtual machine data;
Second replacement unit, for when the business datum includes the curing data of virtual-machine data, using described
Curing data replaces corresponding original virtual machine data.
Wherein, further include:
Incremental data receiving module, the incremental data sent for receiving the source;
Virtual-machine data recovery module, the virtual-machine data for restoring corresponding virtual machine using the incremental data;Its
In, the incremental data is the source according to determining time interval and executes number, to the source end host described the
Newly generated virtual-machine data executes what snapshot operation generated after one snapshot operation.
The embodiment of the present invention provides a kind of business datum migration equipment, including:Memory, for storing computer program;
Processor realizes the second business datum moving method step when for executing the computer program;
The embodiment of the present invention provides a kind of computer readable storage medium, is stored on the computer readable storage medium
Computer program realizes the second business datum moving method based on destination when the computer program is executed by processor
Step.
Wherein, which may include:USB flash disk, mobile hard disk, read-only memory (Read-Only Memory,
ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. are various can store program
The medium of code.
Wherein, the step of the second business datum moving method specifically includes:
Receive the base mirror image data and business datum of the source end host that source is sent;According to the base mirror image data and described
Business datum restores the base mirror image data and business datum of purpose end main frame.
Wherein, after the base mirror image data and business datum of the source end host that the reception source is sent, further include:Judge
The format of the base mirror image data and the business datum that receive, if identical as the scheduled format of the source end host;If
Difference then carries out format conversion to the base mirror image data and the business datum, utilizes transformed base mirror image data and industry
Business data execute the step of base mirror image data and business datum to purpose end main frame restores.
Wherein, described according to the base mirror image data and the business datum, base mirror image data to purpose end main frame and
Business datum is restored, including:The base mirror image data is distributed to corresponding virtual machine in purpose end main frame, and is created every
The original virtual machine data of a virtual machine;If the business datum includes virtual-machine data, the virtual-machine data is utilized
Replace corresponding original virtual machine data;If the business datum includes the curing data of virtual-machine data, described in
Curing data replaces corresponding original virtual machine data.
Wherein, further include:Receive the incremental data that the source is sent;Restore corresponding virtual machine using the incremental data
Virtual-machine data;Wherein, the incremental data is the source according to determining time interval and executes number, to the source
End main frame newly generated virtual-machine data after first snapshot operation executes what snapshot operation generated.
An embodiment of the present invention provides a kind of business datum migratory systems, including source and destination:
The source is used to determine the base mirror image data and business datum of source end host, and by the base mirror image data and institute
It states business datum and is sent to destination;
The destination is used for according to the base mirror image data and the business datum, to the base mirror image of purpose end main frame
Data and business datum are restored.
Wherein, source determines the base mirror image data and business datum of source end host, including:
Determine the base mirror image data and virtual-machine data of the source end host;Data according to the virtual-machine data are big
Message transmission rate, the source of small, source to destination can be interrupted at least one of business duration demand, judge whether
It needs to execute the first snapshot operation to the virtual-machine data;If desired, then the curing data of the virtual-machine data is generated, and
Using the curing data as the business datum;If not needing, using the virtual-machine data as the business datum.
Wherein, source is additionally operable to:Determine that the source end host executes the second snapshot operation to newly generated virtual-machine data
Time interval and execute number;Wherein, the newly generated virtual-machine data is that the source end host executes described first soon
Caused by after operation;According to the time interval and the execution number to the newly generated virtual machine of the source end host
Data execute the second snapshot operation, and are sent to the purpose by the incremental data that second snapshot operation is generated is executed
End, so that the destination restores the virtual-machine data of purpose end main frame according to the incremental data.
Wherein, after the base mirror image data and business datum of the source end host that destination reception source is sent, further include:Sentence
The format of the base mirror image data and the business datum that disconnecting is received, if identical as the scheduled format of the source end host;
If it is different, then carry out format conversion to the base mirror image data and the business datum, using transformed base mirror image data and
Business datum executes the step of base mirror image data and business datum to purpose end main frame restores.
Wherein, the destination is according to the base mirror image data and the business datum, to the base mirror image of purpose end main frame
Data and business datum are restored, including:The base mirror image data is distributed to corresponding virtual machine in purpose end main frame, and
Create the original virtual machine data of each virtual machine;If the business datum includes virtual-machine data, utilize described virtual
Machine data replace corresponding original virtual machine data;If the business datum includes the curing data of virtual-machine data, profit
Corresponding original virtual machine data are replaced with the curing data.
Wherein, destination is additionally operable to:Receive the incremental data that the source is sent;Restore to correspond to using the incremental data
The virtual-machine data of virtual machine;Wherein, the incremental data is the source according to determining time interval and executes number, right
The source end host newly generated virtual-machine data after first snapshot operation executes what snapshot operation generated.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with other
The difference of embodiment, just to refer each other for identical similar portion between each embodiment.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest range caused.
Claims (17)
1. a kind of business datum moving method, which is characterized in that the method includes:
Determine the base mirror image data and business datum of source end host;
The base mirror image data and the business datum are sent to destination, so that the destination passes through the base mirror image number
According to and the business datum base mirror image data and business datum of purpose end main frame are restored.
2. business datum moving method according to claim 1, which is characterized in that the base mirror image of the determining source end host
Data and business datum, including:
Determine the base mirror image data and virtual-machine data of the source end host;
It can be interrupted industry according to the size of data of the virtual-machine data, the message transmission rate of source to destination, the source
At least one of duration demand of being engaged in judges whether to need to execute the first snapshot operation to the virtual-machine data;
If desired, then the curing data of the virtual-machine data is generated, and using the curing data as the business datum;If
It does not need, then using the virtual-machine data as the business datum.
3. business datum moving method according to claim 2, which is characterized in that if desired held to the virtual-machine data
Row snapshot operation, then the business datum moving method further include:
Determine that the source end host executes the time interval of the second snapshot operation to newly generated virtual-machine data and executes number;
Wherein, the newly generated virtual-machine data is caused by the source end host executes after first snapshot operation;
It is fast that second is executed to the newly generated virtual-machine data of the source end host according to the time interval and the execution number
It is sent to the destination according to operation, and by the incremental data that second snapshot operation is generated is executed, so that the purpose
Restore the virtual-machine data of purpose end main frame according to the incremental data in end.
4. a kind of business datum moving apparatus, which is characterized in that including:
Data determining module, the base mirror image data for determining source end host and business datum;
Data transmission blocks, for the base mirror image data and the business datum to be sent to destination, so that the purpose
The base mirror image data and business datum of purpose end main frame are restored by the base mirror image data and the business datum at end.
5. business datum moving apparatus according to claim 4, which is characterized in that the data determining module includes:
First determination unit, the base mirror image data for determining the source end host and virtual-machine data;
Judging unit, for according to the size of data of the virtual-machine data, message transmission rate of source to destination, described
Source can be interrupted at least one of business duration demand, judge whether to need to execute the first snapshot behaviour to the virtual-machine data
Make;
First snapshot operation execution unit, when for needing to execute the first snapshot operation to the virtual-machine data, described in generation
The curing data of virtual-machine data;
Business datum determination unit, when for needing to execute the first snapshot operation to the virtual-machine data, by the solidification number
According to as the business datum;When need not execute the first snapshot operation to the virtual-machine data, by the virtual-machine data
As the business datum.
6. business datum moving apparatus according to claim 5, which is characterized in that the data determining module further includes:
Second determination unit, for determine the source end host to newly generated virtual-machine data execute the second snapshot operation when
Between be spaced and execute number;Wherein, the newly generated virtual-machine data is that the source end host executes the first snapshot behaviour
Caused by after making;
Second snapshot operation execution unit, for newly being produced to the source end host according to the time interval and the execution number
Raw virtual-machine data executes the second snapshot operation;
Transmission unit is sent to the destination for will execute the incremental data that second snapshot operation is generated, so that
The destination restores the virtual-machine data of purpose end main frame according to the incremental data.
7. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes the business datum moving method as described in any one of claims 1 to 3 when the computer program is executed by processor
The step of.
8. a kind of business datum moving method, which is characterized in that the method includes:
Receive the base mirror image data and business datum of the source end host that source is sent;
According to the base mirror image data and the business datum, the base mirror image data and business datum of purpose end main frame are carried out extensive
It is multiple.
9. business datum moving method according to claim 8, which is characterized in that the source master for receiving source and sending
After the base mirror image data and business datum of machine, further include:
Judge the base mirror image data received and the format of the business datum, if with the scheduled format of the source end host
It is identical;
If it is different, then carrying out format conversion to the base mirror image data and the business datum, transformed base mirror image number is utilized
According to and business datum execute the step of base mirror image data and business datum to purpose end main frame restores.
10. business datum moving method according to claim 8 or claim 9, which is characterized in that described according to the base mirror image number
According to and the business datum, the base mirror image data and business datum of purpose end main frame are restored, including:
The base mirror image data is distributed to corresponding virtual machine in purpose end main frame, and creates the original virtual of each virtual machine
Machine data;
If the business datum includes virtual-machine data, corresponding original virtual machine number is replaced using the virtual-machine data
According to;If the business datum includes the curing data of virtual-machine data, replaced using the curing data corresponding original
Virtual-machine data.
11. business datum moving method according to claim 10, which is characterized in that further include:
Receive the incremental data that the source is sent;
Restore the virtual-machine data of corresponding virtual machine using the incremental data;
Wherein, the incremental data is the source according to determining time interval and executes number, exists to the source end host
Newly generated virtual-machine data executes what snapshot operation generated after first snapshot operation.
12. a kind of business datum moving apparatus, which is characterized in that including:
Data reception module, the base mirror image data and business datum of the source end host for receiving source transmission;
Data recovery module is used for according to the base mirror image data and the business datum, to the base mirror image number of purpose end main frame
According to and business datum restored.
13. business datum moving apparatus according to claim 12, which is characterized in that further include:
Judgment module, the format of the base mirror image data and the business datum for judging to receive, if with the source
The scheduled format of host is identical;
Format converting module, in the base mirror image data of reception and the format of the business datum and the source end host
When scheduled format difference, format conversion is carried out to the base mirror image data and the business datum;Wherein, the data are restored
Module is specifically used for executing the base mirror image data to purpose end main frame using transformed base mirror image data and business datum
And business datum is restored.
14. business datum moving apparatus according to claim 12 or 13, which is characterized in that the data recovery module packet
It includes:
File distributing unit, for the base mirror image data to be distributed to corresponding virtual machine in purpose end main frame;
Virtual-machine data creating unit, the original virtual machine data for creating each virtual machine;
First replacement unit, for when the business datum includes virtual-machine data, being replaced using the virtual-machine data
Corresponding original virtual machine data;
Second replacement unit, for when the business datum includes the curing data of virtual-machine data, utilizing the solidification
Data replace corresponding original virtual machine data.
15. business datum moving apparatus according to claim 14, which is characterized in that further include:
Incremental data receiving module, the incremental data sent for receiving the source;
Virtual-machine data recovery module, the virtual-machine data for restoring corresponding virtual machine using the incremental data;Wherein, institute
Stating incremental data is the source according to determining time interval and executes number, to the source end host in first snapshot
Newly generated virtual-machine data executes what snapshot operation generated after operation.
16. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes the business datum migration side as described in any one of claim 8 to 11 when the computer program is executed by processor
The step of method.
17. a kind of business datum migratory system, which is characterized in that including source and destination:
The source is used to determine the base mirror image data and business datum of source end host, and by the base mirror image data and the industry
Business data are sent to destination;
The destination is used for according to the base mirror image data and the business datum, to the base mirror image data of purpose end main frame
And business datum is restored.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810497592.0A CN108763405B (en) | 2018-05-22 | 2018-05-22 | Service data migration method, device and system and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810497592.0A CN108763405B (en) | 2018-05-22 | 2018-05-22 | Service data migration method, device and system and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108763405A true CN108763405A (en) | 2018-11-06 |
CN108763405B CN108763405B (en) | 2021-10-19 |
Family
ID=64004774
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810497592.0A Active CN108763405B (en) | 2018-05-22 | 2018-05-22 | Service data migration method, device and system and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108763405B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109684304A (en) * | 2018-12-13 | 2019-04-26 | 中国联合网络通信集团有限公司 | Data migration method and device |
CN110134330A (en) * | 2019-04-22 | 2019-08-16 | 国云科技股份有限公司 | Cloud disk migratory system and method under a kind of cloudy environment |
CN110188005A (en) * | 2019-05-31 | 2019-08-30 | 北京金山云网络技术有限公司 | Host creation and data back up method, device, electronic equipment and storage medium |
CN110554930A (en) * | 2019-07-25 | 2019-12-10 | 重庆小雨点小额贷款有限公司 | Data storage method and related equipment |
CN110737512A (en) * | 2019-10-25 | 2020-01-31 | 北京浪潮数据技术有限公司 | Cross-platform virtual machine online migration method and related components |
CN111090491A (en) * | 2019-07-03 | 2020-05-01 | 杭州海康威视系统技术有限公司 | Method and device for recovering task state of virtual machine and electronic equipment |
WO2021017890A1 (en) * | 2019-07-29 | 2021-02-04 | 华为技术有限公司 | Communication method and communication device |
CN113268202A (en) * | 2021-05-14 | 2021-08-17 | 北京首都在线科技股份有限公司 | System migration method and device, electronic equipment and readable storage medium |
CN115118673A (en) * | 2022-06-28 | 2022-09-27 | 中国平安财产保险股份有限公司 | Service traffic migration method, device, equipment and computer readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101819545A (en) * | 2010-04-09 | 2010-09-01 | 济南银泉科技有限公司 | Method for realizing platform migration by using virtualization technology |
CN103729237A (en) * | 2014-01-07 | 2014-04-16 | 浪潮(北京)电子信息产业有限公司 | Method for transferring virtual machine across storage pools |
US20140237479A1 (en) * | 2013-02-19 | 2014-08-21 | International Business Machines Corporation | Virtual Machine-to-Image Affinity on a Physical Server |
CN106201702A (en) * | 2016-07-19 | 2016-12-07 | 浪潮(北京)电子信息产业有限公司 | The method of virtual machine (vm) migration, system and cloud computing management platform |
CN107885580A (en) * | 2017-11-22 | 2018-04-06 | 深信服科技股份有限公司 | A kind of cloud moving method, device, equipment and storage medium |
-
2018
- 2018-05-22 CN CN201810497592.0A patent/CN108763405B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101819545A (en) * | 2010-04-09 | 2010-09-01 | 济南银泉科技有限公司 | Method for realizing platform migration by using virtualization technology |
US20140237479A1 (en) * | 2013-02-19 | 2014-08-21 | International Business Machines Corporation | Virtual Machine-to-Image Affinity on a Physical Server |
CN103729237A (en) * | 2014-01-07 | 2014-04-16 | 浪潮(北京)电子信息产业有限公司 | Method for transferring virtual machine across storage pools |
CN106201702A (en) * | 2016-07-19 | 2016-12-07 | 浪潮(北京)电子信息产业有限公司 | The method of virtual machine (vm) migration, system and cloud computing management platform |
CN107885580A (en) * | 2017-11-22 | 2018-04-06 | 深信服科技股份有限公司 | A kind of cloud moving method, device, equipment and storage medium |
Non-Patent Citations (2)
Title |
---|
曹志平等: "《未来就绪的信息系统架构》", 31 August 2015, 复旦大学出版社 * |
韩建国等: "《大型企业信息化工程项目群管理实战 神华信息化PMO案例解析》", 30 January 2014, 中国经济出版社 * |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109684304B (en) * | 2018-12-13 | 2020-12-15 | 中国联合网络通信集团有限公司 | Data migration method and device |
CN109684304A (en) * | 2018-12-13 | 2019-04-26 | 中国联合网络通信集团有限公司 | Data migration method and device |
CN110134330A (en) * | 2019-04-22 | 2019-08-16 | 国云科技股份有限公司 | Cloud disk migratory system and method under a kind of cloudy environment |
CN110134330B (en) * | 2019-04-22 | 2022-07-12 | 国云科技股份有限公司 | Cloud disk migration system and method in multi-cloud environment |
CN110188005B (en) * | 2019-05-31 | 2022-03-04 | 北京金山云网络技术有限公司 | Host creating method, data backup method, device, electronic equipment and storage medium |
CN110188005A (en) * | 2019-05-31 | 2019-08-30 | 北京金山云网络技术有限公司 | Host creation and data back up method, device, electronic equipment and storage medium |
CN111090491A (en) * | 2019-07-03 | 2020-05-01 | 杭州海康威视系统技术有限公司 | Method and device for recovering task state of virtual machine and electronic equipment |
CN111090491B (en) * | 2019-07-03 | 2023-10-10 | 杭州海康威视系统技术有限公司 | Virtual machine task state recovery method and device and electronic equipment |
CN110554930A (en) * | 2019-07-25 | 2019-12-10 | 重庆小雨点小额贷款有限公司 | Data storage method and related equipment |
CN110554930B (en) * | 2019-07-25 | 2022-05-20 | 重庆小雨点小额贷款有限公司 | Data storage method and related equipment |
WO2021017890A1 (en) * | 2019-07-29 | 2021-02-04 | 华为技术有限公司 | Communication method and communication device |
CN110737512A (en) * | 2019-10-25 | 2020-01-31 | 北京浪潮数据技术有限公司 | Cross-platform virtual machine online migration method and related components |
CN113268202A (en) * | 2021-05-14 | 2021-08-17 | 北京首都在线科技股份有限公司 | System migration method and device, electronic equipment and readable storage medium |
CN115118673A (en) * | 2022-06-28 | 2022-09-27 | 中国平安财产保险股份有限公司 | Service traffic migration method, device, equipment and computer readable storage medium |
CN115118673B (en) * | 2022-06-28 | 2023-05-26 | 中国平安财产保险股份有限公司 | Service traffic migration method, device, equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108763405B (en) | 2021-10-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108763405A (en) | Service data migration method, device and system and readable storage medium | |
CN109558215B (en) | Backup method, recovery method and device of virtual machine and backup server cluster | |
US10191879B2 (en) | System and method for creating snapshots in openflame environment | |
CN103049308B (en) | Realize the method for live migration of virtual machine, Apparatus and system | |
US9201736B1 (en) | Methods and apparatus for recovery of complex assets in distributed information processing systems | |
US8826272B2 (en) | Planning a reliable migration in a limited stability virtualized environment | |
US9552405B1 (en) | Methods and apparatus for recovery of complex assets in distributed information processing systems | |
US9244676B2 (en) | Virtual machine based controller and upgrade mechanism | |
CN103810058B (en) | Backup method, equipment and system for virtual machine | |
US8103842B2 (en) | Data backup system and method for virtual infrastructure | |
CN104965757A (en) | Virtual machine live migration method, virtual machine migration management apparatus, and virtual machine live migration system | |
CN106802840A (en) | A kind of virtual machine backup, restoration methods and device | |
CN111338774A (en) | Distributed timing task scheduling system and computing device | |
CN106201702A (en) | The method of virtual machine (vm) migration, system and cloud computing management platform | |
EP3288239A1 (en) | Service availability management method and apparatus, and network function virtualization infrastructure thereof | |
CN102594849A (en) | Data backup and recovery method and device, virtual machine snapshot deleting and rollback method and device | |
CN104205095A (en) | Platform for continuous graph update and computation | |
CN105242990A (en) | Cloud platform based data backup method and apparatus | |
CN114637475A (en) | Distributed storage system control method and device and readable storage medium | |
CN109491832A (en) | Data disaster tolerance method and website | |
CN112463296B (en) | Method and device for creating virtual machine | |
CN109582459A (en) | The method and device that the trustship process of application is migrated | |
CN112328365A (en) | Virtual machine migration method, device, equipment and storage medium | |
KR20230024416A (en) | Virtual Machine Migration Methods, Devices, Storage Media and Electronic Devices Between Cloud Platforms | |
JP5352299B2 (en) | High reliability computer system and configuration method thereof |
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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200609 Address after: Nanshan District Xueyuan Road in Shenzhen city of Guangdong province 518055 No. 1001 Nanshan Chi Park building A1 layer Applicant after: SANGFOR TECHNOLOGIES Inc. Address before: Nanshan District Xueyuan Road in Shenzhen city of Guangdong province 518055 No. 1001 Nanshan Chi Park A1 building five floor Applicant before: Shenxin network technology (Shenzhen) Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |