CN109189338A - A kind of method, system and the equipment of HotSpare disk addition - Google Patents
A kind of method, system and the equipment of HotSpare disk addition Download PDFInfo
- Publication number
- CN109189338A CN109189338A CN201810981137.8A CN201810981137A CN109189338A CN 109189338 A CN109189338 A CN 109189338A CN 201810981137 A CN201810981137 A CN 201810981137A CN 109189338 A CN109189338 A CN 109189338A
- Authority
- CN
- China
- Prior art keywords
- disk
- hotspare
- hotspare disk
- raid group
- cabinet
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0683—Plurality of storage devices
- G06F3/0689—Disk arrays, e.g. RAID, JBOD
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/062—Securing storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
Abstract
This application discloses a kind of methods of HotSpare disk addition, comprising: receives the HotSpare disk addition request of input;Judge whether HotSpare disk to be added is cabinet HotSpare disk according to HotSpare disk addition request;If so, judging whether there is hot spare disk in RAID group;If having hot spare disk in RAID group, hot spare disk is removed, and cabinet HotSpare disk is added in RAID group, then hot spare disk is added in RAID group.Technical solution provided herein has redefined hot spare disk and the successive of cabinet HotSpare disk uses sequence, so that software systems is not led to unnecessary service disconnection or loss of data using problem because of HotSpare disk at work, increases data stability.The application additionally provides system, equipment and the computer readable storage medium of a kind of HotSpare disk addition simultaneously, has above-mentioned beneficial effect.
Description
Technical field
This application involves HotSpare disk to replace field, in particular to a kind of method, system, equipment and the calculating of HotSpare disk addition
Machine readable storage medium storing program for executing.
Background technique
Hot spare disk (Local Spare) is to be directed to a certain RAID group, and only this group of disk just opens after going wrong
With the HotSpare disk of recovery, machine frame HotSpare disk (Enclosure Spare) is to be directed to and cabinet, can only act on machine where the disk
Cabinet, the HotSpare disk that the RIAD group failure where the disk in cabinet is just restored.
In the case that hard disk quantity is constant in storage, setting machine frame HotSpare disk can reduce the quantity of HotSpare disk, thus
Increase the storage use space of client, therefore in order to meet client to the ever-increasing demand of memory space, in currently stored production
Product hard disk quantity temporarily cannot be in increased situation, and product development at present simultaneously has cabinet HotSpare disk and hot spare disk
Two kinds of hot standby modes of RAID.
However, the mechanism due to RAID itself is set, when in RAID group there are HotSpare disk and when RAID group degrades,
HotSpare disk in RAID group will replace automatically, be hot spare disk or cabinet HotSpare disk without distinguishing the HotSpare disk.This
Sample will be related to the sequencing problem that two kinds of HotSpare disk successively use, if design is improper, just will appear a certain RAID group and exist
Cabinet HotSpare disk has been used in the case where hot spare disk, does not have HotSpare disk that can make when degrading so as to cause remaining RAID group
With.
Therefore, how preferentially to be replaced using hot spare disk when RAID group degrades is that those skilled in the art are current
The technical issues that need to address.
Summary of the invention
The purpose of the application is to provide method, system, equipment and the computer readable storage medium of a kind of HotSpare disk addition,
For preferentially being replaced using hot spare disk when RAID group degrades.
In order to solve the above technical problems, the application provides a kind of method of HotSpare disk addition, this method comprises:
The HotSpare disk for receiving input adds request;
Judge whether HotSpare disk to be added is cabinet HotSpare disk according to HotSpare disk addition request;
If so, judging whether there is hot spare disk in RAID group;
If having the hot spare disk in the RAID group, the hot spare disk is removed, and the cabinet is hot standby
Disk is added in the RAID group, then the hot spare disk is added in the RAID group.
Optionally, further includes:
When receiving the removal request of cabinet HotSpare disk, judge whether the cabinet HotSpare disk is last in the RAID group
One piece of disk;
If so, removing the cabinet HotSpare disk;
If it is not, then removing all HotSpare disk after cabinet HotSpare disk described in the RAID group, then remove the cabinet
All HotSpare disk after the cabinet HotSpare disk are finally added in the RAID group by HotSpare disk again.
Optionally, when the HotSpare disk to be added is not the cabinet HotSpare disk, further includes:
The HotSpare disk to be added is added in the RAID group.
Optionally, when the RAID group degrades, the failure for selecting the hot spare disk to replace in the RAID group is hard
Disk.
The application also provides a kind of system of HotSpare disk addition, which includes:
Receiving module, HotSpare disk addition request for receiving input;
First judgment module, for judging whether HotSpare disk to be added is that cabinet is hot standby according to HotSpare disk addition request
Disk;
Second judgment module, for when the HotSpare disk to be added be the cabinet HotSpare disk when, judge be in RAID group
It is no to have hot spare disk;
Removal and adding module, for it is standby to remove the localized heat when having the hot spare disk in the RAID group
Disk, and the cabinet HotSpare disk is added in the RAID group, then the hot spare disk is added in the RAID group.
Optionally, further includes:
Third judgment module, for whether judging the cabinet HotSpare disk when receiving the removal request of cabinet HotSpare disk
For last block disk in the RAID group;
First remove module is used for when the cabinet HotSpare disk is last block disk in the RAID group, described in removal
Cabinet HotSpare disk;
When second remove module for the cabinet HotSpare disk is not last block disk in the RAID group, described in removal
All HotSpare disk after cabinet HotSpare disk described in RAID group, then the cabinet HotSpare disk is removed, finally by the cabinet heat
All HotSpare disk after standby disk are added to again in the RAID group.
Optionally, further includes:
Adding module will be described to be added hot standby for when the HotSpare disk to be added is not the cabinet HotSpare disk
Disk is added in the RAID group.
Optionally, further includes:
Replacement module, for selecting the hot spare disk to replace in the RAID group when the RAID group degrades
Faulty hard disk.
The application also provides a kind of HotSpare disk addition equipment, and HotSpare disk addition equipment includes:
Memory, for storing computer program;
Processor, the method that the HotSpare disk as described in any of the above-described adds is realized when for executing the computer program
Step.
The application also provides a kind of computer readable storage medium, and calculating is stored on the computer readable storage medium
Machine program realizes the step for the method that the HotSpare disk as described in any of the above-described adds when the computer program is executed by processor
Suddenly.
The method of HotSpare disk addition provided herein, comprising: receive the HotSpare disk addition request of input;According to HotSpare disk
Addition request judges whether HotSpare disk to be added is cabinet HotSpare disk;If so, judging whether there is hot spare disk in RAID group;
If having hot spare disk in RAID group, hot spare disk is removed, and cabinet HotSpare disk is added in RAID group, then will be local
HotSpare disk is added in RAID group.
Based on the mechanism of existing RAID, when RAID group degrades, HotSpare disk replacement is that subscript is maximum hot standby from RAID group
Disk starts to complete to replace work, and technical solution provided herein is by first judging when receiving HotSpare disk addition request
Whether HotSpare disk to be added is cabinet HotSpare disk, if so, judging whether there is hot spare disk in RAID group again;If so, then moving
It is added in RAID group except hot spare disk, and by cabinet HotSpare disk, then hot spare disk is added in RAID group, so that machine
Cabinet HotSpare disk is less than subscript of the hot spare disk in RAID group in the subscript in RAID group, and then realizes and occur in RAID group
The purpose for preferentially using hot spare disk to replace when degradation, has redefined the successive use of hot spare disk and cabinet HotSpare disk
Sequentially, software systems is made unnecessary service disconnection or data will not to be caused to lose using problem because of HotSpare disk at work
It loses, increases data stability, also increase the market competitiveness for product.The application additionally provides a kind of HotSpare disk addition simultaneously
System, equipment and computer readable storage medium, have above-mentioned beneficial effect, details are not described herein.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of the method for HotSpare disk addition provided by the embodiment of the present application;
Fig. 2 is the flow chart of the method for the addition of another kind HotSpare disk provided by the embodiment of the present application;
Fig. 3 is a kind of structure chart of the system of HotSpare disk addition provided by the embodiment of the present application;
Fig. 4 is the structure chart of the system of the addition of another kind HotSpare disk provided by the embodiment of the present application;
Fig. 5 is a kind of structure chart of HotSpare disk addition equipment provided by the embodiment of the present application.
Specific embodiment
The core of the application is to provide method, system, equipment and the computer readable storage medium of a kind of HotSpare disk addition,
For preferentially being replaced using hot spare disk when RAID group degrades.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Mechanism setting based on RAID itself, it is understood that there may be a certain RAID group is used there are hot spare disk
Cabinet HotSpare disk causes remaining RAID group not have the case where HotSpare disk can be used when degrading, and this application provides one kind
The method of HotSpare disk addition, for solving the above problems.
Referring to FIG. 1, Fig. 1 is a kind of flow chart of the method for HotSpare disk addition provided by the embodiment of the present application.
It specifically comprises the following steps:
S101: the HotSpare disk addition request of input is received;
S102: judge whether HotSpare disk to be added is cabinet HotSpare disk according to HotSpare disk addition request;
If so, entering step S103;
Based on the mechanism of existing RAID, when RAID group degrades, HotSpare disk replacement is that subscript is maximum hot standby from RAID group
Disk starts to complete to replace work, and if it is desired to preferentially then need hot spare disk in RAID group using hot spare disk replacement
Position rearward, that is, need subscript of the hot spare disk in RAID group maximum, therefore the application is asked receiving HotSpare disk addition
When asking, first judge whether HotSpare disk to be added is cabinet HotSpare disk according to HotSpare disk addition request, if HotSpare disk to be added is
Cabinet HotSpare disk, then enter step in S103 and further judged;
Optionally, if HotSpare disk to be added is not cabinet HotSpare disk, prove that HotSpare disk to be added is hot spare disk, this
When directly set the maximum hard disk of subscript in RAID group for the HotSpare disk to be added, due to RAID group hard disc subscript with
It adds sequencing to be incremented by, therefore directly HotSpare disk to be added can be added in RAID group, so that when RAID group degrades, directly
Selecting is selected the hot spare disk and is replaced.
S103: judge whether there is hot spare disk in RAID group;
If so, entering step S104;
When having hot spare disk in the RAID group, then demonstrate the need for preferentially being replaced using the hot spare disk, this
When enter step in S104 progress further operating realization;
Optionally, when there is no hot spare disk in the RAID group, then show that there are two kinds of situations: first is that in the RAID group
There is no HotSpare disk, second is that have HotSpare disk and the HotSpare disk for cabinet HotSpare disk in the RAID group, and equal nothing in both cases
Method is preferentially replaced using hot spare disk, then directly HotSpare disk to be added is added in RAID group at this time.
S104: the hot spare disk is removed, and cabinet HotSpare disk is added in RAID group, then the hot spare disk is added
It adds in RAID group;
When the HotSpare disk to be added, which is, has hot spare disk in cabinet HotSpare disk and the RAID group, if it is desired to preferentially make
It is replaced with hot spare disk, then the subscript of the hot spare disk in RAID group is needed to be greater than the subscript of the HotSpare disk to be added, this
When first remove the hot spare disk, then cabinet HotSpare disk is added in RAID group, is finally added to the hot spare disk
In RAID group, due to RAID group hard disc subscript with addition sequencing be incremented by, so when in RAID group the hot spare disk
Subscript be greater than the HotSpare disk to be added subscript so that when RAID group degradation when, preferentially select the hot spare disk to be replaced
It changes;
Optionally, can also include:
When RAID group degrades, the faulty hard disk in hot spare disk replacement RAID group is selected;
Further, after the faulty hard disk in selection hot spare disk replacement RAID group, it can also record and replace
Journey, and the prompt information that replacement is completed is exported, it allows the user to replace faulty hard disk in time after the completion of replacement in time, and energy
It is enough that scene reproduction is realized according to the replacement process of record, so that user checks the Trouble cause of hard disk.
Based on the above-mentioned technical proposal, the method for a kind of HotSpare disk provided herein addition, first judges to be added hot standby
Whether disk is cabinet HotSpare disk, if so, judging whether there is hot spare disk in RAID group again;If so, it is standby then to remove localized heat
Disk, and cabinet HotSpare disk is added in RAID group, then hot spare disk is added in RAID group, so that cabinet HotSpare disk exists
Subscript in RAID group is less than subscript of the hot spare disk in RAID group, and then realizes preferential when RAID group degrades
The purpose replaced using hot spare disk, has redefined hot spare disk and the successive of cabinet HotSpare disk uses sequence, makes soft
Part system will not lead to unnecessary service disconnection or loss of data using problem because of HotSpare disk at work, increase number
According to stability, the market competitiveness also is increased for product.
Based on the above embodiment, referring to FIG. 2, Fig. 2 is the addition of another kind HotSpare disk provided by the embodiment of the present application
The flow chart of method.
Itself specifically includes the following steps:
S201: when receiving the removal request of cabinet HotSpare disk, judge whether the cabinet HotSpare disk is last in RAID group
One piece of disk;
If so, entering step S202;If it is not, then entering step S203;
It is more or situations such as there are failure cabinet HotSpare disk based on cabinet HotSpare disk in a certain cabinet, it is understood that there may be removal
The demand of cabinet HotSpare disk, when receive cabinet HotSpare disk remove request when, need first to judge the cabinet HotSpare disk whether be
Last block disk in RAID group, if so, proving that removing the cabinet HotSpare disk has no the subscript of remaining hard disk in the RAID group
It influences, enters step in S202 at this time, directly remove the cabinet HotSpare disk.
S202: cabinet HotSpare disk is removed;
S203: all HotSpare disk in RAID group after cabinet HotSpare disk are removed, then remove cabinet HotSpare disk, finally by machine
All HotSpare disk after cabinet HotSpare disk are added to again in RAID group.
When the cabinet HotSpare disk is not last block disk in the RAID group, then prove to remove the cabinet HotSpare disk to this
The lower rotating savings of remaining hard disk has an impact in RAID group, first removes at this time all hot standby after cabinet HotSpare disk in RAID group
Disk, then cabinet HotSpare disk is removed, finally all HotSpare disk after cabinet HotSpare disk are added to again in RAID group, it will be right
The influence that remaining hard disk subscript generates in the RAID group is preferably minimized.
Referring to FIG. 3, Fig. 3 is a kind of structure chart of the system of HotSpare disk addition provided by the embodiment of the present application.
The system may include:
Receiving module 100, HotSpare disk addition request for receiving input;
First judgment module 200, for judging whether HotSpare disk to be added is that cabinet is hot standby according to HotSpare disk addition request
Disk;
Second judgment module 300, for judging whether there is office in RAID group when HotSpare disk to be added is cabinet HotSpare disk
Portion's HotSpare disk;
It removes and adding module 400, for when having hot spare disk in RAID group, removes hot spare disk, and by machine
Cabinet HotSpare disk is added in RAID group, then hot spare disk is added in RAID group.
Referring to FIG. 4, Fig. 4 is the structure chart of the system of the addition of another kind HotSpare disk provided by the embodiment of the present application.
The system can also include:
Third judgment module, for when receive cabinet HotSpare disk remove request when, judge cabinet HotSpare disk whether be
Last block disk in RAID group;
First remove module, for removing cabinet HotSpare disk when cabinet HotSpare disk is last block disk in RAID group;
Second remove module, for removing machine in RAID group when cabinet HotSpare disk is not last block disk in RAID group
All HotSpare disk after cabinet HotSpare disk, then cabinet HotSpare disk is removed, finally by all HotSpare disk weights after cabinet HotSpare disk
Newly it is added in RAID group.
The system can also include:
Adding module, for when HotSpare disk to be added is not cabinet HotSpare disk, HotSpare disk to be added to be added to RAID
In group.
The system can also include:
Replacement module, for when RAID group degrades, selecting the faulty hard disk in hot spare disk replacement RAID group.
Each component part in system above can be applied in embodiment below:
The HotSpare disk that receiving module receives input adds request;First judgment module according to HotSpare disk addition request judge to
Add whether HotSpare disk is cabinet HotSpare disk;When HotSpare disk to be added is not cabinet HotSpare disk, adding module is by heat to be added
Standby disk is added in RAID group.When HotSpare disk to be added is cabinet HotSpare disk, the second judgment module judge in RAID group whether
There is hot spare disk;When having hot spare disk in RAID group, removes and adding module removes hot spare disk, and cabinet is warm
Standby disk is added in RAID group, then hot spare disk is added in RAID group;When RAID group degrades, replacement module selection office
Portion's HotSpare disk replaces the faulty hard disk in RAID group.
When receiving the removal request of cabinet HotSpare disk, third judgment module judges whether cabinet HotSpare disk is in RAID group
Last block disk;When cabinet HotSpare disk is last block disk in RAID group, the first remove module removes cabinet HotSpare disk;Work as machine
When cabinet HotSpare disk is not last block disk in RAID group, the second remove module removes all after cabinet HotSpare disk in RAID group
HotSpare disk, then cabinet HotSpare disk is removed, finally all HotSpare disk after cabinet HotSpare disk are added to again in RAID group.
Referring to FIG. 5, Fig. 5 is a kind of structure chart of HotSpare disk addition equipment provided by the embodiment of the present application.
HotSpare disk addition equipment 500 can generate bigger difference because configuration or performance are different, may include one
Or more than one processor (central processing units, CPU) 522 (for example, one or more processors)
With memory 532, storage medium 530 (such as one or one of one or more storage application programs 542 or data 544
A above mass memory unit).Wherein, memory 532 and storage medium 530 can be of short duration storage or persistent storage.Storage
It may include one or more modules (diagram does not mark) in the program of storage medium 530, each module may include pair
Series of instructions operation in device.Further, central processing unit 522 can be set to communicate with storage medium 530,
HotSpare disk adds the series of instructions operation executed in storage medium 530 in equipment 500.
HotSpare disk add equipment 500 can also include one or more power supplys 525, one or more it is wired or
Radio network interface 550, one or more input/output interfaces 558, and/or, one or more operating systems
541, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Step in the method for the addition of HotSpare disk described in above-mentioned Fig. 1 to Fig. 2 is based on the Fig. 5 by HotSpare disk addition equipment
Shown in structure realize.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed device, device and method, it can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the division of module,
Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple module or components can be with
In conjunction with or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of device or module or
Communication connection can be electrical property, mechanical or other forms.
Module may or may not be physically separated as illustrated by the separation member, show as module
Component may or may not be physical module, it can and it is in one place, or may be distributed over multiple networks
In module.Some or all of the modules therein can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the application
It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.
If integrated module is realized and when sold or used as an independent product in the form of software function module, can
To be stored in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or
Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products
Out, which is stored in a storage medium, including some instructions are used so that a computer equipment
The whole of (can be personal computer, funcall device or the network equipment etc.) execution each embodiment method of the application
Or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory,
ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. are various can store program
The medium of code.
Above to method, system, equipment and the computer-readable storage medium of a kind of HotSpare disk addition provided herein
Matter is described in detail.Specific examples are used herein to illustrate the principle and implementation manner of the present application, above
The explanation of embodiment is merely used to help understand the present processes and its core concept.It should be pointed out that for the art
Those of ordinary skill for, under the premise of not departing from the application principle, can also to the application carry out it is several improvement and repair
Decorations, these improvement and modification are also fallen into the protection scope of the claim of this application.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or equipment for including element.
Claims (10)
1. a kind of method of HotSpare disk addition characterized by comprising
The HotSpare disk for receiving input adds request;
Judge whether HotSpare disk to be added is cabinet HotSpare disk according to HotSpare disk addition request;
If so, judging whether there is hot spare disk in RAID group;
If having the hot spare disk in the RAID group, the hot spare disk is removed, and the cabinet HotSpare disk is added
It adds in the RAID group, then the hot spare disk is added in the RAID group.
2. the method according to claim 1, wherein further include:
When receiving the removal request of cabinet HotSpare disk, judge whether the cabinet HotSpare disk is last block in the RAID group
Disk;
If so, removing the cabinet HotSpare disk;
If it is not, then remove all HotSpare disk after cabinet HotSpare disk described in the RAID group, then to remove the cabinet hot standby
All HotSpare disk after the cabinet HotSpare disk are finally added in the RAID group by disk again.
3. the method according to claim 1, wherein when the HotSpare disk to be added is not the cabinet HotSpare disk
When, further includes:
The HotSpare disk to be added is added in the RAID group.
4. the method according to claim 1, wherein further include:
When the RAID group degrades, the hot spare disk is selected to replace the faulty hard disk in the RAID group.
5. a kind of system of HotSpare disk addition characterized by comprising
Receiving module, HotSpare disk addition request for receiving input;
First judgment module, for judging whether HotSpare disk to be added is cabinet HotSpare disk according to HotSpare disk addition request;
Second judgment module, for judging whether have in RAID group when the HotSpare disk to be added is the cabinet HotSpare disk
Hot spare disk;
Removal and adding module, for removing the hot spare disk when having the hot spare disk in the RAID group, and
The cabinet HotSpare disk is added in the RAID group, then the hot spare disk is added in the RAID group.
6. system according to claim 5, which is characterized in that further include:
Third judgment module, for judging whether the cabinet HotSpare disk is institute when receiving the removal request of cabinet HotSpare disk
State last block disk in RAID group;
First remove module, for removing the cabinet when the cabinet HotSpare disk is last block disk in the RAID group
HotSpare disk;
Second remove module, for when the cabinet HotSpare disk is not last block disk in the RAID group, described in removal
All HotSpare disk after cabinet HotSpare disk described in RAID group, then the cabinet HotSpare disk is removed, finally by the cabinet heat
All HotSpare disk after standby disk are added to again in the RAID group.
7. system according to claim 5, which is characterized in that further include:
Adding module, for when the HotSpare disk to be added is not the cabinet HotSpare disk, the HotSpare disk to be added to be added
It adds in the RAID group.
8. system according to claim 5, which is characterized in that further include:
Replacement module, for selecting the hot spare disk to replace the failure in the RAID group when the RAID group degrades
Hard disk.
9. a kind of HotSpare disk adds equipment characterized by comprising
Memory, for storing computer program;
Processor realizes the side that the HotSpare disk as described in any one of Claims 1-4 adds when for executing the computer program
The step of method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes the method that the HotSpare disk as described in any one of Claims 1-4 adds when the computer program is executed by processor
The step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810981137.8A CN109189338B (en) | 2018-08-27 | 2018-08-27 | Method, system and equipment for adding hot spare disk |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810981137.8A CN109189338B (en) | 2018-08-27 | 2018-08-27 | Method, system and equipment for adding hot spare disk |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109189338A true CN109189338A (en) | 2019-01-11 |
CN109189338B CN109189338B (en) | 2021-06-18 |
Family
ID=64916213
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810981137.8A Active CN109189338B (en) | 2018-08-27 | 2018-08-27 | Method, system and equipment for adding hot spare disk |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109189338B (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070088990A1 (en) * | 2005-10-18 | 2007-04-19 | Schmitz Thomas A | System and method for reduction of rebuild time in raid systems through implementation of striped hot spare drives |
CN101840311A (en) * | 2009-12-30 | 2010-09-22 | 创新科存储技术有限公司 | Self-repairing method suitable for RAID system and RAID system |
CN101923496A (en) * | 2010-07-30 | 2010-12-22 | 华中科技大学 | Method for achieving parallel reconstruction of data on RAID |
CN102012847A (en) * | 2010-12-06 | 2011-04-13 | 创新科存储技术有限公司 | Improved disk array reconstruction method |
US20120096309A1 (en) * | 2010-10-15 | 2012-04-19 | Ranjan Kumar | Method and system for extra redundancy in a raid system |
CN102999399A (en) * | 2012-11-13 | 2013-03-27 | 浙江宇视科技有限公司 | Method and device of automatically restoring storage of JBOD (just bundle of disks) array |
CN103246478A (en) * | 2012-02-08 | 2013-08-14 | 北京同有飞骥科技股份有限公司 | Disk array system supporting grouping-free overall situation hot standby disks based on flexible redundant array of independent disks (RAID) |
CN105242877A (en) * | 2015-09-29 | 2016-01-13 | 浪潮电子信息产业股份有限公司 | Hardware RAID management method in Linux |
CN106326038A (en) * | 2016-08-22 | 2017-01-11 | 浪潮(北京)电子信息产业有限公司 | Hot standby space selection method and system |
US20170024295A1 (en) * | 2011-09-21 | 2017-01-26 | Kevin Mark Klughart | Raid hot spare system and method |
CN107368264A (en) * | 2017-07-26 | 2017-11-21 | 郑州云海信息技术有限公司 | A kind of combination RAID method, system and storage management software system |
CN108153622A (en) * | 2016-12-06 | 2018-06-12 | 华为技术有限公司 | The method, apparatus and equipment of a kind of troubleshooting |
-
2018
- 2018-08-27 CN CN201810981137.8A patent/CN109189338B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070088990A1 (en) * | 2005-10-18 | 2007-04-19 | Schmitz Thomas A | System and method for reduction of rebuild time in raid systems through implementation of striped hot spare drives |
CN101840311A (en) * | 2009-12-30 | 2010-09-22 | 创新科存储技术有限公司 | Self-repairing method suitable for RAID system and RAID system |
CN101923496A (en) * | 2010-07-30 | 2010-12-22 | 华中科技大学 | Method for achieving parallel reconstruction of data on RAID |
US20120096309A1 (en) * | 2010-10-15 | 2012-04-19 | Ranjan Kumar | Method and system for extra redundancy in a raid system |
CN102012847A (en) * | 2010-12-06 | 2011-04-13 | 创新科存储技术有限公司 | Improved disk array reconstruction method |
US20170024295A1 (en) * | 2011-09-21 | 2017-01-26 | Kevin Mark Klughart | Raid hot spare system and method |
CN103246478A (en) * | 2012-02-08 | 2013-08-14 | 北京同有飞骥科技股份有限公司 | Disk array system supporting grouping-free overall situation hot standby disks based on flexible redundant array of independent disks (RAID) |
CN102999399A (en) * | 2012-11-13 | 2013-03-27 | 浙江宇视科技有限公司 | Method and device of automatically restoring storage of JBOD (just bundle of disks) array |
CN105242877A (en) * | 2015-09-29 | 2016-01-13 | 浪潮电子信息产业股份有限公司 | Hardware RAID management method in Linux |
CN106326038A (en) * | 2016-08-22 | 2017-01-11 | 浪潮(北京)电子信息产业有限公司 | Hot standby space selection method and system |
CN108153622A (en) * | 2016-12-06 | 2018-06-12 | 华为技术有限公司 | The method, apparatus and equipment of a kind of troubleshooting |
CN107368264A (en) * | 2017-07-26 | 2017-11-21 | 郑州云海信息技术有限公司 | A kind of combination RAID method, system and storage management software system |
Also Published As
Publication number | Publication date |
---|---|
CN109189338B (en) | 2021-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10846186B2 (en) | Central processing unit CPU hot-remove method and apparatus, and central processing unit CPU hot-add method and apparatus | |
CN108153622B (en) | Fault processing method, device and equipment | |
JP2011504269A (en) | Parallel Reed-Solomon RAID (RS-RAID) architecture, device, and method | |
CN104424048A (en) | Data storage method and equipment | |
CN104216835A (en) | Method and device for implementing memory fusion | |
CN105446827A (en) | Data storage method and device for database at failure | |
CN105930191A (en) | System service reloading method and apparatus | |
CN103475695A (en) | Interconnection method and device for storage system | |
CN109451098A (en) | FPGA accelerator card MAC Address configuration method, device and accelerator card | |
CN110795120A (en) | Software upgrading method and related device | |
CN108304044A (en) | A kind of setting method and system of NVME hard disk hot-plugs | |
CN109902056A (en) | A kind of method, apparatus of serial transmission, equipment and computer readable storage medium | |
CN112416248A (en) | Method and device for realizing disk array and electronic equipment | |
CN109101611A (en) | File system directories maximize test method, device, terminal and storage medium | |
CN107493330A (en) | A kind of cloud service method and Cloud Server | |
CN109189338A (en) | A kind of method, system and the equipment of HotSpare disk addition | |
CN106708445A (en) | Link selection method and device | |
CN111143027A (en) | Cloud platform management method, system, equipment and computer readable storage medium | |
CN111130856A (en) | Server configuration method, system, equipment and computer readable storage medium | |
CN106227627A (en) | A kind of raid is inserted into data distribution method and the system of new disk after data are recovered | |
CN103176941A (en) | Inter-core communication method and agent device | |
CN115129249A (en) | SAS link topology identification management method, system, terminal and storage medium | |
CN105335209A (en) | Virtual machine scheduling method, electronic device and server | |
CN102571443B (en) | Abnormality handling method and device | |
CN109542519A (en) | A kind of automatic distributed system method for reconstructing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |