CN106293498A - A kind of method and apparatus of data copy - Google Patents
A kind of method and apparatus of data copy Download PDFInfo
- Publication number
- CN106293498A CN106293498A CN201510307303.2A CN201510307303A CN106293498A CN 106293498 A CN106293498 A CN 106293498A CN 201510307303 A CN201510307303 A CN 201510307303A CN 106293498 A CN106293498 A CN 106293498A
- Authority
- CN
- China
- Prior art keywords
- data
- backed
- mark
- critical data
- storage device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Abstract
The invention discloses the method and apparatus of a kind of data copy, relate to computer realm, in order to solve prior art when carrying out data backup, can only the problem that simultaneously copies of higher to importance and that importance is relatively low data.The method includes: storage control obtains the attribute information of at least two data to be backed up of storage in main storage device;According to this attribute information and default code of points, determine the prominence score mark of this at least two data to be backed up;Obtaining score threshold, prominence score mark and this score threshold by data to be backed up to this at least two carry out numeric ratio relatively, determine the critical data in this at least two data to be backed up and non-critical data;Preferential this critical data is copied at least one from storage device, after having copied this critical data, this non-critical data is copied to this at least one from storage device.The embodiment of the present invention is used for copying data.
Description
Technical field
The present invention relates to computer realm, particularly relate to the method and apparatus of a kind of data copy.
Background technology
Currently, safe and reliable in order to ensure the data in storage device, it will usually to arrange one for this storage device
Individual or multiple from storage device, timing or the real-time data in this storage device being copied to set from storage
Back up in Bei.
Prior art, when carrying out data backup, is often logical partition data presented in storage device
Or file system carries out the copy of entirety.
When the data in storage device are backed up, for storage in storage device for a user,
The data that importance is higher, user has demand data higher for this importance preferentially backed up.But,
Due in a logical partition or file system, the higher data and important of making a difference may be stored simultaneously
The data that property is relatively low, therefore, prior art, can only be higher and important to importance when carrying out data backup
The relatively low data of property copy simultaneously.
Summary of the invention
The present invention provides the method and apparatus that a kind of data copy, in order to solve prior art to carry out data standby
Part time, can only the problem that simultaneously copies of higher to importance and that importance is relatively low data.
In order to achieve the above object, the present invention adopts the following technical scheme that:
First aspect, it is provided that the method for a kind of data copy, is applied to storage control, and described storage controls
Device is connected from storage device with main storage device and at least one, including:
Described storage control obtains the attribute information of at least two data to be backed up of storage in main storage device;
According to described attribute information and default code of points, determine the weight of described at least two data to be backed up
The property wanted scoring mark;
Obtain score threshold, by the prominence score mark of data to be backed up to described at least two with described
Score threshold carries out numeric ratio relatively, determines the critical data in described at least two data to be backed up and non-key
Data;Described score threshold is more than the lowest importance scoring mark of described at least two data to be backed up, and
The highest prominence score mark less than described at least two data to be backed up;
Described in preferentially described critical data being copied to, at least one is from storage device, is copying described pass
After key data, described non-critical data is copied to described at least one from storage device.
In the first the possible implementation combining first aspect, the attribute of each described data to be backed up
Information includes at least one of following information:
The source-information of described data to be backed up, write time information, write number information, time of reading believe
Breath, reading times information, storage organization information and storage positional information.
In conjunction with the first possible implementation of first aspect or first aspect, in the second of first aspect
In kind possible implementation, described according to described attribute information with the code of points preset, determine described in extremely
The prominence score mark of few two data to be backed up includes:
The process that quantizes presetting the described attribute information got, obtains the amount of described attribute information
Change value;
The quantized value of the attribute information according to each described data to be backed up, and right in described storage control
The weights answering described attribute information are weighted, and obtain the prominence score mark of described data to be backed up.
In conjunction with any one the possible realization in the implementation that the second of first aspect to first aspect is possible
Mode, in the third possible implementation of first aspect, described acquisition score threshold includes:
Obtain the described score threshold pre-set by user;Or, according to described at least two number to be backed up
According to prominence score mark carry out calculate obtain described score threshold.
In conjunction with any one the possible realization in the third possible implementation of first aspect to first aspect
Mode, in the 4th kind of possible implementation of first aspect, described after having copied described critical data,
Described in described non-critical data being copied to, at least one includes from storage device:
After having copied described critical data, copy described non-critical data to institute by asynchronous copy mode
State at least one from storage device.
In conjunction with any one the possible realization in the 4th kind of possible implementation of first aspect to first aspect
Mode, in the 5th kind of possible implementation of first aspect, described score threshold includes multiple threshold value;
Described by the prominence score mark of data to be backed up to described at least two and described score threshold number
Value compares, and determines that the critical data in described at least two data to be backed up and non-critical data specifically include:
According to the size order of the plurality of threshold value, the prominence score of data to be backed up for described at least two is divided
The numerical range of number is divided into N number of numerical intervals;Wherein, the plurality of threshold value is described N number of numerical intervals
Interval endpoint;N is the positive integer more than 2;And preset fraction scope institute in described N number of numerical intervals
Corresponding numerical intervals is interval key;
Interval endpoint by the prominence score mark of each described data to be backed up Yu described N number of numerical intervals
Comparing, determining that mark is in the data to be backed up of described interval key is described critical data, at mark
In described N number of numerical intervals, the data to be backed up in other intervals in addition to described interval key are described non-pass
Key data;
Described preferential described critical data is copied to described at least one from storage device, having copied
After stating critical data, described non-critical data is copied to described at least one include from storage device:
The priority orders that the data to be backed up that described N number of numerical intervals is corresponding perform copy function is set;
Wherein, the priority that the described critical data that described interval key is corresponding performs copy function is the highest;
According to described priority orders, the data to be backed up that described N number of numerical intervals is corresponding are performed copy function.
Second aspect, it is provided that a kind of storage control, described storage control and main storage device and at least
One is connected from storage device, including:
First acquiring unit, for obtaining the attribute of at least two data to be backed up of storage in main storage device
Information;
First determines unit, for the attribute information got according to described first acquiring unit and default commenting
Divider then, determines the prominence score mark of described at least two data to be backed up;
Second acquisition unit, is used for obtaining score threshold;
Second determines unit, for by the prominence score mark of data to be backed up to described at least two with
Described score threshold carries out numeric ratio relatively, determines the critical data in described at least two data to be backed up and non-
Critical data;
Data copy cell, for preferential described critical data copied to described at least one from storage device
In, after having copied described critical data, described non-critical data is copied to described at least one from storage
In equipment.
In the first the possible implementation combining second aspect, described first determine unit specifically for:
The process that quantizes that the described attribute information getting described first acquiring unit is preset, obtains
The quantized value of described attribute information;
The quantized value of the attribute information according to each described data to be backed up, and right in described storage control
The weights answering described attribute information are weighted, and obtain the prominence score mark of described data to be backed up.
In conjunction with the first possible implementation of second aspect or second aspect, in the second of second aspect
In kind possible implementation, described second acquisition unit specifically for:
Obtain the described score threshold pre-set by user;Or, according to described at least two number to be backed up
According to prominence score mark carry out calculate obtain described score threshold.
In conjunction with any one the possible realization in the implementation that the second of second aspect to second aspect is possible
Mode, in the third possible implementation of second aspect, described data copy cell specifically for:
After having copied described critical data, copy described non-critical data to institute by asynchronous copy mode
State at least one from storage device.
In conjunction with any one the possible realization in the third possible implementation of second aspect to second aspect
Mode, in the 4th kind of possible implementation of second aspect, described score threshold includes multiple threshold value;
Described second determine unit specifically for: according to the size order of the plurality of threshold value by described at least two
The numerical range of the prominence score mark of individual data to be backed up is divided into N number of numerical intervals;Wherein, described
Multiple threshold values are the interval endpoint of described N number of numerical intervals;N is the positive integer more than 2;And described N
In individual numerical intervals, the numerical intervals corresponding to preset fraction scope is interval key;
Interval endpoint by the prominence score mark of each described data to be backed up Yu described N number of numerical intervals
Comparing, determining that mark is in the data to be backed up of described interval key is described critical data, at mark
In described N number of numerical intervals, the data to be backed up in other intervals in addition to described interval key are described non-pass
Key data;
Described data copy cell specifically for: the to be backed up data corresponding to described N number of numerical intervals are set
Perform the priority orders of copy function;Wherein, the described critical data that described interval key is corresponding is performed
The priority of copy function is the highest;
According to described priority orders, the data to be backed up that described N number of numerical intervals is corresponding are performed copy function.
Using such scheme, storage control is according to the attribute information of at least two data to be backed up and presets
Code of points, determines the prominence score mark of described at least two data to be backed up, and by this at least
The prominence score mark of two data to be backed up and this score threshold carry out numeric ratio relatively determine described at least two
Critical data in individual data to be backed up and non-critical data, and after preferentially having copied this critical data,
Described in this non-critical data being copied to, at least one is from storage device, thus avoids and close bond number at copy
It is mingled with non-critical data while according to, solves prior art when carrying out data backup, can only be to important
Property the relatively low data of higher and importance carry out the problem that copies simultaneously, improve the backup speed of critical data.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to enforcement
In example description, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below
It is some embodiments of the present invention, for those of ordinary skill in the art, is not paying creative work
On the premise of, it is also possible to other accompanying drawing is obtained according to these accompanying drawings.
The schematic flow sheet of the method for a kind of data copy that Fig. 1 provides for the embodiment of the present invention;
A kind of flow process signal treating the method that Backup Data carries out marking that Fig. 2 provides for the embodiment of the present invention
Figure;
The structural representation of a kind of subscriber equipment that Fig. 3 provides for the embodiment of the present invention;
The structural representation of the another kind of subscriber equipment that Fig. 4 provides for the embodiment of the present invention.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the present invention
Accompanying drawing in embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention, it is clear that
Described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based in the present invention
Embodiment, those of ordinary skill in the art obtained under not making creative work premise all its
His embodiment, broadly falls into the scope of protection of the invention.
Embodiment one
The embodiment of the present invention provides the method for a kind of data copy, is applied to storage control, and this storage controls
Device is connected from storage device with main storage device and at least one, as it is shown in figure 1, include:
S101, storage control obtain the attribute letter of at least two data to be backed up of storage in main storage device
Breath.
Specifically, the attribute information of each data to be backed up includes at least one of following information:
The source-information of these data to be backed up, write time information, write number information, read temporal information,
Reading times information, storage organization information and storage positional information.
S102, this storage control, according to this attribute information and default code of points, determine this at least two
The prominence score mark of data to be backed up.
Wherein, this code of points can be the computing utilizing attribute information to carry out the calculating rule that user pre-sets
Then, such as, pre-setting the weights of each attribute information, this storage control is obtaining the genus of data to be backed up
After property information, the process that quantizes that this attribute information is preset, obtain the quantized value of this attribute information,
And the quantized value of the attribute information according to these data to be backed up each, and to belonging in this storage control
The weights of property information are weighted, and obtain the prominence score mark of these data to be backed up.Wherein, institute
Stating the process that quantizes is a kind of mode that attribute information is converted to numeric representation, for example, it is possible to pre-set
Multiple time range, the corresponding different numerical value of each time range, so, storage control is write getting
After angle of incidence information, this write time information can be the moment that some is concrete, residing for this moment
Time range i.e. can determine that the quantized value of this time write information.
Illustratively, the weights of the storage organization information pre-setting data to be backed up are 0.6, write time information
Weights be 0.2, reading times information is 0.2, and so, storage control is getting a certain number to be backed up
According to storage organization information, after write time information and reading times information, by quantizing, process is deposited
The quantized value of storage structure information, the quantized value of write time information and the quantized value of reading times information, go forward side by side
One step calculates the prominence score mark of these data to be backed up by below equation:
The quantized value * 0.2+ of the quantized value * 0.6+ write time information of prominence score mark=storage organization information
The quantized value * 0.2 of reading times information.
Above-mentioned being merely illustrative, this code of points can also be user's regulation set in advance, such as, in advance
First specify that the prominence score mark of the data writing this main storage device from specific user's end equipment is 80 points.
This is not limited by the present invention.
S103, this store controller obtain score threshold, important by data to be backed up to this at least two
Property scoring mark and this score threshold carry out numeric ratio relatively, determine the key in this at least two data to be backed up
Data and non-critical data.
Wherein, this score threshold is more than the lowest importance scoring mark of this at least two data to be backed up, and
The highest prominence score mark less than this at least two data to be backed up.
Specifically, obtain this score threshold and include following two implementation:
Mode one, this storage control obtain user's score threshold set in advance.
Such as, presetting score threshold is 80, and this storage control is by data to be backed up for this at least two
Prominence score mark and this score threshold carry out numeric ratio relatively, the comparative result data to be backed up not less than 80
For critical data, the comparative result data to be backed up less than 80 are non-critical data.
Mode two, this storage control calculate according to the prominence score mark of this at least two data to be backed up
Obtain this score threshold.
Such as, this storage control calculates the middle position of prominence score mark of this at least two data to be backed up
Number, using this median as this score threshold, the code of points preset according to this, it may be determined that importance is commented
Dividing mark is critical data not less than the data to be backed up of this median, and prominence score mark is less than position in this
The data bit non-critical data to be backed up of number.
Above-mentioned being merely illustrative, such as, this score threshold can also is that this at least two data to be backed up
The 80% of the numerical range of prominence score mark, this is not limited by the present invention.
It should be noted that the attribute information of data to be backed up is probably dynamically change, therefore, this treats standby
The prominence score mark of number evidence is also likely to be dynamically change, so, compared to fix in mode one
Score threshold, mode two obtains score threshold by calculating the prominence score mark of data to be backed up, permissible
More flexible differentiation critical data and non-critical data.Attribute information dynamic of to be backed up data is described below
Change:
Owing to the attribute information of data to be backed up can include data origin information or write time information, because of
This, these data to be backed up can be carried out when by data to be backed up write main storage device by storage control
Scoring, the prominence score mark obtained after storage scoring simultaneously, specifically, as in figure 2 it is shown, include:
S201, storage control receive at least two data to be backed up.
This at least two data to be backed up can be to be sent to storage control by ustomer premises access equipment, storage control
The data of device processed write main storage device.
S202, this storage control obtain the attribute information of this at least two data to be backed up, and to this at least
Two data to be backed up are marked.
Illustratively, the source-information of this at least two data to be backed up can be the mark of this ustomer premises access equipment,
Write time information can be the time marking that storage control receives the data moment to be backed up, storage organization
Information can be the storage catalogue of this at least two data to be backed up, storage positional information can be this at least two
The writing address of individual data to be backed up, then in step S201, this ustomer premises access equipment can by include this at least two
The write request message of individual data to be backed up sends to this storage control, and, this write request message is also
Can include the identification information of this ustomer premises access equipment, the storage catalogue of this at least two data to be backed up, this is extremely
The writing address of few two data to be backed up, so, this storage control can be from this write request message
Get the source-information of this at least two data to be backed up, storage organization information and storage positional information.Separately
Outward, this storage control can also receive this at least two data to be backed up time, obtain current time
Time marking.
Further, to be specifically referred to step S102 corresponding in the scoring of data to be backed up to this at least two
Describing, here is omitted.
S203, this storage control are by data to be backed up for this at least two and this at least two data to be backed up
Prominence score mark write this storage control.
Alternatively, after the prominence score mark obtaining this at least two data to be backed up, can calculate and obtain
Obtain this score threshold, such as, calculate the median of the prominence score mark of this at least two data to be backed up,
Or average, and this score threshold is write this main storage device.
Further, since the attribute information of data to be backed up can include reading temporal information or reading times information,
Therefore, when digital independent, the prominence score mark of this at least two data to be backed up can be updated, this
Place repeats no more.
It is to say, when the information relevant to the attribute of data to be backed up changes, all can be updated this
The prominence score mark of data to be backed up, it will be apparent to those skilled in the art and know, data to be backed up
The scene that changes of attribute information may be not limited only to data write and reading and writing data, concrete scene is no longer
Enumerate.
S104, this storage control preferentially this critical data is copied at least one from storage device,
After having copied this critical data, this non-critical data is copied to this at least one from storage device.
Illustratively, pre-set the first copy queue and the second copy queue, wherein, second copy compared to this
Shellfish queue, these the first copy queue preemption of resources carry out data copy, so, for being defined as key
These data to be backed up are added this first copy queue by the data to be backed up of data, non-key for being defined as
These data to be backed up are added this second copy queue by the data to be backed up of data.
Alternatively, this storage control, should by the way of asynchronous copy after having copied this critical data
Non-critical data copy to this at least one from storage device.
It should be noted that synchronized copy operation is please by the backup including data to be backed up by storage control
Ask message to send to from storage device, and receive this after the backup response message that storage device sends,
Having confirmed, wherein, this backup response message is that this completes in these data to be backed up of storage from storage device
Rear transmission, and this asynchronous copy operations to be storage control send data to be backed up to after storage device
I.e. having confirmed, therefore, for user experiences, the speed of asynchronous copy operations is faster.
So, owing to user may need the data timely used to be only critical data, now, user may
Only it is concerned about when critical data has backed up, therefore, after critical data backs up successfully, to non-critical data
Carry out asynchronous copy operations, for user experiences, data to be backed up to this at least two can be improved
Backup speed.
It addition, in the above-mentioned illustration to step S103, be all to this at least two with single score threshold
The fraction range of data to be backed up divides, and i.e. may determine that prominence score mark is higher than this score threshold
Data to be backed up be critical data, prominence score mark is non-less than the data to be backed up of this score threshold
Critical data.But, in the another kind of optional implementation of the embodiment of the present invention, this score threshold bag
Include multiple threshold value, so, this storage control can according to the size order of the plurality of threshold value by this at least two
The numerical range of the mark of individual data to be backed up is divided into N number of numerical intervals;Wherein, the plurality of threshold value is for being somebody's turn to do
The interval endpoint of N number of numerical intervals;N is the positive integer more than 2;And this N number of numerical intervals is preset
Numerical intervals corresponding to fraction range is interval key;By N number of with this for the mark of these data to be backed up each
The interval endpoint of numerical intervals compares, and determining that mark is in the data to be backed up of this interval key is this pass
Key data, mark is in the data to be backed up in other intervals in this N number of numerical intervals in addition to this interval key
For this non-critical data.
Illustratively, the fraction range of this at least two data to be backed up is [M1, M2], and this score threshold includes
Two threshold values of N1, N2, wherein, M1 < N1 < N2 < M2, then using two threshold values all as interval endpoint, can
It is divided into [M1, N1] with the fraction range by data to be backed up for this at least two, [N1, N2], [N2, M2]
Three numerical intervals.
So, if set [N2, M2] be interval key, then prominence score mark be in numerical intervals [N2,
M2] data to be backed up be critical data, prominence score mark be in numerical intervals [M1, N1] or [N1,
N2] data to be backed up be non-critical data.
Further, for dividing the prominence score mark of at least two data to be backed up according to score threshold
N number of numerical intervals of obtaining of scope, arrange and perform to copy to the data to be backed up that this N number of numerical intervals is corresponding
The priority orders of shellfish operation, wherein, performs copy function to this critical data that this interval key is corresponding
Priority is the highest, and performs to copy to the data to be backed up that this N number of numerical intervals is corresponding according to this priority orders
Shellfish operates.
Such as, for [M1, N1] in the example above, [N1, N2], [N2, M2] three numerical intervals,
The copy priority arranging interval key [N2, M2] is the highest, the copy priority of numerical intervals [N1, N2] its
Secondary, the copy priority of numerical intervals [M1, N1] is minimum, so, is determining this at least two number to be backed up
After critical data according to and non-critical data, copy prominence score mark is in the pass of [N2, M2] at first
Key data, secondly copy prominence score mark is in the non-critical data of [N1, N2], finally copies important
Property scoring mark be in the non-critical data of [M1, N1], thus improve the backup speed of critical data.Adopt
By the method for a kind of data copy that the embodiment of the present invention provides, storage control is to be backed up according at least two
The attribute information of data and the code of points preset, determine that the importance of described at least two data to be backed up is commented
Divide mark, and carried out with this score threshold by the prominence score mark of data to be backed up to this at least two
Numeric ratio relatively determines the critical data in described at least two data to be backed up and non-critical data, and relatively
In described non-critical data, described critical data is preferentially copied to and carries out from storage device by this storage control
Backup, thus avoid and be mingled with non-critical data while copy critical data, solve prior art
When carrying out data backup, can only asking of simultaneously copying of higher to importance and that importance is relatively low data
Topic, improves the backup speed of critical data.
Embodiment two,
The embodiment of the present invention provides a kind of storage control 30, for implementing the one that above-described embodiment one provides
The method of data copy, wherein, this storage control 30 and main storage device and at least one set from storage
Standby connected, as it is shown on figure 3, this storage control 30 includes:
First acquiring unit 31, for obtaining the genus of at least two data to be backed up of storage in main storage device
Property information;
First determines unit 32, for the attribute information that gets according to this first acquiring unit 31 with preset
Code of points, determines the prominence score mark of this at least two data to be backed up;
Second acquisition unit 33, is used for obtaining score threshold;This score threshold is to be backed up more than this at least two
The lowest importance scoring mark of data, and less than the highest prominence score of this at least two data to be backed up
Mark;
Second determines unit 34, for by the prominence score mark of data to be backed up to this at least two with
This score threshold carries out numeric ratio relatively, determines the critical data in this at least two data to be backed up and non-key
Data;
Data copy cell 35, for preferential this critical data copied to this at least one from storage device,
After having copied this critical data, this non-critical data is copied to this at least one from storage device.
What deserves to be explained is, the attribute information of each data to be backed up includes at least one of following information:
The source-information of these data to be backed up, write time information, write number information, read temporal information,
Reading times information, storage organization information and storage positional information.
Alternatively, this first determine unit 32 specifically for, this first acquiring unit 31 is got should
Attribute information carries out the process that quantizes preset, and obtains the quantized value of this attribute information, and treats according to each this
To entering the weights of attribute information in the quantized value of the attribute information of Backup Data, and this storage control
Row weighted calculation, obtains the prominence score mark of these data to be backed up.
Illustratively, the weights of the storage organization information pre-setting data to be backed up are 0.6, write time information
Weights be 0.2, reading times information is 0.2, and so, storage control is getting a certain number to be backed up
According to storage organization information, after write time information and reading times information, by quantizing, process is deposited
The quantized value of storage structure information, the quantized value of write time information and the quantized value of reading times information, go forward side by side
One step calculates the prominence score mark of these data to be backed up by below equation:
The quantized value * 0.2+ of the quantized value * 0.6+ write time information of prominence score mark=storage organization information
The quantized value * 0.2 of reading times information.
Above-mentioned being merely illustrative, this code of points can also be user's regulation set in advance, such as, in advance
First specify that the prominence score mark of the data writing this main storage device from specific user's end equipment is 80 points.
This is not limited by the present invention.
In a kind of possible implementation of the embodiment of the present invention, this second acquisition unit 33 specifically for,
Obtain this score threshold pre-set by user.
Such as, presetting score threshold is 80, the prominence score of data to be backed up for this at least two is divided
Number compares with this score threshold, and the comparative result data to be backed up not less than 80 are critical data, compare
The result data to be backed up less than 80 are non-critical data.
In the alternatively possible implementation of the embodiment of the present invention, this second acquisition unit 33 specifically for,
Prominence score mark according to this at least two data to be backed up carries out calculating this score threshold of acquisition.
Such as, this storage control calculates the middle position of prominence score mark of this at least two data to be backed up
Number, using this median as this score threshold, the code of points preset according to this, it may be determined that importance is commented
Dividing mark is critical data not less than the data to be backed up of this median, and prominence score mark is less than position in this
The data bit non-critical data to be backed up of number.
Above-mentioned being merely illustrative, such as, this score threshold can also is that this at least two data to be backed up
The 80% of the numerical range of prominence score mark, this is not limited by the present invention.
Alternatively, this score threshold includes multiple threshold value, then this second determine unit 34 specifically for, according to
The size order of the plurality of threshold value is by the numerical range of the prominence score mark of data to be backed up for this at least two
It is divided into N number of numerical intervals;Wherein, the plurality of threshold value is the interval endpoint of this N number of numerical intervals;N is
Positive integer more than 2;And the numerical intervals corresponding to preset fraction scope is for closing in this N number of numerical intervals
Between keypad;Interval endpoint by the prominence score mark of these data to be backed up each Yu this N number of numerical intervals
Comparing, determining that mark is in the data to be backed up of this interval key is this critical data, and mark is in this N
In individual numerical intervals, the data to be backed up in other intervals in addition to this interval key are this non-critical data.
Illustratively, the fraction range of this at least two data to be backed up is [M1, M2], and this score threshold includes
Two threshold values of N1, N2, wherein, M1 < N1 < N2 < M2, then using two threshold values all as interval endpoint, can
It is divided into [M1, N1] with the fraction range by data to be backed up for this at least two, [N1, N2], [N2, M2]
Three numerical intervals.
So, if set [N2, M2] be interval key, then prominence score mark be in numerical intervals [N2,
M2] data to be backed up be critical data, prominence score mark be in numerical intervals [M1, N1] or [N1,
N2] data to be backed up be non-critical data.
Further, for dividing the prominence score mark of at least two data to be backed up according to score threshold
N number of numerical intervals of obtaining of scope, this data copy cell 35 specifically for, arrange this N number of number
The interval corresponding data to be backed up of value perform the priority orders of copy function, wherein, to this interval key pair
The priority that this critical data answered performs copy function is the highest, and according to this priority orders to this N number of number
The interval corresponding data to be backed up of value perform copy function.
Such as, for [M1, N1] in the example above, [N1, N2], [N2, M2] three numerical intervals,
The copy priority arranging interval key [N2, M2] is the highest, the copy priority of numerical intervals [N1, N2] its
Secondary, the copy priority of numerical intervals [M1, N1] is minimum, so, is determining this at least two number to be backed up
After critical data according to and non-critical data, copy prominence score mark is in the pass of [N2, M2] at first
Key data, secondly copy prominence score mark is in the non-critical data of [N1, N2], finally copies important
Property scoring mark be in the non-critical data of [M1, N1], thus improve the backup speed of critical data.
Alternatively, this data copy cell 35 specifically for, after having copied this critical data, by asynchronous
Copy mode this non-critical data is copied to this at least one from storage device.
It should be noted that synchronized copy operation is please by the backup including data to be backed up by storage control
Ask message to send to from storage device, and receive this after the backup response message that storage device sends,
Having confirmed, wherein, this backup response message is that this completes in these data to be backed up of storage from storage device
Rear transmission, and this asynchronous copy operations to be storage control send data to be backed up to after storage device
I.e. having confirmed, therefore, for user experiences, the speed of asynchronous copy operations is faster.
So, owing to user may need the data timely used to be only critical data, now, user may
Only it is concerned about when critical data has backed up, therefore, after critical data backs up successfully, to non-critical data
Carry out asynchronous copy operations, for user experiences, data to be backed up to this at least two can be improved
Backup speed.
Belonging to those skilled in the art it can be understood that arrive, for convenience and simplicity of description, above-mentioned retouch
The specific works process of the storage control stated, is referred to the corresponding process in preceding method embodiment, this
Place repeats no more.
Using the storage control that the embodiment of the present invention provides, this storage control is to be backed up according at least two
The attribute information of data and the code of points preset, determine that the importance of described at least two data to be backed up is commented
Divide mark, and carried out with this score threshold by the prominence score mark of data to be backed up to this at least two
Numeric ratio relatively determines the critical data in described at least two data to be backed up and non-critical data, and relatively
In described non-critical data, described critical data is preferentially copied to and carries out from storage device by this storage control
Backup, thus avoid and be mingled with non-critical data while copy critical data, solve prior art
When carrying out data backup, can only asking of simultaneously copying of higher to importance and that importance is relatively low data
Topic, improves the backup speed of critical data.
Embodiment three,
The embodiment of the present invention provides another kind of storage control 40, this storage control 40 and main storage device with
And at least one is connected from storage device, as shown in Figure 4, this storage control 40 includes:
Processor (processor) 41, communication interface (Communications Interface) 42, memorizer
(memory) 43 and communication bus 44;Wherein, described processor 41, described communication interface 42 and described
Memorizer 43 completes mutual communication by described communication bus 44.
Processor 41 is probably a multi-core central processing unit CPU, or specific integrated circuit ASIC
(Application Specific Integrated Circuit), or be configured to implement the embodiment of the present invention
One or more integrated circuits.
Memorizer 43 is used for depositing program code, and described program code includes computer-managed instruction and network flow
Figure.Memorizer 43 may comprise high-speed RAM memorizer, it is also possible to also includes nonvolatile memory
(non-volatile memory), for example, at least one disk memory.
Described communication interface 42, for realizing the connection communication between these devices.
Described processor 41 is for performing the program code in described memorizer 43, to realize following operation:
Obtain the attribute information of at least two data to be backed up of storage in main storage device;
According to described attribute information and default code of points, determine the weight of described at least two data to be backed up
The property wanted scoring mark;
Obtain score threshold, by the prominence score mark of data to be backed up to described at least two with described
Score threshold carries out numeric ratio relatively, determines the critical data in described at least two data to be backed up and non-key
Data;Described score threshold is more than the lowest importance scoring mark of described at least two data to be backed up, and
The highest prominence score mark less than described at least two data to be backed up;
Described in preferentially described critical data being copied to, at least one is from storage device, is copying described pass
After key data, described non-critical data is copied to described at least one from storage device.
Alternatively, the attribute information of each described data to be backed up includes at least one of following information:
The source-information of described data to be backed up, write time information, write number information, time of reading believe
Breath, reading times information, storage organization information and storage positional information.
Alternatively, described according to described attribute information and preset code of points, determine that described at least two is treated
The prominence score mark of Backup Data specifically includes:
The process that quantizes presetting the described attribute information got, obtains the amount of described attribute information
Change value;
The quantized value of the attribute information according to each described data to be backed up, and right in described storage control
The weights answering described attribute information are weighted, and obtain the prominence score mark of described data to be backed up.
Alternatively, described acquisition score threshold specifically includes:
Obtain the described score threshold pre-set by user;Or, according to described at least two number to be backed up
According to prominence score mark carry out calculate obtain described score threshold.
Alternatively, described after having copied described critical data, described non-critical data is copied to described in extremely
Few one specifically includes from storage device:
After having copied described critical data, copy described non-critical data to institute by asynchronous copy mode
State at least one from storage device.
Alternatively, described score threshold includes multiple threshold value;Described by number to be backed up to described at least two
According to prominence score mark and described score threshold carry out numeric ratio relatively, determine that described at least two is to be backed up
Critical data and non-critical data in data specifically include:
According to the size order of the plurality of threshold value, the prominence score of data to be backed up for described at least two is divided
The numerical range of number is divided into N number of numerical intervals;Wherein, the plurality of threshold value is described N number of numerical intervals
Interval endpoint;N is the positive integer more than 2;And preset fraction scope institute in described N number of numerical intervals
Corresponding numerical intervals is interval key;
Interval endpoint by the prominence score mark of each described data to be backed up Yu described N number of numerical intervals
Comparing, determining that mark is in the data to be backed up of described interval key is described critical data, at mark
In described N number of numerical intervals, the data to be backed up in other intervals in addition to described interval key are described non-pass
Key data;
Described preferential described critical data is copied to described at least one from storage device, having copied
After stating critical data, described non-critical data is copied to described at least one specifically include from storage device:
The priority orders that the data to be backed up that described N number of numerical intervals is corresponding perform copy function is set;
Wherein, the priority that the described critical data that described interval key is corresponding performs copy function is the highest;
According to described priority orders, the data to be backed up that described N number of numerical intervals is corresponding are performed copy function.
Belonging to those skilled in the art it can be understood that arrive, for convenience and simplicity of description, above-mentioned retouch
The specific works process of the storage control stated, is referred to the corresponding process in preceding method embodiment, this
Place repeats no more.
In several embodiments provided herein, it should be understood that disclosed system, device and side
Method, can realize by another way.Such as, device embodiment described above is only schematically
, such as, the division of described unit, be only a kind of logic function and divide, actual can have when realizing another
Outer dividing mode, the most multiple unit or assembly can in conjunction with or be desirably integrated into another system, or
Some features can be ignored, or does not performs.Another point, shown or discussed coupling each other or straight
Connect coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or unit or communication connection,
Can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, as
The parts that unit shows can be or may not be physical location, i.e. may be located at a place, or
Can also be distributed on multiple NE.Can select therein some or all of according to the actual needs
Unit realizes the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit,
Can also be that unit is individually physically present, it is also possible to two or more unit are integrated in a unit
In.Above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ hardware adds software function
The form of unit realizes.
The above-mentioned integrated unit realized with the form of SFU software functional unit, can be stored in a computer can
Read in storage medium.Above-mentioned SFU software functional unit is stored in a storage medium, uses including some instructions
So that a computer equipment (can be personal computer, server, or the network equipment etc.) performs
The part steps of method described in each embodiment of the present invention.And aforesaid storage medium includes: USB flash disk, movement
(English full name: Read-Only Memory, is called for short: ROM), random access memory deposits for hard disk, read only memory
Reservoir (English full name: Random Access Memory, is called for short: RAM), magnetic disc or CD etc. various
The medium of program code can be stored.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know base
This creativeness concept, then can make other change and amendment to these embodiments.So, appended right is wanted
Ask and be intended to be construed to include preferred embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification without deviating from this to the present invention
Bright spirit and scope.So, if the present invention these amendment and modification belong to the claims in the present invention and
Within the scope of its equivalent technologies, then the present invention is also intended to comprise these change and modification.
Claims (11)
1. a method for data copy, is applied to storage control, and described storage control sets with primary storage
Standby and at least one be connected from storage device, it is characterised in that including:
Described storage control obtains the attribute information of at least two data to be backed up of storage in main storage device;
According to described attribute information and default code of points, determine the weight of described at least two data to be backed up
The property wanted scoring mark;
Obtain score threshold, by the prominence score mark of data to be backed up to described at least two with described
Score threshold carries out numeric ratio relatively, determines the critical data in described at least two data to be backed up and non-key
Data;Described score threshold is more than the lowest importance scoring mark of described at least two data to be backed up, and
The highest prominence score mark less than described at least two data to be backed up;
Described in preferentially described critical data being copied to, at least one is from storage device, is copying described pass
After key data, described non-critical data is copied to described at least one from storage device.
Method the most according to claim 1, it is characterised in that the attribute of each described data to be backed up
Information includes at least one of following information:
The source-information of described data to be backed up, write time information, write number information, time of reading believe
Breath, reading times information, storage organization information and storage positional information.
Method the most according to claim 1 and 2, it is characterised in that described according to described attribute information
With default code of points, determine that the prominence score mark of described at least two data to be backed up includes:
The process that quantizes presetting the described attribute information got, obtains the amount of described attribute information
Change value;
The quantized value of the attribute information according to each described data to be backed up, and right in described storage control
The weights answering described attribute information are weighted, and obtain the prominence score mark of described data to be backed up.
4. according to the method described in any one of claims 1 to 3, it is characterised in that described acquisition mark threshold
Value includes:
Obtain the described score threshold pre-set by user;Or, according to described at least two number to be backed up
According to prominence score mark carry out calculate obtain described score threshold.
5. according to the method described in any one of Claims 1-4, it is characterised in that described having copied
After stating critical data, described non-critical data is copied to described at least one include from storage device:
After having copied described critical data, copy described non-critical data to institute by asynchronous copy mode
State at least one from storage device.
6. according to the method described in any one of Claims 1-4, it is characterised in that described score threshold bag
Include multiple threshold value;The described prominence score mark by data to be backed up to described at least two with described point
Number threshold value carries out numeric ratio relatively, determines the critical data in described at least two data to be backed up and non-key number
According to specifically including:
According to the size order of the plurality of threshold value, the prominence score of data to be backed up for described at least two is divided
The numerical range of number is divided into N number of numerical intervals;Wherein, the plurality of threshold value is described N number of numerical intervals
Interval endpoint;N is the positive integer more than 2;And preset fraction scope institute in described N number of numerical intervals
Corresponding numerical intervals is interval key;
Interval endpoint by the prominence score mark of each described data to be backed up Yu described N number of numerical intervals
Comparing, determining that mark is in the data to be backed up of described interval key is described critical data, at mark
In described N number of numerical intervals, the data to be backed up in other intervals in addition to described interval key are described non-pass
Key data;
Described preferential described critical data is copied to described at least one from storage device, having copied
After stating critical data, described non-critical data is copied to described at least one include from storage device:
The priority orders that the data to be backed up that described N number of numerical intervals is corresponding perform copy function is set;
Wherein, the priority that the described critical data that described interval key is corresponding performs copy function is the highest;
According to described priority orders, the data to be backed up that described N number of numerical intervals is corresponding are performed copy function.
7. a storage control, described storage control and main storage device and at least one set from storage
Standby connected, it is characterised in that to include:
First acquiring unit, for obtaining the attribute of at least two data to be backed up of storage in main storage device
Information;
First determines unit, for the attribute information got according to described first acquiring unit and default commenting
Divider then, determines the prominence score mark of described at least two data to be backed up;
Second acquisition unit, is used for obtaining score threshold;Described score threshold is treated standby more than described at least two
The lowest importance scoring mark of number evidence, and less than the highest importance of described at least two data to be backed up
Scoring mark;
Second determines unit, for by the prominence score mark of data to be backed up to described at least two with
Described score threshold carries out numeric ratio relatively, determines the critical data in described at least two data to be backed up and non-
Critical data;
Data copy cell, for preferential described critical data copied to described at least one from storage device
In, after having copied described critical data, described non-critical data is copied to described at least one from storage
In equipment.
Storage control the most according to claim 7, it is characterised in that described first determines that unit has
Body is used for:
The process that quantizes that the described attribute information getting described first acquiring unit is preset, obtains
The quantized value of described attribute information;
The quantized value of the attribute information according to each described data to be backed up, and right in described storage control
The weights answering described attribute information are weighted, and obtain the prominence score mark of described data to be backed up.
9. according to the storage control described in claim 7 or 8, it is characterised in that described second obtains list
Unit specifically for:
Obtain the described score threshold pre-set by user;Or, according to described at least two number to be backed up
According to prominence score mark carry out calculate obtain described score threshold.
10. according to the storage control described in any one of claim 7 to 9, it is characterised in that described number
According to copy cell specifically for:
After having copied described critical data, copy described non-critical data to institute by asynchronous copy mode
State at least one from storage device.
11. according to the storage control described in any one of claim 7 to 9, it is characterised in that described point
Number threshold value includes multiple threshold value;
Described second determine unit specifically for: according to the size order of the plurality of threshold value by described at least two
The numerical range of the prominence score mark of individual data to be backed up is divided into N number of numerical intervals;Wherein, described
Multiple threshold values are the interval endpoint of described N number of numerical intervals;N is the positive integer more than 2;And described N
In individual numerical intervals, the numerical intervals corresponding to preset fraction scope is interval key;
Interval endpoint by the prominence score mark of each described data to be backed up Yu described N number of numerical intervals
Comparing, determining that mark is in the data to be backed up of described interval key is described critical data, at mark
In described N number of numerical intervals, the data to be backed up in other intervals in addition to described interval key are described non-pass
Key data;
Described data copy cell specifically for: the to be backed up data corresponding to described N number of numerical intervals are set
Perform the priority orders of copy function;Wherein, the described critical data that described interval key is corresponding is performed
The priority of copy function is the highest;
According to described priority orders, the data to be backed up that described N number of numerical intervals is corresponding are performed copy function.
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 true CN106293498A (en) | 2017-01-04 |
CN106293498B 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) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109542678A (en) * | 2018-11-07 | 2019-03-29 | 郑州云海信息技术有限公司 | A kind of server key message timed backup method and device |
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 |
WO2022057374A1 (en) * | 2020-09-18 | 2022-03-24 | 苏州浪潮智能科技有限公司 | Method and apparatus for improving raid data backup efficiency |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110313974A1 (en) * | 2010-06-17 | 2011-12-22 | Computer Associates Think, Inc. | Prioritized data backup |
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 |
-
2015
- 2015-06-05 CN CN201510307303.2A patent/CN106293498B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8924352B1 (en) * | 2007-03-31 | 2014-12-30 | Emc Corporation | Automated priority backup and archive |
US20110313974A1 (en) * | 2010-06-17 | 2011-12-22 | Computer Associates Think, Inc. | Prioritized data backup |
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 |
Cited By (5)
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 |
CN109542678A (en) * | 2018-11-07 | 2019-03-29 | 郑州云海信息技术有限公司 | A kind of server key message timed backup method and device |
CN109542678B (en) * | 2018-11-07 | 2021-12-17 | 郑州云海信息技术有限公司 | Method and device for regularly backing up key information of server |
WO2022057374A1 (en) * | 2020-09-18 | 2022-03-24 | 苏州浪潮智能科技有限公司 | Method and apparatus for improving raid data backup efficiency |
Also Published As
Publication number | Publication date |
---|---|
CN106293498B (en) | 2019-11-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10572290B2 (en) | Method and apparatus for allocating a physical resource to a virtual machine | |
CN106293498A (en) | A kind of method and apparatus of data copy | |
EP2466824B1 (en) | Service scheduling method and device | |
CN103369042B (en) | A kind of data processing method and device | |
US11025745B2 (en) | Technologies for end-to-end quality of service deadline-aware I/O scheduling | |
CN113485822A (en) | Memory management method, system, client, server and storage medium | |
CN106371916B (en) | A kind of thread optimized method and device thereof of storage system IO | |
CN109495540B (en) | Data processing method and device, terminal equipment and storage medium | |
TWI712951B (en) | Task management method, host and storage device for electronic storage device | |
CN110708377A (en) | Data transmission method, device and storage medium | |
CN106406821A (en) | Data processing request sorting method and device | |
WO2018126771A1 (en) | Storage controller and io request processing method | |
CN106095075A (en) | A kind of information processing method and augmented reality equipment | |
CN112148430A (en) | Method for online safe migration of virtual machine with virtual network function | |
CN103874987B (en) | Embedded multi-media card partitioned storage space allocation method and terminal | |
CN104793982A (en) | Method and device for establishing virtual machine | |
CN105808374A (en) | Snapshot processing method and associated equipment | |
CN110769040A (en) | Access request processing method, device, equipment and storage medium | |
CN105022668A (en) | Job scheduling method and system | |
CN103336670A (en) | Method and device for automatic distribution of data blocks based on data temperature | |
CN113347238A (en) | Message partitioning method, system, device and storage medium based on block chain | |
CN106559452A (en) | Data processing method and device under cluster environment | |
US11474744B2 (en) | Method, device, and computer program product for managing memories | |
CN111124256A (en) | Method, apparatus and computer program product for managing storage | |
CN107797870A (en) | A kind of cloud computing data resource dispatching method |
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 |