CN103902232A - Data write-in method and device - Google Patents

Data write-in method and device Download PDF

Info

Publication number
CN103902232A
CN103902232A CN201210586880.6A CN201210586880A CN103902232A CN 103902232 A CN103902232 A CN 103902232A CN 201210586880 A CN201210586880 A CN 201210586880A CN 103902232 A CN103902232 A CN 103902232A
Authority
CN
China
Prior art keywords
storage area
data
hard disk
write
disk
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
Application number
CN201210586880.6A
Other languages
Chinese (zh)
Other versions
CN103902232B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201210586880.6A priority Critical patent/CN103902232B/en
Publication of CN103902232A publication Critical patent/CN103902232A/en
Application granted granted Critical
Publication of CN103902232B publication Critical patent/CN103902232B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The embodiment of the invention discloses a data write-in method and device, and relates to the field of electronic information technology. The read-write process of data in a disk array can be avoided when the disk array recovers the data, so that the operating pressure on hard disks is reduced when the disk array recovers the data, and the safety of the data is improved. The data write-in method includes the steps of detecting whether a damaged hard disk exists in a first storage area or not, wherein the first storage area is borne by at least two hard disks; if the damaged hard disk exists in the first storage area, storing the received data in a second storage area and setting an address mapping table according to the data stored in the second storage area, wherein the second storage area is a partition independent of the first storage area; when the damaged hard disk is replaced, importing the data in the second storage area into the first storage area according to the address mapping table.

Description

A kind of method of the data that write and device
Technical field
The present invention relates to electronic information technical field, relate in particular to a kind of method and device of the data that write.
Background technology
RAID(Redundant Arrays of Inexpens ive Disks, the first storage area) technology is widely used in the scenes such as various databases, information center, mainframe computer.RAID becomes a disk group that capacity is huge by a lot of disk combination, and in the time of arbitrary hard disk failure wherein, the data that still can read, in the time of data reconstruction, insert data in new hard disk after as calculated again, thereby promotes the security of data.For example:
In RAID5, when demoting after a hard disk corruptions, need to use the hard disk of HotSpare disk (being a kind of hard disk for subsequent use) replace damaged in order to recover data.Now all bands can recalculate to obtain the data of damaging on hard disk in order, and are written on the HotSpare disk newly adding.Now, because data need verification again, all hard disks are to coordinate the verification again of RAID5 all in running at a high speed, and now the data characteristics of original hard disk is read for order, and the data characteristics of HotSpare disk is order read-write.
When RAID5 in data recover time window time, if front-end equipment carries out read and write access to the data in RAID5, in RAID5, the data characteristics of each hard disk can become random read-write from order read-write, random read-write need to first read the address bit of write data, then read all data on whole band, carry out afterwards verification calculating, then the data that write read check address bit, finally write checking data.As can be seen here, the process of random read-write is comparatively loaded down with trivial details, and in the process need RAID5 such as verification calculating wherein, all hard disks all run up, and calculate with the verification that coordinates RAID5.
The problem of prior art
In actual applications, tend to occur in the time of the time window of RAID5 in data recoveries, front-end equipment carries out read and write access continually to the data in RAID5, greatly increase the motor of hard disk, the damage probability of the mechanical organs such as magnetic head, and the time that random read-write consumes is much larger than order read-write, further extend the time of the time window of RAID5 in data recovery, increase greatly the probability of hard disk corruptions, if damage again a hard disk when time window that RAID5 recovers in data, data in RAID5 have just thoroughly been damaged, thereby reduce the security of data.
Summary of the invention
Embodiments of the invention provide a kind of method and device of the data that write, can avoid disk array in the time of the flow process of executing data reparation, the read-write process that data in disk array are carried out, thereby the operating pressure of each hard disk while having reduced the flow process that disk array executing data repairs, reduce the damage probability of the mechanical organ such as motor, magnetic head of hard disk, thereby increased the security of data.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, embodiments of the invention provide a kind of method of the data that write, and comprising:
Detect the hard disk that whether has damage in the first storage area, described the first storage area is by least two hard disk bearings;
If there is the hard disk damaging, by the data storing receiving to the second storage area, and set up address mapping table according to the data that deposit described the second storage area in, described the second storage area is a subregion that is independent of described the first storage area;
After the hard disk of described damage is replaced, according to described address mapping table by the first storage area described in the data importing in described the second storage area.
Second aspect, embodiments of the invention provide a kind of device of the data that write, and comprising:
Detection module, for detection of the hard disk that whether has damage in the first storage area, described the first storage area is by least two hard disk bearings;
Storage module, if for there is the hard disk damaging, by the data storing receiving to the second storage area, and set up address mapping table according to the data that deposit described the second storage area in, described the second storage area is a subregion that is independent of described the first storage area;
Import module, after being replaced when the hard disk of described damage, according to described address mapping table by the first storage area described in the data importing in described the second storage area.
Method and the device of the data that write that the embodiment of the present invention provides, can be in the time of the flow process of disk array executing data reparation, by the data storing that transfers to disk array at a storage area that is independent of disk array, and after the flow performing of repairing in data, import again disk array by being stored in the data in the storage area that is independent of disk array, thus the ablation process of having avoided disk array in the time of the flow process of executing data reparation, the data in disk array to be carried out.With respect to prior art, the embodiment of the present invention can be avoided, in the time of the flow process of disk array executing data reparation, the data in disk array are carried out to read and write access, thereby the operating pressure of each hard disk while having reduced the flow process that disk array executing data repairs, reduce the damage probability of the mechanical organ such as motor, magnetic head of hard disk, thereby increased the security of data.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, to the accompanying drawing of required use in embodiment be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The process flow diagram of the method for a kind of data that write that Fig. 1 provides for the embodiment of the present invention;
A kind of process flow diagram of the method for the data that the another kind that Fig. 2 provides for the embodiment of the present invention writes;
The another kind of process flow diagram of the method for the data that the another kind that Fig. 2 a provides for the embodiment of the present invention writes;
Another process flow diagram of the method for the data that the another kind that Fig. 2 b provides for the embodiment of the present invention writes;
The process flow diagram of the method for another data that write that Fig. 3 provides for the embodiment of the present invention;
The structural representation of the device of a kind of data that write that Fig. 4 provides for the embodiment of the present invention;
The structural representation of the device of the data that the another kind that Fig. 5 provides for the embodiment of the present invention writes;
The structural representation of the device of another data that write that Fig. 6 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making all other embodiment that obtain under creative work prerequisite, belong to the scope of protection of the invention.
In embodiments of the present invention, provide a kind of method of the data that write, as shown in Figure 1, having comprised:
It should be noted that, the embodiment of the present invention can be carried out by the equipment that possesses data transmission, processing, memory function, for example: possess the equipment such as management server, mobile workstation in the system of RAID framework.
101, detect the hard disk that whether has damage in the first storage area.
In the present embodiment, the subregion that the first storage area can be made up of at least two hard disks, the data in the first storage area are to be all stored in the hard disk that carries the first storage area on hardware view.Management server can detect the hard disk that whether has damage in current the first storage area by conventional technological means, for example: the management server possessing in the system of RAID5 framework can be monitored in real time to the state of each hard disk in disk array, and detects at any time the hard disk of damage.
102, if there is the hard disk damaging, by the data storing receiving to the second storage area, and set up address mapping table according to the data that deposit described the second storage area in.
Wherein, the second storage area is a subregion that is independent of described the first storage area.
As known to those skilled in the art, between different storage areas, can be separate, for example: the hard disk that capacity is 2T has been divided into the subregion of 4 500G, each subregion is just with a storage area, and hardware device can not have influence on the data in other subregions for the read-write process of the data in a subregion; Again for example: in the system of the framework of many disks, the hard disk that is numbered 1-5 is divided into the first storage area, the hard disk that is numbered 6-10 is divided into the second storage area, when hardware device is read and write the data in the hard disk that is numbered 1, can not have influence on the data in the hard disk that is numbered 6-10.
In the present embodiment, the embodiment that management server is set up address mapping table according to the data that receive can be conventional embodiment, as known to those skilled in the art, the effect of address mapping table is: the specifically corresponding relation between the address bit on memory device with content and this data of record data.
If there is not the hard disk of damage, do not deal with.
103, after the hard disk of described damage is replaced, according to described address mapping table by the first storage area described in the data importing in described the second storage area.
For example: in RAID5 framework, when the hard disk damaging is replaced by HotSpare disk, and completed after data transfer, management server can be according to address mapping table by corresponding hard disk in the data importing receiving the first storage area.
The method of the data that write that the embodiment of the present invention provides, can be in the time of the flow process of disk array executing data reparation, by the data storing that transfers to disk array at a storage area that is independent of disk array, and after the flow performing of repairing in data, import again disk array by being stored in the data in the storage area that is independent of disk array, thus the ablation process of having avoided disk array in the time of the flow process of executing data reparation, the data in disk array to be carried out.With respect to prior art, the embodiment of the present invention can be avoided, in the time of the flow process of disk array executing data reparation, the data in disk array are carried out to read and write access, thereby the operating pressure of each hard disk while having reduced the flow process that disk array executing data repairs, reduce the damage probability of the mechanical organ such as motor, magnetic head of hard disk, thereby increased the security of data.
Optionally, in embodiments of the present invention, on the basis of the method for the data that write as shown in Figure 1, as shown in Figure 2, also comprise:
201, detect the hard disk that whether has damage in the first storage area.
If do not exist the hard disk of damage not deal with.
202, if there is the hard disk damaging, start HotSpare disk.
Wherein, the second storage area can be a part for HotSpare disk, and as known to those skilled in the art, in such as the storage system such as RAID5, RAID10, HotSpare disk is for replacing the hard disk of damage/fault.
The second storage area can be a subregion in HotSpare disk in the present embodiment, for example: in RAID5, the amount of capacity of HotSpare disk is 2T, and 1T wherein can be divided into independent subregion, and as the second storage area.
203, activate described the second storage area in described HotSpare disk.
In actual applications, the subregion in hard disk can be a kind of hidden partition, needs to activate hidden partition by conventional technological means if will use.
204, when the hard disk of described damage is replaced, and described in data importing in described the second storage area after the first storage area, hide described the second storage area.
In actual applications, when the hard disk damaging is replaced, and after having completed data and repairing, management server can be by the first storage area of the data importing in the second storage area, and again hides the second storage area after the flow process of data importing finishes.
Further alternative, as shown in Figure 2 a, also comprise:
202a, if there is the hard disk damaging, the type of the data that receive described in determining, the type of described data comprises: the data of reading or the data that write.
In the present embodiment, there is when detecting the hard disk damaging, and while starting to carry out repair data flow processs such as the data recovery procedure in RAID5, management server can detect the data that transfer to the first storage area, in most systems framework, the data that transfer to the first storage area can first be sent to the intermediate equipments such as management server and transfer to the first storage area again, or the intermediate equipment such as management server can intercept and capture the data that transfer to the first storage area, and after being processed, intercepted and captured data transfer to again the first storage area.And management server can be determined the data that the data that receive are read or the data that write.In actual applications, often more easily in the time of data writing, can there is the damage of hard disk in disk array, in the present embodiment, management server can first be determined the type of the data that receive, so that filter out be sent to the first storage area and be the data that write, thereby improve the efficiency of management servers process data.
If there is not the hard disk of damage, do not deal with.
203a, if described in the data that receive be the data that write, by the described data storing receiving to described the second storage area, and set up address mapping table according to the data that deposit described the second storage area in.
Wherein, described storage area is independent of the storage area at other data places in described the first storage area.
If described in the data that receive be not the data that write, do not deal with.
Optional side by side with 202a, as shown in Figure 2 b, also comprise:
202b, if there is the hard disk damaging, detects described the second storage area and whether has vacant capacity.
In actual applications, the capacity of storage area is limited often, when data that management server receives in processing, can whether also have vacant capacity in first detection of stored region.
203b, if there is vacant capacity, arrives described the second storage area by the described data storing receiving.
Wherein, if there is not vacant capacity, the data that management server can receive according to conventional embodiment processing, for example: in RAID5 framework, in the time that storage area is expired, management server, according to original data processing method, is processed the data that write, directly data are write to disk array, and change the data characteristics of HotSpare disk into random read-write by order read-write.
It should be noted that, 202a-203a and 202b-203b not only can carry out separately, also can all carry out, and the data that receive are the data that write, and when storage area exists these two conditions of vacant capacity to meet simultaneously, the described data storing receiving is arrived to described the second storage area; Or the data that receive are the data, the storage area that write while existing these two conditions of vacant capacity to meet wherein any one, by the described data storing receiving to described the second storage area.Under the scene of all carrying out at 202a-203a and 202b-203b, the execution sequence of 202a-203a and 202b-203b does not limit, and can carry out successively in a certain order 202a-203a and 202b-203b, also can carry out 202a-203a and 202b-203b simultaneously.
204 ', after the hard disk of described damage is replaced, according to described address mapping table by the first storage area described in the data importing in described the second storage area.
The method of the data that write that the embodiment of the present invention provides, can be in the time of the flow process of disk array executing data reparation, by the data storing that transfers to disk array at a storage area that is independent of disk array, and after the flow performing of repairing in data, import again disk array by being stored in the data in the storage area that is independent of disk array, thus the ablation process of having avoided disk array in the time of the flow process of executing data reparation, the data in disk array to be carried out.With respect to prior art, the embodiment of the present invention can be avoided, in the time of the flow process of disk array executing data reparation, the data in disk array are carried out to read and write access, thereby the operating pressure of each hard disk while having reduced the flow process that disk array executing data repairs, reduce the damage probability of the mechanical organ such as motor, magnetic head of hard disk, thereby increased the security of data.
Further alternative, in conjunction with the method for the data that write above-mentioned in the embodiment of the present invention, as shown in Figure 3, also comprise:
301, detect the hard disk that whether has damage in the first storage area.
302, if there is the hard disk damaging, activate described the second storage area in described HotSpare disk.
Wherein, the part that described the second storage area is HotSpare disk, described HotSpare disk is for replacing the hard disk of described damage.
If there is not the hard disk of damage, do not deal with.
For example: in the scene of RAID5, for storing the subregion that the storage area of the data that write can be HotSpare disk, and this subregion is independent of other storage areas in disk array.In the time of the normal operation of disk array, HotSpare disk is in holding state, the storage area that now stores the data that write can be arranged to hidden state by conventional technological means, thereby make this storage area not participate in the normal course of operation of disk array, when a common hard disk corruptions in RAID5, start to enable HotSpare disk and carry out data while repairing, management server can activate this storage area, with the state of unhiding.
303, the data storing receiving, to the second storage area, and is set up to address mapping table according to the data that deposit described the second storage area in.
Wherein, described storage area is independent of the storage area at other data places in described the first storage area.
304, after the hard disk of described damage is replaced, according to described address mapping table by the first storage area described in the data importing in described the second storage area.
305, when the hard disk of described damage is replaced, and described in data importing in described the second storage area after the first storage area, hide described the second storage area.
For example: in the scene of RAID5, after data reparation completes, management server can be arranged to hidden state by this storage area on HotSpare disk again.
The method of the data that write that the embodiment of the present invention provides, can be in the time of the flow process of disk array executing data reparation, by the data storing that transfers to disk array at a storage area that is independent of disk array, and after the flow performing of repairing in data, import again disk array by being stored in the data in the storage area that is independent of disk array, thus the ablation process of having avoided disk array in the time of the flow process of executing data reparation, the data in disk array to be carried out.With respect to prior art, the embodiment of the present invention can be avoided, in the time of the flow process of disk array executing data reparation, the data in disk array are carried out to read and write access, thereby the operating pressure of each hard disk while having reduced the flow process that disk array executing data repairs, reduce the damage probability of the mechanical organ such as motor, magnetic head of hard disk, thereby increased the security of data.
Side by side optional, in embodiments of the present invention, on the basis of the method for the data that write as shown in Figure 1, also comprise:
101 ', detect the hard disk that whether has damage in current the first storage area.
102 ', if there is the hard disk damaging, by the data storing receiving to the second storage area, and set up address mapping table according to the data that deposit described the second storage area in
If there is not the hard disk of damage, do not deal with.
Wherein, the memory device that carries described the second storage area is independent of the hard disk of described the first storage area of carrying.Memory device comprises: buffer memory, mechanical hard disk or solid state hard disc.
In the present embodiment, for storing the second storage area of the data that receive, can be separate with the storage area at other data places in the first storage area, and on hardware view just not in same hard disk, for example: management server can be by the data storing receiving outside the first storage area independently in memory device, and the particular hardware type of this memory device can have multiple, such as: buffer memory, mechanical hard disk or solid-state hard disk SSD etc. can be as the functions of bearing the second storage area that stores the data that receive.
103 ', after the hard disk of described damage is replaced, according to described address mapping table by the first storage area described in the data importing in described the second storage area.
The method of the data that write that the embodiment of the present invention provides, can be in the time of the flow process of disk array executing data reparation, by the data storing that transfers to disk array at a storage area that is independent of disk array, and after the flow performing of repairing in data, import again disk array by being stored in the data in the storage area that is independent of disk array, thus the ablation process of having avoided disk array in the time of the flow process of executing data reparation, the data in disk array to be carried out.With respect to prior art, the embodiment of the present invention can be avoided, in the time of the flow process of disk array executing data reparation, the data in disk array are carried out to read and write access, thereby the operating pressure of each hard disk while having reduced the flow process that disk array executing data repairs, reduce the damage probability of the mechanical organ such as motor, magnetic head of hard disk, thereby increased the security of data.
In embodiments of the present invention, provide a kind of device of the data that write, as shown in Figure 4, having comprised:
Detection module 41, for detection of the hard disk that whether has damage in the first storage area.
Wherein, the first storage area is by least two hard disk bearings.
Storage module 42, if for there is the hard disk damaging, by the data storing receiving to the second storage area, and set up address mapping table according to the data that deposit described the second storage area in.
Wherein, the second storage area is a subregion that is independent of the first storage area.
Further, the memory device that carries described the second storage area is independent of the hard disk of described the first storage area of carrying, and described memory device comprises: buffer memory, mechanical hard disk or solid state hard disc.
Import module 43, after being replaced when the hard disk of described damage, according to described address mapping table by the first storage area described in the data importing in described the second storage area.
The device of the data that write that the embodiment of the present invention provides, can be in the time of the flow process of disk array executing data reparation, by the data storing that transfers to disk array at a storage area that is independent of disk array, and after the flow performing of repairing in data, import again disk array by being stored in the data in the storage area that is independent of disk array, thus the ablation process of having avoided disk array in the time of the flow process of executing data reparation, the data in disk array to be carried out.With respect to prior art, the embodiment of the present invention can be avoided, in the time of the flow process of disk array executing data reparation, the data in disk array are carried out to read and write access, thereby the operating pressure of each hard disk while having reduced the flow process that disk array executing data repairs, reduce the damage probability of the mechanical organ such as motor, magnetic head of hard disk, thereby increased the security of data.
Optionally, in embodiments of the present invention, also provide a kind of device of the data that write, as shown in Figure 5, having comprised:
Detection module 51, for detection of the hard disk that whether has damage in the first storage area.
Wherein, the first storage area is by least two hard disk bearings.
Start module 52, if for there being the hard disk damaging, start described HotSpare disk.
Active module 53, for activating described second storage area of described HotSpare disk.
Wherein, the part that storage area is HotSpare disk, HotSpare disk is for replacing the hard disk of damage.
Storage module 54, if for there is the hard disk damaging, by the data storing receiving to the second storage area, and set up address mapping table according to the data that deposit described the second storage area in..
Wherein, the second storage area is a subregion that is independent of the first storage area.
Import module 55, after being replaced when the hard disk of described damage, according to described address mapping table by the first storage area described in the data importing in described the second storage area.
Hide module 56, for being replaced when the hard disk of described damage, and described in data importing in described the second storage area after the first storage area, hide described the second storage area.
Further alternative, in embodiments of the present invention, on the basis of scheme as shown in Figure 5, as shown in Figure 6, also comprise:
Data type detection module 57, for by the data storing receiving to before the second storage area, the type of the data that receive described in determining.
Wherein, the type of data comprises: the data of reading or the data that write.
Described storage module 54, if also for described in the data that receive be the data that write, by the described data storing receiving to described the second storage area.
Capacity check module 58, for described by the data storing receiving to before the second storage area, detect described the second storage area and whether have vacant capacity.
Described storage module 54, if also for there is vacant capacity, arrives described the second storage area by the described data storing receiving.
The device of the data that write that the embodiment of the present invention provides, can be in the time of the flow process of disk array executing data reparation, by the data storing that transfers to disk array at a storage area that is independent of disk array, and after the flow performing of repairing in data, import again disk array by being stored in the data in the storage area that is independent of disk array, thus the ablation process of having avoided disk array in the time of the flow process of executing data reparation, the data in disk array to be carried out.With respect to prior art, the embodiment of the present invention can be avoided, in the time of the flow process of disk array executing data reparation, the data in disk array are carried out to read and write access, thereby the operating pressure of each hard disk while having reduced the flow process that disk array executing data repairs, reduce the damage probability of the mechanical organ such as motor, magnetic head of hard disk, thereby increased the security of data.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually referring to, what each embodiment stressed is and the difference of other embodiment.Especially,, for apparatus embodiments, because it is substantially similar in appearance to embodiment of the method, so describe fairly simplely, relevant part is referring to the part explanation of embodiment of the method.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can carry out the hardware that instruction is relevant by computer program to complete, described program can be stored in a computer read/write memory medium, this program, in the time carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.

Claims (10)

1. a method for the data that write, is characterized in that, comprising:
Whether the hard disk that detects carrying the first storage area damages, and described the first storage area is a subregion by least two hard disk bearings;
If carry the hard disk corruptions of described the first storage area, by the data storing receiving to the second storage area, and set up address mapping table according to the data that deposit described the second storage area in, described the second storage area is a subregion different from described the first storage area;
When damage hard disk be replaced after, according to described address mapping table by the first storage area described in the data importing in described the second storage area.
2. the method for the data that write according to claim 1, it is characterized in that, described the second storage area is carried by HotSpare disk, and described HotSpare disk is for replacing the hard disk of damage, described in the time that described HotSpare disk is not activated, the second storage area is in hidden state, and described method also comprises:
If carry the hard disk corruptions of described the first storage area, start described HotSpare disk;
Described the second storage area is activated from hidden state;
When the hard disk of described damage is replaced, and described in data importing in described the second storage area after the first storage area, recover the hidden state of described the second storage area.
3. the method for the data that write according to claim 1, is characterized in that, comprising:
Described the second storage area is by hard disk bearing, and the hard disk that carries described the second storage area is also for carrying the partial content of described the first storage area;
Or described the second storage area is carried by memory device, and described memory device is different from the hard disk of described the first storage area of carrying, and described memory device comprises: buffer memory, mechanical hard disk or solid state hard disc.
4. the method for the data that write according to claim 1, is characterized in that, described by the data storing receiving to before the second storage area, also comprise:
The type of the data that receive described in determining, the type of described data comprises: the data of reading or the data that write;
If described in the data that receive be the data that write, by the described data storing receiving to described the second storage area.
5. according to the method for the data that write described in claim 1 or 4, it is characterized in that, described by the data storing receiving to before the second storage area, also comprise:
Detect described the second storage area and whether have vacant capacity, the size of the data that receive described in described vacant capacity is not less than;
If there is vacant capacity, the described data storing receiving is arrived to described the second storage area.
6. a device for the data that write, is characterized in that, comprising:
Detection module, for detection of the hard disk that whether has damage in the first storage area, described the first storage area is by least two hard disk bearings;
Storage module, if for there is the hard disk damaging, by the data storing receiving to the second storage area, and set up address mapping table according to the data that deposit described the second storage area in, described the second storage area is a subregion that is independent of described the first storage area;
Import module, after being replaced when the hard disk of described damage, according to described address mapping table by the first storage area described in the data importing in described the second storage area.
7. the device of the data that write according to claim 6, is characterized in that, the part that described the second storage area is HotSpare disk, and described HotSpare disk is for replacing the hard disk of described damage, and described device also comprises:
Start module, if for there being the hard disk damaging, start described HotSpare disk;
Active module, for activating described second storage area of described HotSpare disk;
Hide module, for being replaced when the hard disk of described damage, and described in data importing in described the second storage area after the first storage area, hide described the second storage area.
8. the device of the data that write according to claim 6, is characterized in that, the memory device that carries described the second storage area is independent of the hard disk of described the first storage area of carrying, and described memory device comprises: buffer memory, mechanical hard disk or solid state hard disc.
9. the device of the data that write according to claim 6, is characterized in that, also comprises:
Data type detection module, for by the data storing receiving to before the second storage area, the type of the data that receive described in determining, the type of described data comprises: the data of reading or the data that write;
Described storage module, if also for described in the data that receive be the data that write, by the described data storing receiving to described the second storage area.
10. according to the device of the data that write described in claim 6 or 9, it is characterized in that, also comprise:
Capacity check module, for described by the data storing receiving to before the second storage area, detect described the second storage area and whether have vacant capacity;
Described storage module, if also for there is vacant capacity, arrives described the second storage area by the described data storing receiving.
CN201210586880.6A 2012-12-28 2012-12-28 A kind of method and device of the data of write-in Active CN103902232B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210586880.6A CN103902232B (en) 2012-12-28 2012-12-28 A kind of method and device of the data of write-in

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210586880.6A CN103902232B (en) 2012-12-28 2012-12-28 A kind of method and device of the data of write-in

Publications (2)

Publication Number Publication Date
CN103902232A true CN103902232A (en) 2014-07-02
CN103902232B CN103902232B (en) 2018-11-09

Family

ID=50993582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210586880.6A Active CN103902232B (en) 2012-12-28 2012-12-28 A kind of method and device of the data of write-in

Country Status (1)

Country Link
CN (1) CN103902232B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598418A (en) * 2015-01-27 2015-05-06 北京奥普维尔科技有限公司 System and method for controlling I2C communication based on FPGA (Field Programmable Gate Array)
CN105224891A (en) * 2015-09-22 2016-01-06 苏州互盟信息存储技术有限公司 Magnetic disc optic disc fused data method for secure storing, system and device
CN109032525A (en) * 2018-07-26 2018-12-18 广东浪潮大数据研究有限公司 A kind of method, apparatus, equipment and storage medium being automatically positioned low-quality disk
CN111601062A (en) * 2020-05-28 2020-08-28 广州通达汽车电气股份有限公司 Storage security fault-tolerant method and system for vehicle-mounted monitoring video

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0594464A2 (en) * 1992-10-23 1994-04-27 AT&T GLOBAL INFORMATION SOLUTIONS INTERNATIONAL INC. Method of operating a data storage disk array
CN1834932A (en) * 2005-03-15 2006-09-20 富士通株式会社 Storage control apparatus and method
CN1940849A (en) * 2005-09-30 2007-04-04 富士通株式会社 RAID system and rebuild/copy back processing method thereof
CN102819406A (en) * 2012-07-04 2012-12-12 浙江宇视科技有限公司 Front-end data storage method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0594464A2 (en) * 1992-10-23 1994-04-27 AT&T GLOBAL INFORMATION SOLUTIONS INTERNATIONAL INC. Method of operating a data storage disk array
CN1834932A (en) * 2005-03-15 2006-09-20 富士通株式会社 Storage control apparatus and method
CN1940849A (en) * 2005-09-30 2007-04-04 富士通株式会社 RAID system and rebuild/copy back processing method thereof
CN102819406A (en) * 2012-07-04 2012-12-12 浙江宇视科技有限公司 Front-end data storage method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598418A (en) * 2015-01-27 2015-05-06 北京奥普维尔科技有限公司 System and method for controlling I2C communication based on FPGA (Field Programmable Gate Array)
CN105224891A (en) * 2015-09-22 2016-01-06 苏州互盟信息存储技术有限公司 Magnetic disc optic disc fused data method for secure storing, system and device
CN109032525A (en) * 2018-07-26 2018-12-18 广东浪潮大数据研究有限公司 A kind of method, apparatus, equipment and storage medium being automatically positioned low-quality disk
CN111601062A (en) * 2020-05-28 2020-08-28 广州通达汽车电气股份有限公司 Storage security fault-tolerant method and system for vehicle-mounted monitoring video

Also Published As

Publication number Publication date
CN103902232B (en) 2018-11-09

Similar Documents

Publication Publication Date Title
CN104035830B (en) A kind of data reconstruction method and device
CN101916173B (en) RAID (Redundant Array of Independent Disks) based data reading and writing method and system thereof
CN104484251B (en) A kind of processing method and processing device of hard disk failure
CN103455386A (en) Method and equipment for restoring error data
CN101840360A (en) Rapid reconstruction method and device of RAID (Redundant Array of Independent Disk) system
CN101866307A (en) Data storage method and device based on mirror image technology
MX2021002274A (en) Hard disk fault processing method, array controller and hard disk.
CN102508733B (en) A kind of data processing method based on disk array and disk array manager
CN104156174A (en) Strip based solid-state drive RAID (redundant array of independent disks) realizing method and device
CN101567211A (en) Method for improving usability of disk and disk array controller
CN103034592B (en) Data processing method and device
US9529674B2 (en) Storage device management of unrecoverable logical block addresses for RAID data regeneration
CN102722340A (en) Data processing method, apparatus and system
CN102177496A (en) System and method for transferring data between different RAID data storage types for current data and replay data
CN103221925A (en) Data processing method and storage equipment
CN104778106A (en) Restoration method of Western Digital hard disk firmware zone scratch
CN103902232A (en) Data write-in method and device
CN102226892A (en) Disk fault tolerance processing method and device thereof
CN105589733A (en) Data processing method and device
CN101794246B (en) Backup storage system, backup system, data backup method and recovery method
CN101630281B (en) Image method and device of data storage
CN103631682A (en) Data backup implement method and device
CN103049407A (en) System, device and method for data storage
CN104978241A (en) Data recovery method and apparatus for COW type file system
CN105183590A (en) Disk array fault tolerance processing 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