CN106293498B - A kind of method and apparatus of data copy - Google Patents

A kind of method and apparatus of data copy Download PDF

Info

Publication number
CN106293498B
CN106293498B CN201510307303.2A CN201510307303A CN106293498B CN 106293498 B CN106293498 B CN 106293498B CN 201510307303 A CN201510307303 A CN 201510307303A CN 106293498 B CN106293498 B CN 106293498B
Authority
CN
China
Prior art keywords
data
score
backed
copy
critical data
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.)
Active
Application number
CN201510307303.2A
Other languages
Chinese (zh)
Other versions
CN106293498A (en
Inventor
刘博�
陈立钢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201510307303.2A priority Critical patent/CN106293498B/en
Publication of CN106293498A publication Critical patent/CN106293498A/en
Application granted granted Critical
Publication of CN106293498B publication Critical patent/CN106293498B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of method and apparatus of data copy, are related to computer field, to solve the problem of that the prior art the lower data of higher and importance while can only copy importance when carrying out data backup.This method comprises: storage control obtains the attribute information of at least two data to be backed up stored in main storage device;According to the attribute information and preset code of points, the prominence score score of at least two data to be backed up is determined;Score threshold is obtained, through the prominence score score at least two data to be backed up compared with the score threshold carries out numerical value, determines the critical data and non-critical data at least two data to be backed up;Preferentially copy the critical data at least one from storage equipment, after copy the critical data, by the non-critical data copy to this at least one from storing in equipment.The embodiment of the present invention is for copying data.

Description

A kind of method and apparatus of data copy
Technical field
The present invention relates to computer field more particularly to a kind of method and apparatus of data copy.
Background technique
Currently, in order to ensure storage equipment on data safety it is reliable, it will usually for the storage equipment be arranged one or more It is a from storage equipment, timing or in real time by the data copy in the storage equipment to from storage equipment in back up.
For the prior art when carrying out data backup, the logical partition for being often presented data in storage equipment is either File system carries out whole copy.
It is important for being stored for a user in storage equipment when being backed up to the data in storage equipment The higher data of property, user have the demand for preferentially being backed up the data of high importance.However, due to a logic point In area or file system, it may be stored with the lower data of data and importance of high importance, therefore, existing skill simultaneously Art when carrying out data backup, can only the lower data of and importance higher to importance simultaneously copy.
Summary of the invention
The present invention provides a kind of method and apparatus of data copy, to solve the prior art when carrying out data backup, It can only the lower data of and importance higher to importance the problem of copying simultaneously.
In order to achieve the above object, the present invention adopts the following technical scheme that:
In a first aspect, providing a kind of method of data copy, it is applied to storage control, the storage control and main memory It stores up equipment and at least one is connected from storage equipment, comprising:
The storage control obtains the attribute information of at least two data to be backed up stored in main storage device;
According to the attribute information and preset code of points, determine that the importance of described at least two data to be backed up is commented Divide score;
Score threshold is obtained, the prominence score score and the score threshold to described at least two data to be backed up are passed through Value carries out numerical value comparison, determines the critical data and non-critical data in described at least two data to be backed up;The score threshold Value is greater than the lowest importance scoring score of described at least two data to be backed up, and is less than described at least two data to be backed up Highest prominence score score;
Preferentially by the critical data copy to it is described at least one from storage equipment, copying the critical data Afterwards, by the non-critical data copy to it is described at least one from storage equipment.
In the first possible implementation with reference to first aspect, the attribute information packet of each data to be backed up Include at least one of following information:
The source-information of the data to be backed up, write-in number information, read access time information, is read write time information Number information, storage organization information and storage location information.
With reference to first aspect or the first possible implementation of first aspect, second in first aspect are possible Implementation in, it is described according to the attribute information and preset code of points, determine described at least two data to be backed up Prominence score score include:
Preset numeralization processing is carried out to the attribute information got, obtains the quantized value of the attribute information;
According to corresponding in the quantized value and the storage control of the attribute information of each data to be backed up The weight of attribute information is weighted, and obtains the prominence score score of the data to be backed up.
Any possible implementation into second of possible implementation of first aspect with reference to first aspect, In a third possible implementation of the first aspect, the acquisition score threshold includes:
It obtains by the pre-set score threshold of user;Alternatively, according to the weight of described at least two data to be backed up The property wanted scoring score, which calculate, obtains the score threshold.
Any possible implementation into the third possible implementation of first aspect with reference to first aspect, In a fourth possible implementation of the first aspect, described after having copied the critical data, by the non-key number According to copy to it is described at least one include: from storage equipment
After having copied the critical data, by asynchronous copy mode by the non-critical data copy to it is described at least One from storage equipment.
Any possible implementation into the 4th kind of possible implementation of first aspect with reference to first aspect, In the fifth possible implementation of the first aspect, the score threshold includes multiple threshold values;It is described by it is described extremely Compared with the prominence score score of few two data to be backed up is with score threshold progress numerical value, determine described at least two to Critical data and non-critical data in Backup Data specifically include:
According to the size order of the multiple threshold value by the prominence score score of described at least two data to be backed up Numberical range is divided into N number of numerical intervals;Wherein, the multiple threshold value is the interval endpoint of N number of numerical intervals;N is big In 2 positive integer;And numerical intervals corresponding to preset fraction range are interval key in N number of numerical intervals;
The prominence score score of each data to be backed up and the interval endpoint of N number of numerical intervals are compared Compared with the data to be backed up for determining that score is in the interval key are the critical data, and score is in N number of numerical intervals In the data to be backed up in other sections in addition to the interval key be the non-critical data;
It is described preferentially by the critical data copy to it is described at least one from storage equipment, copying the key After data, by the non-critical data copy to it is described at least one include: from storage equipment
The priority orders that data to be backed up corresponding to the N number of numerical intervals execute copy function are set;Wherein, right The corresponding critical data of the interval key executes the highest priority of copy function;
Copy function is executed according to priority orders data to be backed up corresponding to the N number of numerical intervals.
Second aspect, provides a kind of storage control, the storage control and main storage device and at least one from Equipment is stored to be connected, comprising:
First acquisition unit, for obtaining the attribute information of at least two data to be backed up stored in main storage device;
First determination unit, attribute information and preset scoring rule for being got according to the first acquisition unit Then, the prominence score score of described at least two data to be backed up is determined;
Second acquisition unit, for obtaining score threshold;
Second determination unit, for passing through prominence score score to described at least two data to be backed up and described point Number threshold value carries out numerical value comparison, determines the critical data and non-critical data in described at least two data to be backed up;
Data copy unit, for preferentially by the critical data copy to it is described at least one from storage equipment, In After having copied the critical data, by the non-critical data copy to it is described at least one from storage equipment.
In the first the possible implementation for combining second aspect, first determination unit is specifically used for:
Preset numeralization processing is carried out to the attribute information that the first acquisition unit is got, obtains the category The quantized value of property information;
According to corresponding in the quantized value and the storage control of the attribute information of each data to be backed up The weight of attribute information is weighted, and obtains the prominence score score of the data to be backed up.
In conjunction with the possible implementation of the first of second aspect or second aspect, second in second aspect may Implementation in, the second acquisition unit is specifically used for:
It obtains by the pre-set score threshold of user;Alternatively, according to the weight of described at least two data to be backed up The property wanted scoring score, which calculate, obtains the score threshold.
In conjunction with second aspect to second aspect second of possible implementation in any possible implementation, In the third possible implementation of the second aspect, the data copy unit is specifically used for:
After having copied the critical data, by asynchronous copy mode by the non-critical data copy to it is described at least One from storage equipment.
In conjunction with second aspect to second aspect the third possible implementation in any possible implementation, In the fourth possible implementation of the second aspect, the score threshold includes multiple threshold values;
Second determination unit is specifically used for: according to the size order of the multiple threshold value by described at least two to standby The numberical range of the prominence score score of part data is divided into N number of numerical intervals;Wherein, the multiple threshold value is described N number of The interval endpoint of numerical intervals;N is the positive integer greater than 2;And in N number of numerical intervals corresponding to preset fraction range Numerical intervals are interval key;
The prominence score score of each data to be backed up and the interval endpoint of N number of numerical intervals are compared Compared with the data to be backed up for determining that score is in the interval key are the critical data, and score is in N number of numerical intervals In the data to be backed up in other sections in addition to the interval key be the non-critical data;
The data copy unit is specifically used for: setting data execution to be backed up corresponding to the N number of numerical intervals is copied The priority orders of shellfish operation;Wherein, the critical data corresponding to the interval key executes the priority of copy function Highest;
Copy function is executed according to priority orders data to be backed up corresponding to the N number of numerical intervals.
Using the above scheme, storage control is advised according to the attribute information of at least two data to be backed up and preset scoring Then, the prominence score score of described at least two data to be backed up is determined, and by least two data to be backed up Prominence score score determines the critical data in described at least two data to be backed up compared with the score threshold carries out numerical value And non-critical data, and after preferentially having copied the critical data, by the non-critical data copy to it is described at least one from Store equipment in, be mingled with non-critical data so as to avoid while copying critical data, solve the prior art into When row data backup, can only the lower data of and importance higher to importance the problem of copying simultaneously, improve crucial number According to backup rate.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, embodiment will be described below Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is some realities of the invention Example is applied, it for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of flow diagram of the method for data copy provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram for treating the method that Backup Data scores provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of user equipment provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of another user equipment provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Embodiment one
The embodiment of the present invention provides a kind of method of data copy, is applied to storage control, the storage control and master It stores equipment and at least one is connected from storage equipment, as shown in Figure 1, comprising:
S101, storage control obtain the attribute information of at least two data to be backed up stored in main storage device.
Specifically, the attribute information of each data to be backed up includes at least one of following information:
The source-information of the data to be backed up, write time information, write-in number information, read access time information, reading time Number information, storage organization information and storage location information.
S102, the storage control determine that this is at least two to be backed up according to the attribute information and preset code of points The prominence score score of data.
Wherein, which can be the pre-set operation rule calculated using attribute information of user, example Such as, the weight of each attribute information is preset, the storage control is after the attribute information for obtaining data to be backed up, to the attribute Information carries out preset numeralization processing, obtains the quantized value of the attribute information, and according to the attribute of each data to be backed up The weight that the attribute information is corresponded in the quantized value of information and the storage control is weighted, and it is to be backed up to obtain this The prominence score score of data.Wherein, the numeralization processing is that attribute information is converted to a kind of mode of numerical value expression, For example, multiple time ranges can be preset, each time range corresponds to different numerical value, in this way, storage control is obtaining After getting write time information, the write time information can be some it is specific at the time of, according to the time locating for the moment Range is the quantized value that can determine time write-in information.
Illustratively, the weight for presetting the storage organization information of data to be backed up is 0.6, the weight of write time information It is 0.2, reading times information is 0.2, in this way, storage control is in the storage organization information for getting a certain data to be backed up, After write time information and reading times information, handle to obtain the quantized value of storage organization information, write time by numeralization The quantized value of information and the quantized value of reading times information, and further it is calculated by the following formula the important of the data to be backed up Property scoring score:
The quantized value * 0.2+ of prominence score score=storage organization information quantized value * 0.6+ write time information is read Take the quantized value * 0.2 of number information.
Above-mentioned to be merely illustrative, which is also possible to the preset regulation of user, for example, it is prespecified from The prominence score score that the data of the main storage device are written in specific user's end equipment is 80 points.The present invention does not limit this It is fixed.
S103, the store controller obtain score threshold, pass through the prominence score at least two data to be backed up Score determines the critical data at least two data to be backed up and non-key number compared with the score threshold carries out numerical value According to.
Wherein, which is greater than the lowest importance scoring score of at least two data to be backed up, and being less than should The highest prominence score score of at least two data to be backed up.
Specifically, obtaining the score threshold includes following two implementation:
Mode one, the storage control obtain the preset score threshold of user.
For example, presetting score threshold is 80, the storage control is by the importance of at least two data to be backed up Score score compared with the score threshold carries out numerical value, to be backed up data of the comparison result not less than 80 are critical data, are compared As a result the data to be backed up less than 80 are non-critical data.
Mode two, the storage control are somebody's turn to do according to the calculating of the prominence score score of at least two data to be backed up Score threshold.
For example, the storage control calculates the median of the prominence score score of at least two data to be backed up, it will The median can determine prominence score score not less than in this as the score threshold according to the preset code of points The data to be backed up of digit are critical data, and prominence score score is less than the non-key number of data bit to be backed up of the median According to.
It is above-mentioned to be merely illustrative, for example, the score threshold can also be the importance of at least two data to be backed up The 80% of the numberical range of scoring score, which is not limited by the present invention.
It should be noted that the attribute information of data to be backed up may be dynamic change, therefore, the data to be backed up Prominence score score is also likely to be dynamic change, in this way, compared to score threshold fixed in mode one, mode two passes through The prominence score score for calculating data to be backed up obtains score threshold, differentiation critical data that can be more flexible and non-key number According to.The dynamic change of the attribute information of data to be backed up is described below:
Since the attribute information of data to be backed up may include data origin information or write time information, it deposits Storing up controller can score to the data to be backed up when main storage device is written in data to be backed up, while storage is commented The prominence score score obtained after point, specifically, as shown in Figure 2, comprising:
S201, storage control receive at least two data to be backed up.
At least two data to be backed up, which can be, is sent to storage control by ustomer premises access equipment, is write by storage control Enter the data of main storage device.
S202, the storage control obtain the attribute information of at least two data to be backed up, and to this at least two to Backup Data scores.
Illustratively, the source-information of at least two data to be backed up can be the mark of the ustomer premises access equipment, when write-in Between information can be the time identifier that storage control receives the data moment to be backed up, storage organization information can be this at least The storage catalogue of two data to be backed up, storage location information can be the writing address of at least two data to be backed up, then In step S201, which can be sent to this for the write request message including at least two data to be backed up and deposit Controller is stored up, also, the write request message can also include the identification information of the ustomer premises access equipment, this is at least two to be backed up The storage catalogue of data, the writing address of at least two data to be backed up, in this way, the storage control can be asked from the write-in Ask the source-information that at least two data to be backed up are got in message, storage organization information and storage location information.In addition, The storage control can also receive at least two data to be backed up when, obtain the time identifier at current time.
Further, the corresponding description of step S102 is specifically referred to the scoring of at least two data to be backed up, Details are not described herein again.
S203, the storage control are important by least two data to be backed up and at least two data to be backed up Property scoring score the storage control is written.
Optionally, after the prominence score score for obtaining at least two data to be backed up, it can calculate and obtain this point Number threshold value, for example, calculating the median or average of the prominence score score of at least two data to be backed up, and will The main storage device is written in the score threshold.
In addition, since the attribute information of data to be backed up may include read access time information or reading times information, In reading data, the prominence score score of at least two data to be backed up can be updated, details are not described herein again.
That is, it is to be backed up can to update this when information relevant to the attribute of data to be backed up changes The prominence score score of data, it will be apparent to those skilled in the art knowing, the attribute information of data to be backed up changes The scene of change, which may be not limited only to data write-in and reading and writing data, concrete scene, will not enumerate.
S104, the storage control preferentially copy the critical data at least one from storage equipment, are copying After the critical data, by the non-critical data copy to this at least one from storage equipment.
Illustratively, preset the first copy queue and second copy queue, wherein compared to this second copy queue, The first copy queue preemption of resources carry out data copy, in this way, for the data to be backed up for being determined as critical data, it will The first copy queue is added in the data to be backed up, for being determined as the data to be backed up of non-critical data, by the number to be backed up According to addition the second copy queue.
Optionally, the storage control is non-key by this by way of asynchronous copy after having copied the critical data Data copy to this at least one from storage equipment in.
It should be noted that synchronized copy operation is by storage control by the backup request message including data to be backed up It is sent to from storage equipment, and is receiving this after the backup response message that storage equipment is sent, confirm completion, wherein The backup response message is that this sends after the completion of storing the data to be backed up from storage equipment, and the asynchronous copy operations are Data to be backed up are sent to by storage control confirms completion after storage equipment, therefore, different for user's impression Walk the rate of copy function faster.
In this way, since the data that user may need to timely use are only critical data, at this point, user may only be concerned about When key data backs up completion, therefore, after critical data backs up successfully, carries out asynchronous copy operations to non-critical data, right For user's impression, the backup rate at least two data to be backed up can be improved.
It is at least two to be backed up to this with single score threshold in addition, in the above-mentioned illustration to step S103 The fraction range of data is divided, it can determines that prominence score score is higher than the data to be backed up of the score threshold to close Key data, prominence score score are non-critical data lower than the data to be backed up of the score threshold.But implement in the present invention In the optional implementation of the another kind of example, which includes multiple threshold values, in this way, the storage control can be according to this The numberical range of the score of at least two data to be backed up is divided into N number of numerical intervals by the size order of multiple threshold values;Its In, multiple threshold value is the interval endpoint of N number of numerical intervals;N is the positive integer greater than 2;And it is pre- in N number of numerical intervals If numerical intervals corresponding to fraction range are interval key;By the score of each data to be backed up and N number of numerical intervals Interval endpoint be compared, the data to be backed up for determining that score is in the interval key are the critical data, and score is in the N The data to be backed up in other sections in a numerical intervals in addition to the interval key are the non-critical data.
Illustratively, the fraction range of at least two data to be backed up is [M1, M2], which includes N1, N2 two A threshold value, wherein M1 < N1 < N2 < M2 then regard two threshold values as interval endpoint, can be by least two data to be backed up Fraction range be divided into [M1, N1], [N1, N2], [N2, M2] three numerical intervals.
In this way, if setting [N2, M2] be interval key, then prominence score score be in numerical intervals [N2, M2] to Backup Data is critical data, and prominence score score is in numerical intervals [M1, N1] or the data to be backed up of [N1, N2] are Non-critical data.
Further, for according to score threshold divide at least two data to be backed up prominence score score range It is suitable that the priority that data to be backed up corresponding to the N number of numerical intervals execute copy function is arranged in obtained N number of numerical intervals Sequence, wherein the critical data corresponding to the interval key executes the highest priority of copy function, and suitable according to the priority The corresponding data to be backed up of the ordered pair N number of numerical intervals execute copy function.
For example, interval key is arranged in [N1, N2], [N2, M2] three numerical intervals for [M1, N1] in the example above The copy highest priority of [N2, M2], the copy priority of numerical intervals [N1, N2] secondly, numerical intervals [M1, N1] copy Priority is minimum, in this way, copying at first after determining the critical data and non-critical data at least two data to be backed up Prominence score score is in the critical data of [N2, M2], secondly copies prominence score score and is in the non-key of [N1, N2] Data finally copy prominence score score and are in the non-critical data of [M1, N1], to improve the backup speed of critical data Rate.Using a kind of method of data copy provided in an embodiment of the present invention, storage control is according at least two data to be backed up Attribute information and preset code of points, determine the prominence score score of described at least two data to be backed up, and pass through Described at least two are determined compared with the score threshold carries out numerical value to the prominence score score of at least two data to be backed up Critical data and non-critical data in a data to be backed up, and relative to the non-critical data, the storage control is excellent First the critical data is copied to from storage equipment and is backed up, is mingled with so as to avoid while copying critical data Non-critical data solves the prior art when carrying out data backup, can only the lower data of and importance higher to importance The problem of being copied simultaneously, improves the backup rate of critical data.
Embodiment two,
The embodiment of the present invention provides a kind of storage control 30, and a kind of data for implementing the offer of above-described embodiment one are copied The method of shellfish, wherein the storage control 30 and main storage device and at least one be connected from storage equipment, as shown in figure 3, The storage control 30 includes:
First acquisition unit 31, the attribute for obtaining at least two data to be backed up stored in main storage device are believed Breath;
First determination unit 32, attribute information and preset scoring rule for being got according to the first acquisition unit 31 Then, the prominence score score of at least two data to be backed up is determined;
Second acquisition unit 33, for obtaining score threshold;The score threshold is greater than at least two data to be backed up Lowest importance scoring score, and it is less than the highest prominence score score of at least two data to be backed up;
Second determination unit 34, for passing through the prominence score score and the score at least two data to be backed up Threshold value carries out numerical value comparison, determines the critical data and non-critical data at least two data to be backed up;
Data copy unit 35, for preferentially by the critical data copy to this at least one from storage equipment, copying After the complete critical data of shellfish, by the non-critical data copy to this at least one from storage equipment.
It is worth noting that the attribute information of each data to be backed up includes at least one of following information:
The source-information of the data to be backed up, write time information, write-in number information, read access time information, reading time Number information, storage organization information and storage location information.
Optionally, which is specifically used for, the attribute information got to the first acquisition unit 31 Preset numeralization processing is carried out, obtains the quantized value of the attribute information, and according to the attribute information of each data to be backed up Quantized value and the storage control in correspond to the weight of the attribute information and be weighted, obtain the data to be backed up Prominence score score.
Illustratively, the weight for presetting the storage organization information of data to be backed up is 0.6, the weight of write time information It is 0.2, reading times information is 0.2, in this way, storage control is in the storage organization information for getting a certain data to be backed up, After write time information and reading times information, handle to obtain the quantized value of storage organization information, write time by numeralization The quantized value of information and the quantized value of reading times information, and further it is calculated by the following formula the important of the data to be backed up Property scoring score:
The quantized value * 0.2+ of prominence score score=storage organization information quantized value * 0.6+ write time information is read Take the quantized value * 0.2 of number information.
Above-mentioned to be merely illustrative, which is also possible to the preset regulation of user, for example, it is prespecified from The prominence score score that the data of the main storage device are written in specific user's end equipment is 80 points.The present invention does not limit this It is fixed.
In a kind of possible implementation of the embodiment of the present invention, which is specifically used for, obtain by The pre-set score threshold of user.
For example, presetting score threshold is 80, by the prominence score score of at least two data to be backed up and it is somebody's turn to do Score threshold is compared, comparison result not less than 80 data to be backed up be critical data, comparison result less than 80 to standby Part data are non-critical data.
In the alternatively possible implementation of the embodiment of the present invention, which is specifically used for, according to The prominence score score of at least two data to be backed up, which calculate, obtains the score threshold.
For example, the storage control calculates the median of the prominence score score of at least two data to be backed up, it will The median can determine prominence score score not less than in this as the score threshold according to the preset code of points The data to be backed up of digit are critical data, and prominence score score is less than the non-key number of data bit to be backed up of the median According to.
It is above-mentioned to be merely illustrative, for example, the score threshold can also be the importance of at least two data to be backed up The 80% of the numberical range of scoring score, which is not limited by the present invention.
Optionally, which includes multiple threshold values, then second determination unit 34 is specifically used for, according to multiple threshold The numberical range of the prominence score score of at least two data to be backed up is divided into N number of numerical value area by the size order of value Between;Wherein, multiple threshold value is the interval endpoint of N number of numerical intervals;N is the positive integer greater than 2;And N number of numerical value area Between numerical intervals corresponding to middle preset fraction range be interval key;By the prominence score score of each data to be backed up It is compared with the interval endpoint of N number of numerical intervals, the data to be backed up for determining that score is in the interval key are the key Data, the data to be backed up that score is in other sections in N number of numerical intervals in addition to the interval key are the non-key number According to.
Illustratively, the fraction range of at least two data to be backed up is [M1, M2], which includes N1, N2 two A threshold value, wherein M1 < N1 < N2 < M2 then regard two threshold values as interval endpoint, can be by least two data to be backed up Fraction range be divided into [M1, N1], [N1, N2], [N2, M2] three numerical intervals.
In this way, if setting [N2, M2] be interval key, then prominence score score be in numerical intervals [N2, M2] to Backup Data is critical data, and prominence score score is in numerical intervals [M1, N1] or the data to be backed up of [N1, N2] are Non-critical data.
Further, for according to score threshold divide at least two data to be backed up prominence score score range Obtained N number of numerical intervals, the data copy unit 35 are specifically used for, and setting is to the corresponding number to be backed up of the N number of numerical intervals According to the priority orders for executing copy function, wherein the critical data corresponding to the interval key executes the excellent of copy function First grade highest, and copy function is executed according to priority orders data to be backed up corresponding to the N number of numerical intervals.
For example, interval key is arranged in [N1, N2], [N2, M2] three numerical intervals for [M1, N1] in the example above The copy highest priority of [N2, M2], the copy priority of numerical intervals [N1, N2] secondly, numerical intervals [M1, N1] copy Priority is minimum, in this way, copying at first after determining the critical data and non-critical data at least two data to be backed up Prominence score score is in the critical data of [N2, M2], secondly copies prominence score score and is in the non-key of [N1, N2] Data finally copy prominence score score and are in the non-critical data of [M1, N1], to improve the backup speed of critical data Rate.
Optionally, which is specifically used for, and after having copied the critical data, passes through asynchronous copy mode By the non-critical data copy to this at least one from storage equipment.
It should be noted that synchronized copy operation is by storage control by the backup request message including data to be backed up It is sent to from storage equipment, and is receiving this after the backup response message that storage equipment is sent, confirm completion, wherein The backup response message is that this sends after the completion of storing the data to be backed up from storage equipment, and the asynchronous copy operations are Data to be backed up are sent to by storage control confirms completion after storage equipment, therefore, different for user's impression Walk the rate of copy function faster.
In this way, since the data that user may need to timely use are only critical data, at this point, user may only be concerned about When key data backs up completion, therefore, after critical data backs up successfully, carries out asynchronous copy operations to non-critical data, right For user's impression, the backup rate at least two data to be backed up can be improved.
Affiliated those skilled in the art can be understood that for convenience and simplicity of description, foregoing description is deposited The specific work process for storing up controller, can refer to corresponding processes in the foregoing method embodiment, details are not described herein again.
Using storage control provided in an embodiment of the present invention, the storage control is according at least two data to be backed up Attribute information and preset code of points, determine the prominence score score of described at least two data to be backed up, and by pair The prominence score score of at least two data to be backed up determines described at least two compared with the score threshold carries out numerical value Critical data and non-critical data in data to be backed up, and relative to the non-critical data, the storage control is preferential The critical data is copied to from storage equipment and is backed up, it is non-so as to avoid being mingled with while copying critical data Critical data solves the prior art when carrying out data backup, can only the lower data of and importance higher to importance it is same The problem of Shi Jinhang is copied, improves the backup rate of critical data.
Embodiment three,
The embodiment of the present invention provides another storage control 40, the storage control 40 and main storage device and at least One is connected from storage equipment, as shown in figure 4, the storage control 40 includes:
Processor (processor) 41,42, memory communication interface (Communications Interface) (memory) 43 and communication bus 44;Wherein, the processor 41, the communication interface 42 and the memory 43 pass through described Communication bus 44 completes mutual communication.
Processor 41 may be multi-core central processing unit CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the one of the embodiment of the present invention A or multiple integrated circuits.
For memory 43 for storing program code, said program code includes computer operation instruction and network flow diagrams.It deposits Reservoir 43 may include high speed RAM memory, it is also possible to and it further include nonvolatile memory (non-volatile memory), A for example, at least magnetic disk storage.
The communication interface 42, for realizing the connection communication between these devices.
The processor 41 is used to execute the program code in the memory 43, to realize following operation:
Obtain the attribute information of at least two data to be backed up stored in main storage device;
According to the attribute information and preset code of points, determine that the importance of described at least two data to be backed up is commented Divide score;
Score threshold is obtained, the prominence score score and the score threshold to described at least two data to be backed up are passed through Value carries out numerical value comparison, determines the critical data and non-critical data in described at least two data to be backed up;The score threshold Value is greater than the lowest importance scoring score of described at least two data to be backed up, and is less than described at least two data to be backed up Highest prominence score score;
Preferentially by the critical data copy to it is described at least one from storage equipment, copying the critical data Afterwards, by the non-critical data copy to it is described at least one from storage equipment.
Optionally, the attribute information of each data to be backed up includes at least one of following information:
The source-information of the data to be backed up, write-in number information, read access time information, is read write time information Number information, storage organization information and storage location information.
Optionally, described according to the attribute information and preset code of points, determine described at least two numbers to be backed up According to prominence score score specifically include:
Preset numeralization processing is carried out to the attribute information got, obtains the quantized value of the attribute information;
According to corresponding in the quantized value and the storage control of the attribute information of each data to be backed up The weight of attribute information is weighted, and obtains the prominence score score of the data to be backed up.
Optionally, the acquisition score threshold specifically includes:
It obtains by the pre-set score threshold of user;Alternatively, according to the weight of described at least two data to be backed up The property wanted scoring score, which calculate, obtains the score threshold.
Optionally, described after having copied the critical data, by the non-critical data copy to it is described at least one It is specifically included from storage equipment:
After having copied the critical data, by asynchronous copy mode by the non-critical data copy to it is described at least One from storage equipment.
Optionally, the score threshold includes multiple threshold values;The weight by described at least two data to be backed up The property wanted scores score compared with the score threshold carries out numerical value, determines the critical data in described at least two data to be backed up It is specifically included with non-critical data:
According to the size order of the multiple threshold value by the prominence score score of described at least two data to be backed up Numberical range is divided into N number of numerical intervals;Wherein, the multiple threshold value is the interval endpoint of N number of numerical intervals;N is big In 2 positive integer;And numerical intervals corresponding to preset fraction range are interval key in N number of numerical intervals;
The prominence score score of each data to be backed up and the interval endpoint of N number of numerical intervals are compared Compared with the data to be backed up for determining that score is in the interval key are the critical data, and score is in N number of numerical intervals In the data to be backed up in other sections in addition to the interval key be the non-critical data;
It is described preferentially by the critical data copy to it is described at least one from storage equipment, copying the key After data, by the non-critical data copy to it is described at least one specifically included from storage equipment:
The priority orders that data to be backed up corresponding to the N number of numerical intervals execute copy function are set;Wherein, right The corresponding critical data of the interval key executes the highest priority of copy function;
Copy function is executed according to priority orders data to be backed up corresponding to the N number of numerical intervals.
Affiliated those skilled in the art can be understood that for convenience and simplicity of description, foregoing description is deposited The specific work process for storing up controller, can refer to corresponding processes in the foregoing method embodiment, details are not described herein again.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the portion of each embodiment the method for the present invention Step by step.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, referred to as: ROM), random access memory (full name in English: Random Access Memory, referred to as: RAM), magnetic disk Or the various media that can store program code such as CD.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (9)

1. a kind of method of data copy, it is applied to storage control, the storage control and main storage device and at least One is connected from storage equipment characterized by comprising
The storage control obtains the attribute information of at least two data to be backed up stored in main storage device;
According to the attribute information and preset code of points, the prominence score point of described at least two data to be backed up is determined Number;
It is calculated according to the prominence score score of described at least two data to be backed up, score threshold is obtained, by institute The prominence score score of at least two data to be backed up is stated compared with the score threshold carries out numerical value, determines described at least two Critical data and non-critical data in a data to be backed up;The score threshold is greater than described at least two data to be backed up Lowest importance scoring score, and it is less than the highest prominence score score of described at least two data to be backed up;
Preferentially by the critical data copy to it is described at least one from storage equipment, after having copied the critical data, By the non-critical data copy to it is described at least one from storage equipment.
2. the method according to claim 1, wherein the attribute information of each data to be backed up includes following At least one of information:
Source-information, write time information, the write-in number information, read access time information, reading times of the data to be backed up Information, storage organization information and storage location information.
3. method according to claim 1 or 2, which is characterized in that described according to the attribute information and preset scoring Rule determines that the prominence score score of described at least two data to be backed up includes:
Preset numeralization processing is carried out to the attribute information got, obtains the quantized value of the attribute information;
The attribute is corresponded to according in the quantized value and the storage control of the attribute information of each data to be backed up The weight of information is weighted, and obtains the prominence score score of the data to be backed up.
4. method according to claim 1 or 2, which is characterized in that it is described after having copied the critical data, it will be described Non-critical data copy to it is described at least one include: from storage equipment
After having copied the critical data, by asynchronous copy mode by the non-critical data copy to it is described at least one From storage equipment.
5. method according to claim 1 or 2, which is characterized in that the score threshold includes multiple threshold values;It is described to pass through To the prominence score scores of described at least two data to be backed up compared with the score threshold carries out numerical value, determine it is described extremely Critical data and non-critical data in few two data to be backed up specifically include:
According to the size order of the multiple threshold value by the numerical value of the prominence score score of described at least two data to be backed up Range is divided into N number of numerical intervals;Wherein, the multiple threshold value is the interval endpoint of N number of numerical intervals;N is greater than 2 Positive integer;And numerical intervals corresponding to preset fraction range are interval key in N number of numerical intervals;
The prominence score score of each data to be backed up is compared with the interval endpoint of N number of numerical intervals, The data to be backed up for determining that score is in the interval key are the critical data, and score is in N number of numerical intervals The data to be backed up in other sections in addition to the interval key are the non-critical data;
It is described preferentially by the critical data copy to it is described at least one from storage equipment, copying the critical data Afterwards, by the non-critical data copy to it is described at least one include: from storage equipment
The priority orders that data to be backed up corresponding to the N number of numerical intervals execute copy function are set;Wherein, to described The corresponding critical data of interval key executes the highest priority of copy function;
Copy function is executed according to priority orders data to be backed up corresponding to the N number of numerical intervals.
6. a kind of storage control, the storage control and main storage device and at least one be connected from storage equipment, It is characterized in that, comprising:
First acquisition unit, for obtaining the attribute information of at least two data to be backed up stored in main storage device;
First determination unit, attribute information and preset code of points for being got according to the first acquisition unit, really The prominence score score of fixed at least two data to be backed up;
Second acquisition unit is obtained for being calculated according to the prominence score score of described at least two data to be backed up Score threshold;The score threshold is greater than the lowest importance scoring score of described at least two data to be backed up, and is less than institute State the highest prominence score score of at least two data to be backed up;
Second determination unit, for passing through the prominence score score and the score threshold to described at least two data to be backed up Value carries out numerical value comparison, determines the critical data and non-critical data in described at least two data to be backed up;
Data copy unit, for preferentially by the critical data copy to it is described at least one from storage equipment, copying After the complete critical data, by the non-critical data copy to it is described at least one from storage equipment.
7. storage control according to claim 6, which is characterized in that first determination unit is specifically used for:
Preset numeralization processing is carried out to the attribute information that the first acquisition unit is got, obtains the attribute letter The quantized value of breath;
The attribute is corresponded to according in the quantized value and the storage control of the attribute information of each data to be backed up The weight of information is weighted, and obtains the prominence score score of the data to be backed up.
8. storage control according to claim 6 or 7, which is characterized in that the data copy unit is specifically used for:
After having copied the critical data, by asynchronous copy mode by the non-critical data copy to it is described at least one From storage equipment.
9. storage control according to claim 6 or 7, which is characterized in that the score threshold includes multiple threshold values;
Second determination unit is specifically used for: according to the size order of the multiple threshold value by described at least two numbers to be backed up According to the numberical range of prominence score score be divided into N number of numerical intervals;Wherein, the multiple threshold value is N number of numerical value The interval endpoint in section;N is the positive integer greater than 2;And numerical value corresponding to preset fraction range in N number of numerical intervals Section is interval key;
The prominence score score of each data to be backed up is compared with the interval endpoint of N number of numerical intervals, The data to be backed up for determining that score is in the interval key are the critical data, and score is in N number of numerical intervals The data to be backed up in other sections in addition to the interval key are the non-critical data;
The data copy unit is specifically used for: setting data to be backed up corresponding to the N number of numerical intervals execute copy behaviour The priority orders of work;Wherein, the critical data corresponding to the interval key executes the highest priority of copy function;
Copy function is executed according to priority orders data to be backed up corresponding to the N number of numerical intervals.
CN201510307303.2A 2015-06-05 2015-06-05 A kind of method and apparatus of data copy Active CN106293498B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510307303.2A CN106293498B (en) 2015-06-05 2015-06-05 A kind of method and apparatus of data copy

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510307303.2A CN106293498B (en) 2015-06-05 2015-06-05 A kind of method and apparatus of data copy

Publications (2)

Publication Number Publication Date
CN106293498A CN106293498A (en) 2017-01-04
CN106293498B true CN106293498B (en) 2019-11-19

Family

ID=57659798

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510307303.2A Active CN106293498B (en) 2015-06-05 2015-06-05 A kind of method and apparatus of data copy

Country Status (1)

Country Link
CN (1) CN106293498B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109782609A (en) * 2017-11-13 2019-05-21 广东工业大学 A kind of intelligent home control system
CN110737718A (en) * 2018-07-18 2020-01-31 杭州海康威视系统技术有限公司 Data backup method and device
CN109542678B (en) * 2018-11-07 2021-12-17 郑州云海信息技术有限公司 Method and device for regularly backing up key information of server
CN112231141B (en) * 2020-09-18 2022-07-29 苏州浪潮智能科技有限公司 Method and device for improving Raid data backup efficiency

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103548000A (en) * 2011-03-21 2014-01-29 惠普发展公司,有限责任合伙企业 Data backup prioritization
CN103929480A (en) * 2014-04-11 2014-07-16 北京智谷睿拓技术服务有限公司 Data backup method and device based on tasks
US8924352B1 (en) * 2007-03-31 2014-12-30 Emc Corporation Automated priority backup and archive
WO2013192198A3 (en) * 2012-06-18 2015-04-02 Actifio, Inc. Enhanced data management virtualization system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110313974A1 (en) * 2010-06-17 2011-12-22 Computer Associates Think, Inc. Prioritized data backup

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8924352B1 (en) * 2007-03-31 2014-12-30 Emc Corporation Automated priority backup and archive
CN103548000A (en) * 2011-03-21 2014-01-29 惠普发展公司,有限责任合伙企业 Data backup prioritization
WO2013192198A3 (en) * 2012-06-18 2015-04-02 Actifio, Inc. Enhanced data management virtualization system
CN103929480A (en) * 2014-04-11 2014-07-16 北京智谷睿拓技术服务有限公司 Data backup method and device based on tasks

Also Published As

Publication number Publication date
CN106293498A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
US11656763B2 (en) File management method, distributed storage system, and management node
CN106293498B (en) A kind of method and apparatus of data copy
CN104166606B (en) File backup method and main storage device
CN101086714B (en) System and method for remote mirroring operation
KR102363519B1 (en) Solid state drive of enhanced multi-stream operations and operation method therof
KR101403416B1 (en) Method system for managing virtual machine storage space and physical host
CN103797462B (en) A kind of method and apparatus creating virtual machine
CN107122130B (en) Data deduplication method and device
CN110399102B (en) Data writing method, device and equipment of distributed storage system and storage medium
CN104461768B (en) copy storage device and copy storage method
JP6211631B2 (en) Identifying workloads and sizing buffers for volume replication purposes
CN103827842A (en) Writing message to controller memory space
CN104937564B (en) The data flushing of group form
CN111124254B (en) Method, electronic device and program product for scheduling memory space reclamation requests
CN109417488A (en) The method and apparatus of virtual network function resource management
CN104572242A (en) Method and device for expanding disk space of virtual machine and virtual machine system
CN103874987B (en) Embedded multi-media card partitioned storage space allocation method and terminal
CN109495555A (en) A kind of method and apparatus based on cloud platform creation cloud host
US10606489B2 (en) Sidefiles for management of data written via a bus interface to a storage controller during consistent copying of data
CN109739684A (en) The copy restorative procedure and device of distributed key value database based on vector clock
CN103119567A (en) Systems and methods for managing a virtual tape library domain
CN110457321A (en) Date storage method and Related product based on block chain
CN104536852B (en) Data recovery method and device
CN116483546B (en) Distributed training task scheduling method, device, equipment and storage medium
CN106201346B (en) A kind of data processing method and storage equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant