CN108845771A - Method, system and the associated component of RAID are configured in a kind of storage system - Google Patents

Method, system and the associated component of RAID are configured in a kind of storage system Download PDF

Info

Publication number
CN108845771A
CN108845771A CN201810660972.1A CN201810660972A CN108845771A CN 108845771 A CN108845771 A CN 108845771A CN 201810660972 A CN201810660972 A CN 201810660972A CN 108845771 A CN108845771 A CN 108845771A
Authority
CN
China
Prior art keywords
raid
hard disk
preferred
information
configuration
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
CN201810660972.1A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810660972.1A priority Critical patent/CN108845771A/en
Publication of CN108845771A publication Critical patent/CN108845771A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0683Plurality of storage devices
    • G06F3/0689Disk arrays, e.g. RAID, JBOD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0626Reducing size or complexity of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This application discloses a kind of methods that RAID is configured in storage system, the method includes obtaining the hard disk information of all hard disks in storage system, execute sort operation to all hard disks according to hard disk information and obtain hard disk classification information;Hard disk classification information is uploaded to user terminal, to receive the configuration information that user terminal is generated according to hard disk classification information;According to configuration information generate RAID configuration recommendation as a result, and RAID configuration recommendation result is uploaded to user terminal, to receive the RAID configuration order that user terminal is generated according to RAID configuration recommendation result;RAID configuration operation is executed to hard disk according to RAID configuration order.This method can reduce the difficulty of configuration RAID, promote storage management efficiency.Disclosed herein as well is system, a kind of computer readable storage medium and a kind of data storage devices that RAID is configured in a kind of storage system, have the above beneficial effect.

Description

Method, system and the associated component of RAID are configured in a kind of storage system
Technical field
Configured the present invention relates to technical field of data storage, in particular in a kind of storage system the method for RAID, system, A kind of computer readable storage medium and a kind of data storage device.
Background technique
With the fast development of the technologies such as internet, cloud computing, the mechanisms such as government, enterprise produce the data of magnanimity.This A little mass datas need large-scale storage equipment to store.The core of mass storage devices is exactly hard disk.Hard disk is formed RAID (Redundant Arrays of Independent Disks, disk array), can allow many disc drivers simultaneously Data are transmitted, several times of single disc driver, tens times even rate of hundreds of times are reached.Meanwhile it can be passed through using RAID Data check mode realizes fault tolerance, improves Information Security.
But a set of storage equipment in the prior art, it may include a large amount of hard disks, the type of skill of these hard disks holds Amount, revolving speed etc. are different, and RAID level is more, and very big difficulty, storage management effect are brought to user configuration RAID Rate is lower.
Therefore, the difficulty of configuration RAID how is reduced, promoting storage management efficiency is that those skilled in the art need at present The technical issues of solution.
Summary of the invention
The purpose of the application is to provide a kind of method for configuring RAID in storage system, system, a kind of computer-readable deposits Storage media and a kind of data storage device can reduce the difficulty of configuration RAID, promote storage management efficiency.
In order to solve the above technical problems, the application provides a kind of method for configuring RAID in storage system, this method includes:
The hard disk information of all hard disks in storage system is obtained, and sort operation is executed to all hard disks according to hard disk information Obtain hard disk classification information;Wherein, the identical hard disk of hard disk information is same class hard disk;
Hard disk classification information is uploaded to user terminal, matches confidence to receive user terminal according to what hard disk classification information generated Breath;Wherein, the configuration information includes hard disk classification, hard disk quantity and storage pool ID;
According to configuration information generate RAID configuration recommendation as a result, and RAID configuration recommendation result is uploaded to user terminal, with Just the RAID configuration order that user terminal is generated according to RAID configuration recommendation result is received;
RAID configuration operation is executed to hard disk according to RAID configuration order.
Optionally, hard disk information includes capacity, the type of skill, revolving speed and the block size of hard disk.
Optionally, RAID configuration recommendation result includes preferred storage pool ID, preferably hard disk classification, preferably RAID level, excellent Select RAID stripe width, preferably spare part number, the member disk number of preferably single RAID, preferably RAID quantity and currently preferred RAID The total capacity of rank.
Optionally, generating RAID configuration recommendation result according to configuration information includes:
Preferred storage pool ID is set by storage pool ID;
Preferred hard disk classification is set by hard disk classification;
Judge the type of skill skill corresponding with hard disk classification that whether there is RAID and the member disk of RAID in storage pool ID Art type is identical;If so, setting preferred RAID level for the rank of RAID and setting preferred for the strip width of RAID RAID stripe width;If it is not, then determining preferred RAID level and preferred RAID stripe width according to preset rules;
Preferred spare part number is determined according to hard disk quantity and preferred RAID level;
The member disk number of preferably single RAID is determined according to preferred RAID level and hard disk quantity;
Hard disk quantity is obtained into preset value divided by the member disk number of preferred single RAID, and preset value is rounded downwards Operation obtains preferred RAID quantity;
According to preferred RAID level, the member disk number of preferably single RAID, preferably RAID quantity, preferably RAID stripe bandwidth The total capacity that degree, preferably spare part number and single hard-disk capacity calculate currently preferred RAID level.
Optionally, preferred RAID level is determined according to preset rules and preferred RAID stripe width includes:
Preferred RAID level is determined according to the type of skill of hard disk quantity and hard disk classification;
Judge whether hard disk quantity is greater than the default strip width of preferred RAID level;If so, strip width is arranged For preferred RAID stripe width;If it is not, then determining preferred RAID stripe width according to preferred RAID level.
Present invention also provides the system for configuring RAID in a kind of storage system, which includes:
Hard disk categorization module, for obtaining the hard disk information of all hard disks in storage system, and according to hard disk information to institute There is hard disk to execute sort operation and obtains hard disk classification information;Wherein, the identical hard disk of hard disk information is same class hard disk;
Classification information uploading module, for hard disk classification information to be uploaded to user terminal, to receive user terminal according to hard The configuration information that disk classification information generates;Wherein, the configuration information includes hard disk classification, hard disk quantity and storage pool ID;
RAID recommending module, for generating RAID configuration recommendation according to configuration information as a result, and by RAID configuration recommendation knot Fruit is uploaded to user terminal, to receive the RAID configuration order that user terminal is generated according to RAID configuration recommendation result;
RAID configuration module, for executing RAID configuration operation to hard disk according to RAID configuration order.
Optionally, hard disk information includes capacity, the type of skill, revolving speed and the block size of hard disk.
Optionally, RAID configuration recommendation result includes preferred storage pool ID, preferably hard disk classification, preferably RAID level, excellent Select RAID stripe width, preferably spare part number, the member disk number of preferably single RAID, preferably RAID quantity and currently preferred RAID The total capacity of rank.
Present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, computer program The step of method that RAID is configured in above-mentioned storage system executes is realized when execution.
Present invention also provides a kind of data storage device, including memory and processor, calculating is stored in memory Machine program, processor realize what the method that RAID is configured in above-mentioned storage system executed when calling the computer program in memory Step.
The present invention provides a kind of methods that RAID is configured in storage system, including obtaining all hard disks in storage system Hard disk information executes sort operation to all hard disks according to hard disk information and obtains hard disk classification information;Wherein, hard disk information is identical Hard disk be same class hard disk;Hard disk classification information is uploaded to user terminal, to receive user terminal according to hard disk classification information The configuration information of generation;RAID configuration recommendation is generated as a result, and RAID configuration recommendation result is uploaded to use according to configuration information Family end, to receive the RAID configuration order that user terminal is generated according to RAID configuration recommendation result;According to RAID configuration order pair Hard disk executes RAID configuration operation.
RAID is a kind of hard disk groups that the independent hard disk combination of muti-piece is got up, but the hard disk due to forming RAID The attributes such as the type of skill, capacity, revolving speed it is different, therefore need user voluntarily to configure in the prior art, increase configuration The difficulty of RAID reduces storage management efficiency.The present invention classifies all hard disks for the hard disk information of hard disk, belongs to Same category of hard disk hard disk information having the same facilitates user to be determined according to hard disk classification information relevant to configuration RAID Configuration information, and then realize based on realizing according to the sorted result of hard disk information to configuring RAID in storage system.Due to elder generation Hard disk, which is carried out classification, can greatly facilitate user comprehensively to understand the situation of hard disk in storage system, and then can reduce and match The difficulty of RAID is set, storage management efficiency is improved.The application additionally provide simultaneously configured in a kind of storage system RAID system, A kind of computer readable storage medium and a kind of data storage device have above-mentioned beneficial effect, and details are not described herein.
Detailed description of the invention
In ord to more clearly illustrate embodiments of the present application, attached drawing needed in the embodiment will be done simply below It introduces, it should be apparent that, the drawings in the following description are only some examples of the present application, for ordinary skill people For member, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow chart that the method for RAID is configured in a kind of storage system provided by the embodiment of the present application;
Fig. 2 is the flow chart that a kind of preferred hard disk classification provided by the embodiments of the present application determines method;
Fig. 3 is user terminal and storage end structural schematic diagram;
Fig. 4 is the structural schematic diagram that the system of RAID is configured in a kind of storage system provided by the embodiment of the present application;
Fig. 5 is the system work process schematic diagram that RAID is configured in storage system.
Specific embodiment
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.
Below referring to Figure 1, Fig. 1 is the method for configuration RAID in a kind of storage system provided by the embodiment of the present application Flow chart.
Specific steps may include:
S101:The hard disk information of all hard disks in storage system is obtained, and all hard disks are executed according to hard disk information and are divided Generic operation obtains hard disk classification information;Wherein, the identical hard disk of hard disk information is same class hard disk;
Wherein, the purpose of this step is that all hard disks in storage system are classified according to hard disk information, this reality Apply in a default storage system there are the hard disk information of a large amount of hard disk and not all hard disk is all the same, this step be by All hard disks are classified according to hard disk information.Hard disk information may include hard-disk capacity, the rotation speed of hard disk, seagate class The factors such as type, hard disk block size, hard disk brand, hard-disk size can choose above-mentioned hard-disk capacity in this step, hard disk turns The combination of speed, seagate type and hard disk block size these fourth types element is as main foundation (the i.e. hard disk letter for dividing hard disk Breath), it, can be by hard-disk capacity, the rotation speed of hard disk, seagate type and hard disk block size as a kind of most preferred embodiment Identical hard disk divides same class hard disk into.
After having carried out all hard disks based on the sort operation of hard disk information, available hard disk classification information, hard disk Classification information is exactly the information for describing hard disk assortment, may include the hard disk of every a kind of hard disk in hard disk classification information In classification, the rotation speed of hard disk, seagate type, hard disk block size, the available hard disk number in this class hard disk and this class hard disk Total hard disk number.
It should be noted that being related to the information exchange between user terminal and storage end in the present embodiment, the present embodiment is It is described from the angle of storage end, subject performed by each step is all storage end.Generate hard disk classification information Meaning is that it is possible to the integral status for making user terminal understand hard disk all in storage end, and then can make relatively reasonable match Set strategy.
S102:Hard disk classification information is uploaded to user terminal, is generated according to hard disk classification information to receive user terminal Configuration information;
Wherein, the purpose of this step is for hard disk classification information to be uploaded to user terminal, and user terminal is classified according to hard disk to be believed Breath generates configuration information, and wherein configuration information may include hard disk classification, hard disk number and storage pool ID.It is understood that It is that configuration information is that the hard disk classification information generated according to S101 obtains, therefore there are a set of basis is hard for the present embodiment default Disk classification information determines the rule (flexible configuration carried out including user according to practical situations) of configuration information.In short, After user terminal receives hard disk classification information, user terminal can send configuration information to storage end, and storage end can be according to configuration information Further execute relevant configuration operation.
S103:RAID configuration recommendation is generated as a result, and RAID configuration recommendation result is uploaded to user according to configuration information End, to receive the RAID configuration order that user terminal is generated according to RAID configuration recommendation result;
Wherein, this step is built upon S101 and is classified according to hard disk information, and S102 is generated according to hard disk classification information On the basis of configuration information, since configuration information is obtained based on hard disk is carried out sorted hard disk classification information, This step is actually to generate RAID configuration recommendation result according to configuration information on the basis of all hard disks are classified.
Specifically, RAID configuration recommendation is the result is that on how to configure the recommendation information of RAID, wherein may include preferred Storage pool ID, preferably hard disk classification, preferably RAID level, preferably RAID stripe width, preferably spare part number, preferably single RAID The total capacity of member disk number, preferably RAID quantity and currently preferred RAID level.The above-mentioned each class recommendation information of generation is specific The step of will be described in next embodiment.
It should be noted that since the executing subject of the present embodiment is storage end, and storage end is not in actual operation It is the device of generation RAID configuration order, therefore there is still a need for user terminal will be disposed in RAID configuration recommendation result, to receive use The RAID configuration order that family end is generated according to RAID configuration recommendation result, and then realize the configuration to RAID.
S104:RAID configuration operation is executed to hard disk according to RAID configuration order.
Wherein, only need to carry out relevant configuration according to RAID configuration order in S104 can be obtained RAID.
RAID is a kind of hard disk groups that the independent hard disk combination of muti-piece is got up, but the hard disk due to forming RAID The attributes such as the type of skill, capacity, revolving speed it is different, therefore need user voluntarily to configure in the prior art, increase configuration The difficulty of RAID reduces storage management efficiency.The present invention classifies all hard disks for the hard disk information of hard disk, belongs to Same category of hard disk hard disk information having the same facilitates user to be determined according to hard disk classification information relevant to configuration RAID Configuration information, and then realize based on realizing according to the sorted result of hard disk information to configuring RAID in storage system.Due to elder generation Hard disk, which is carried out classification, can greatly facilitate user comprehensively to understand the situation of hard disk in storage system, and then can reduce and match The difficulty of RAID is set, storage management efficiency is improved.
Several embodiments will be introduced one by one below generates preferred storage pool ID, preferably hard disk classification, preferably RAID level, excellent Select RAID stripe width, preferably spare part number, the member disk number of preferably single RAID, preferably RAID quantity and currently preferred RAID The specific steps of the total capacity of rank.
It is noted that predefined operation, including following three can be executed before generating RAID configuration recommendation result A step:
(1) predefining each RAID recommendation results includes following attribute:It is preferred that storage pool ID (pool_id), preferably Hard disk classification (drive_class_id), preferably RAID level (raid_level), preferably RAID stripe width (stripe_ Width), preferably spare part number (spare), the member disk number (drive_count) of preferably single RAID, preferably RAID quantity (raid_count), the total capacity (capacity) of currently preferred RAID level.
(2) the default strip width (default_stripe_width) of every kind of RAID level is predefined.
(3) predefined RAID type recommendation order rule is as follows:If the type of skill of the hard disk classification of user's selection is Tier0_flash or tier1_flash, then RAID recommendation order be:DRAID5>RAID5>DRAID6>RAID6>RAID10;Such as Fruit is tier_enterprise or tier_nearline, then RAID recommendation order is:DRAID6>TRAID6>DRAID5> TRAID5>TRAID10。
Eight embodiments are built upon on the basis of above-mentioned one embodiment below, i.e., default, which exists, receives user terminal The configuration information of transmission, wherein configuration information includes hard disk classification, hard disk number and storage pool ID.
Embodiment one:It is preferred that storage pool ID
It can be using the storage pool ID in configuration information as preferred storage pool ID.
Embodiment two:It is preferred that hard disk classification
It can be using the hard disk classification in configuration information as preferred hard disk classification.
Embodiment three:It is preferred that RAID level and preferred RAID stripe width
Fig. 2 is referred to, Fig. 2 is the flow chart that a kind of preferred hard disk classification provided by the embodiments of the present application determines method, tool Body step may include:
S201:Judge corresponding with hard disk classification with the presence or absence of the type of skill of RAID and the member disk of RAID in storage pool ID The type of skill it is identical;If so, into S202;If it is not, then entering S203:
Wherein, if there are RAID in the corresponding storage pool of storage pool ID, and the type of skill of the member disk of the RAID with The type of skill of the hard disk classification of user's selection is identical, then enters S202, i.e., only recommend the RAID type, and in recommendation results It is preferred that strip width (stripe_width) and the strip width of the RAID are consistent.The management of RAID and data therein It accesses complex.Using the above method, the configuration with original RAID is consistent, and can reduce RAID management difficulty, is reduced Data access error probability, and then improve data access efficiency.
S202:Preferred RAID level is set by the rank of RAID and sets preferred RAID stripe for the strip width of RAID Bandwidth;
S203:Preferred RAID level is determined according to the type of skill of hard disk quantity and hard disk classification;
Wherein it is possible to determine preferred RAID level according to following rule according to the type of skill of hard disk classification and hard disk number Not:
1) when the type of skill is tier0_flash or tier1_flash
128<Hard disk number:Do not recommend
32<Hard disk number<=128:Optimal recommendation:DRAID5;Other are recommended:DRAID6
6<=hard disk number<=32:Optimal recommendation:DRAID5;Other are recommended:RAD5,DRAID6,RAID6,RAID10
Hard disk number==5:Optimal recommendation:DRAID5;Other are recommended:RAID5,RAID6,RAID10,RAID1
Hard disk number==4:Optimal recommendation:DRAID5;Other are recommended:RAID5,RAID10,RAID1
Hard disk number==3:Optimal recommendation:RAID5;Other are recommended:RAID10,RAID0
Hard disk number==2:Optimal recommendation:RAID10;Other are recommended:RAID1
2) when the type of skill is tier_enterprise or tier_nearline
128<Hard disk number:Do not recommend
32<=hard disk number<=128:Optimal recommendation:DRAID6;Other are recommended:DRAID5
6<=hard disk number<32:Optimal recommendation:RAID6;Other are recommended:DRAID6,RAID5,DRAID5,RAID10, RAID1
Hard disk number==5:Optimal recommendation:RAID6;Other are recommended:RAID5,DRAID5,RAID10,RAID1
Hard disk number==4:Optimal recommendation:RAID5;Other are recommended:DRAID5,RAID10,RAID1
Hard disk number==3:Optimal recommendation:RAID5;Other are recommended:RAID10,RAID1
Hard disk number==2:Optimal recommendation:RAID10;Other are recommended:RAID1
Above-mentioned optimal recommendation is all preferred RAID level, other are recommended as can be used other than preferred RAID level RAID level.
S204:Judge whether hard disk quantity is greater than the default strip width of preferred RAID level;If so, into S205; If it is not, then entering S206;
Wherein, this step is established in the corresponding storage pool of storage pool ID, there is no the seagate type of RAID and is referred to The identical situation of fixed seagate type, calculates as follows:If hard disk quantity is greater than preferred in configuration information The default strip width of RAID level, then the value of preferred RAID stripe width is equal to the default value of preferred RAID level.
If hard disk quantity is equal to the default strip width of preferred RAID level, preferred RAID stripe bandwidth in configuration information The value of degree determines that corresponding relationship is according to the value of preferred RAID level:
RAID1:Stripe_width=2;
RAID10:Stripe_width=8;
RAID5:Stripe_width=9;
RAID6:Stripe_width=12;
DRAID5:Stripe_width=8;
DRAID6:Stripe_width=11.
If hard disk quantity is less than the default strip width of raid_level, the value of stripe_width in configuration information It is determined according to the value of preferred RAID level, corresponding relationship is:
RAID1:Stripe_width=2;
RAID10:Stripe_width=is no more than the even number of the hard disk quantity in configuration information;
RAID5:Hard disk quantity in stripe_width=configuration information;
RAID6:Hard disk quantity in stripe_width=configuration information;
DRAID5:Hard disk quantity -1 in stripe_width=configuration information;
DRAID6:Hard disk quantity -1 in stripe_width=configuration information.
S205:Preferred RAID stripe width is set by strip width;
S206:Preferred RAID stripe width is determined according to preferred RAID level.
Wherein, the strip width of RAID is also to influence the factor of the capacity of a RAID.Assuming that two RAID, member disk Type, capacity and number are identical, but strip width is different, then the capacity of the two RAID is not also identical.Therefore, use is above-mentioned Method can provide optimal strip width, so as to so that RAID has suitable capacity.
Example IV:It is preferred that spare part number (spare)
Wherein, spare part is exactly back-up disk.If situations such as some member disk in RAID breaks down, can use back-up disk Replace the member disk.Once some hard disk is designated as the back-up disk of some RAID, then it will not become the member of other RAID again Disk.Spare part number is exactly back-up disk number, i.e. the back-up disk number of the RAID.
Determine that preferred spare part number, corresponding relationship are according to hard disk quantity and preferred RAID level (raid_level):
RAID1:Spare=0;
RAID10:Spare=0;
RAID5:Spare=0;
RAID6:Spare=0;
DRAID5:
Hard disk quantity in configuration information<=32:Spare=1;
33<Hard disk quantity in=configuration information<=72:Spare=2;
73<Hard disk quantity in=configuration information<=96:Spare=3;
97<Hard disk quantity in=configuration information<=128:Spare=4;
DRAID6:
Hard disk quantity in configuration information<=32:Spare=1;
33<Hard disk quantity in=configuration information<=72:Spare=2;
73<Hard disk quantity in=configuration information<=96:Spare=3;
97<Hard disk quantity in=configuration information<=128:Spare=4;
If the member disk in RAID does not break down, spare part disk if, can be constantly in Status of Backups, not be used in storage Data will not become the member disk of other RAID, belong to idle state.The effect of spare part disk is protection data.Therefore, spare part Number cannot be excessive, otherwise can waste capacity.Application method can comprehensively consider the constraint condition of hard disk quantity and RAID level, Suitable spare part number is selected, data protection purpose and waste of capacity can be reached
Embodiment five:It is preferred that the member disk number (drive_count) of single RAID
The member disk number of preferably single RAID is determined according to preferred RAID level (raid_level) and hard disk quantity;
If the value of raid_level is RAID1, RAID10, RAID5, RAID6, drive_count=stripe_ width;If the value of raid_level is DRAID5, DRAID6, the hard disk quantity in drive_count=configuration information;
Embodiment six:It is preferred that RAID quantity (raid_count)
Hard disk quantity is obtained into preset value divided by the member disk number of preferred single RAID, and preset value is rounded downwards Operation obtains preferred RAID quantity;Specific rules are raid_count=floor (hard disk quantity/drive_ in configuration information Count), floor indicates to be rounded downwards.
Different RAID level, data security levels are not also identical, and RAID capacity is not also identical.Therefore, specified in user In the case where certain hard disk quantity, different RAID level and RAID quantity, the usable capacity that will cause user is different, data Safety is not also identical.Application method can comprehensively consider two factors of capacity and data safety and be balanced, provide optimal knot Fruit.
Embodiment seven:The total capacity (capacity) of currently preferred RAID level
According to preferred RAID level (raid_level), the member disk number (drive_count) of preferably single RAID, preferably RAID quantity (raid_count), preferably RAID stripe width (stripe_width), preferably spare part number (spare) and single hard The total capacity of the currently preferred RAID level of disk calculation of capacity, formula are as follows:
RAID1:The single hard-disk capacity * raid_count of floor (drive_count/2) *
RAID10:The single hard-disk capacity * raid_count of floor (drive_count/2) *
RAID5:(drive_count-1) the single hard-disk capacity * raid_count of *
RAID6:(drive_count-2) the single hard-disk capacity * raid_count of *
DRAID5:(drive_count-spare) the single hard-disk capacity * raid_count* (stripe_width-1) of */ stripe_width
DRAID6:(drive_count-spare) the single hard-disk capacity * raid_count* (stripe_width-2) of */ stripe_width。
It is above-mentioned about generate preferably storage pool ID in RAID configuration recommendation result, preferably hard disk classification, preferably RAID level, It is preferred that RAID stripe width, preferably spare part number, the member disk number of preferably single RAID, preferably RAID quantity and currently preferred Seven embodiments of the total capacity of RAID level are when configuration information includes hard disk classification, hard disk quantity and storage pool ID On the basis of realize.Hard disk classification, hard disk quantity and storage pool ID in certain configuration information can be user terminal according to hard Disk classification information automatically generates, and is also possible to what user oneself inputted according to the actual situation.Above seven about generate RAID The embodiment for the method that the embodiment of configuration recommendation result can configure RAID with first within the storage system is combined.Knot Embodiment after conjunction carries out category division to the hard disk in storage system first, and every kind of classification includes hard disk type ID, hard disk turn Speed, can use 6 hard disk number, total hard disk number attributes at seagate type, hard disk block size.Then user or user terminal are defeated Enter hard disk classification, hard disk number and target storage pool, the information that last RAID recommended method is inputted according to user provides automatically Configurable RAID recommendation results.Using the present embodiment, the recommendation results of the configurable RAID of hard disk are provided automatically, it can be very big The difficulty of the RAID of user configuration is reduced, storage management efficiency is improved.User need to only input necessary 3 parameters (hard disk classification, Hard disk quantity and storage pool ID), believed by the storage pool of RAID recommended method analysis storage system, existing RAID, hard disk etc. are related Breath provides optimal RAID configuration recommendation and other candidate configuration recommendations.
Fig. 3 is referred to, Fig. 3 is user terminal and storage end structural schematic diagram.User terminal is mainly user interactive module, is used for With user interactive data, the order issued including showing the information of user query, forwarding user.Storage end is mainly including hard disk point Generic module, RAID recommending module, RAID configuration module, for completing the RAID management function of hard disk.
Refer to Fig. 4, Fig. 4 is the structure that the system of RAID is configured in a kind of storage system provided by the embodiment of the present application Schematic diagram;
The system may include:
Hard disk categorization module 100 is believed for obtaining the hard disk information of all hard disks in storage system, and according to the hard disk Breath executes sort operation to all hard disks and obtains hard disk classification information;Wherein, the identical hard disk of the hard disk information is same A kind of hard disk;
Classification information uploading module 200, for the hard disk classification information to be uploaded to user terminal, to receive the use The configuration information that family end is generated according to the hard disk classification information;Wherein, the configuration information includes hard disk classification, hard disk quantity With storage pool ID;
RAID recommending module 300, for generating RAID configuration recommendation according to the configuration information as a result, and by the RAID Configuration recommendation result is uploaded to the user terminal, is generated according to the RAID configuration recommendation result to receive the user terminal RAID configuration order;
RAID configuration module 400, for executing RAID configuration operation to the hard disk according to the RAID configuration order.
Further, the hard disk information includes capacity, the type of skill, revolving speed and the block size of the hard disk.
Further, the RAID configuration recommendation result includes preferred storage pool ID, preferably hard disk classification, preferably RAID level Not, preferably RAID stripe width, preferably spare part number, the member disk number of preferably single RAID, preferably RAID quantity and presently preferred RAID level total capacity.
Further, RAID recommending module includes:
It is preferred that storage pool ID unit, for setting the preferred storage pool ID for the storage pool ID;
It is preferred that hard disk class location, for setting the preferred hard disk classification for the hard disk classification;
It is preferred that RAID level and RAID stripe width unit, for judging in the storage pool ID with the presence or absence of RAID and institute It is identical to state the type of skill type of skill corresponding with the hard disk classification of the member disk of RAID;If so, by the RAID's Rank is set as preferred RAID level and sets preferred RAID stripe width for the strip width of the RAID;If it is not, according to The type of skill of the hard disk quantity and the hard disk classification determines the preferred RAID level;Judge whether hard disk quantity is greater than It is preferred that the default strip width of RAID level;If so, setting the preferred RAID stripe width for the strip width;If It is no, then the preferred RAID stripe width is determined according to the preferred RAID level.
It is preferred that spare part counting unit, for determining the preferred spare part according to the hard disk quantity and the preferred RAID level Number;
It is preferred that the member disk counting unit of single RAID, for being determined according to the preferred RAID level and the hard disk quantity The member disk number of the preferably single RAID;
It is preferred that RAID processing units, for hard disk quantity to be preselected divided by the member disk number of the preferably single RAID Value, and downward floor operation is carried out to the preset value and obtains the preferred RAID quantity;
Total capacity unit, for according to the member disk number of the preferred RAID level, the preferably single RAID, described excellent RAID quantity, the preferred RAID stripe width, the preferred spare part number and single hard-disk capacity is selected to calculate described presently preferred RAID level total capacity.
Fig. 5 is referred to, Fig. 5 is the system work process schematic diagram that RAID is configured in storage system.Pass through hard disk point first Generic module statisticallys analyze the hard disk information in storage system, according to the capacity of hard disk, the type of skill, revolving speed, block size, to hard disk Classify.Principle is if the capacity of two hard disks, the type of skill, revolving speed, block size value are all equal, the two hard disks are returned For one kind.Secondly, will include display hard disk classification information by the user interactive module of user terminal selects hard disk class to user, user Not, hard disk number and storage pool inquiry RAID configuration recommendation result, display RAID configuration recommendation result to user, user according to Recommendation results issue configuration RAID order.Again, hard disk classification, the hard disk number selected by RAID recommending module according to user And storage pool, relevant information needed for obtaining RAID configuration recommendation calculate RAID configuration recommendation knot according to pre-defined rule Fruit.Finally, the RAID configuration order issued by RAID configuration module according to user, automatically selects RAID member disk and organizes order already issued The available disk number of classification where the state of the member disk of the RAID level, update RAID that are required in order, the member disk of update RAID.
Since the embodiment of components of system as directed is corresponded to each other with the embodiment of method part, the embodiment of components of system as directed is asked Referring to the description of the embodiment of method part, wouldn't repeat here.
Present invention also provides a kind of computer readable storage mediums, have computer program thereon, the computer program It is performed and step provided by above-described embodiment may be implemented.The storage medium may include:USB flash disk, read-only is deposited mobile hard disk Reservoir (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or The various media that can store program code such as CD.
Present invention also provides a kind of data storage devices, may include memory and processor, deposit in the memory There is computer program, when the processor calls the computer program in the memory, above-described embodiment may be implemented and mentioned For the step of.Certain data storage device can also include various network interfaces, the components such as power supply.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For system disclosed in embodiment Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration ?.It should be pointed out that for those skilled in the art, under the premise of not departing from the application principle, also Can to the application, some improvement and modification can also be carried out, these improvement and modification also fall into the protection scope of the claim of this application It is interior.
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.Under the situation not limited more, the element limited by sentence "including a ..." is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.

Claims (10)

1. configuring the method for RAID in a kind of storage system, which is characterized in that including:
The hard disk information of all hard disks in storage system is obtained, and classification is executed to all hard disks according to the hard disk information Operation obtains hard disk classification information;Wherein, the identical hard disk of the hard disk information is same class hard disk;
The hard disk classification information is uploaded to user terminal, is generated to receive the user terminal according to the hard disk classification information Configuration information;Wherein, the configuration information includes hard disk classification, hard disk quantity and storage pool ID;
RAID configuration recommendation is generated as a result, and the RAID configuration recommendation result is uploaded to the use according to the configuration information Family end, to receive the RAID configuration order that the user terminal is generated according to the RAID configuration recommendation result;
RAID configuration operation is executed to the hard disk according to the RAID configuration order.
2. method according to claim 1, which is characterized in that the hard disk information includes the capacity of the hard disk, technology class Type, revolving speed and block size.
3. method according to claim 1, which is characterized in that the RAID configuration recommendation result include preferred storage pool ID, It is preferred that hard disk classification, preferably RAID level, preferably RAID stripe width, preferably spare part number, preferably single RAID member disk number, It is preferred that the total capacity of RAID quantity and currently preferred RAID level.
4. method according to claim 3, which is characterized in that generate RAID configuration recommendation result packet according to the configuration information It includes:
The preferred storage pool ID is set by the storage pool ID;
The preferred hard disk classification is set by the hard disk classification;
Judge in the storage pool ID with the presence or absence of RAID and the type of skill of the member disk of the RAID and the hard disk classification The corresponding type of skill is identical;If so, setting preferred RAID level for the rank of the RAID and by the item of the RAID Bandwidth is set as preferred RAID stripe width;If it is not, then according to preset rules determine the preferred RAID level and preferably RAID stripe width;
The preferred spare part number is determined according to the hard disk quantity and the preferred RAID level;
The member disk number of the preferably single RAID is determined according to the preferred RAID level and the hard disk quantity;
Hard disk quantity is obtained into preset value divided by the member disk number of the preferably single RAID, and the preset value is carried out downward Floor operation obtains the preferred RAID quantity;
According to the preferred RAID level, the member disk number of the preferably single RAID, the preferred RAID quantity, it is described preferably RAID stripe width, the preferred spare part number and single hard-disk capacity calculate the total capacity of the currently preferred RAID level.
5. method according to claim 4, which is characterized in that according to preset rules determine the preferred RAID level and preferably RAID stripe width includes:
The preferred RAID level is determined according to the type of skill of the hard disk quantity and the hard disk classification;
Judge whether hard disk quantity is greater than the default strip width of preferred RAID level;If so, the strip width is arranged For the preferred RAID stripe width;If it is not, then determining the preferred RAID stripe width according to the preferred RAID level.
6. configuring the system of RAID in a kind of storage system, which is characterized in that including:
Hard disk categorization module, for obtaining the hard disk information of all hard disks in storage system, and according to the hard disk information to institute There is the hard disk to execute sort operation and obtains hard disk classification information;Wherein, the identical hard disk of the hard disk information is that same class is hard Disk;
Classification information uploading module, for the hard disk classification information to be uploaded to user terminal, to receive the user terminal root The configuration information generated according to the hard disk classification information;Wherein, the configuration information includes hard disk classification, hard disk quantity and storage Pond ID;
RAID recommending module, for generating RAID configuration recommendation according to the configuration information as a result, and pushing away RAID configuration It recommends result and is uploaded to the user terminal, match to receive the user terminal according to the RAID that the RAID configuration recommendation result generates Set order;
RAID configuration module, for executing RAID configuration operation to the hard disk according to the RAID configuration order.
7. system according to claim 6, which is characterized in that the hard disk information includes the capacity of the hard disk, technology class Type, revolving speed and block size.
8. system according to claim 6, which is characterized in that the RAID configuration recommendation result include preferred storage pool ID, It is preferred that hard disk classification, preferably RAID level, preferably RAID stripe width, preferably spare part number, preferably single RAID member disk number, It is preferred that the total capacity of RAID quantity and currently preferred RAID level.
9. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program is realized when the computer program is executed by processor as configured in storage system described in any one of claim 1 to 5 The step of method of RAID.
10. a kind of data storage device, which is characterized in that including:
Memory, for storing computer program;
Processor executes when for executing the computer program as matched in storage system described in any one of claim 1 to 5 The step of setting the method for RAID.
CN201810660972.1A 2018-06-25 2018-06-25 Method, system and the associated component of RAID are configured in a kind of storage system Pending CN108845771A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810660972.1A CN108845771A (en) 2018-06-25 2018-06-25 Method, system and the associated component of RAID are configured in a kind of storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810660972.1A CN108845771A (en) 2018-06-25 2018-06-25 Method, system and the associated component of RAID are configured in a kind of storage system

Publications (1)

Publication Number Publication Date
CN108845771A true CN108845771A (en) 2018-11-20

Family

ID=64202194

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810660972.1A Pending CN108845771A (en) 2018-06-25 2018-06-25 Method, system and the associated component of RAID are configured in a kind of storage system

Country Status (1)

Country Link
CN (1) CN108845771A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669631A (en) * 2018-12-10 2019-04-23 浪潮(北京)电子信息产业有限公司 A kind of storage pool planing method, device, equipment and computer readable storage medium
CN114063908A (en) * 2021-10-23 2022-02-18 苏州普福斯信息科技有限公司 Hard disk read-write processing method and device based on RAID and storage medium
CN114217746A (en) * 2021-12-16 2022-03-22 浪潮云信息技术股份公司 Hardware Raid remote automatic management method for hybrid architecture node

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101221485A (en) * 2008-01-24 2008-07-16 创新科存储技术(深圳)有限公司 Method for establishing redundant magnetic disk array and control device thereof
CN101604226A (en) * 2009-07-14 2009-12-16 浪潮电子信息产业股份有限公司 A kind of method that makes up raising performance of storage system in dynamic buffering pond based on virtual RAID
CN102375703A (en) * 2011-12-12 2012-03-14 创新科存储技术有限公司 Method for automatically selecting disk during creating of RAID (Redundant Array of Inexpensive Disks)
US20140281329A1 (en) * 2008-09-26 2014-09-18 Netapp, Inc. Priority Command Queues for Low Latency Solid State Drives
CN104360883A (en) * 2014-11-12 2015-02-18 浪潮(北京)电子信息产业有限公司 Method and system for configuring Raid (Redundant array of independent disks)
CN104965672A (en) * 2015-05-27 2015-10-07 浪潮电子信息产业股份有限公司 Method for automatically and quickly configuring RAID (redundant array of independent disks)
CN105549902A (en) * 2015-12-08 2016-05-04 浪潮电子信息产业股份有限公司 Design scheme for automatically making RAID (redundant array of independent disk) during trial production of server
CN107368264A (en) * 2017-07-26 2017-11-21 郑州云海信息技术有限公司 A kind of combination RAID method, system and storage management software system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101221485A (en) * 2008-01-24 2008-07-16 创新科存储技术(深圳)有限公司 Method for establishing redundant magnetic disk array and control device thereof
US20140281329A1 (en) * 2008-09-26 2014-09-18 Netapp, Inc. Priority Command Queues for Low Latency Solid State Drives
CN101604226A (en) * 2009-07-14 2009-12-16 浪潮电子信息产业股份有限公司 A kind of method that makes up raising performance of storage system in dynamic buffering pond based on virtual RAID
CN102375703A (en) * 2011-12-12 2012-03-14 创新科存储技术有限公司 Method for automatically selecting disk during creating of RAID (Redundant Array of Inexpensive Disks)
CN104360883A (en) * 2014-11-12 2015-02-18 浪潮(北京)电子信息产业有限公司 Method and system for configuring Raid (Redundant array of independent disks)
CN104965672A (en) * 2015-05-27 2015-10-07 浪潮电子信息产业股份有限公司 Method for automatically and quickly configuring RAID (redundant array of independent disks)
CN105549902A (en) * 2015-12-08 2016-05-04 浪潮电子信息产业股份有限公司 Design scheme for automatically making RAID (redundant array of independent disk) during trial production of server
CN107368264A (en) * 2017-07-26 2017-11-21 郑州云海信息技术有限公司 A kind of combination RAID method, system and storage management software system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669631A (en) * 2018-12-10 2019-04-23 浪潮(北京)电子信息产业有限公司 A kind of storage pool planing method, device, equipment and computer readable storage medium
CN109669631B (en) * 2018-12-10 2022-05-27 浪潮(北京)电子信息产业有限公司 Storage pool planning method, device, equipment and computer readable storage medium
CN114063908A (en) * 2021-10-23 2022-02-18 苏州普福斯信息科技有限公司 Hard disk read-write processing method and device based on RAID and storage medium
CN114217746A (en) * 2021-12-16 2022-03-22 浪潮云信息技术股份公司 Hardware Raid remote automatic management method for hybrid architecture node

Similar Documents

Publication Publication Date Title
CN108845771A (en) Method, system and the associated component of RAID are configured in a kind of storage system
CN103946831A (en) System, method and program product for cost-aware selection of templates for provisioning shared resources
US20150269000A1 (en) Resource provisioning based on logical profiles and objective functions
CN112286954B (en) Multi-dimensional data analysis method and system based on hybrid engine
US9305076B1 (en) Flattening a cluster hierarchy tree to filter documents
CN103577115B (en) Arrangement processing method, device and the server of data
CN108388604A (en) User right data administrator, method and computer readable storage medium
CN104112008A (en) Multi-table data association inquiry optimizing method and device
CN102221981A (en) Method and apparatus to manage tier information
CN105630801A (en) Method and apparatus for detecting deviated user
CN109669631A (en) A kind of storage pool planing method, device, equipment and computer readable storage medium
US10977082B2 (en) Resource allocation optimization support system and resource allocation optimization support method
CN104123298B (en) The analysis method and equipment of product defects
US20150277781A1 (en) Storage device adjusting device and tiered storage designing method
EP3553664B1 (en) Method and apparatus for calculating available capacity of storage system
CN107357932A (en) A kind of file memory method and device
CN103577337A (en) Space allocation method and device for storage system
CN105701645A (en) Material management method and device
Zhao et al. A unified framework for bug report assignment
US10313457B2 (en) Collaborative filtering in directed graph
CN111461815B (en) Order recognition model generation method, recognition method, system, equipment and medium
CN104951242B (en) Method and apparatus for relocating data automatically between storage array
CN105760284A (en) Website performance monitoring method and device
CN117472652A (en) Data backup method, device and system of cloud computing operation and maintenance platform
US20170235625A1 (en) Data mining using categorical attributes

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181120