CN109960474A - Data-updating method, device, equipment and medium based on automatic simplify configuration - Google Patents
Data-updating method, device, equipment and medium based on automatic simplify configuration Download PDFInfo
- Publication number
- CN109960474A CN109960474A CN201910294474.4A CN201910294474A CN109960474A CN 109960474 A CN109960474 A CN 109960474A CN 201910294474 A CN201910294474 A CN 201910294474A CN 109960474 A CN109960474 A CN 109960474A
- Authority
- CN
- China
- Prior art keywords
- equipment
- data information
- data
- metadata
- tree node
- 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.)
- Withdrawn
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/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
- G06F3/0631—Configuration or reconfiguration of storage systems by allocating resources to 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/0662—Virtualisation aspects
- G06F3/0665—Virtualisation aspects at area level, e.g. provisioning of virtual or logical volumes
Abstract
This application discloses a kind of data-updating methods based on automatic simplify configuration, comprising: when receiving update request, judges in pre-set memory with the presence or absence of data information corresponding with request is updated;If it exists, then operation is updated to the data information in memory;Multiple updated data information memory is incited somebody to action to data equipment according to preset rules;The corresponding relationship of actual address and virtual address in more new metadata equipment in B+ tree node corresponding with data information;If it does not exist, then data equipment is written into data information, and in metadata equipment increase newly characterize data information actual address and virtual address corresponding relationship B+ tree node.This method can be when frequently executing data update, pressure of the relative reduction storage system when updating data information, to improve the performance of storage system.Disclosed herein as well is a kind of data update apparatus based on automatic simplify configuration, equipment and computer readable storage mediums, all have above-mentioned beneficial effect.
Description
Technical field
The present invention relates to field of data storage, in particular to a kind of data-updating method based on automatic simplify configuration, dress
It sets, equipment and computer readable storage medium.
Background technique
With the fast development of information technology, the data volume rapid growth of data information, the demand to memory space is continuous
It improves.In order to meet the demand of growing storing data, the prior art provides a kind of number based on automatic compact device
According to storage method.The realization principle of automatic simplify configuration is to provide memory space on demand from storage pool to believe for storing data
Breath, therefore automatic simplify configuration needs a large amount of metadata information to safeguard the virtual address of data information and pair of actual address
It should be related to.By respectively by metadata information and data information memory in metadata equipment and data equipment, and utilize B+
The mode of tree organizes the mapping relations of metadata information and data information.But in actual operation, exist continually more
The operation of new data information still will lead to the read-write of storage system when the update for needing to frequently execute data information operates
Pressure increases, to reduce the stability of storage system.
Therefore, how in the data-updating method based on automatic simplify configuration, the stability for improving storage system is this
The current technical issues that need to address of field technical staff.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of data-updating method based on automatic simplify configuration, it can
Improve the stability of storage system;It is a further object of the present invention to provide a kind of more new clothes of the data based on automatic simplify configuration
It sets, equipment and computer readable storage medium, all has above-mentioned beneficial effect.
In order to solve the above technical problems, the present invention provides a kind of data-updating method based on automatic simplify configuration, comprising:
When receiving update request, judge in pre-set memory with the presence or absence of number corresponding with the update request
It is believed that breath;
If it exists, then operation is updated to the data information in the memory;
The multiple updated data information memory is incited somebody to action to data equipment according to preset rules;
Actual address and virtual address in more new metadata equipment in B+ tree node corresponding with the data information
Corresponding relationship;
If it does not exist, then the data equipment is written into the data information, and increases table newly in the metadata equipment
Levy the B+ tree node of the actual address of the data information and the corresponding relationship of virtual address.
Preferably, the metadata equipment is specially two mutually redundant metadata equipment;
It is corresponding, actual address in the more new metadata equipment in B+ tree node corresponding with the data information with
The corresponding relationship of virtual address specifically:
The actual address in two metadata equipment in B+ tree node corresponding with the data information is updated respectively
With the corresponding relationship of virtual address;
It is corresponding, the actual address and virtual address for increasing the characterization data information newly in the metadata equipment
Corresponding relationship B+ tree node specifically:
Increase the actual address and virtual address for characterizing the data information newly in two metadata equipment respectively
The B+ tree node of corresponding relationship.
Preferably, the metadata equipment is specially mutually redundant first metadata equipment and the second metadata equipment;
It is corresponding, actual address in the more new metadata equipment in B+ tree node corresponding with the data information with
The corresponding relationship of virtual address specifically:
Update the actual address and void in the first metadata equipment in B+ tree node corresponding with the data information
The corresponding relationship of quasi- address;
The corresponding relationship in the first metadata equipment is backed up to described by way of mirror image or duplication
Binary data equipment;
It is corresponding, the actual address and virtual address for increasing the characterization data information newly in the metadata equipment
Corresponding relationship B+ tree node specifically:
The actual address for increasing the characterization data information newly in the first metadata equipment is corresponding with virtual address
The B+ tree node of relationship;
The corresponding relationship in the first metadata equipment is backed up to described by way of mirror image or duplication
Binary data equipment.
Preferably, the data equipment is written into the data information described, and is increased newly in the metadata equipment
Before the B+ tree node for characterizing the actual address of the data information and the corresponding relationship of virtual address, further comprise:
Judge in the metadata equipment with the presence or absence of B+ tree node corresponding with the data information;
If so, the actual address of the data information is found according to the corresponding relationship stored in the B+ tree node,
And operation is updated to the data information in the data equipment according to the actual address;
If it is not, the data equipment then is written in the data information into described, and new in the metadata equipment
The step of increasing the B+ tree node of the corresponding relationship of the actual address and virtual address that characterize the data information.
Preferably, the metadata equipment is specially SSD disk.
In order to solve the above technical problems, the present invention also provides a kind of data update apparatus based on automatic simplify configuration, packet
It includes:
First judgment module, for when receive update request when, judge in pre-set memory whether there is and institute
It states update and requests corresponding data information;If it exists, then enter the first operation module;If it does not exist, then enter the second operation mould
Block;
First operation module, for being updated operation to the data information in the memory;According to default
Rule incites somebody to action the multiple updated data information memory to data equipment;In more new metadata equipment with the data information pair
The corresponding relationship for the actual address and virtual address in B+ tree node answered;
Second operation module for the data equipment to be written in the data information, and is set in the metadata
Increase the B+ tree node of the actual address of the characterization data information and the corresponding relationship of virtual address in standby newly.
Preferably, further comprise:
Second judgment module, for judging in the metadata equipment with the presence or absence of B+ tree corresponding with the data information
Node;If so, into third operation module;If it is not, then entering second operation module;
The third operation module is believed for finding the data according to the corresponding relationship stored in the B+ tree node
The actual address of breath, and operation is updated to the data information in the data equipment according to the actual address.
In order to solve the above technical problems, the present invention also provides a kind of data updating device based on automatic simplify configuration, packet
It includes:
Memory, for storing computer program;
Processor realizes any of the above-described kind of data based on automatic simplify configuration more when for executing the computer program
The step of new method.
In order to solve the above technical problems, the present invention also provides a kind of computer readable storage medium, it is described computer-readable
Computer program is stored on storage medium, the computer program realizes that any of the above-described kind is based on automatically when being executed by processor
The step of data-updating method of simplify configuration.
A kind of data-updating method based on automatic simplify configuration provided by the invention, by presetting for storing number
It is believed that the memory of breath, first internal if there is data information corresponding with request is updated in memory when receiving update request
Data information in depositing is updated operation, and after repeatedly update to data information, by the data information memory to number
According to equipment, then pair of the actual address more in new metadata equipment in B+ tree node corresponding with data information and virtual address
It should be related to;If data equipment is written in data information, and in member there is no data information corresponding with request is updated in memory
Increase the B+ tree node of the actual address of characterize data information and the corresponding relationship of virtual address in data equipment newly.
As it can be seen that by after carrying out repeatedly updating operation to the data information in memory, then extremely by the data information memory
Data equipment so that opposite reduce the number for reading and writing data in data equipment, and updates the effect of data information in memory
Rate is higher than the efficiency that data information is updated in data equipment, therefore this method can be opposite to drop when frequently executing data update
Pressure of the low storage system when updating data information, to improve the performance of storage system.
In order to solve the above technical problems, the present invention also provides a kind of data update apparatus based on automatic simplify configuration,
Equipment and computer readable storage medium all have above-mentioned beneficial effect.
Detailed description of the invention
It in order to illustrate the embodiments of the present invention more clearly or the technical solution of the prior art, below will be to embodiment or existing
Attached drawing needed in technical description is briefly described, it should be apparent that, the accompanying drawings in the following description is only this hair
Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root
Other attached drawings are obtained according to the attached drawing of offer.
Fig. 1 is a kind of flow chart of the data-updating method based on automatic simplify configuration provided in an embodiment of the present invention;
Fig. 2 is a kind of structure chart of the data update apparatus based on automatic simplify configuration provided in an embodiment of the present invention;
Fig. 3 is a kind of structure chart of the data updating device based on automatic simplify configuration provided in an embodiment of the present invention.
Specific embodiment
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 description, 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, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The core of the embodiment of the present invention is to provide a kind of data-updating method based on automatic simplify configuration, can be improved and deposits
The stability of storage system;Another core of the invention is to provide a kind of data update apparatus based on automatic simplify configuration, equipment
And computer readable storage medium, all have above-mentioned beneficial effect.
It is right with reference to the accompanying drawings and detailed description in order to make those skilled in the art more fully understand the present invention program
The present invention is described in further detail.
Fig. 1 is a kind of flow chart of the data-updating method based on automatic simplify configuration provided in an embodiment of the present invention.Such as
Shown in Fig. 1, a kind of data-updating method based on automatic simplify configuration includes:
S10: when receiving update request, judge in pre-set memory with the presence or absence of number corresponding with request is updated
It is believed that breath;
S20: if it exists, then operation is updated to the data information in memory.
Specifically, updating request refers to the operation requests being updated to data information instruction, asked when receiving update
When asking, then data information corresponding with update request is obtained, then judges to whether there is with this more in pre-set memory
Newly request corresponding data information.Pre-set memory refers to the memory space for data cached information, in memory
Data information can be the case where according to the data information stored in data equipment, filters out same data message and stores to memory
In.That is, the original state of the data information in memory, can be and extract part or total data letter from data equipment
Breath is stored in memory.The equipment that data equipment refers to information for storing data, the present embodiment is to the specific of data equipment
Type is without limitation.
Specifically, when existing in pre-set memory and updating the corresponding data information of request, then according to the data
Request is updated operation to the data information in memory.It should be noted that being updated behaviour to the data information in memory
Make, namely utilizes data information corresponding with update request in the data information replacement memory updated in request.
S30: multiple updated data information memory is incited somebody to action to data equipment according to preset rules.
Specifically, will repeatedly updated data information memory can be to data equipment internal according to preset rules
When the number that data information in depositing is updated reaches preset times, by data information memory to data equipment;Alternatively, can also
To be according to prefixed time interval by the data information memory in memory to data equipment.It is understood that according to default time
Several or prefixed time interval mode is provided to add up in memory the repeatedly update to data information, then will be after update
Data information memory into data equipment, to achieve the purpose that reduction is interacted with data equipment.
It should be noted that in specific implementation, usually first by data information according to simplifying configurable write enters data automatically
In storage pool, then by brush under the data information in data storage pool into data equipment.Automatic simplify configuration passes through setting essence
Letter volume, namely in storage pool distribute according to need space volume, to be provided according to the actual demand of data information for data information
Memory space, so as to improve the utilization rate of memory space.Data information is carried out to be stored as ability according to automatic simplify configuration
The common knowledge of field technique personnel, is not repeated herein.
S40: actual address and virtual address in more new metadata equipment in B+ tree node corresponding with data information
Corresponding relationship.
Specifically, then needing to correspond to more after being written updated data information multiple in memory into data equipment
The corresponding relationship of actual address and virtual address in new metadata equipment in B+ tree node.It is understood that in advance in member
B+ tree (B+tree) is set in data storage pool, for the corresponding relationship of data and metadata in characterize data information, according to B+
Tree can more easily find the actual address or virtual address of data information according to virtual address or actual address.When first number
When reaching certain threshold value according to the node of the B+ tree in storage pool, then lower brush can be triggered, also i.e. by the actual address in B+ tree node
It is updated in metadata equipment with the corresponding relationship of virtual address.
S50: if it does not exist, being then written data equipment for data information, and increases characterize data letter newly in metadata equipment
The B+ tree node of the corresponding relationship of the actual address and virtual address of breath.
It should be noted that if then being requested according to update when be not present in memory with the corresponding data information of request is updated
Corresponding virtual address, and according to the mapping relations of virtual address and actual address, by corresponding data information according to automatic precision
Letter configuration mode the corresponding position of the actual address into data equipment is written, and can be derived that actual address with virtually
Then the corresponding relationship of location increases B+ tree node newly on the B+ tree in metadata storage pool, and practically by the data information
The corresponding relationship of location and virtual address is stored into the B+ tree node, and when B+ tree node reaches certain threshold value, by B+ tree
Brush is into metadata equipment under the metadata information of node.
A kind of data-updating method based on automatic simplify configuration provided in an embodiment of the present invention, is used for by presetting
The memory of storing data information, when receiving update request, if there is data information corresponding with request is updated in memory,
Operation first is updated to the data information in memory, and after repeatedly update to data information, which is deposited
Storage to data equipment, then the actual address more in new metadata equipment in B+ tree node corresponding with data information with virtually
The corresponding relationship of location;If data equipment is written in data information there is no data information corresponding with request is updated in memory,
And increase the B+ tree node of the actual address of characterize data information and the corresponding relationship of virtual address newly in metadata equipment.
As it can be seen that by after carrying out repeatedly updating operation to the data information in memory, then extremely by the data information memory
Data equipment so that opposite reduce the number for reading and writing data in data equipment, and updates the effect of data information in memory
Rate is higher than the efficiency that data information is updated in data equipment, therefore this method can be opposite to drop when frequently executing data update
Pressure of the low storage system when updating data information, to improve the performance of storage system.
On the basis of the above embodiments, the present embodiment has made further instruction and optimization to technical solution, specifically,
Metadata equipment is specially two mutually redundant metadata equipment;
Corresponding, in more new metadata equipment in B+ tree node corresponding with data information actual address and virtual address
Corresponding relationship specifically:
Update respectively actual address in two metadata equipment in B+ tree node corresponding with data information with virtually
The corresponding relationship of location;
It is corresponding, the corresponding relationship of the actual address and virtual address of newly-increased characterize data information in metadata equipment
B+ tree node specifically:
Increase the actual address of characterize data information and the corresponding relationship of virtual address newly in two metadata equipment respectively
B+ tree node.
It in the present embodiment, is using two mutually redundant metadata equipment storage metadata informations, namely at two
B+ tree is respectively set in metadata equipment.Specifically, two mutually redundant metadata equipment are preset, in more new metadata
It is then specially to distinguish when the corresponding relationship of actual address and virtual address in equipment in B+ tree node corresponding with data information
Update the corresponding relationship of the actual address and virtual address in two metadata equipment in B+ tree node corresponding with data information.
Alternatively, increasing the B+ of the actual address of characterize data information and the corresponding relationship of virtual address newly in metadata equipment
When tree node, the actual address of characterize data information and the corresponding relationship of virtual address are increased newly in two metadata equipment respectively
B+ tree node.
When by data information in more new metadata equipment, while two mutually redundant metadata informations are carried out
It updates, so that the corresponding relationship of the storage in two metadata equipment is mutually redundant.Therefore, when any metadata equipment is sent out
Raw failure or it is offline when, then another metadata equipment taking over tasks can be used, avoidance breakout host service ensures storage system
The stability and reliability of system.
On the basis of the above embodiments, the present embodiment has made further instruction and optimization to technical solution, specifically,
Metadata equipment is specially mutually redundant first metadata equipment and the second metadata equipment;
Corresponding, in more new metadata equipment in B+ tree node corresponding with data information actual address and virtual address
Corresponding relationship specifically:
Update actual address in the first metadata equipment in B+ tree node corresponding with data information and virtual address
Corresponding relationship;
The corresponding relationship in the first metadata equipment is backed up into the second metadata equipment by way of mirror image or duplication;
It is corresponding, the corresponding relationship of the actual address and virtual address of newly-increased characterize data information in metadata equipment
B+ tree node specifically:
Increase the B+ of the actual address of characterize data information and the corresponding relationship of virtual address newly in the first metadata equipment
Tree node;
The corresponding relationship in the first metadata equipment is backed up into the second metadata equipment by way of mirror image or duplication.
Specifically, the present embodiment passes through two mutually redundant metadata equipment of setting: the first metadata equipment and second
Metadata equipment, also, the actual address in more new metadata equipment in B+ tree node corresponding with data information and virtual
When the corresponding relationship of address, specially update in the first metadata equipment in B+ tree node corresponding with data information practically
The corresponding relationship of location and virtual address;Then by way of mirror image or duplication that the corresponding relationship in the first metadata equipment is standby
Part to the second metadata equipment.That is, first updating in the first metadata equipment in B+ tree node corresponding with data information
Actual address and virtual address corresponding relationship, corresponding relationship is then backuped to second by way of mirror image or duplication
In metadata equipment.
It should be noted that the present embodiment to the mode of backup without limitation, taken with specific reference to actual demand corresponding
Measure is backed up, as by the way of duplication or mirror image.
It should be noted that in specific implementation, more than two mutually redundant metadata equipment can also be set, it is right
Metadata information is backed up, and backup mode is referred to the backup mode of above-mentioned two mutually redundant metadata equipment,
The present embodiment to the quantity of specific mutually redundant metadata equipment without limitation.
As preferred embodiment, data equipment is being written into data information, and is increasing characterization newly in metadata equipment
Before the B+ tree node of the corresponding relationship of the actual address and virtual address of data information, further comprise:
Judge in metadata equipment with the presence or absence of B+ tree node corresponding with data information;
If so, finding the actual address of data information according to the corresponding relationship stored in B+ tree node, and according to reality
Border address is updated operation to the data information in data equipment;
Data equipment is written into data information if it is not, then entering, and increases characterize data information newly in metadata equipment
The step of B+ tree node of the corresponding relationship of actual address and virtual address.
In the present embodiment, data equipment is being written into data information, and is increasing characterize data letter newly in metadata equipment
Before the B+ tree node of the corresponding relationship of the actual address and virtual address of breath, further judge to whether there is in metadata equipment
B+ tree node corresponding with data information;That is, there is data information corresponding with request is updated in data equipment, still
The data information is not stored in pre-set memory, but in general, all numbers will be stored in metadata equipment
It is believed that the virtual address of breath and the corresponding relationship of actual address, therefore, the present embodiment is by further judging in metadata equipment
With the presence or absence of B+ tree node corresponding with data information;If it exists, then it represents that the data information is stored in data equipment;According to
The corresponding relationship stored in B+ tree node finds the actual address of data information, and according to actual address in data equipment
Data information is updated operation;If it does not exist, then it represents that data corresponding with update request are also not present in data equipment
Therefore data equipment is written in data information by information, and in metadata equipment increase newly characterize data information actual address with
The B+ tree node of the corresponding relationship of virtual address.
As it can be seen that the present embodiment is by further judging in metadata equipment with the presence or absence of B+ burl corresponding with data information
Point, to can be further improved the performance of storage system.
On the basis of the above embodiments, the present embodiment has made further instruction and optimization to technical solution, specifically,
Metadata equipment is specially SSD disk.
It is understood that SSD disk namely solid state hard disk (Solid State Disk), referred to as consolidate disk, solid state hard disk is used
Solid-state electronic storage chip array and manufactured hard disk, by control unit and storage unit (FLASH chip, dram chip) group
At.The present embodiment is using SSD disk as the storage equipment of storage metadata information.Metadata belongs to hot spot data, to read-write
Performance and data security requirement it is higher, by utilizing SSD disk fritter random read-write performance for meta-data preservation to SSD disk
Advantage, greatly improve the access performance of metadata information.
A kind of embodiment of the data-updating method based on automatic simplify configuration provided by the invention is carried out above
Detailed description the present invention also provides a kind of data update apparatus based on automatic simplify configuration corresponding with this method, is set
Standby and computer readable storage medium, due to device, the embodiment of equipment and computer readable storage medium part and method portion
The embodiment divided mutually correlates, therefore the embodiment of device, equipment and computer readable storage medium part refers to method portion
The description for the embodiment divided, wouldn't repeat here.
Fig. 2 is a kind of structure chart of the data update apparatus based on automatic simplify configuration provided in an embodiment of the present invention, such as
Shown in Fig. 2, a kind of data update apparatus based on automatic simplify configuration includes:
First judgment module 21, for when receive update request when, judge in pre-set memory with the presence or absence of with
It updates and requests corresponding data information;If it exists, then enter the first operation module;If it does not exist, then enter the second operation module;
First operation module 22, for being updated operation to the data information in memory;It will be multiple according to preset rules
Updated data information memory is to data equipment;Reality in more new metadata equipment in B+ tree node corresponding with data information
The corresponding relationship of border address and virtual address;
Second operation module 23 for data equipment to be written in data information, and increases characterization number newly in metadata equipment
It is believed that the B+ tree node of the corresponding relationship of the actual address and virtual address of breath.
Data update apparatus provided in an embodiment of the present invention based on automatic simplify configuration is based on simplifying automatically with above-mentioned
The beneficial effect of the data-updating method of configuration.
As preferred embodiment, a kind of data update apparatus based on automatic simplify configuration further comprises:
Second judgment module, for judging in metadata equipment with the presence or absence of B+ tree node corresponding with data information;If
It is then to enter third operation module;If it is not, then entering the second operation module;
Third operation module, for finding data information practically according to the corresponding relationship stored in B+ tree node
Location, and operation is updated to the data information in data equipment according to actual address.
Fig. 3 is a kind of structure chart of the data updating device based on automatic simplify configuration provided in an embodiment of the present invention, such as
Shown in Fig. 3, a kind of data updating device based on automatic simplify configuration includes:
Memory 31, for storing computer program;
Processor 32 realizes such as the above-mentioned data-updating method based on automatic simplify configuration when for executing computer program
The step of.
Data updating device provided in an embodiment of the present invention based on automatic simplify configuration is based on simplifying automatically with above-mentioned
The beneficial effect of the data-updating method of configuration.
In order to solve the above technical problems, the present invention also provides a kind of computer readable storage medium, computer-readable storage
It is stored with computer program on medium, such as the above-mentioned number based on automatic simplify configuration is realized when computer program is executed by processor
The step of according to update method.
Computer readable storage medium provided in an embodiment of the present invention has the above-mentioned data based on automatic simplify configuration more
The beneficial effect of new method.
Above to the data-updating method based on automatic simplify configuration, device, equipment and computer provided by the present invention
Readable storage medium storing program for executing is described in detail.Specific embodiment used herein carries out the principle of the present invention and embodiment
It illustrates, the above description of the embodiment is only used to help understand the method for the present invention and its core ideas.It should be pointed out that for
For those skilled in the art, without departing from the principle of the present invention, if can also be carried out to the present invention
Dry improvement and modification, these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities
The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment
Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration
?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
Claims (9)
1. a kind of data-updating method based on automatic simplify configuration characterized by comprising
When receiving update request, judge to believe in pre-set memory with the presence or absence of data corresponding with the update request
Breath;
If it exists, then operation is updated to the data information in the memory;
The multiple updated data information memory is incited somebody to action to data equipment according to preset rules;
Actual address and virtual address in more new metadata equipment in B+ tree node corresponding with the data information it is corresponding
Relationship;
If it does not exist, then the data equipment is written into the data information, and increases characterization institute newly in the metadata equipment
State the B+ tree node of the actual address of data information and the corresponding relationship of virtual address.
2. the method according to claim 1, wherein the metadata equipment is specially two mutually redundant members
Data equipment;
It is corresponding, actual address in the more new metadata equipment in B+ tree node corresponding with the data information and virtual
The corresponding relationship of address specifically:
The actual address and void in two metadata equipment in B+ tree node corresponding with the data information are updated respectively
The corresponding relationship of quasi- address;
It is corresponding, pair of the actual address for increasing the characterization data information newly in the metadata equipment and virtual address
The B+ tree node that should be related to specifically:
The actual address for increasing the characterization data information newly in two metadata equipment respectively is corresponding with virtual address
The B+ tree node of relationship.
3. the method according to claim 1, wherein the metadata equipment is specially mutually redundant first yuan
Data equipment and the second metadata equipment;
It is corresponding, actual address in the more new metadata equipment in B+ tree node corresponding with the data information and virtual
The corresponding relationship of address specifically:
Update actual address in the first metadata equipment in B+ tree node corresponding with the data information with virtually
The corresponding relationship of location;
The corresponding relationship in the first metadata equipment is backed up to described second yuan by way of mirror image or duplication
Data equipment;
It is corresponding, pair of the actual address for increasing the characterization data information newly in the metadata equipment and virtual address
The B+ tree node that should be related to specifically:
Increase the actual address of the characterization data information and the corresponding relationship of virtual address newly in the first metadata equipment
B+ tree node;
The corresponding relationship in the first metadata equipment is backed up to described second yuan by way of mirror image or duplication
Data equipment.
4. the method according to claim 1, wherein the data information write-in data are set described
It is standby, and increase in the metadata equipment B+ of the actual address of the characterization data information and the corresponding relationship of virtual address newly
Before tree node, further comprise:
Judge in the metadata equipment with the presence or absence of B+ tree node corresponding with the data information;
If so, finding the actual address of the data information according to the corresponding relationship stored in the B+ tree node, and root
Operation is updated to the data information in the data equipment according to the actual address;
If it is not, the data equipment then is written in the data information into described, and increase table newly in the metadata equipment
The step of levying the B+ tree node of the actual address of the data information and the corresponding relationship of virtual address.
5. method according to any one of claims 1 to 4, which is characterized in that the metadata equipment is specially SSD disk.
6. a kind of data update apparatus based on automatic simplify configuration characterized by comprising
First judgment module, for when receive update request when, judge in pre-set memory with the presence or absence of with it is described more
Newly request corresponding data information;If it exists, then enter the first operation module;If it does not exist, then enter the second operation module;
First operation module, for being updated operation to the data information in the memory;According to preset rules
By the multiple updated data information memory to data equipment;It is corresponding with the data information in more new metadata equipment
The corresponding relationship of actual address and virtual address in B+ tree node;
Second operation module, for the data equipment to be written in the data information, and in the metadata equipment
The B+ tree node of the corresponding relationship of the actual address and virtual address of the newly-increased characterization data information.
7. device according to claim 6, which is characterized in that further comprise:
Second judgment module, for judging in the metadata equipment with the presence or absence of B+ burl corresponding with the data information
Point;If so, into third operation module;If it is not, then entering second operation module;
The third operation module, for finding the data information according to the corresponding relationship stored in the B+ tree node
Actual address, and operation is updated to the data information in the data equipment according to the actual address.
8. a kind of data updating device based on automatic simplify configuration characterized by comprising
Memory, for storing computer program;
Processor is realized when for executing the computer program and is based on simplifying automatically as described in any one of claim 1 to 5
The step of data-updating method of configuration.
9. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program is realized when the computer program is executed by processor and is matched as described in any one of claim 1 to 5 based on automatic simplify
The step of data-updating method set.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910294474.4A CN109960474A (en) | 2019-04-12 | 2019-04-12 | Data-updating method, device, equipment and medium based on automatic simplify configuration |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910294474.4A CN109960474A (en) | 2019-04-12 | 2019-04-12 | Data-updating method, device, equipment and medium based on automatic simplify configuration |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109960474A true CN109960474A (en) | 2019-07-02 |
Family
ID=67026045
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910294474.4A Withdrawn CN109960474A (en) | 2019-04-12 | 2019-04-12 | Data-updating method, device, equipment and medium based on automatic simplify configuration |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109960474A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111813603A (en) * | 2020-07-16 | 2020-10-23 | 济南浪潮数据技术有限公司 | Method, device and equipment for backing up metadata of thin volume and readable storage medium |
WO2021012904A1 (en) * | 2019-07-23 | 2021-01-28 | 平安科技(深圳)有限公司 | Data updating method and related device |
-
2019
- 2019-04-12 CN CN201910294474.4A patent/CN109960474A/en not_active Withdrawn
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021012904A1 (en) * | 2019-07-23 | 2021-01-28 | 平安科技(深圳)有限公司 | Data updating method and related device |
CN111813603A (en) * | 2020-07-16 | 2020-10-23 | 济南浪潮数据技术有限公司 | Method, device and equipment for backing up metadata of thin volume and readable storage medium |
CN111813603B (en) * | 2020-07-16 | 2022-06-10 | 济南浪潮数据技术有限公司 | Method, device and equipment for backing up metadata of thin volume and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8805902B2 (en) | Managing snapshot storage pools | |
US10067722B2 (en) | Storage system for provisioning and storing data to a virtual disk | |
US9424151B2 (en) | Disk failure recovery for virtual disk with policies | |
US9483205B2 (en) | Writing to a storage platform including a plurality of storage clusters | |
US9798489B2 (en) | Cloning a virtual disk in a storage platform | |
US9558085B2 (en) | Creating and reverting to a snapshot of a virtual disk | |
US9875063B2 (en) | Method for writing data to a virtual disk using a controller virtual machine and different storage and communication protocols | |
US9411534B2 (en) | Time stamp generation for virtual disks | |
US9864530B2 (en) | Method for writing data to virtual disk using a controller virtual machine and different storage and communication protocols on a single storage platform | |
US9501231B2 (en) | Storage system and storage control method | |
US9037828B2 (en) | Transferring storage resources between snapshot storage pools and volume storage pools in a data storage system | |
US20060047926A1 (en) | Managing multiple snapshot copies of data | |
CN103929500A (en) | Method for data fragmentation of distributed storage system | |
CN106445409A (en) | Distributed block storage data writing method and device | |
WO2016004120A2 (en) | Storage system with virtual disks | |
CN103514249A (en) | Method and system for automatic data reduction and storage device | |
TWI531901B (en) | Data flush of group table | |
CN110196818A (en) | Data cached method, buffer memory device and storage system | |
CN109471843A (en) | A kind of metadata cache method, system and relevant apparatus | |
CN105828017B (en) | A kind of cloud storage access system and method towards video conference | |
CN109960474A (en) | Data-updating method, device, equipment and medium based on automatic simplify configuration | |
CN107506466A (en) | A kind of small documents storage method and system | |
CN111930315A (en) | Data access method, data access device and storage medium | |
CN103761156A (en) | Online repair method aimed at file system | |
US11188258B2 (en) | Distributed storage system |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190702 |
|
WW01 | Invention patent application withdrawn after publication |