CN102637141A - RAID (redundant array of independent disk) automation test system and method - Google Patents

RAID (redundant array of independent disk) automation test system and method Download PDF

Info

Publication number
CN102637141A
CN102637141A CN2011100403850A CN201110040385A CN102637141A CN 102637141 A CN102637141 A CN 102637141A CN 2011100403850 A CN2011100403850 A CN 2011100403850A CN 201110040385 A CN201110040385 A CN 201110040385A CN 102637141 A CN102637141 A CN 102637141A
Authority
CN
China
Prior art keywords
raid
disk
measured
volume
state
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
CN2011100403850A
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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN2011100403850A priority Critical patent/CN102637141A/en
Publication of CN102637141A publication Critical patent/CN102637141A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses an RAID (redundant array of independent disk) automation test method, which comprises the following steps of: (a) creating an RAID volume for a to-be-tested disk array; (b) checking whether the state of the RAID volume is normal; (c) if the state of the RAID volume is normal, enabling entity disks in the to-be-tested disk array to be invalid one by one, and when each entity disk is invalid, detecting whether the RAID volume is in a degrading state; (d) when the RAID volume is in a degrading state, enabling the invalid entity disks to be valid again, rebuilding the RAID volume, and checking whether the state of the RAID volume is normal; and (e) if the state of the RAID volume is normal, determining that the test is successful and the degradation reconstruction function of an RAID built by the to-be-tested disk array is normal. The invention also provides an RAID automation test system. By using the system and method disclosed by the invention, an operation of sequentially pulling out disks and then plugging the disks can be simulated, and the RAID volume can be automatically rebuilt, thereby improving the test efficiency.

Description

RAID automatization test system and method
Technical field
The present invention relates to a kind of RAID automatization test system and method, particularly a kind of RAID degradation is rebuild the automatization test system and the method for function.
Background technology
RAID (Redundant Array of Independent Disk; Raid-array) is the disk array that the independent community's disk more than two or two is combined into according to different modes; This disk array logically shows as a large capacity disc, is called as the RAID volume.The mode of combination independent community disk is called as the RAID rank, represents the different data model storage of RAID.
RAID is applied to overlap to the webserver usually, in order to the very huge computer network data of stored number.When all entity disks among the RAID all during operate as normal, the RAID volume is in normal condition (Optimal), and when a certain entity disk among the RAID because damage or go offline etc. former thereby when breaking away from RAID, RAID rolls up will be in degrading state (Degraded).Some RAID level has degradation and rebuilds function; Be that RAID volume is because of a disk damage among the RAID or go offline when being in degrading state; Can be at the disk that more renews or insert the disk go offline once more after, roll up and save data through rebuilding RAID, make RAID roll recovery normal condition.For example rank is that 1 RAID (RAID 1), rank are that RAID (RAID 5) of 5 etc. has this function.
When RAID degradation reconstruction function is tested, need manually all the entity disks among the RAID are pulled up successively again to plug, whether inspection can recover normal condition after the reconstruction of RAID volume.If the entity number of disks among the RAID is more, then need repeatedly manually to pull up and plug disk, for example comprise 24 entity disks among certain RAID 5, then need 24 Plug Actions of repetition.This method of testing is labor intensive very, also goes wrong easily simultaneously, and testing efficiency is reduced.
Summary of the invention
In view of above content, be necessary to provide a kind of RAID automatization test system, can simulate disk among the RAID and pulled up again successively and plug, rebuild the RAID volume automatically, thereby improve the efficient that test RAID degradation is rebuild function.
Also be necessary to provide a kind of RAID automated testing method, can simulate disk among the RAID and pulled up again successively and plug, rebuild the RAID volume automatically, thereby improve the efficient that test RAID degradation is rebuild function.
A kind of RAID automatization test system is used to test the degradation reconstruction function that disk array to be measured is set up the RAID that forms, and this system comprises: create module, be used to this disk array to be measured and create a RAID volume; The inspection module is used to check whether the state of this RAID volume is normal; Execution module, the state that is used for rolling up as this RAID makes the entity disk in the disk array to be measured invalid for just often one by one; Said inspection module also is used for after an entity disk is disabled, and checks whether this RAID volume is degrading state; Said execution module also is used for when this RAID volume is degrading state, making the entity disk that is disabled in the disk array to be measured effective; Said establishment module also is used for after the entity disk that disk array to be measured is disabled is effective again, rebuilding the RAID volume; Said inspection module; Also be used for making the entity disk that is disabled effective one by one; And after rebuilding the RAID volume; Whether the state of checking the RAID volume of this each reconstruction is normal, if the state of the RAID of this each reconstruction volume be normal, it is normal then should to set up the degradation reconstruction function of the RAID that forms by disk array to be measured.
A kind of RAID automated testing method is used to test the degradation reconstruction function that disk array to be measured is set up the RAID that forms, and this method may further comprise the steps: (a) create a RAID volume for disk array to be measured; (b) check whether the state that this RAID rolls up is normal; (c) if the state of this RAID volume is normal, then make the entity disk in the disk array to be measured invalid one by one, and after an entity disk is disabled, check whether this RAID volume is degrading state; (d) when this RAID volume is degrading state, make the entity disk that is disabled in the disk array to be measured effective again, and rebuild the RAID volume, check whether the state of this RAID volume is normal; (e) if the state of this RAID volume all be normal, then test successfully, normal by the degradation reconstruction function of the RAID of disk array establishment to be measured.
Compared to prior art, the present invention can simulate disk among the RAID and pulled up successively again and plug, and rebuilds the RAID volume automatically, thereby improves the efficient that test RAID degradation is rebuild function.
Description of drawings
Fig. 1 is the running environment figure of RAID automatization test system of the present invention preferred embodiment.
Fig. 2 is an exemplary plot of disk array to be measured among Fig. 1.
Fig. 3 is the process flow diagram of RAID automated testing method of the present invention preferred embodiment.
The main element symbol description
Test Host 1
Storer 2
CPU 3
Disk array to be measured 4
Test macro 20
Create module 201
The inspection module 202
Execution module 203
Judge module 204
Embodiment
Consulting shown in Figure 1ly, is the running environment figure of RAID automatization test system of the present invention preferred embodiment.
In the present embodiment, disk array 4 to be measured comprises the entity disk more than two or two, and these two or two above entity disks link to each other through physics mode sequentially, and wherein every entity disk can be pulled up and plug.As shown in Figure 2, be an exemplary plot of disk array 4 to be measured, comprise 4 entity disks in this disk array 4 to be measured, these 4 entity disks are named as first disk, second disk, the 3rd disk and the 4th disk respectively according to the order of inserting.Disk array 4 to be measured is through certain disk interface, and like SCSI (Small Computer System Interface, small computer system interface), SAS (Serial Attached SCSI, Serial Attached SCSI (SAS) interface) etc., Test Host 1 on the overlap joint.
Test Host 1 can be computer platforms such as the webserver.Comprise storer 2 and CPU 3 in this Test Host 1.Comprise test macro 20 in this storer 2.Test macro 20 is used at the RAID of Test Host 1 control panel disk array 4 to be measured being created as a RAID volume, thereby all the entity disk groups in the disk array to be measured 4 become a RAID.The process of creating the RAID volume comprises selection array pattern (Array Mode), selects disc driver (Disk Drives), band unit-sized etc. is set.This RAID volume has degradation and rebuilds function, and for example this RAID volume can be RAID 1 volume or RAID 5 volumes etc.
Test macro 20 also is used for an entity disk of invalid or effective disk array 4 to be measured; Wherein, Invalid entity disk is meant that through instruction this entity disk is broken off is connected with disk array to be measured 4, and effective entity disk is meant through instruction and makes this entity disk connect disk array 4 to be measured again.
Test macro 20 also is used for after an entity disk of invalid disk array 4 to be measured makes the state of this RAID volume be degradation; Make this invalid entity disk effective again; And rebuild RAID and roll up; Even other entity disk after this is disabled in effective again entity disk and the disk array to be measured 4 is constructed as RAID again, the process of rebuilding the RAID volume is consistent with the process of creating the RAID volume.After rebuilding the RAID volume, test macro 20 will check also whether the state of this RAID volume recovers normal.
If the recovering state of this RAID volume is normal, then set up this RAID of forming after because of this entity disk off-line degradation by disk array 4 to be measured, can be through this entity disk being connected go up disk array 4 to be measured and rebuilding RAID volume rescue data and recover normal condition.After if this RAID each entity disk in disk array 4 to be measured is demoted because of off-line respectively; Can both go up disk array 4 to be measured through off-line entity disk is connected; And rebuild RAID roll recovery normal condition, the degradation reconstruction function of then being somebody's turn to do the RAID that is formed by disk array 4 establishments to be measured is normal.
Test macro 20 comprises creates module 201, inspection module 202, execution module 203 and judge module 204.
Create module 201 and be used to RAID volume of disk array 4 establishments to be measured; Constructive process comprises selection array pattern (Array Mode), selects disc driver (DiskDrives), band unit-sized etc. is set; Make disk array 4 to be measured on Test Host 1, be reflected as large capacity disc, i.e. a RAID.
Whether the state that inspection module 202 is used at this RAID volume of the RAID of Test Host 1 control panel inspection is normal.If this RAID volume is not normal condition, the then dysfunction of said RAID.
Execution module 203 is used for state at this RAID volume for just often, sends the corresponding link order of breaking off to disk array 4 to be measured, and an entity disk that makes disk array 4 to be measured is connected with disk array 4 disconnections to be measured and invalid.
After inspection module 202 was used to also check that this entity disk is disabled, whether this RAID volume was degrading state.If this RAID twist in this entity disk be disabled after for degrading state, then this RAID dysfunction.
Execution module 203 also is used for when this RAID volume is in degrading state, sends corresponding link order to disk array 4 to be measured, makes the entity disk that is disabled in the disk array 4 to be measured connect disk array 4 to be measured again and effective.
Creating module 201 also is used for after the entity disk that execution module 203 is disabled disk array 4 to be measured is effective again, rebuilding the RAID volume.This process of rebuilding the RAID volume is consistent with the process of creating the RAID volume.
Inspection module 202 also is used for after creating module 201 reconstruction RAID volumes, checking whether the state of this RAID volume is normal.
Judge module 204 is used for judging through the traversal computing method whether this entity disk that is disabled is last entity disk in the disk array 4 to be measured creating module 201 state that reconstruction RAID roll up and this RAID rolls up for just often.If this entity disk that is disabled is not last entity disk in the disk array 4 to be measured; Then execution module 203 continuation are invalid with next the entity disk in the disk array 4 to be measured; After inspection module 202 continues to check that this disk that is disabled effectively, whether can make RAID roll recovery normal condition through the RAID volume of rebuilding.If this entity disk that is disabled is last entity disk in the disk array 4 to be measured; It is invalid, effective to explain that then all entity disks in the disk array 4 to be measured experience respectively; And after rebuilding this process of RAID volume; Can both make this RAID roll recovery normal condition, promptly the degradation of this RAID reconstruction function is normal.
Consulting shown in Figure 3ly, is the process flow diagram of RAID automated testing method of the present invention preferred embodiment.
Step S201, creating module 201 is that disk array 4 to be measured is created a RAID volume.
Step S202, whether the state of this RAID volume of inspection module 202 inspections is normal, if the state of this RAID volume is normal, then gets into step S203, if the state of this RAID volume is undesired, then gets into step S 207.
Step S203, execution module 203 make first entity disk of disk array 4 to be measured invalid.
Step S204, whether this RAID volume of inspection module 202 inspections is degrading state, if this RAID volume then gets into step S205 for degrading state, if this RAID volume is not a degrading state, then gets into step S207.
Step S205, execution module 203 make the entity disk that is disabled in the disk array 4 to be measured effective again, create module 201 and rebuild the RAID volume.
Step S206, whether the state of this RAID volume of inspection module 202 inspections is normal.If the state of this RAID volume is undesired, then get into step S207, if the state of this RAID volume is normal, then get into step S208.
Step S207, test crash is set up the RAID dysfunction that forms by disk array 4 to be measured.
Step S208; Judge module 204 judges whether this entity disk that is disabled is last entity disk in the disk array 4 to be measured; If this entity disk is not last entity disk in the disk array 4 to be measured; Then get into step S209,, then get into step S210 if this entity disk is last entity disk in the disk array 4 to be measured.
Step S209, execution module 203 make next entity disk of disk array 4 to be measured invalid, and return step S204.
Step S210 tests successfully, and the degradation reconstruction function of the RAID that this disk array 4 to be measured is set up is normal.
Need to prove that the purpose that step S202 carries out to step S209 is for making entity disk experience in the disk array 4 to be measured invalid, effectively and the process of rebuilding the RAID volume one by one, and can inspection RAID volume recover normal condition after this process.Saidly make entity disk experience in the disk array 4 to be measured invalid, effectively and rebuild mode that RAID licks journey and might not be limited in order one by one from first entity disk entity disk to the last; Also can take other feasible modes; As from last entity disk until first entity disk; Or obtain at random, all experience this process as long as guarantee the entity disk in the disk array 4 to be measured.
Above embodiment is only unrestricted in order to technical scheme of the present invention to be described; Although the present invention is specified with reference to preferred embodiment; Those of ordinary skill in the art is to be understood that; Can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the spirit and the scope of technical scheme of the present invention.

Claims (9)

1. a RAID automatization test system is used to test the degradation reconstruction function that disk array to be measured is set up the RAID that forms, and it is characterized in that this system comprises:
Create module, be used to this disk array to be measured and create a RAID volume;
The inspection module is used to check whether the state of this RAID volume is normal;
Execution module, the state that is used for rolling up as this RAID makes the entity disk in the disk array to be measured invalid for just often one by one;
Said inspection module also is used for after an entity disk is disabled, and checks whether this RAID volume is degrading state;
Said execution module also is used for when this RAID volume is degrading state, making the entity disk that is disabled in the disk array to be measured effective;
Said establishment module also is used for after the entity disk that disk array to be measured is disabled is effective again, rebuilding the RAID volume;
Said inspection module; Also be used for making the entity disk that is disabled effective one by one; And after rebuilding the RAID volume; Whether the state of checking the RAID volume of this each reconstruction is normal, if the state of the RAID of this each reconstruction volume be normal, it is normal then should to set up the degradation reconstruction function of the RAID that forms by disk array to be measured.
2. RAID automatization test system as claimed in claim 1 is characterized in that, the entity disk in the disk array to be measured links to each other through physics mode sequentially.
3. RAID automatization test system as claimed in claim 1; It is characterized in that; Said execution module is through sending instruction to disk array to be measured, entity disk and disk array to be measured broken off be connected and invalid, or the entity disk is connected again and effective with disk array to be measured.
4. RAID automatization test system as claimed in claim 1 is characterized in that, behind establishment module creation RAID volume or reconstruction RAID volume, the state of rolling up as if this RAID is not normal, then this RAID dysfunction.
5. RAID automatization test system as claimed in claim 1 is characterized in that, after arbitrary entity disk in the disk array to be measured is disabled, is not degrading state if this RAID rolls up, then this RAID dysfunction.
6. a RAID automated testing method is used to test the degradation reconstruction function that disk array to be measured is set up the RAID that forms, and it is characterized in that this method may further comprise the steps:
(a) be that disk array to be measured is created a RAID volume;
(b) check whether the state that this RAID rolls up is normal;
(c) if the state of this RAID volume is normal, then make the entity disk in the disk array to be measured invalid one by one, and after an entity disk is disabled, check whether this RAID volume is degrading state;
(d) when this RAID volume is degrading state, make the entity disk that is disabled in the disk array to be measured effective again, and rebuild the RAID volume, check whether the state of this RAID volume is normal;
(e) if the state of this RAID volume all be normal, then test successfully, normal by the degradation reconstruction function of the RAID of disk array establishment to be measured.
7. RAID automated testing method as claimed in claim 6 is characterized in that, in the said step (b), if the state of this RAID volume is undesired, then test crash is set up the RAID dysfunction that forms by disk array to be measured.
8. RAID automated testing method as claimed in claim 6 is characterized in that, in the said step (c); After an entity disk is disabled; If this RAID volume is not degrading state, then test crash is set up the RAID dysfunction that forms by disk array to be measured.
9. RAID automated testing method as claimed in claim 6 is characterized in that, in the said step (e); The entity disk that is disabled is effective making one by one, and after rebuilding the RAID volume, if the state of this RAID volume is undesired; Then test crash is set up the RAID dysfunction that forms by disk array to be measured.
CN2011100403850A 2011-02-14 2011-02-14 RAID (redundant array of independent disk) automation test system and method Pending CN102637141A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011100403850A CN102637141A (en) 2011-02-14 2011-02-14 RAID (redundant array of independent disk) automation test system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011100403850A CN102637141A (en) 2011-02-14 2011-02-14 RAID (redundant array of independent disk) automation test system and method

Publications (1)

Publication Number Publication Date
CN102637141A true CN102637141A (en) 2012-08-15

Family

ID=46621542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011100403850A Pending CN102637141A (en) 2011-02-14 2011-02-14 RAID (redundant array of independent disk) automation test system and method

Country Status (1)

Country Link
CN (1) CN102637141A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981921A (en) * 2012-12-17 2013-03-20 浙江宇视科技有限公司 Restoring method and device for failure reading of IO (image orthicon) by Raid5 array
CN103019901A (en) * 2012-12-12 2013-04-03 创新科存储技术有限公司 Disk array test method and disk array
CN112667452A (en) * 2020-12-20 2021-04-16 苏州浪潮智能科技有限公司 Disk array testing method, system and medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019901A (en) * 2012-12-12 2013-04-03 创新科存储技术有限公司 Disk array test method and disk array
CN102981921A (en) * 2012-12-17 2013-03-20 浙江宇视科技有限公司 Restoring method and device for failure reading of IO (image orthicon) by Raid5 array
CN112667452A (en) * 2020-12-20 2021-04-16 苏州浪潮智能科技有限公司 Disk array testing method, system and medium
CN112667452B (en) * 2020-12-20 2022-12-16 苏州浪潮智能科技有限公司 Disk array testing method, system and medium

Similar Documents

Publication Publication Date Title
CN113111438B (en) On-orbit operation and maintenance method and system for digital twin satellite
JP2012524925A (en) Apparatus, method and computer program for controlling a solid disk
US20100275057A1 (en) Data Storage Device In-Situ Self Test, Repair, and Recovery
CN110058791B (en) Storage system and corresponding method and computer readable medium
CN110187841A (en) A kind of method, apparatus and storage server of system management memory disk
CN102637141A (en) RAID (redundant array of independent disk) automation test system and method
CN104461791B (en) Information processing method and device
CN113055358B (en) Power CPS risk propagation range prediction method and system based on cooperative attack genes
JP2010277194A (en) Storage device, data processing method and data processing program
CN115129507A (en) Method, device, equipment and medium for realizing rapid RAID array reorganization
CN107766658B (en) A kind of cold-standby system failure behavior modeling method based on SBDD model
JP2007299213A (en) Raid controller and fault monitoring method
US9977851B2 (en) Automated attribute propagation and hierarchical consistency checking for non-standard extensions
JP4477054B2 (en) Counterexample analysis support device
CN105700976A (en) Detection method and apparatus for exception processing mechanism of diskette array system
CN107807868A (en) A kind of dual control storage system disaster dump method of testing and system
CN106648969A (en) Method and system for inspecting damaged data in disk
CN115879720A (en) Inspection sequence optimization method and system adopting universal inspection tool for inspection
CN205563583U (en) System for hard disk data are destroyed in batches, bad way is kept apart and validation data remains
CN114138195A (en) Disk array management method and system and electronic equipment
CN104572350B (en) A kind of metadata processing method and device
JP2007328447A (en) Software test item selecting device, software test item selecting program, recording medium in which software test item selecting program is stored, and software test item selecting method
CN103971750B (en) Sensitive fault detection method of 9 adjacent units of RAM
CN107168817B (en) Data restoration method and device applied to storage array and storage equipment
Vedeshenkov On the route-oriented method of system diagnostics in digital systems structured as a symmetric bipartite graph

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120815