CN101685380A - Method for reconstructing disk array - Google Patents

Method for reconstructing disk array Download PDF

Info

Publication number
CN101685380A
CN101685380A CN200810198854A CN200810198854A CN101685380A CN 101685380 A CN101685380 A CN 101685380A CN 200810198854 A CN200810198854 A CN 200810198854A CN 200810198854 A CN200810198854 A CN 200810198854A CN 101685380 A CN101685380 A CN 101685380A
Authority
CN
China
Prior art keywords
disk array
disk
reconstructing
hard disk
capacity
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
CN200810198854A
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 Computer Shunde Ltd
Shunda Computer Factory Co Ltd
Original Assignee
Mitac Computer 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 Computer Shunde Ltd filed Critical Mitac Computer Shunde Ltd
Priority to CN200810198854A priority Critical patent/CN101685380A/en
Publication of CN101685380A publication Critical patent/CN101685380A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The invention discloses a method for reconstructing a disk array, which is applicable to a disk array and comprises the following steps: firstly, replacing a hard disk in the disk array, wherein the hard disk comprises an expanded capacity; then checking using condition of each hard disk in the disk array and calculating a total available capacity of the disk array; afterwards, performing a disk array expanding program for adding the expanded capacity into the total available capacity; and finally, using the total available capacity and performing the work schedule continuously.

Description

Method for reconstructing disk array
[technical field]
The invention relates to a kind of disk array, particularly relevant for a kind of recombination method of disk array.
[background technology]
(Redundant Array of Inexpensive Disks RAID) is a kind of general hard disk structure that is used for large server to disk array.This hard disk structure can be used the synthetic single hardware of several hard disk groups.This function has just occurred in Linux core 2.2 editions.General disk array must have special hardware controls card to operate, but the Linux core then has the ability of software emulation disk array, that is to say that machine itself does not need additionally to buy more special computer hardware, just can directly several hard disk emulation be become disk array, its stability is all quite excellent with the performance performance.In addition, general hardware disk array can only add whole hard disk in the array mostly, but software emulation then can only use certain cut section on the hard disk, and does not influence other cut section.Also therefore, another kind of corresponding hard disk management technology also with appearance, that is logical disk management technology (Logical Volume Manager) is called for short LVM.
Though LVM uses several cut sections or the synthetic single disk of storage facilities, but its target is not the fiduciary level in speed that promotes data access and data reservation, but invests the ability that system's run time (run time) can dynamically be adjusted the storage area size.Particularly, in the storage facilities of entity, after in case cut section is divided, its amount of capacity is just fixing, when if capacity must be repartitioned inadequately in the future, we must be earlier with former cut section, or even the data of whole hard disk all back up out can destroy data all on it because cut apart again.Yet LVM does not but need so, and it is with several cut sections and the synthetic capacity set of storage facilities (Volume Group), and can draw cut section again in this capacity set, builds respectively and puts archives economy.Just in case when certain cut section is not enough in the future, we can directly adjust the size of each cut section, move from other cut section and to get some spaces usefulness of coming, if or even when having new storage facilities to connect up, it directly can also be added in this capacity set with Extended Spaces.The more important thing is that these adjustment processes can be carried out in system's run time, and do not need the original data of backup earlier.
When present disk array conducting disk is recombinated, only can check whether the hard-disk capacity of new insertion is enough big, whether is enough to replace the hard-disk capacity that is moved out of.And can not go to check the total volume that whether can expand disk array, so the utilization factor of hard drive space is not good.And carrying out hard disk when expanding, and also only can original total volume add the expansion capacity of the new hard disk that inserts, can not inspect disk array again yet and whether can carry out preferable archives and dispose.
See also Fig. 1, its disk array that illustrates prior art carries out the synoptic diagram that hard disk is changed.Among the figure, through after the initialization, when very first time T1, disk array 50 comprises one first hard disk 10 and second hard disk 20, and its storage volume is all 250G (unit is byte), and total active volume of disk array 50 is 500G.Afterwards, when second hard disk 20 when second time T 2 is replaced by the 3rd hard disk 30 of 300G by capacity, existing disk array 50 and the 3rd hard disk 30 unconfirmed are except the capacity 250G that can contain second hard disk 20, also had more the expansion capacity 31 of 50G, so expansion capacity 31 is used not.At last, when first hard disk 10 is replaced by the 4th hard disk 40 of 300G in the 3rd time T 3, the disk array 50 expansion capacity 41 that uses the 4th hard disk 40 also still not yet in effect.Unless the user carries out the disk recombination function, just disk array 50 can be carried out the once affirmation of total active volume again; Therefore, when carrying out the hard disk replacing, the expansion capacity can't be used in real time.
[summary of the invention]
Because every problem of above-mentioned prior art, purpose of the present invention is providing a kind of method for reconstructing disk array exactly, to solve existing disk array when carrying out the hard disk replacing, the shortcoming that the expansion capacity can't be used effectively.
According to purpose of the present invention, a kind of method for reconstructing disk array is proposed, it can be applicable to a disk array, comprises the following step: at first, insert a hard disk when carrying out a work scheduling, and this hard disk comprises an expansion capacity; Next, the user mode of each hard disk and calculate a total active volume of disk array in the chkdsk array; Then, carry out a disk array expanding program, so that the expansion capacity is added total active volume; At last, use total active volume and continue the execution work scheduling.
Compared with prior art, method for reconstructing disk array of the present invention has the advantage of the expansion capacity that can use hard disk in real time.
[description of drawings]
Fig. 1 carries out the synoptic diagram that hard disk is changed for the disk array of prior art.
Fig. 2 is the flow chart of steps of method for reconstructing disk array of the present invention.
Fig. 3 is the synoptic diagram of method for reconstructing disk array of the present invention.
[embodiment]
See also Fig. 2, it is the flow chart of steps of the method for reconstructing disk array of one embodiment of the invention.Among the figure, at step S1, disk array inserts a hard disk and replaces operation to carry out hard disk when carrying out a work scheduling, and this hard disk comprises an expansion capacity.Then, in step S2, the user mode of each hard disk and calculate a total active volume of disk array in the chkdsk array.When new hard disk is plugged disk array, then the capacity detecting automatically performs just or inquires the user has determined whether carry out.Then, at step S3, judge whether to carry out disk array expanding program.If not, shown in step S5, method for reconstructing disk array then of the present invention can continue to carry out the work scheduling of planning.
If desire is carried out disk array expanding program, then execution in step S4 judges whether to use maximum hard drive space, that is uses all expansion capacity.This step can be inquired user's mode or be judged automatically according to a preset data.Do not use maximum hard drive space if user or system are judged, then execution in step S5 continues to carry out the work scheduling of planning.Use maximum hard drive space if user or system are judged, then execution in step S6 adds total active volume and execution work scheduling with the expansion capacity.Wherein, the better embodiment of step S6, be that the untapped hard-disk capacity of detect is reassembled into a second disk array, again second disk array and disk array originally made up the bigger disk array of a capacity, just can reach the effect that expands disk array with this.
See also Fig. 3, it is the synoptic diagram of the embodiment of method for reconstructing disk array of the present invention.Among the figure, the capacity that disk array 50 can use at very first time T1 is the capacity sum total of first hard disk 10 and second hard disk 20.If when second time T 2, do not use method for reconstructing disk array of the present invention, though then the 3rd hard disk 30 expansion capacity 31 that replaced second hard disk, 20, the three hard disks 30 can't be used by disk array 50.When using method for reconstructing disk array of the present invention, shown in the 3rd time T 3, see through method for reconstructing disk array 60, not only the expansion capacity 31 of the 3rd hard disk 30 can be used by disk array 50, also can be detected by method for reconstructing disk array 60 in real time in order to the 4th hard disk 40 that replaces first hard disk 10, and make disk array 50 can obtain bigger total active volume.In other words, when method for reconstructing disk array of the present invention can be carried out a work scheduling in system, carry out logical disk management technology (LVM) synchronously, to obtain best total active volume.And above-mentioned work scheduling can be disk array reorganization program, disk array expanding program or the Disk State fetch program.

Claims (6)

1. method for reconstructing disk array is characterized in that comprising the following step:
In one first disk array, change at least one hard disk, and this hard disk comprises an expansion capacity;
Check the user mode of the hard disk in this first disk array and calculate a total active volume of this first disk array; And
Carry out a disk array expanding program, producing a second disk array, and the used capacity of this second disk array is greater than the used capacity of this first disk array.
2. method for reconstructing disk array according to claim 1 is characterized in that: carry out a work scheduling after also being contained in this hard disk of replacing.
3. method for reconstructing disk array according to claim 2 is characterized in that: this work scheduling can be disk array reorganization program.
4. method for reconstructing disk array according to claim 2 is characterized in that: this work scheduling can be a disk array expanding program.
5. method for reconstructing disk array according to claim 2 is characterized in that: this work scheduling can be a Disk State fetch program.
6. method for reconstructing disk array according to claim 1 is characterized in that: this disk array expanding program also comprises the following step:
Should reassemble into one the 3rd disk array by the expansion capacity; And
Make up this first disk array and the 3rd disk array, to obtain this second disk array.
CN200810198854A 2008-09-27 2008-09-27 Method for reconstructing disk array Pending CN101685380A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810198854A CN101685380A (en) 2008-09-27 2008-09-27 Method for reconstructing disk array

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810198854A CN101685380A (en) 2008-09-27 2008-09-27 Method for reconstructing disk array

Publications (1)

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

Family

ID=42048552

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810198854A Pending CN101685380A (en) 2008-09-27 2008-09-27 Method for reconstructing disk array

Country Status (1)

Country Link
CN (1) CN101685380A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104035724A (en) * 2013-03-07 2014-09-10 旺玖科技股份有限公司 Mixed type disk array setting method
CN108319426A (en) * 2015-08-29 2018-07-24 华为数字技术(成都)有限公司 A kind of application method and device of redundant array of independent disks
WO2019084917A1 (en) * 2017-11-03 2019-05-09 华为技术有限公司 Method and apparatus for calculating available capacity of storage system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104035724A (en) * 2013-03-07 2014-09-10 旺玖科技股份有限公司 Mixed type disk array setting method
CN108319426A (en) * 2015-08-29 2018-07-24 华为数字技术(成都)有限公司 A kind of application method and device of redundant array of independent disks
CN108319426B (en) * 2015-08-29 2021-08-13 华为数字技术(成都)有限公司 Method and device for using redundant array of independent disks
WO2019084917A1 (en) * 2017-11-03 2019-05-09 华为技术有限公司 Method and apparatus for calculating available capacity of storage system
US11385828B2 (en) 2017-11-03 2022-07-12 Huawei Technologies Co., Ltd. Method and apparatus for calculating storage system available capacity

Similar Documents

Publication Publication Date Title
CN102945212B (en) Collect zoning and expression
CN102937882B (en) To effective access with the memory device using bitmap
US7454566B1 (en) System and method for adaptive RAID configuration
EP3617867B1 (en) Fragment management method and fragment management apparatus
US9569457B2 (en) Data processing method and apparatus for distributed systems
KR101259557B1 (en) Cluster data management system and method for data recovery using parallel processing in cluster data management system
US6647460B2 (en) Storage device with I/O counter for partial data reallocation
CN102929786A (en) Volatile memory representation of nonvolatile storage device set
CN102521014B (en) Deploying method and deploying device for virtual machine
CN103246478B (en) A kind of based on the disc array system of software PLC support without packet type overall situation HotSpare disk
US20120284472A1 (en) Snapshot based replication
CN103562886B (en) The method and system of virtual machine I/O is isolated in polydisc main frame
CN102148871A (en) Storage resource scheduling method and device
CN105357042A (en) High-availability cluster system, master node and slave node
CN103793332B (en) Date storage method based on internal memory, device, processor and electronic equipment
US7996447B2 (en) Method and system for optimal file system performance
CN112764680A (en) Disk stripe selection method and storage system
CN101685380A (en) Method for reconstructing disk array
CN103631535B (en) A kind of realize the method and device of space distribution in storage pool
US11922020B2 (en) Read-disturb-based read temperature information persistence system
CN103176745A (en) Hard disc array takeover method of storage system with double controllers
US11860746B2 (en) Resilient data storage system with efficient space management
CN102203725A (en) User profile synchronization
CN109426432A (en) Creation method, device and the equipment of redundant array of independent disks
CN110263012B (en) Disk caching method and system

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: 20100331