CN109460187A - A kind of qcow2 file data consistency verification method and verifying terminal - Google Patents
A kind of qcow2 file data consistency verification method and verifying terminal Download PDFInfo
- Publication number
- CN109460187A CN109460187A CN201811329221.8A CN201811329221A CN109460187A CN 109460187 A CN109460187 A CN 109460187A CN 201811329221 A CN201811329221 A CN 201811329221A CN 109460187 A CN109460187 A CN 109460187A
- Authority
- CN
- China
- Prior art keywords
- qcow2
- nbd
- file
- data
- block file
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0614—Improving the reliability of storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/064—Management of blocks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0644—Management of space entities, e.g. partitions, extents, pools
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0662—Virtualisation aspects
- G06F3/0664—Virtualisation aspects at device level, e.g. emulation of a storage device or system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0674—Disk device
- G06F3/0676—Magnetic disk device
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention provides a kind of qcow2 file data consistency verification method and verifying terminal, and the qcow2 block file of former disk mirroring or snapshot to be verified is obtained in remote server;Qcow2 block file in remote server is copied to local, carry is carried out to the qcow2 block file using Nbd kernel module, in carry to default subregion;Acquisition is locally mirrored or the default comparison data disk of snapshots point;The data of data and the qcow2 block file in default comparison data disk are carried out based on data consistency checking, and export verification result.Using the storage equipment of qemu-nbd and support qcow2 block device, realizes the verifying to qcow2 block device data consistency, largely ensure the consistency of storing data, ensure the reliable and stable operation of equipment.
Description
Technical field
The present invention relates to computer memory technical field more particularly to a kind of qcow2 file data consistency verification methods
And verifying terminal.
Background technique
With the continuous development of IT field technology and the arrival of big data era, conventional information service and increasingly powerful
Cloud computing service it is higher and higher to the durability requirements of server.In the case, either big data or cloud computing are led
Domain, rear end are also very extensive using the application scenarios of qcow2 format block device.Qcow2 is mirror-image format, is QEMU simulation
A kind of disk mirroring that device is supported.Qcow2 can indicate the block device magnetic of one piece of fixed size with the form of a file
Disk.How to ensure the stability of qcow2 block number evidence and consistency is current technical problem urgently to be resolved.
Summary of the invention
In order to overcome the deficiencies in the prior art described above, the present invention provides a kind of qcow2 file data consistency checking side
Method, method include:
Step 1 obtains the qcow2 block file of former disk mirroring or snapshot to be verified in remote server;
Qcow2 block file in remote server is copied to local by step 2, using Nbd kernel module to the qcow2 block text
Part carries out carry, in carry to default subregion;
Step 3, acquisition is locally mirrored or the default comparison data disk of snapshots point;
Step 4 carries out the data of data and the qcow2 block file in default comparison data disk based on data consistency
Verifying, and export verification result.
Preferably, step 1 further include: obtain the qcow2 block file of former disk mirroring or snapshot to be verified, simultaneously
Also obtain the validation value of the qcow2 block file;
Step 2 further include: the validation value of qcow2 block file is compared with preset validation value;
When the validation value of qcow2 block file is consistent with preset validation value, using Nbd kernel module to the qcow2 block text
Part carries out carry, in the default subregion of equipment locating for carry to Nbd kernel module.
Preferably, step 2 further include: qcow2 block file in remote server is copied by scp and is copied to local;
Step 3 further include: check it is local be mirrored or the address information of snapshots point, and judge whether Nbd kernel module has
There is the idle processing space of verifying, when Nbd kernel module, which has, verifies idle processing space, is mirrored or snapshot is hung based on local
The address information of loading point, acquisition is locally mirrored or the default comparison data disk of snapshots point.
Preferably, before step 1 further include:
It checks whether remote server supports cpu to virtualize, internal memory virtualization and whether configures Nbd kernel module;
When remote server does not support cpu to virtualize, and does not support internal memory virtualization and Nbd kernel module is not configured, load
NBD driving configures Nbd kernel module, configuration cpu virtualization and internal memory virtualization;
It is virtualized based on cpu, internal memory virtualization and Nbd kernel module carry qcow2 block file, subregion is believed after identifying carry
Breath.
Preferably, step 4 further include:
If test.log is that represent the qcow2 block file consistent with the data in default comparison data disk for sky;It is on the contrary then not
Unanimously.
A kind of verifying terminal based on qcow2 file data consistency checking, comprising: verifying terminal;
Terminal is verified to communicate to connect with each remote server to be verified respectively;
Verifying terminal is used to obtain the qcow2 block file of former disk mirroring or snapshot to be verified in remote server,
It is also used to qcow2 block file in remote server being copied to local, using Nbd kernel module to the qcow2 block text
Part carries out carry, in carry to default subregion;
It is also used to obtain local be mirrored or the default comparison data disk of snapshots point;
It is also used to test based on data consistency by the data of data and the qcow2 block file in default comparison data disk
Card, and export verification result.
Preferably, verifying terminal is also used to obtain the preset validation value for configuring qcow2 block file to be verified;
The qcow2 block file of former disk mirroring or snapshot to be verified is obtained, while also obtaining testing for the qcow2 block file
Card value;The validation value of qcow2 block file is compared with preset validation value;
When the validation value of qcow2 block file is consistent with preset validation value, using Nbd kernel module to the qcow2 block text
Part carries out carry, in the default subregion of equipment locating for carry to Nbd kernel module.
Preferably, verifying terminal drives configured with NBD, and cpu virtualizes loading module and internal memory virtualization loading module;
Whether verifying terminal is also used to check whether remote server supports cpu to virtualize, internal memory virtualization and configure in Nbd
Core module;
When remote server does not support cpu to virtualize, and does not support internal memory virtualization and Nbd kernel module is not configured, load
NBD driving configures Nbd kernel module, configuration cpu virtualization and internal memory virtualization;
It is virtualized based on cpu, internal memory virtualization and Nbd kernel module carry qcow2 block file, subregion is believed after identifying carry
Breath.
Preferably, verifying terminal, which is also used to copy qcow2 block file in remote server by scp, is copied to local;
Be also used to check it is local be mirrored or the address information of snapshots point, and judge whether Nbd kernel module has verifying
Idle processing space is mirrored or snapshots point when Nbd kernel module, which has, verifies idle processing space based on local
Address information, acquisition is locally mirrored or the default comparison data disk of snapshots point.
Preferably, verifying terminal is also configured with verifying journal output module, memory and processor;
Verifying journal output module is for exporting verification result, if test.log is that sky represents the qcow2 block file and pre-
If the data in comparison data disk are consistent;It is on the contrary then inconsistent;
Memory is for storing verifying terminal operating system, verify data information and qcow2 file data consistency verification method
Application program;
Processor is used to execute the verifying terminal operating system and qcow2 file data consistency verification method application program,
With the step of realizing qcow2 file data consistency verification method.
As can be seen from the above technical solutions, the invention has the following advantages that
Storage equipment of the qcow2 file data consistency verification method using qemu-nbd and support qcow2 block device, realization pair
The verifying of qcow2 block device data consistency, largely ensures the consistency of storing data, ensures the reliable and stable of equipment
Operation.
The present invention relates to computer calculating/technical field of memory, and a kind of practicability is stronger, the wider data one of application range
Cause property verification method.The method is in the case where supporting qemu-nbd order basis, for most of mirror images, the qcow2 lattice of snapshot generation
Formula file can be carried out data consistency checking, and multiple servers can be verified simultaneously.
It can make that tester verifies source data easily and fast and whether mirror image and snapshot data are consistent, improve testing efficiency
And reduce human factor bring uncertainty.
The invention avoids be frequently encountered mass data during the test to need to verify its mirror image and snapshot document number
According to whether consistent with source file, not scientific, low efficiency is manually gradually verified, and can also bring artificial uncertainty.
Detailed description of the invention
In order to illustrate more clearly of technical solution of the present invention, attached drawing needed in description will be made below simple
Ground introduction, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ordinary skill
For personnel, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is qcow2 file data consistency verification method flow chart;
Fig. 2 is qcow2 file data consistency verification method embodiment flow chart;
Fig. 3 is verifying terminal and remote server communication scheme based on qcow2 file data consistency checking.
Specific embodiment
The present invention provides a kind of qcow2 file data consistency verification method, as shown in Figure 1, method includes:
S1 obtains the qcow2 block file of former disk mirroring or snapshot to be verified in remote server;
Qcow2 block file in remote server is copied to local by S2, using Nbd kernel module to the qcow2 block file into
Row carry, in carry to default subregion;
S3, acquisition is locally mirrored or the default comparison data disk of snapshots point;
S4 carries out the data of data and the qcow2 block file in default comparison data disk based on data consistency checking,
And export verification result.
QEMU involved in the present invention is that kvm is responsible for cpu virtualization+internal memory virtualization, realizes the virtual of cpu and memory
Change, but kvm cannot simulate other equipment;Qemu is simulation I/O device (network interface card, disk), and kvm can be achieved with later plus qemu
Truly server virtualization, so being generally referred to as qemu-kvm.
It in order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below will be with specific
Examples and drawings, the technical solution protected to the present invention are clearly and completely described, it is clear that implementation disclosed below
Example is only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiment in this patent, the common skill in this field
Art personnel all other embodiment obtained without making creative work belongs to the model of this patent protection
It encloses.
In embodiment provided by the invention, as shown in Fig. 2,
S11 obtains the qcow2 block file of former disk mirroring or snapshot to be verified in remote server;It also obtains simultaneously
The validation value of the qcow2 block file;
The validation value of qcow2 block file is compared S12 with preset validation value;
When the validation value of qcow2 block file and preset validation value it is inconsistent when, illustrate obtain qcow2 block file be it is non-this
The qcow2 block file for needing to verify, need to obtain in remote server again again so former disk mirroring to be verified or
The qcow2 block file of snapshot.It obtains verifying personnel and checks whether acquisition process mistake or maloperation occurs.Validation value can be adopted
With md5 value, naturally it is also possible to be configured encrypted code, such as RSA mode or MD mode or AES mode using other modes
Encrypted code is formed, whether the qcow2 block file to confirm acquisition is correct, meets verifying and requires.
When the validation value of qcow2 block file is consistent with preset validation value, using Nbd kernel module to the qcow2
Block file carries out carry, in the default subregion of equipment locating for carry to Nbd kernel module.
S13, acquisition is locally mirrored or the default comparison data disk of snapshots point;
The data of data and the qcow2 block file in default comparison data disk test based on data consistency by S14
Card, and export verification result.
Technology as described herein may be implemented in hardware, software, firmware or any combination of them.The various spies
Sign is module, and unit or assembly may be implemented together in integration logic device or separately as discrete but interoperable logic
Device or other hardware devices.In some cases, the various features of electronic circuit may be implemented as one or more integrated
Circuit devcie, such as IC chip or chipset.
In embodiment provided by the invention, step 2 further include: qcow2 block file in remote server is copied by scp
It is copied to local.Certainly the mode for being not limited solely to scp here is copied.
Step 3 further include: check it is local be mirrored or the address information of snapshots point, and judge that Nbd kernel module is
It is no have verify idle processing space, when Nbd kernel module, which has, verifies idle processing space, be mirrored or fastly based on local
According to the address information of mount point, acquisition is locally mirrored or the default comparison data disk of snapshots point.
If realized within hardware, the present invention relates to a kind of devices, such as can be used as processor or integrated circuit dress
It sets, such as IC chip or chipset.Alternatively or additionally, if realized in software or firmware, the technology can
Realize at least partly by computer-readable data storage medium, including instruction, when implemented, make processor execute one or
More above methods.For example, computer-readable data storage medium can store the instruction such as executed by processor.
In embodiment provided by the invention, before step 1 further include:
It checks whether remote server supports cpu to virtualize, internal memory virtualization and whether configures Nbd kernel module;
When remote server does not support cpu to virtualize, and does not support internal memory virtualization and Nbd kernel module is not configured, load
NBD driving configures Nbd kernel module, configuration cpu virtualization and internal memory virtualization;
It is virtualized based on cpu, internal memory virtualization and Nbd kernel module carry qcow2 block file, subregion is believed after identifying carry
Breath.
NBD is that Network Block Device is a kernel module, and most of Linux release has all included;
The disk space of one distance host can be come as a block device using just as one piece of hard disk;It can be very convenient
The hard drive space by another server, increase on local server.
In embodiment provided by the invention, step 4 further include: if test.log is that sky represents the qcow2 block file
It is consistent with the data in default comparison data disk;It is on the contrary then inconsistent.
Certainly it can be exported, can also be exported by way of chart in a manner of table based on verification result
Etc., it is used convenient for verifying personnel inquiry.
The present invention also provides a kind of verifying terminals based on qcow2 file data consistency checking, as shown in Figure 1, comprising:
Verify terminal 1;
Terminal 1 is verified to communicate to connect with each remote server 2 to be verified respectively;
Verifying terminal is used to obtain the qcow2 block file of former disk mirroring or snapshot to be verified in remote server,
It is also used to qcow2 block file in remote server being copied to local, using Nbd kernel module to the qcow2 block text
Part carries out carry, in carry to default subregion;
It is also used to obtain local be mirrored or the default comparison data disk of snapshots point;
It is also used to test based on data consistency by the data of data and the qcow2 block file in default comparison data disk
Card, and export verification result.
The computer program product of computer-readable medium can form a part, may include packaging material.Data
Computer-readable medium may include computer storage medium, such as random access memory (RAM), read-only memory
(ROM), nonvolatile RAM (NVRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash memory, magnetic or
Optical data carrier and analog.In some embodiments, a kind of manufacture product may include that one or more computers can
Read storage media.
In the present invention, verifying terminal 1 can only be verified a remote server 2, can also be simultaneously to multiple remote
End server 2 is verified, and verification efficiency is improved.
Verifying terminal in the present invention is also used to obtain the preset validation value for configuring qcow2 block file to be verified;
The qcow2 block file of former disk mirroring or snapshot to be verified is obtained, while also obtaining testing for the qcow2 block file
Card value;The validation value of qcow2 block file is compared with preset validation value;
When the validation value of qcow2 block file and preset validation value it is inconsistent when, illustrate obtain qcow2 block file be it is non-this
The qcow2 block file for needing to verify, need to obtain in remote server again again so former disk mirroring to be verified or
The qcow2 block file of snapshot.It obtains verifying personnel and checks whether acquisition process mistake or maloperation occurs.Validation value can be adopted
With md5 value, naturally it is also possible to be configured encrypted code, such as RSA mode or MD mode or AES mode using other modes
Encrypted code is formed, whether the qcow2 block file to confirm acquisition is correct, meets verifying and requires.
When the validation value of qcow2 block file is consistent with preset validation value, using Nbd kernel module to the qcow2
Block file carries out carry, in the default subregion of equipment locating for carry to Nbd kernel module.
It includes that one or more processors execute that the code or instruction, which can be software and/or firmware by processing circuit,
Such as one or more digital signal processors (DSP), general purpose microprocessor, application-specific integrated circuit (ASICs), scene can be compiled
Journey gate array (FPGA) or other equivalents are integrated circuit or discrete logic.Therefore, term " processor, " due to
It can refer to that any aforementioned structure or any other structure are more suitable for the technology as described herein realized as used herein.Separately
Outside, in some respects, function described in the disclosure can be provided in software module and hardware module.
Verifying terminal of the present invention drives configured with NBD, and cpu virtualizes loading module and internal memory virtualization loads mould
Block;Whether verifying terminal is also used to check whether remote server supports cpu to virtualize, internal memory virtualization and configure in Nbd
Core module;
When remote server does not support cpu to virtualize, and does not support internal memory virtualization and Nbd kernel module is not configured, load
NBD driving configures Nbd kernel module, configuration cpu virtualization and internal memory virtualization;Based on cpu virtualize, internal memory virtualization with
And Nbd kernel module carry qcow2 block file, identify partition information after carry.
Verify terminal may include additional hardware component, as one or more processors and the advantages that.In addition, the list
Member, module, element, in and the equipment of ingredient, system, as described herein and/or mobile device may include hardware
And software, may also include firmware, the device for carrying out various operations includes those of being described herein, and it is combinable or keep independent, and
It can store in one or more storage equipment or computer-readable medium.With though described herein as a mobile device, be not required to
It is confined in this respect, so that mobile device can be smart phone, the advantages that tablet computer, laptop, desktop computer.
In the present invention, verifying terminal, which is also used to copy qcow2 block file in remote server by scp, is copied to local;
Be also used to check it is local be mirrored or the address information of snapshots point, and judge whether Nbd kernel module has verifying
Idle processing space is mirrored or snapshots point when Nbd kernel module, which has, verifies idle processing space based on local
Address information, acquisition is locally mirrored or the default comparison data disk of snapshots point.
In the present invention, verifying terminal is also configured with verifying journal output module, memory and processor;
Verifying journal output module is for exporting verification result, if test.log is that sky represents the qcow2 block file and pre-
If the data in comparison data disk are consistent;It is on the contrary then inconsistent;Memory is for storing verifying terminal operating system, verify data
Information and qcow2 file data consistency verification method application program;Processor is for executing the verifying terminal operating system
And qcow2 file data consistency verification method application program, to realize the step of qcow2 file data consistency verification method
Suddenly.
Method and device of the invention may be achieved in many ways.For example, can by software, hardware, firmware or
Person's software, hardware, firmware any combination realize method and device of the invention.The step of for the method it is above-mentioned
Sequence is merely to be illustrated, and the step of method of the invention is not limited to sequence described in detail above, unless with other sides
Formula illustrates.In addition, in some embodiments, the present invention can be also embodied as recording program in the recording medium, these
Program includes for realizing machine readable instructions according to the method for the present invention.Thus, the present invention also covers storage for executing
The recording medium of program according to the method for the present invention.
The present invention also provides a specific embodiments, specifically include:
The mirror image for needing the former disk verified or snapshot qcow2 file test1.qcow2 are found in remote server and are remembered
Record its md5 value;
It is executed in remote server and records md5 value;
Remote storage host (IP are as follows: 1.1.1.1) test1.qcow2 file is copied to verifying terminal local by scp;
Distal end qcow2 file is copied to verifying terminal local;
MD5 value is verified after copying verifying terminal local to;
If nbd implementor name is occupied please to replace one;
Check nbd equipment subregion;
Carry nbd equipment subregion;
It finds and local is mirrored/former data disks (non-system disk) mount point of snapshot, such as/dev/sdb1;
List local disk subregion
Local former data disks and qcow2 block file carry subregion correlation data;
If test.log is that represent distal end qcow2 block file consistent with local source data for sky;It is on the contrary then inconsistent.
The present invention is realized using the storage equipment of qemu-nbd and support qcow2 block device to qcow2 block device data one
The verifying of cause property, largely ensures the consistency of storing data, ensures the reliable and stable operation of equipment.
The present invention relates to computer calculating/storing data uniformity test verifyings, avoid during the test often
It can encounter that mass data needs to verify its mirror image and whether snapshot document data are consistent with source file, manually gradually verify not section
It learns, low efficiency, and can also bring artificial uncertainty.
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 readily 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 scope of cause.
Claims (10)
1. a kind of qcow2 file data consistency verification method, which is characterized in that method includes:
Step 1 obtains the qcow2 block file of former disk mirroring or snapshot to be verified in remote server;
Qcow2 block file in remote server is copied to local by step 2, using Nbd kernel module to the qcow2 block text
Part carries out carry, in carry to default subregion;
Step 3, acquisition is locally mirrored or the default comparison data disk of snapshots point;
Step 4 carries out the data of data and the qcow2 block file in default comparison data disk based on data consistency
Verifying, and export verification result.
2. qcow2 file data consistency verification method according to claim 1, which is characterized in that
Step 1 further include: obtain the qcow2 block file of former disk mirroring or snapshot to be verified, while also described in acquisition
The validation value of qcow2 block file;
Step 2 further include: the validation value of qcow2 block file is compared with preset validation value;
When the validation value of qcow2 block file is consistent with preset validation value, using Nbd kernel module to the qcow2 block text
Part carries out carry, in the default subregion of equipment locating for carry to Nbd kernel module.
3. qcow2 file data consistency verification method according to claim 1 or 2, which is characterized in that
Step 2 further include: qcow2 block file in remote server is copied by scp and is copied to local;
Step 3 further include: check it is local be mirrored or the address information of snapshots point, and judge whether Nbd kernel module has
There is the idle processing space of verifying, when Nbd kernel module, which has, verifies idle processing space, is mirrored or snapshot is hung based on local
The address information of loading point, acquisition is locally mirrored or the default comparison data disk of snapshots point.
4. qcow2 file data consistency verification method according to claim 1 or 2, which is characterized in that
Before step 1 further include:
It checks whether remote server supports cpu to virtualize, internal memory virtualization and whether configures Nbd kernel module;
When remote server does not support cpu to virtualize, and does not support internal memory virtualization and Nbd kernel module is not configured, load
NBD driving configures Nbd kernel module, configuration cpu virtualization and internal memory virtualization;
It is virtualized based on cpu, internal memory virtualization and Nbd kernel module carry qcow2 block file, subregion is believed after identifying carry
Breath.
5. qcow2 file data consistency verification method according to claim 1 or 2, which is characterized in that
Step 4 further include:
If test.log is that represent the qcow2 block file consistent with the data in default comparison data disk for sky;It is on the contrary then not
Unanimously.
6. a kind of verifying terminal based on qcow2 file data consistency checking characterized by comprising verifying terminal;
Terminal is verified to communicate to connect with each remote server to be verified respectively;
Verifying terminal is used to obtain the qcow2 block file of former disk mirroring or snapshot to be verified in remote server,
It is also used to qcow2 block file in remote server being copied to local, using Nbd kernel module to the qcow2 block text
Part carries out carry, in carry to default subregion;
It is also used to obtain local be mirrored or the default comparison data disk of snapshots point;
It is also used to test based on data consistency by the data of data and the qcow2 block file in default comparison data disk
Card, and export verification result.
7. the verifying terminal according to claim 6 based on qcow2 file data consistency checking, which is characterized in that
Verifying terminal is also used to obtain the preset validation value for configuring qcow2 block file to be verified;
The qcow2 block file of former disk mirroring or snapshot to be verified is obtained, while also obtaining testing for the qcow2 block file
Card value;The validation value of qcow2 block file is compared with preset validation value;
When the validation value of qcow2 block file is consistent with preset validation value, using Nbd kernel module to the qcow2 block text
Part carries out carry, in the default subregion of equipment locating for carry to Nbd kernel module.
8. the verifying terminal according to claim 6 based on qcow2 file data consistency checking, which is characterized in that
It verifies terminal to drive configured with NBD, cpu virtualizes loading module and internal memory virtualization loading module;
Whether verifying terminal is also used to check whether remote server supports cpu to virtualize, internal memory virtualization and configure in Nbd
Core module;
When remote server does not support cpu to virtualize, and does not support internal memory virtualization and Nbd kernel module is not configured, load
NBD driving configures Nbd kernel module, configuration cpu virtualization and internal memory virtualization;
It is virtualized based on cpu, internal memory virtualization and Nbd kernel module carry qcow2 block file, subregion is believed after identifying carry
Breath.
9. the verifying terminal according to claim 6 based on qcow2 file data consistency checking, which is characterized in that
Verifying terminal, which is also used to copy qcow2 block file in remote server by scp, is copied to local;
Be also used to check it is local be mirrored or the address information of snapshots point, and judge whether Nbd kernel module has verifying
Idle processing space is mirrored or snapshots point when Nbd kernel module, which has, verifies idle processing space based on local
Address information, acquisition is locally mirrored or the default comparison data disk of snapshots point.
10. the verifying terminal according to claim 6 based on qcow2 file data consistency checking, which is characterized in that
Verifying terminal is also configured with verifying journal output module, memory and processor;
Verifying journal output module is for exporting verification result, if test.log is that sky represents the qcow2 block file and pre-
If the data in comparison data disk are consistent;It is on the contrary then inconsistent;
Memory is for storing verifying terminal operating system, verify data information and qcow2 file data consistency verification method
Application program;
Processor is used to execute the verifying terminal operating system and qcow2 file data consistency verification method application program,
To realize as described in claim 1 to 5 any one the step of qcow2 file data consistency verification method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811329221.8A CN109460187B (en) | 2018-11-09 | 2018-11-09 | Verification method and verification terminal for data consistency of qcow2 file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811329221.8A CN109460187B (en) | 2018-11-09 | 2018-11-09 | Verification method and verification terminal for data consistency of qcow2 file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109460187A true CN109460187A (en) | 2019-03-12 |
CN109460187B CN109460187B (en) | 2022-05-03 |
Family
ID=65609826
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811329221.8A Active CN109460187B (en) | 2018-11-09 | 2018-11-09 | Verification method and verification terminal for data consistency of qcow2 file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109460187B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110008227A (en) * | 2019-04-11 | 2019-07-12 | 苏州浪潮智能科技有限公司 | A kind of consistency group reliability verification method and relevant apparatus |
CN110737546A (en) * | 2019-10-17 | 2020-01-31 | 深信服科技股份有限公司 | consistency snapshot checking method, device, equipment and storage medium |
CN116257277A (en) * | 2023-05-12 | 2023-06-13 | 天津卓朗昆仑云软件技术有限公司 | Mirror image file updating method and device and VOI system |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040133718A1 (en) * | 2001-04-09 | 2004-07-08 | Hitachi America, Ltd. | Direct access storage system with combined block interface and file interface access |
CN1549670A (en) * | 2003-05-21 | 2004-11-24 | 华为技术有限公司 | Method and apparatus for examining uniformity |
US8027952B2 (en) * | 2003-06-18 | 2011-09-27 | International Business Machines Corporation | System and article of manufacture for mirroring data at storage locations |
CN102761615A (en) * | 2012-06-29 | 2012-10-31 | 浪潮(北京)电子信息产业有限公司 | Method and device for realizing data synchronism of long-distance duplication system |
CN103795759A (en) * | 2012-10-31 | 2014-05-14 | 北京搜狐新媒体信息技术有限公司 | Method and system for scheduling virtual machine mirror image file |
US20150127612A1 (en) * | 2013-10-30 | 2015-05-07 | Muralidhara R. Balcha | Method and apparatus of managing application workloads on backup and recovery system |
CN105208104A (en) * | 2015-08-26 | 2015-12-30 | 浪潮(北京)电子信息产业有限公司 | Remote mirroring data consistency detection method and device |
CN105446769A (en) * | 2015-11-03 | 2016-03-30 | 广东欧珀移动通信有限公司 | Mirror image file update processing method and apparatus and terminal device |
CN105808374A (en) * | 2014-12-31 | 2016-07-27 | 华为技术有限公司 | Snapshot processing method and associated equipment |
CN106227621A (en) * | 2016-07-25 | 2016-12-14 | 北京飞杰信息技术有限公司 | The data back up method of logic-based volume management simplification volume and system |
CN107102918A (en) * | 2017-05-26 | 2017-08-29 | 郑州云海信息技术有限公司 | A kind of data processing method and device |
CN107480562A (en) * | 2017-08-18 | 2017-12-15 | 郑州云海信息技术有限公司 | A kind of disk management method and device |
CN107493204A (en) * | 2016-06-13 | 2017-12-19 | 阿里巴巴集团控股有限公司 | The method and device of a kind of microscope testing |
CN107678831A (en) * | 2017-09-25 | 2018-02-09 | 郑州云海信息技术有限公司 | It is a kind of to realize the V2V methods migrated between virtual platform |
US20180210781A1 (en) * | 2017-01-21 | 2018-07-26 | International Business Machines Corporation | Asynchronous mirror inconsistency correction |
-
2018
- 2018-11-09 CN CN201811329221.8A patent/CN109460187B/en active Active
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040133718A1 (en) * | 2001-04-09 | 2004-07-08 | Hitachi America, Ltd. | Direct access storage system with combined block interface and file interface access |
CN1549670A (en) * | 2003-05-21 | 2004-11-24 | 华为技术有限公司 | Method and apparatus for examining uniformity |
US8027952B2 (en) * | 2003-06-18 | 2011-09-27 | International Business Machines Corporation | System and article of manufacture for mirroring data at storage locations |
CN102761615A (en) * | 2012-06-29 | 2012-10-31 | 浪潮(北京)电子信息产业有限公司 | Method and device for realizing data synchronism of long-distance duplication system |
CN103795759A (en) * | 2012-10-31 | 2014-05-14 | 北京搜狐新媒体信息技术有限公司 | Method and system for scheduling virtual machine mirror image file |
US20150127612A1 (en) * | 2013-10-30 | 2015-05-07 | Muralidhara R. Balcha | Method and apparatus of managing application workloads on backup and recovery system |
CN105808374A (en) * | 2014-12-31 | 2016-07-27 | 华为技术有限公司 | Snapshot processing method and associated equipment |
CN105208104A (en) * | 2015-08-26 | 2015-12-30 | 浪潮(北京)电子信息产业有限公司 | Remote mirroring data consistency detection method and device |
CN105446769A (en) * | 2015-11-03 | 2016-03-30 | 广东欧珀移动通信有限公司 | Mirror image file update processing method and apparatus and terminal device |
CN107493204A (en) * | 2016-06-13 | 2017-12-19 | 阿里巴巴集团控股有限公司 | The method and device of a kind of microscope testing |
CN106227621A (en) * | 2016-07-25 | 2016-12-14 | 北京飞杰信息技术有限公司 | The data back up method of logic-based volume management simplification volume and system |
US20180210781A1 (en) * | 2017-01-21 | 2018-07-26 | International Business Machines Corporation | Asynchronous mirror inconsistency correction |
CN107102918A (en) * | 2017-05-26 | 2017-08-29 | 郑州云海信息技术有限公司 | A kind of data processing method and device |
CN107480562A (en) * | 2017-08-18 | 2017-12-15 | 郑州云海信息技术有限公司 | A kind of disk management method and device |
CN107678831A (en) * | 2017-09-25 | 2018-02-09 | 郑州云海信息技术有限公司 | It is a kind of to realize the V2V methods migrated between virtual platform |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110008227A (en) * | 2019-04-11 | 2019-07-12 | 苏州浪潮智能科技有限公司 | A kind of consistency group reliability verification method and relevant apparatus |
CN110008227B (en) * | 2019-04-11 | 2021-08-10 | 苏州浪潮智能科技有限公司 | Consistency group reliability verification method and related device |
CN110737546A (en) * | 2019-10-17 | 2020-01-31 | 深信服科技股份有限公司 | consistency snapshot checking method, device, equipment and storage medium |
CN116257277A (en) * | 2023-05-12 | 2023-06-13 | 天津卓朗昆仑云软件技术有限公司 | Mirror image file updating method and device and VOI system |
CN116257277B (en) * | 2023-05-12 | 2023-08-01 | 天津卓朗昆仑云软件技术有限公司 | Mirror image file updating method and device and VOI system |
Also Published As
Publication number | Publication date |
---|---|
CN109460187B (en) | 2022-05-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11023589B2 (en) | Secure booting of virtualization managers | |
AU2020202180B2 (en) | Memory allocation techniques at partially-offloaded virtualization managers | |
US11429414B2 (en) | Virtual machine management using partially offloaded virtualization managers | |
US9336384B2 (en) | Systems and methods for replacing application methods at runtime | |
US10296423B2 (en) | System and method for live virtual incremental restoring of data from cloud storage | |
KR101606212B1 (en) | Hypervisor file system | |
US10303458B2 (en) | Multi-platform installer | |
US9524215B1 (en) | Systems and methods for managing virtual machine backups | |
WO2021072880A1 (en) | Method for asynchronously creating internal snapshot of virtual machine, apparatus, system and storage medium | |
CN109460187A (en) | A kind of qcow2 file data consistency verification method and verifying terminal | |
CN114222975A (en) | Data preservation using memory aperture flush sequence | |
US11288170B1 (en) | Log analysis debugging without running on real production environment | |
CN110516447A (en) | A kind of method and apparatus of identification terminal simulator | |
US10698768B2 (en) | Systems and methods for virtual machine file exclusion | |
US11366800B2 (en) | System and method to automate validating media redirection in testing process | |
EP3959634B1 (en) | Secure initial program load | |
US20150278055A1 (en) | Pluggable component tracking program | |
CN111782474A (en) | Log processing method and device, electronic equipment and medium | |
CN115599618B (en) | Register dynamic change-allocation verification method and device, storage medium and processor | |
US9921884B1 (en) | Local and remote access to virtual machine image filesystems | |
US9569453B1 (en) | Systems and methods for simulating file system instances | |
US10956354B2 (en) | Detecting a type of storage adapter connected and miscabling of a microbay housing the storage adapter | |
CN117909023A (en) | Cloud platform deployment method and device, computer equipment and storage medium | |
CN118069160A (en) | System deployment method, deployment platform and storage medium under micro-service architecture |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |