CN101685379A - System and method for reconstructing disk array - Google Patents

System and method for reconstructing disk array Download PDF

Info

Publication number
CN101685379A
CN101685379A CN200810198836A CN200810198836A CN101685379A CN 101685379 A CN101685379 A CN 101685379A CN 200810198836 A CN200810198836 A CN 200810198836A CN 200810198836 A CN200810198836 A CN 200810198836A CN 101685379 A CN101685379 A CN 101685379A
Authority
CN
China
Prior art keywords
disk
data
computer apparatus
recognition data
enactment document
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.)
Pending
Application number
CN200810198836A
Other languages
Chinese (zh)
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.)
Mitac Precision Technology Shunde Ltd
Original Assignee
Mitac Precision Technology Shunde 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 Mitac Precision Technology Shunde Ltd filed Critical Mitac Precision Technology Shunde Ltd
Priority to CN200810198836A priority Critical patent/CN101685379A/en
Publication of CN101685379A publication Critical patent/CN101685379A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The invention discloses a method for reconstructing a disk array, comprising the following steps: matching a plurality of disks with a plurality of identification data with uniqueness respectively, wherein each disk corresponds to single identification data; using an RAID system to generate a disk setting file according to the identification data, wherein the disk setting file comprises a logic sector which is formed by combination of the disks and corresponds to identification data with different disks according to different disks stored with data; mounting the disks on a computer device provided with the RAID system; and mapping the mounted disks on correct disk addresses and reconstructing the data in the disks of the computer device by the computer device according to the disk settingfile. The invention can judge disk sequence to reconstruct data, thus avoiding causing data error.

Description

Disk array reconstruction system and method for reconstructing thereof
Technical field
The present invention is relevant for a kind of disc array system, and is particularly to a kind ofly use the computer apparatus of disc array system and change the disk order to rebuild the method for disc array system.
Background technology
Independent disk redundant array (Redundant Array of Independent Disks, abbreviate RAID as) by several disks (for example, hard disk) with serial connection or and the mode that connects form fault-tolerant (or non-fault-tolerant) array system, with as a virtual big disc driver, it can increase access speed, improves data security and the disk tolerance function can be provided.
The type of independent disk redundant array comprises RAID-0, RAID-1, RAID-2, RAID-3, RAID-4, RAID-5 and RAID-6.RAID-5 is called wheel again changes isotype array (Rotating Parity Array), and it is the array system that is set up by the disk more than 3 (for example, hard disk) at least.Use the benefit of RAID-5 system to be and system loading can be scattered on many disks, so that when wherein a disk is damaged, its data still can be rebuild and be kept its integrality.
As mentioned above, in the main frame that uses the RAID-5 system, when a disk was damaged, available another new disk was substituted, and will damage the interior data reconstruction of disk in this new disk.In addition, substitute being restricted to of disk at every turn and once can only substitute a disk, and substituting the disk that falls can't use on other uses the main frame of RAID-5 system, and when the disk in this main frame is all taken away again install according to different order go back after, the RAID-5 system promptly can't judge disk sequence and cause data to recombinate.
In addition, three disks (for example, disk 1, disk 2 and disk 3) are installed in the RAID-5 system, insert as if after disk 2 is removed again, original disk 2 may be recognized into new disk (for example, disk 4) by this RAID-5 system.In addition, after disk 2 was removed, the disk that another is new (for example, disk 5) inserted the position of disk 2, and then this RAID-5 system may be considered as disk 2 with disk 5.Thus, this RAID-5 system can carry out recovery operations to the disk 5 that inserts, i.e. behind the internal storage data of the disk 5 of deletion insertion, utilize the data of disk 1 and 3 to reduce the data of disk 2 again, so can cause error in data.
Therefore, the invention provides a kind of disk order of changing to rebuild the method for disc array system.
Summary of the invention
Based on above-mentioned purpose, the embodiment of the invention has disclosed a kind of disk array reconstruction method, comprises the following steps: the recognition data with respectively corresponding some the tool uniquenesss of some disks, and the corresponding single described recognition data of each disk; Use a RAID system to produce a disk enactment document according to described recognition data, described disk enactment document includes the logic sector that those disk combination form, and described logic sector is distinguished the described recognition data of corresponding different disk according to the disk difference of deposit data; With described disk carry to a computer apparatus, described computer apparatus possesses described RAID system; And described computer apparatus is according to described disk enactment document, and the described disk image of carry to correct disk address, and is rebuild data in the described disk in described computer apparatus.
The embodiment of the invention has more disclosed a kind of disk array reconstruction system, comprising:
One corresponding unit, described corresponding unit are with the recognition data of respectively corresponding some the tool uniquenesss of some disks, and the corresponding single described recognition data of each disk; One generation unit, described generation unit uses a RAID system to produce a disk enactment document according to described recognition data, described disk enactment document includes the logic sector that those disk combination form, and described logic sector is distinguished the described recognition data of corresponding different disk according to the disk difference of deposit data; An and reconstruction unit, when described reconstruction unit possesses the computer apparatus of described RAID system in described disk carry to, described computer apparatus is according to described disk enactment document, the described disk image of carry to correct disk address, and is rebuild data in the described disk in described computer apparatus.
The present invention can judge disk sequence with recombination data, thereby can avoid causing the mistake of data.
Description of drawings
Fig. 1 shows the configuration diagram of first embodiment of the invention.
Fig. 2 shows another configuration diagram of first embodiment of the invention.
Fig. 3 shows the another configuration diagram of first embodiment of the invention.
Fig. 4 shows the configuration diagram of second embodiment of the invention.
Fig. 5 shows the schematic flow sheet of third embodiment of the invention.
Fig. 6 shows the schematic flow sheet of fourth embodiment of the invention.
Fig. 7 shows the schematic flow sheet of fifth embodiment of the invention.
Fig. 8 shows the schematic flow sheet of sixth embodiment of the invention.
Embodiment
For allow the present invention purpose, feature, and advantage can become apparent, detailed explanation is done in preferred embodiment cited below particularly, and cooperate appended graphic Fig. 1 to Fig. 8.Instructions of the present invention provides different embodiment that the technical characterictic of the different embodiments of the present invention is described.Wherein, the usefulness that is configured to explanation of each element among the embodiment is not in order to restriction the present invention.And the partly repetition of reference numerals for the purpose of simplifying the description, is not the relevance that means between the different embodiment among the embodiment.
Fig. 1 shows the configuration diagram of first embodiment of the invention.Fig. 2 shows another configuration diagram of first embodiment of the invention.
The disk array reconstruction system of first embodiment of the invention comprises a corresponding unit 10, a generation unit 20, and a reconstruction unit 30.In present embodiment, be example with a computer apparatus (for example, main frame) 100, this computer apparatus 100 comprises a RAID-5 system 200 and several disks 310,330 and 350, above-mentioned disk can be hard disk, or by replacing as any storage devices such as flash memories.When disk 310,330 and 350 carries during to computer apparatus 100, corresponding unit 10 make each disk tool uniqueness (unique) of RAID-5 system 200 identifications recognition data (for example, disk sequence number, disk carry address, product serial number, product type ... or the like).Generation unit 20 these RAID-5 systems of utilization produce a disk enactment document 250 according to this recognition data, this disk enactment document 250 includes the logic sector that disk 310,330 and 350 combines, and this logic sector is distinguished the recognition data of corresponding different disk according to the disk difference of deposit data.
Disk 310 more than with any, 330 and 350 remove and with random order when carry is to computer apparatus 100 again (as shown in Figure 2) from computer apparatus 100, reconstruction unit 30 utilization RAID-5 systems 200 are according to the recognition data in the disk enactment document 250, with those disk images of carry to correct disk carry address, to rebuild the disk 310 of computer apparatus 100, data in 330 and 350, wherein, reconstruction of the present invention is meant the disk image of carry correct disk carry address and the hard disk that makes the user directly return carry carries out the access or the editor of data to the RAID-5 system.
When remove disk 310,330 and 350 from computer apparatus 100, then with the random order carry during to another computer apparatus (not shown), this another computer apparatus also can use RAID-5 system in this reconstruction unit 30 and another computer apparatus according to this disk enactment document that is stored in disk 310,330 and 350, with those disk images of carry to correct disk carry address, with the data in the disk 310,330 and 350 of rebuilding computer apparatus 100 in this another computer apparatus (not shown).
Fig. 3 shows the another configuration diagram of first embodiment of the invention.When removing wherein a disk from computer apparatus 100 (for example, disk 330) again during carry telegram in reply brain device 100, the disk 330 of this disk for script learnt according to the recognition data in the disk enactment document 250 by RAID-5 system 200, so can be as the known techniques, behind the internal storage data of deletion disk 330, utilize the data of disk 310 and 350 to reduce the data of disk 330 again, so can not cause error in data, use to save in the prior art and reduce data in magnetic disk (being the data of disk described in the prior art 2) spent computer resource and the time that removes.
Fig. 4 shows the configuration diagram of second embodiment of the invention, and wherein RAID-5 system 200 more comprises an application program 400, carries out correspondence in order to corresponding unit 10 to be provided.Application program 400 can produce the recognition data of each disk according to disk sequence number, disk carry address, product serial number, product type or other discernible feature of disk 310,330 and 350, and writes in disk 310,330 and 350.For example, utilize a code generator to calculate the identification serial number of each disk, and write in each disk 310,330 and 350.In addition, application program 400 also can be as shown in Figure 4, obtain three identification serial number in the identification serial number of external data base 500 some uniquenesss (unique) that deposit, three identification serial numbers will obtaining then write in each disk 310,330 and 350 respectively.
Therefore, disk 310,330 more than with any and 350 removes and with random order when carry is to computer apparatus 100 again (as Fig. 2 and shown in Figure 3) from computer apparatus 100, RAID-5 system 200 is according to the recognition data or the identification serial number that are written in each disk, with those disk images of carry to correct disk carry address, with the disk 310,330 and the 350 interior data of rebuilding computer apparatus 100.
Note, though only illustrate in the above embodiment of the present invention disk 310,330 and 350 carries to original computer apparatus 100, in right real the work, also can be earlier the disk enactment document 250 of original computer apparatus 100 be copied in another computer apparatus that possesses the RAID-5 system, so at the disk on original computer apparatus 100 with the random order carry during to another computer apparatus, the data that the RAID-5 system on described another computer apparatus also can rebuild disk 310,330 and 350 according to the mode of the foregoing description by the disk enactment document that had before duplicated.
In addition, this disk enactment document is stored in one of this computer apparatus 100 storage medium (for example, storing ROM-BIOS (Basic Input/Output System abbreviates BIOS as)) or is stored in respectively in the disk 310,330 and 350 of each carry.
Moreover, though in the foregoing description, be example only, also can be used in RAID systems such as RAID-1, RAID-2, RAID-3, RAID-4, RAID-6, RAID-10, RAID-50 in right real the work to be extensive use of the RAID-5 system now.
Fig. 5 shows the schematic flow sheet of third embodiment of the invention.
When initial use, with some disks (for example, hard disk, flash memory or any storage device, comprising at least one first disk, a second disk and one the 3rd disk) carry to a computer apparatus is (promptly, first computer apparatus) time, the recognition data (comprising the disk sequence number) of one of this first computer apparatus RAID-5 system (that is, a RAID-5 system) each disk of identification, and produce a disk enactment document (step S21).This first disk, this second disk and the 3rd disk more than with any removes and with random order when carry is to this first computer apparatus again ( disk 310 and 350 as shown in Figure 2) (step S22) from this first computer apparatus, the one RAID-5 system is according to the recognition data in this disk enactment document, with those disk images of carry to correct disk carry address (step S23), with the data (step S24) in this first disk, this second disk and the 3rd disk of rebuilding this first computer apparatus.
Fig. 6 shows the schematic flow sheet of fourth embodiment of the invention.
When this first computer apparatus certainly removes this first disk, this second disk and the 3rd disk, during then with random order carry to the one second computer apparatus (not shown) (step S31), the RAID-5 system of this second computer apparatus (promptly, the 2nd RAID-5 system) according to being stored in this first disk, recognition data in this disk enactment document in this second disk and the 3rd disk, with those disk images of carry to correct disk carry address (step S32), to rebuild this first disk of this first computer apparatus in this second computer apparatus (not shown), data (step S33) in this second disk and the 3rd disk.
Fig. 7 shows the schematic flow sheet of fifth embodiment of the invention.
When initial use, during with at least one first disk, a second disk and one the 3rd disk carry to a computer apparatus, the recognition data (comprising the disk sequence number) of one of one of this computer apparatus RAID-5 system each disk of application program identification, and produce a disk enactment document (step S41).When this second disk is removed and when carry returns this first computer apparatus again (disk 330 as shown in Figure 3) (step S42) from this first computer apparatus, this RAID-5 system is according to the recognition data in this disk enactment document, the disk that identifies this carry is this second disk (step S43), so this RAID-5 system does not carry out data reconstructed operation (step S44).
Fig. 8 shows the schematic flow sheet of sixth embodiment of the invention.
When initial use, during with at least one first disk, a second disk and one the 3rd disk carry to a computer apparatus, one of one of this computer apparatus RAID-5 system application program according to this first, second and disk sequence number, disk carry address, product serial number, product type or other discernible feature of the 3rd disk produce the recognition data of each disk, perhaps in a database, obtain in advance the identification serial number of setting up for each disk, then recognition data or identification serial number are write respectively this first, second and the 3rd disk in (step S51).This first disk, this second disk and the 3rd disk more than with any removes and with random order when carry is to this first computer apparatus again ( disk 310 and 350 as shown in Figure 2) (step S52) from this first computer apparatus, the one RAID-5 system is according to recognition data in those disks or identification serial number, with those disk images of carry to correct disk carry address (step S53), with the data (step S54) in this first disk, this second disk and the 3rd disk of rebuilding this first computer apparatus.
The present invention more provides a kind of recording medium (for example discs, disk sheet and removable hard drive or the like), and it writes down the computer program that a computer-readable is got, so that carry out above-mentioned replacing disk order to rebuild the method for disc array system.At this, be stored in the computer program on the recording medium, basically (for example the setting up organization chart code segment, sign-off forms code segment, setting program code snippet and deployment program code snippet) formed by most code segment, and the function of these code segment corresponds to the step of said method and the functional block diagram of said system.
Though the present invention discloses as above with preferred embodiment; right its is not in order to limiting the present invention, anyly has the knack of this skill person, without departing from the spirit and scope of the invention; when can doing various changes and retouching, so the present invention's protection domain attached claim person of defining after looking is as the criterion.

Claims (10)

1, a kind of disk array reconstruction method is characterized in that, comprises the following steps:
With the recognition data of respectively corresponding some the tool uniquenesss of some disks, and the corresponding single described recognition data of each disk;
Use a RAID system to produce a disk enactment document according to described recognition data, described disk enactment document includes the logic sector that those disk combination form, and described logic sector is distinguished the described recognition data of corresponding different disk according to the disk difference of deposit data;
With described disk carry to a computer apparatus, described computer apparatus possesses described RAID system; And
Described computer apparatus is according to described disk enactment document, and the described disk image of carry to correct disk address, and is rebuild data in the described disk in described computer apparatus.
2, disk array reconstruction method as claimed in claim 1 is characterized in that, described disk enactment document is stored in a storage medium in the described computer apparatus.
3, disk array reconstruction method as claimed in claim 1 is characterized in that, described disk enactment document is stored in described disk respectively.
4, disk array reconstruction method as claimed in claim 1 is characterized in that, described recognition data is produced by one of following method: the internal information by described disk is derived, produce by an application program, and by obtaining in the external data base.
5, a kind of disk array reconstruction system is characterized in that, comprising:
One corresponding unit, described corresponding unit are with the recognition data of respectively corresponding some the tool uniquenesss of some disks, and the corresponding single described recognition data of each disk;
One generation unit, described generation unit uses a RAID system to produce a disk enactment document according to described recognition data, described disk enactment document includes the logic sector that those disk combination form, and described logic sector is distinguished the described recognition data of corresponding different disk according to the disk difference of deposit data; And
One reconstruction unit, when described reconstruction unit possesses the computer apparatus of described RAID system in described disk carry to, described computer apparatus is according to described disk enactment document, the described disk image of carry to correct disk address, and is rebuild data in the described disk in described computer apparatus.
6, disk array reconstruction as claimed in claim 5 system is characterized in that, described disk enactment document is stored in a storage medium in the described computer apparatus.
7, disk array reconstruction as claimed in claim 5 system is characterized in that described disk enactment document is stored in described disk respectively.
8, disk array reconstruction as claimed in claim 5 system is characterized in that described recognition data is one of following disk internal information: disk sequence number, disk carry address, product serial number and product type.
9, disk array reconstruction as claimed in claim 5 system is characterized in that, described recognition data writes described disk respectively after producing via an application program.
10, disk array reconstruction as claimed in claim 5 system is characterized in that described recognition data is obtained in an external data base.
CN200810198836A 2008-09-27 2008-09-27 System and method for reconstructing disk array Pending CN101685379A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810198836A CN101685379A (en) 2008-09-27 2008-09-27 System and method for reconstructing disk array

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810198836A CN101685379A (en) 2008-09-27 2008-09-27 System and method for reconstructing disk array

Publications (1)

Publication Number Publication Date
CN101685379A true CN101685379A (en) 2010-03-31

Family

ID=42048551

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810198836A Pending CN101685379A (en) 2008-09-27 2008-09-27 System and method for reconstructing disk array

Country Status (1)

Country Link
CN (1) CN101685379A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016110004A1 (en) * 2015-01-05 2016-07-14 中兴通讯股份有限公司 Management method and apparatus for disk storage space, and storage device
CN109416619A (en) * 2016-08-22 2019-03-01 西部数据技术公司 Automatic RAID configuration

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016110004A1 (en) * 2015-01-05 2016-07-14 中兴通讯股份有限公司 Management method and apparatus for disk storage space, and storage device
CN105824572A (en) * 2015-01-05 2016-08-03 中兴通讯股份有限公司 Disk storage space managing method, apparatus and storage device
CN105824572B (en) * 2015-01-05 2019-06-04 中兴通讯股份有限公司 A kind of disk storage space management method, device and storage equipment
CN109416619A (en) * 2016-08-22 2019-03-01 西部数据技术公司 Automatic RAID configuration
CN109416619B (en) * 2016-08-22 2022-04-01 西部数据技术公司 Method, system and computer-usable medium for automatic RAID configuration

Similar Documents

Publication Publication Date Title
US10210045B1 (en) Reducing concurrency bottlenecks while rebuilding a failed drive in a data storage system
CN103718162B (en) Method and apparatus for flexible RAID in SSD
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
CN104461391A (en) Method and system for managing and processing metadata of storage equipment
CN104965768B (en) The method and system placed for the service-aware data in storage system
US20140068208A1 (en) Separately stored redundancy
JP2008539474A (en) Power safe disk storage device, system and method
CN102999564B (en) Write the method for data, device and equipment
JP2015201204A (en) Data integrity management in data storage device
CN104809032A (en) Method and system for service-aware parity placement in a storage system
JPWO2008152708A1 (en) RAID group conversion apparatus, RAID group conversion method, and RAID group conversion program
CN107111531A (en) Use the data recovery of distribution diagram
CN105302665B (en) A kind of improved Copy on write Snapshot Method and system
CN103530206B (en) A kind of method and apparatus of date restoring
US8239625B2 (en) Parity generator for redundant array of independent discs type memory
CN105589733A (en) Data processing method and device
CN101685379A (en) System and method for reconstructing disk array
CN106933707B (en) Data recovery method and system of data storage device based on raid technology
US8135984B2 (en) System and method for reconstructing RAID system
CN105095352B (en) Data processing method and device applied to distributed system
CN103823637B (en) A kind of data processing method and equipment
CN109783268A (en) SSD total system firmware error-detecting method, device, computer equipment and storage medium
US8176390B2 (en) Single XOR operation WEAVER reconstruction of a failed drive of a RAID
JP2006114008A (en) Method and device for constituting recovery record for updating system configuration

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20100331