CN101853140A - Disk array processing method - Google Patents

Disk array processing method Download PDF

Info

Publication number
CN101853140A
CN101853140A CN200910132639A CN200910132639A CN101853140A CN 101853140 A CN101853140 A CN 101853140A CN 200910132639 A CN200910132639 A CN 200910132639A CN 200910132639 A CN200910132639 A CN 200910132639A CN 101853140 A CN101853140 A CN 101853140A
Authority
CN
China
Prior art keywords
hard disk
disk
disk array
array
list
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
CN200910132639A
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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CN200910132639A priority Critical patent/CN101853140A/en
Publication of CN101853140A publication Critical patent/CN101853140A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a disk array processing method, comprising the following steps of: when a disk array command for accessing a disk array is received, judging whether the hard disk list of the disk array has a removed hard disk disconnected with the disk array or not; when the hard disk list has the removed hard disk disconnected with the disk array, amending the hard disk list; detecting whether a new hard disk which does not exist in the hard disk list is connected with the disk array or not; when the new hard disk is connected with the disk array, amending the hard disk list; and executing the disk array command and accessing the disk array according to the hard disk list of the disk array.

Description

Disk array processing method
Technical field
The invention relates to a kind of disk array processing method, and particularly relevant for a kind of disk array processing method of tool hot plug function.
Background technology
Along with day by day popularizing of computing machine, it is also huge day by day thereupon that the common people are stored in the data volume of computing machine.Therefore, make computer vendors develop and continually develop out more jumbo Storage Media.Yet, generally have jumbo Storage Media, as hard disk, the access rate that is subject to read head own with and the bus transfer rate that connected, thereby cause the bottleneck of this type of Storage Media on message transmission rate.In addition, this type of Storage Media does not have fault tolerance, thereby when Storage Media damaged, its stored data are damage thereupon also.
Therefore, develop disk array (Redundant Array of Inexpensive Disks, RAID), in order to simulate a logic hard disk by several entity hard disks.Wherein, disk array be by simultaneously from several entity hardware accessing data samplings, and make the logic hard disk that is simulated have message transmission rate faster.In addition, the disk array of some grade has fault-tolerant function, when making in the disk array one of them entity hard disk corruptions, still can restore data on the entity hard disk that is stored in damage by other entity hard disk.
For the entity hard disk on the disk array can be substituted at any time, hot plug entity hard disk becomes one of function indispensable on the disk array.Yet, when using the software emulation disk array, need under environment, could detect the plug state of entity hard disk at any time with disk array driver, and the hot plug of processing entities hard disk.
Summary of the invention
Therefore, a purpose of the present invention provides a kind of disk array processing method, in order to when receiving the instruction of accessing disk array, whether hard disk newly-increased or that remove is arranged on each connectivity port by the detecting disk array, make disk array not need to detect at any time the plug state of hard disk, and handle the hot plug hard disk.
According to one embodiment of the invention, a kind of disk array processing method comprises following steps: when receiving in order to the instruction of a disk array of access one disk array, judge in the hard disk list of disk array whether have one to remove hard disk and be not connected on the disk array.When in hard disk list, removing hard disk and not being connected on the disk array, revise hard disk list.Whether detecting has a newly-increased hard disk that is not present in hard disk list to be connected in disk array.When having newly-increased hard disk to be connected in disk array, revise hard disk list.According to the hard disk list of disk array, carry out the disk array instruction, with the accessing disk array.
Use the present invention and have following advantage.Can be when receiving the disk array instruction, whether detecting has hard disk newly-increased to disk array, or removes from disk array, thereby makes disk array processing method have the function of handling the hot plug hard disk.In addition, hard disk is being arranged when disk array removes, the present invention can rebuild disk array by newly-increased hard disk.Therefore, the present invention does not need to detect at any time by the driver of disk array or disk array control card whether hard disk hot-plug is arranged on the disk array, can handle the hot plug hard disk.Thus, when using the software emulation disk array, the present invention still can be applicable to not have under the environment of disk array driver, as DOS or firmware (firmware) execution environment.
Description of drawings
For above and other objects of the present invention, feature, advantage and embodiment can be become apparent, appended the description of the drawings is as follows:
Fig. 1 illustrates the process flow diagram according to a kind of disk array processing method of an embodiment of the present invention.
[primary clustering symbol description]
100: disk array processing method
110~200: step
Embodiment
Please refer to Fig. 1, it illustrates a kind of disk array (RedundantArray of Inexpensive Disks, the RAID) process flow diagram of disposal route according to an embodiment of the present invention.Whether disk array processing method has hard disk newly-increased or that remove, and has the ability of processing hot plug (Hot Plug) when the instruction of receiving in order to the accessing disk array on each connectivity port by the detecting disk array.Disk array processing method 100 comprises following steps:
In step 110, be connected at least one hard disk of a disk array certainly, obtain the hard disk list of disk array.Wherein, obtained hard disk list is to use the form of mini-RIS (RAID Information Sectors) (minidisk array information sector) or the form of other disk array set file, and the information that has at least one previous hard disk that before had been connected in disk array in hard disk list is as connectivity port information or the relevant information of other previous hard disk in order to connect previous hard disk on the identification code of previous hard disk, the disk array.
Next, when receiving, judge in the hard disk list of disk array whether have one to remove hard disk and be not connected in (step 130) on the disk array in order to a disk array of accessing disk array instruction (step 120).Step 130 can be according at least one connectivity port information of at least one previous hard disk of hard disk list, at least one connectivity port of scanning disk array and finishing.Wherein, the scanning disk array can be used bus command, as serial ATA (Serial Advanced Technology Attachment, SATA) instruction or other bus command.When scanning exists less than hard disk on the connectivity port that previous hard disk had been connected on disk array, then judge in the hard disk list have one to remove hard disk and be not connected on the disk array.
When in hard disk list, removing hard disk and not being connected on the disk array, can remove (step 140) with removing hard disk from hard disk list earlier, to revise hard disk list.Thus, can avoid system access to remove hard disk, and cause system exception.
In step 150, whether detecting has a newly-increased hard disk that is not present in hard disk list to be connected on the disk array.Step 150 can be finished by at least one connectivity port of scanning disk array.Wherein, the scanning disk array can be used bus command, as SATA instruction or other bus command.Scanning at least one connectivity port that is connected with hard disk on the disk array, when before there is no hard disk connecting thereon in hard disk list, then judging has the newly-increased hard disk that is not present in hard disk list to be connected on the disk array.
When not newly-increased hard disk is connected on the disk array,, carry out disk array instruction (step 200), with the accessing disk array then according to hard disk list.Thus, to remove hard disk earlier and remove (step 140),, carry out disk array instruction (step 200) just according to revised hard disk list from hard disk list, can avoid system access to remove hard disk, and make disk array processing method 100 can handle heat to remove hard disk.
Yet, when having newly-increased hard disk to be connected in disk array, utilize newly-increased hard disk to rebuild (rebuild) disk array (step 160).Wherein, can rebuild block in newly-increased hard disk configuration one, and select at least one source hard disk from disk array.Then, the hard disk of originating is certainly obtained a data reconstruction, and stores the reconstruction block of data reconstruction to newly-increased hard disk, utilizes newly-increased hard disk to rebuild disk array (step 160) to reach.
Next, after utilizing newly-increased hard disk to rebuild disk array (step 160), login increases hard disk newly to hard disk list (step 170), and according to hard disk list, carries out disk array instruction (step 200), with the accessing disk array.Thus, when the accessing disk array, newly-increased hard disk can be used to access, inserts hard disk and make disk array processing method 100 can handle heat.
In addition, whether when judging that by step 130 at least one previous hard disk in the hard disk list all is connected on the disk array, can detect has the newly-increased hard disk that is not present in hard disk list to be connected in disk array (step 180).When not newly-increased hard disk is connected in disk array,, carry out disk array instruction (step 200) then according to existing hard disk list.When having the newly-increased hard disk that is not present in hard disk list to be connected in disk array, the newly-increased hard disk of login to hard disk list (step 190) to revise hard disk list, and, carry out disk array instruction (step 200), with the accessing disk array according to revised hard disk list.
By the invention described above embodiment as can be known, use the present invention and have following advantage.Can be when receiving the disk array instruction, whether detecting has hard disk newly-increased to disk array, or removes from disk array, thereby makes disk array processing method have the function of handling the hot plug hard disk.In addition, hard disk is being arranged when disk array removes, the present invention can rebuild disk array by newly-increased hard disk.Therefore, the present invention does not need to detect at any time by the driver of disk array or disk array control card whether hard disk hot-plug is arranged on the disk array, can handle the hot plug hard disk.Thus, when using the software emulation disk array, the present invention still can be applicable to not have under the environment of disk array driver, as DOS or firmware (firmware) execution environment.
Though the present invention discloses as above with embodiment; right its is not in order to qualification the present invention, any person skilled in the art, without departing from the spirit and scope of the present invention; when can being used for a variety of modifications and variations, so protection scope of the present invention is when being as the criterion with the scope that claims were defined.

Claims (9)

1. a disk array processing method is characterized in that, comprises:
When receiving, judge in the hard disk list of this disk array whether have one to remove hard disk and be not connected on this disk array in order to the instruction of a disk array of access one disk array;
When in this hard disk list, having this to remove hard disk and be not connected on this disk array, revise this hard disk list;
Whether detecting has a newly-increased hard disk that is not present in this hard disk list to be connected in this disk array;
When having this newly-increased hard disk to be connected in this disk array, revise this hard disk list; And
According to this hard disk list of this disk array, carry out this disk array instruction, with this disk array of access.
2. disk array processing method according to claim 1 is characterized in that, when having this to remove hard disk and be not connected on this disk array in this hard disk list, the step of revising this hard disk list comprises:
When in this hard disk list, having this to remove hard disk and be not connected on this disk array, this is removed hard disk remove, to revise this hard disk list from this hard disk list.
3. disk array processing method according to claim 1 is characterized in that, when having this newly-increased hard disk to be connected in this disk array, the step of revising this hard disk list comprises:
When having this newly-increased hard disk to be connected in this disk array, login should increase hard disk newly to this hard disk list, to revise this hard disk list.
4. disk array processing method according to claim 1 is characterized in that, also comprises:
In this hard disk list, there is this to remove hard disk and is not connected on this disk array, and when having this newly-increased hard disk to be connected in this disk array, utilize and to rebuild this disk array by newly-increased hard disk.
5. disk array processing method according to claim 4 is characterized in that, the step of utilizing this newly-increased hard disk to rebuild this disk array also comprises:
Rebuild block in this newly-increased hard disk configuration one;
Select at least one source hard disk from this disk array; And
Obtain a data reconstruction from this source hard disk, and store this data reconstruction, should rebuild this disk array by newly-increased hard disk to utilize to this reconstruction block that should increase hard disk newly.
6. whether disk array processing method according to claim 1 is characterized in that, judges in this hard disk list of this disk array, have this to remove the step that hard disk is not connected on this disk array and comprise:
At least one connectivity port information according at least one previous hard disk of this hard disk list, scan at least one connectivity port of this disk array, in this hard disk list of judging this disk array, whether there is this to remove one of them of this at least one connectivity port that hard disk is not connected in this disk array.
7. disk array processing method according to claim 1 is characterized in that, whether detecting has the step that should newly-increased hard disk be connected in this disk array that is not present in this hard disk list to comprise:
Scan at least one connectivity port of this disk array, whether one of them of this at least one connectivity port that should newly-increased hard disk be connected in this disk array that is not present in this hard disk list is arranged with detecting.
8. disk array processing method according to claim 1 is characterized in that, also comprises:
From at least one hard disk that is connected in this disk array, obtain this hard disk list of this disk array.
9. disk array processing method according to claim 1 is characterized in that, this hard disk list is to use the form of minidisk array information sector.
CN200910132639A 2009-03-30 2009-03-30 Disk array processing method Pending CN101853140A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910132639A CN101853140A (en) 2009-03-30 2009-03-30 Disk array processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910132639A CN101853140A (en) 2009-03-30 2009-03-30 Disk array processing method

Publications (1)

Publication Number Publication Date
CN101853140A true CN101853140A (en) 2010-10-06

Family

ID=42804654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910132639A Pending CN101853140A (en) 2009-03-30 2009-03-30 Disk array processing method

Country Status (1)

Country Link
CN (1) CN101853140A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106371771A (en) * 2016-09-13 2017-02-01 郑州云海信息技术有限公司 Disk management method and system in storage system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106371771A (en) * 2016-09-13 2017-02-01 郑州云海信息技术有限公司 Disk management method and system in storage system
CN106371771B (en) * 2016-09-13 2020-03-06 苏州浪潮智能科技有限公司 Disk management method and system in storage system

Similar Documents

Publication Publication Date Title
US9529674B2 (en) Storage device management of unrecoverable logical block addresses for RAID data regeneration
CN101281452A (en) Method for automatically rebuilding hard disk
CN110399247B (en) Data recovery method, device and equipment and computer readable storage medium
CN106372115A (en) Data reading/writing method and system, and database system
US8055843B2 (en) Method for configuring RAID
CN103534688A (en) Data recovery method, storage equipment and storage system
CN103064752A (en) Method and device of repairing document
WO2015188586A1 (en) Data transmission method, electronic equipment, usb equipment and storage medium
CN104461791A (en) Information processing method and device
CN104598328A (en) File system repair method, device and system
US20100174880A1 (en) Method for fast format of a fully allocated volume when copied from a space efficient volume
CN105556462A (en) Writing to files and file meta-data
CN101853140A (en) Disk array processing method
US8589722B2 (en) Methods and structure for storing errors for error recovery in a hardware controller
TW201005734A (en) Data storage method, apparatus and system for interrupted write recovery
CN105589665B (en) A kind of method for carrying out defect isolation during defect hard disk connection PC ends
CN111399774B (en) Data processing method and device based on snapshot under distributed storage system
US20120210061A1 (en) Computer and method for testing redundant array of independent disks of the computer
CN111931255A (en) Automatic destroying and copying system
CN104850483A (en) Method for reading temperature of Raid card
CN105608395A (en) System and method for batch hard disk data destruction fault isolation and data residual verification
CN107632774B (en) Method and device for repairing disk mount
CN102981935B (en) A kind of method strengthening memory apparatus system dish reliability
CN103942111A (en) Data recovery method and device
CN101859264A (en) Disk array set file updating 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
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20101006