CN109491838A - A kind of method and device handling virtual-machine data - Google Patents

A kind of method and device handling virtual-machine data Download PDF

Info

Publication number
CN109491838A
CN109491838A CN201811296019.XA CN201811296019A CN109491838A CN 109491838 A CN109491838 A CN 109491838A CN 201811296019 A CN201811296019 A CN 201811296019A CN 109491838 A CN109491838 A CN 109491838A
Authority
CN
China
Prior art keywords
storage device
main storage
data transmission
out data
storage equipment
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
CN201811296019.XA
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811296019.XA priority Critical patent/CN109491838A/en
Publication of CN109491838A publication Critical patent/CN109491838A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1479Generic software techniques for error detection or fault masking
    • G06F11/1482Generic software techniques for error detection or fault masking by means of middleware or OS functionality
    • G06F11/1484Generic software techniques for error detection or fault masking by means of middleware or OS functionality involving virtual machines
    • 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/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/45562Creating, deleting, cloning 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/45579I/O management, e.g. providing access to device drivers or storage
    • 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)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of methods for handling virtual-machine data, it include: after receiving the request that virtual machine handles data, judge whether main storage device can work normally, it can such as work normally, the main storage device is then selected to carry out data transmission, it can not such as work normally, then a standby storage equipment is selected to carry out data transmission as main storage device.Also disclose a kind of device for handling virtual-machine data.This programme ensures virtual machine business High Availabitity by deployment storage dual-active, is to ensure that data consistency.

Description

A kind of method and device handling virtual-machine data
Technical field
The present invention relates to cloud computing technology, espespecially a kind of method and device for handling virtual-machine data.
Background technique
Currently, with the continuous maturation of cloud computing, many enterprises, government all start to land cloud platform, on cloud platform top Virtual machine is affixed one's name to, strict requirements all are proposed to the High Availabitity of virtual machine, at present in cloud platform there are many High Availabitities of virtual machine Influence factor, server delay machine need virtual machine high availability scheme, network interruption, it is also desirable to virtual machine high availability scheme, storage Delay machine is also required to virtual machine high availability scheme.For server, network, storage delay machine, the scheme of virtual machine High Availabitity at present All not no ways of standard.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of method and devices for handling virtual-machine data, with reality The High Availabitity of existing virtual machine business.
In order to reach the object of the invention, the present invention provides a kind of methods for handling virtual-machine data, comprising:
After the request for receiving virtual machine processing data, judges whether main storage device can work normally, can such as work normally, It then selects the main storage device to carry out data transmission, can not such as work normally, then select a standby storage equipment as primary storage Equipment carries out data transmission.
Further, during the selection main storage device carries out data transmission, further includes:
The data changed in the main storage device are backuped in all standby storage equipment in real time or periodically.
Further, after the selection main storage device carries out data transmission, further includes:
The data changed in the main storage device are backuped in all standby storage equipment.
It is further, described that a standby storage equipment is selected to carry out data transmission as main storage device, comprising:
When there is more standby storage equipment, select the standby storage equipment for meeting specified requirements as main storage device, Carry out data transmission.
A kind of device handling virtual-machine data, comprising: memory and processor;Wherein:
The memory, for saving the program for handling virtual-machine data;
The processor executes the program for being used to handle virtual-machine data for reading, performs the following operations:
After the request for receiving virtual machine processing data, judges whether main storage device can work normally, can such as work normally, It then selects the main storage device to carry out data transmission, can not such as work normally, then select a standby storage equipment as primary storage Equipment carries out data transmission.
Further, during the selection main storage device carries out data transmission, further includes:
The data changed in the main storage device are backuped in all standby storage equipment in real time or periodically.
Further, after the selection main storage device carries out data transmission, further includes:
The data changed in the main storage device are backuped in all standby storage equipment.
It is further, described that a standby storage equipment is selected to carry out data transmission as main storage device, comprising:
When there is more standby storage equipment, select the standby storage equipment for meeting specified requirements as main storage device, Carry out data transmission.
The scheme of the embodiment of the present invention ensures virtual machine business High Availabitity by deployment storage dual-active, is non-to often occur reality , it is to ensure that data consistency, this method can be used in forms data center, can also be used in across data center, For supporting the virtual machine High Availabitity business based on storage.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is a kind of flow chart of the method for processing virtual-machine data of the embodiment of the present invention.
Fig. 2 is the schematic diagram of the system of the method for the realization processing virtual-machine data of the embodiment of the present invention.
Fig. 3 is a kind of schematic diagram of the device of processing virtual-machine data of the embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable Sequence executes shown or described step.
Fig. 1 is a kind of flow chart of the method for processing virtual-machine data of the embodiment of the present invention, as shown in Figure 1, this implementation Example method may include:
Step 101, the request for receiving virtual machine processing data;
Step 102 judges whether main storage device can work normally, and can such as work normally, then go to step 103, such as can not It works normally, then goes to step 104;
Step 103, the main storage device is selected to carry out data transmission;
Step 104, a standby storage equipment is selected to carry out data transmission as main storage device.
The business High Availabitity of virtual machine may be implemented in the method for the embodiment of the present invention.
In one embodiment, in step 103, during selecting main storage device to carry out data transmission, can also include: The data changed in the main storage device are backuped in all standby storage equipment in real time or periodically.
It in another embodiment, can also include: by institute after selecting main storage device to carry out data transmission in step 103 The data changed in main storage device are stated to backup in all standby storage equipment.
In one embodiment, when there is more standby storage equipment, one can be selected according to assignment algorithm and meets specified item The standby storage equipment of part carries out data transmission as main storage device.
When main storage device goes offline, selected between multiple standby storage equipment one as main storage device, it may be considered that Using storage priority attribute alternatively foundation, priority it is high be chosen as main storage device.It can also be according to storage itself Attribute selected, such as storage IO performance is good, that can be selected as main storage device.If storing attribute all Equally, it also can be randomly selected.After the main storage device originally to go offline repairs, storage collection is added to the selection that do not seize Group, as standby storage equipment, the data of synchronous primary storage.
In one example, as shown in Fig. 2, the system for realizing the method for processing virtual-machine data mainly may include:
Gateway refers to providing the equipment of single entrance under cloud platform for storage cluster operation;
Storage cluster, two storage equipment are included at least in this example, this two storage equipment need to realize disk mirroring Function, in this way magnetic disk of virtual machine fall in storage equipment 1 while, can also synchronize storage equipment 2 on generate it is identical Disk.
When virtual machine is when having IO (input and output) operation, gateway can select IO preferred path, but when excellent When first path not can be carried out normal IO, gateway will have the ability to carry out the switching of I/O operation, be switched on alternative path.
The method of the embodiment of the present invention ensures virtual machine business High Availabitity by deployment storage dual-active, is non-to often occur reality , it is to ensure that data consistency, this method can be used in forms data center, can also be used in across data center, For supporting the virtual machine High Availabitity business based on storage.
Fig. 3 is a kind of schematic diagram of the device of processing virtual-machine data of the embodiment of the present invention, as shown in figure 3, this implementation The device of example may include: memory and processor, wherein
The memory, for saving the program for handling virtual-machine data;
The processor executes the program for being used to handle virtual-machine data for reading, performs the following operations:
After the request for receiving virtual machine processing data, judges whether main storage device can work normally, can such as work normally, It then selects the main storage device to carry out data transmission, can not such as work normally, then select a standby storage equipment as primary storage Equipment carries out data transmission.
Optionally, during the selection main storage device carries out data transmission, further includes:
The data changed in the main storage device are backuped in all standby storage equipment in real time or periodically.
Optionally, after the selection main storage device carries out data transmission, further includes:
The data changed in the main storage device are backuped in all standby storage equipment.
It is optionally, described that a standby storage equipment is selected to carry out data transmission as main storage device, comprising:
When there is more standby storage equipment, select the standby storage equipment for meeting specified requirements as main storage device, Carry out data transmission.
The device of the present embodiment can be gateway, and gateway is other than it will realize common I/O operation forwarding, also The health status for monitoring I/O path realizes the selection of I/O path, while providing IO read-write to the server cluster in cloud platform Interface.
The scheme of the present embodiment under cloud platform by disposing storage dual-active cluster, and such magnetic disk of virtual machine is at two sets or more Storage equipment on have duplicate data, after certain storage equipment delay machine, I/O path is switched fast by gateway, It will not influence the normal operation of virtual machine business.
The embodiment of the invention also provides a kind of computer readable storage mediums, are stored with computer executable instructions, The computer executable instructions are performed the method for realizing the processing virtual-machine data.
It will appreciated by the skilled person that whole or certain steps, system, dress in method disclosed hereinabove Functional module/unit in setting may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment, Division between the functional module/unit referred in the above description not necessarily corresponds to the division of physical assemblies;For example, one Physical assemblies can have multiple functions or a function or step and can be executed by several physical assemblies cooperations.Certain groups Part or all components may be implemented as by processor, such as the software that digital signal processor or microprocessor execute, or by It is embodied as hardware, or is implemented as integrated circuit, such as specific integrated circuit.Such software can be distributed in computer-readable On medium, computer-readable medium may include computer storage medium (or non-transitory medium) and communication media (or temporarily Property medium).As known to a person of ordinary skill in the art, term computer storage medium is included in for storing information (such as Computer readable instructions, data structure, program module or other data) any method or technique in the volatibility implemented and non- Volatibility, removable and nonremovable medium.Computer storage medium include but is not limited to RAM, ROM, EEPROM, flash memory or its His memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic holder, tape, disk storage or other Magnetic memory apparatus or any other medium that can be used for storing desired information and can be accessed by a computer.This Outside, known to a person of ordinary skill in the art to be, communication media generally comprises computer readable instructions, data structure, program mould Other data in the modulated data signal of block or such as carrier wave or other transmission mechanisms etc, and may include any information Delivery media.

Claims (8)

1. a kind of method for handling virtual-machine data characterized by comprising
After the request for receiving virtual machine processing data, judges whether main storage device can work normally, can such as work normally, then select It selects the main storage device to carry out data transmission, can not such as work normally, then select a standby storage equipment as main storage device Carry out data transmission.
2. the method according to claim 1, wherein the process that the selection main storage device carries out data transmission In, further includes:
The data changed in the main storage device are backuped in all standby storage equipment in real time or periodically.
3. the method according to claim 1, wherein being gone back after the selection main storage device carries out data transmission Include:
The data changed in the main storage device are backuped in all standby storage equipment.
4. method according to claim 1-3, which is characterized in that described to select a standby storage equipment as main memory Storage equipment carries out data transmission, comprising:
When there is more standby storage equipment, selects the standby storage equipment for meeting specified requirements as main storage device, carry out Data transmission.
5. a kind of device for handling virtual-machine data, comprising: memory and processor;It is characterized by:
The memory, for saving the program for handling virtual-machine data;
The processor executes the program for being used to handle virtual-machine data for reading, performs the following operations:
After the request for receiving virtual machine processing data, judges whether main storage device can work normally, can such as work normally, then select It selects the main storage device to carry out data transmission, can not such as work normally, then select a standby storage equipment as main storage device Carry out data transmission.
6. device according to claim 5, which is characterized in that the process that the selection main storage device carries out data transmission In, further includes:
The data changed in the main storage device are backuped in all standby storage equipment in real time or periodically.
7. device according to claim 5, which is characterized in that after the selection main storage device carries out data transmission, also Include:
The data changed in the main storage device are backuped in all standby storage equipment.
8. according to the described in any item devices of claim 5-7, which is characterized in that described to select a standby storage equipment as main memory Storage equipment carries out data transmission, comprising:
When there is more standby storage equipment, selects the standby storage equipment for meeting specified requirements as main storage device, carry out Data transmission.
CN201811296019.XA 2018-11-01 2018-11-01 A kind of method and device handling virtual-machine data Pending CN109491838A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811296019.XA CN109491838A (en) 2018-11-01 2018-11-01 A kind of method and device handling virtual-machine data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811296019.XA CN109491838A (en) 2018-11-01 2018-11-01 A kind of method and device handling virtual-machine data

Publications (1)

Publication Number Publication Date
CN109491838A true CN109491838A (en) 2019-03-19

Family

ID=65692206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811296019.XA Pending CN109491838A (en) 2018-11-01 2018-11-01 A kind of method and device handling virtual-machine data

Country Status (1)

Country Link
CN (1) CN109491838A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111190538A (en) * 2019-12-20 2020-05-22 北京淇瑀信息科技有限公司 File storage method, system, device and computer readable medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8838919B2 (en) * 2010-08-30 2014-09-16 Oracle International Corporation Controlling data lag in a replicated computer system
CN104281643A (en) * 2014-08-12 2015-01-14 广州华多网络科技有限公司 Service data storage method, service machine and storage machine
CN106294030A (en) * 2016-07-29 2017-01-04 浪潮(北京)电子信息产业有限公司 Storage redundancy approach based on server virtualization system and device
CN107168830A (en) * 2017-05-18 2017-09-15 郑州云海信息技术有限公司 A kind of disaster tolerance system based on virtual platform, method
CN107526652A (en) * 2016-06-21 2017-12-29 华为技术有限公司 A kind of method of data synchronization and storage device
CN107707397A (en) * 2017-09-29 2018-02-16 郑州云海信息技术有限公司 A kind of virtual-machine data service system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8838919B2 (en) * 2010-08-30 2014-09-16 Oracle International Corporation Controlling data lag in a replicated computer system
CN104281643A (en) * 2014-08-12 2015-01-14 广州华多网络科技有限公司 Service data storage method, service machine and storage machine
CN107526652A (en) * 2016-06-21 2017-12-29 华为技术有限公司 A kind of method of data synchronization and storage device
CN106294030A (en) * 2016-07-29 2017-01-04 浪潮(北京)电子信息产业有限公司 Storage redundancy approach based on server virtualization system and device
CN107168830A (en) * 2017-05-18 2017-09-15 郑州云海信息技术有限公司 A kind of disaster tolerance system based on virtual platform, method
CN107707397A (en) * 2017-09-29 2018-02-16 郑州云海信息技术有限公司 A kind of virtual-machine data service system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
孟庆昌: "《操作系统》", 30 April 2016 *
徐鹏,杨放春: "《基于软交换的下一代网络解决方案》", 31 July 2007, 北京邮电大学出版社 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111190538A (en) * 2019-12-20 2020-05-22 北京淇瑀信息科技有限公司 File storage method, system, device and computer readable medium

Similar Documents

Publication Publication Date Title
US9848043B2 (en) Granular sync/semi-sync architecture
CN105407117B (en) The methods, devices and systems of distributed backup data
CN106469085B (en) The online migration method, apparatus and system of virtual machine
US20160036623A1 (en) Automatic cloud-based disaster recovery system
CN107464151B (en) Order data processing method and device for high-concurrency service
CN108804465B (en) Method and system for data migration of distributed cache database
CN109842651A (en) A kind of continual load-balancing method of business and system
US8904131B2 (en) Automated migration to a new copy services target storage system to manage multiple relationships simultaneously while maintaining disaster recovery consistency
US20160179836A1 (en) Method for updating data table of keyvalue database and apparatus for updating table data
EP3786802A1 (en) Method and device for failover in hbase system
US10229010B2 (en) Methods for preserving state across a failure and devices thereof
CN110442610A (en) The method, apparatus of load balancing calculates equipment and medium
CN105635311A (en) Method for synchronizing resource pool information in cloud management platform
CN104536852B (en) Data recovery method and device
CN110099084B (en) Method, system and computer readable medium for ensuring storage service availability
CN113411363A (en) Uploading method of image file, related equipment and computer storage medium
CN105843820B (en) Data migration method and device
CN105487946B (en) A kind of faulty computer automatic switching method and device
CN109491838A (en) A kind of method and device handling virtual-machine data
CN106708599A (en) Virtual machine mirror image sending system and method
CN113449042B (en) Automatic data warehouse separation method and device
CN104468674A (en) Data migration method and device
CN110677497B (en) Network medium distribution method and device
CN108429813B (en) Disaster recovery method, system and terminal for cloud storage service
CN105760431A (en) Method and device for transferring file blocks

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

Application publication date: 20190319