CN109783022A - A kind of method and device of more hard-disc storage fast assembling multiplicity RAID - Google Patents

A kind of method and device of more hard-disc storage fast assembling multiplicity RAID Download PDF

Info

Publication number
CN109783022A
CN109783022A CN201910002198.XA CN201910002198A CN109783022A CN 109783022 A CN109783022 A CN 109783022A CN 201910002198 A CN201910002198 A CN 201910002198A CN 109783022 A CN109783022 A CN 109783022A
Authority
CN
China
Prior art keywords
raid
hard disk
hard
disk
information
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.)
Withdrawn
Application number
CN201910002198.XA
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 CN201910002198.XA priority Critical patent/CN109783022A/en
Publication of CN109783022A publication Critical patent/CN109783022A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The present invention provides the method and device of more hard-disc storage fast assembling multiplicity RAID a kind of, under storage hard disk test system, detecting onboard software PLC tool mdadm and hard RAID tool storcli whether there is, original soft/hard RAID under deletion system, the method for more hard-disc storage fast assembling multiplicity RAID include the following steps: S1: detection disk state;The state of the detection hard disk, including the RAID state that created under RAID hard disk and system is not set up under detection system, identify hard disk type;S2: hard disk is pre-processed according to the disk state of acquisition;S3: RAID creation module is called to carry out RAID creation according to the hard disk information for receiving input.

Description

A kind of method and device of more hard-disc storage fast assembling multiplicity RAID
Technical field
The present invention relates to server technical field of memory, and in particular to a kind of more hard-disc storage fast assembling multiplicity RAID's Method and device.
Background technique
Hard disk quantity is a big important feature of storage-type server, is limited by hard-disk capacity, to meet user's large capacity The demand stored greatly, certainly will will lead to the increase of hard disk quantity, and some storage-type server maximums are supported to 72 hard disks;Less It must say that the additional different types of hard disk of node, different type hard disk create the various factors such as the mode difference of RAID, accordingly For maintenance personnel, to the hard disks of such multi-quantity multiple types either at RAID card interface still in onboard RAID circle Face, setting up RAID is all the big work of a consumption, and repetitive operation is cumbersome uninteresting, it is easy to lose hard disk, increase complicated inspection Time.
Summary of the invention
For multi-quantity multiple types hard disk either at RAID card interface still at the onboard interface RAID, set up RAID all It is the big work of a consumption, repetitive operation is cumbersome uninteresting, it is easy to the problem of losing hard disk, increasing the time of complicated inspection, this Invention provides the method and device of more hard-disc storage fast assembling multiplicity RAID a kind of.
The technical scheme is that
A kind of method of more hard-disc storage fast assembling multiplicity RAID, includes the following steps:
Detect disk state;
Hard disk is pre-processed according to the disk state of acquisition;
RAID creation module is called to carry out RAID creation according to the hard disk information for receiving input.
Preferably, step detects disk state, comprising:
Detect hard-disk interface information;
Information by obtaining hard-disk interface determines the type of hard disk.
Preferably, step detects disk state, further includes:
It is not set up under detection system and has created RAID state under RAID disk and system.
Preferably, step pre-processes hard disk according to the disk state of acquisition, comprising:
Hard disk is subjected to pretreatment refinement hard disk information and shows input;
The hard disk type that will acquire is inputted.
Preferably, step calls RAID creation module to carry out RAID creation according to the hard disk information for receiving input, comprising:
Receive the hard disk information of input;
Creation RAID module sequence prompt user is called to input parameter;Wherein, parameter include: VD type, it is amount of capacity, hard Disk number and read-write parameter;
It receives user and inputs the instruction progress RAID creation for completing instruction execution creation RAID.
Preferably, this method further include:
After successfully creating RAID, RAID disk state lamp information is shown automatically, and shows remaining hard disk information and new RAID prompt is created, until no longer there is free hard disk under system terminates.
Technical solution of the present invention also provides the device of more hard-disc storage fast assembling multiplicity RAID a kind of, including detection mould Block, preprocessing module, calling module, RAID creation module
Detection module, for detecting disk state;
Preprocessing module, for being pre-processed according to the disk state of acquisition to hard disk;
Calling module is instructed for calling RAID creation module and sending to RAID creation module;
RAID creation module carries out RAID creation for receiving instruction.
Preferably, disk state, comprising:
Disk state includes not setting up to have created RAID state under RAID hard disk and system under hard disk type state and system.
Preferably, preprocessing module includes that information abstraction unit and information show input unit, comprising:
Information abstraction unit refines hard disk information for hard disk to be carried out pretreatment;
Information shows input unit, for inputting the hard disk information of refinement;
RAID creation module, including receiving unit, parameter input unit and execution creating unit;
Receiving unit shows the hard disk information of input unit input for receiving information;
Parameter input unit includes VD type, amount of capacity, hard disk number and read-write parameter for inputting;
Creating unit is executed, the instruction that instruction execution creation RAID is completed for receiving parameter input unit input carries out RAID creation.
As can be seen from the above technical solutions, the invention has the following advantages that the present invention is based on RHEL serial system, collection At onboard software PLC tool mdadm and hard RAID tool storcli, the one kind designed and developed is mainly for mass memory service Parallel to more hard disk operations, VD attribute is arranged simultaneously in device, simplifies group RAID order, reduces the device of quantity of parameters setting.It can needle To different user demands according to the parallel autonomous setting RAID type of this device prompt, VD size, the parameters such as read-write.The present apparatus is not necessarily to More RAID property parameters are paid close attention to, the parameter that needs need to be only simply input according to the corresponding parameter prompts of software can be realized The more hard disks of parallel processing set up different RAID.
In addition, design principle of the present invention is reliable, structure is simple, has very extensive application prospect.
It can be seen that compared with prior art, the present invention have substantive distinguishing features outstanding and it is significant ground it is progressive, implementation Beneficial effect be also obvious.
Detailed description of the invention
Fig. 1 is the method flow schematic diagram of more hard-disc storage fast assembling multiplicity RAID a kind of.
Specific embodiment
The present invention will be described in detail with reference to the accompanying drawing and by specific embodiment, and following embodiment is to the present invention Explanation, and the invention is not limited to following implementation.
Embodiment one
As shown in Figure 1, a kind of method of more hard-disc storage fast assembling multiplicity RAID, in storage hard disk test system Under, detecting onboard software PLC tool mdadm and hard RAID tool storcli whether there is, original soft/hard under deletion system The method of RAID, more hard-disc storage fast assembling multiplicity RAID include the following steps:
S1: detection disk state;
In this step, the state of the detection hard disk, including do not set up under RAID hard disk and system under detection system Create RAID state;It needs to identify hard disk type herein;
S2: hard disk is pre-processed according to the disk state of acquisition;
By identifying that the type of hard disk, the module in guidance system pre-process hard disk, refines hard disk information and show Show input, user is prompted to select corresponding hard disk type;
S3: RAID creation module is called to carry out RAID creation according to the hard disk information for receiving input.
In this step, it is waiting receive input information after, call RAID creation module, sequence prompt user select VD type, Amount of capacity, the parameters such as hard disk number and read-write receive user information input and complete after instructing, execute the instruction of creation RAID Carry out the creation of RAID.
This method further includes step S4:
S4: after successfully creating RAID, showing RAID disk state lamp information automatically, and shows remaining hard disk information and new Creation RAID prompt, until no longer there is free hard disk under system terminates.
It is as follows to implement code:
The present invention is to be integrated with onboard software PLC tool mdadm and hard RAID tool based on RHEL serial system VD attribute is arranged mainly for mass storage server while parallel to more hard disk operations in storcli, the one kind designed and developed, Simplify group RAID order, the method for reducing quantity of parameters setting.It can be for different user demands according to the parallel autonomous setting of prompt RAID type, VD size, the parameters such as read-write.It, only need to be according to the corresponding parameter of software without paying close attention to more RAID property parameters The purpose that the more hard disks of parallel processing set up different RAID can be realized in the parameter that prompt is simply input needs.
Embodiment two
As shown in Figure 1, a kind of method of more hard-disc storage fast assembling multiplicity RAID, includes the following steps:
S1: detection disk state;
In this step, the state of the detection hard disk, including do not set up under RAID hard disk and system under detection system Create RAID state;And RAID original under system is deleted;
It needs to identify hard disk type herein;Identification hard disk type method include:
Detect hard-disk interface information;Information by obtaining hard-disk interface determines the type of hard disk.
S2: hard disk is pre-processed according to the disk state of acquisition;
By identifying that the type of hard disk, the module in guidance system pre-process hard disk, refines hard disk information and show Show input, user is prompted to select corresponding hard disk type;
S3: RAID creation module is called to carry out RAID creation according to the hard disk information for receiving input.
In this step, it is waiting receive input information after, call RAID creation module, sequence prompt user select VD type, Amount of capacity, the parameters such as hard disk number and read-write receive user information input and complete after instructing, execute the instruction of creation RAID Carry out the creation of RAID.
This method further include:
After successfully creating RAID, RAID disk state lamp information is shown automatically, and shows remaining hard disk information and new RAID prompt is created, until no longer there is free hard disk under system terminates.
Embodiment three
Technical solution of the present invention also provides the device of more hard-disc storage fast assembling multiplicity RAID a kind of, including detection mould Block, preprocessing module, calling module, RAID creation module
Detection module, for detecting disk state;Disk state described here, comprising:
Disk state includes not setting up to have created RAID state under RAID hard disk and system under hard disk type state and system.
Preprocessing module, for being pre-processed according to the disk state of acquisition to hard disk;Preprocessing module includes information It refines unit and information shows input unit, comprising:
Information abstraction unit refines hard disk information for hard disk to be carried out pretreatment;
Information shows input unit, for inputting the hard disk information of refinement;
Calling module is instructed for calling RAID creation module and sending to RAID creation module;
RAID creation module carries out RAID creation for receiving instruction.RAID creation module, including receiving unit, parameter Input unit and execution creating unit;
Receiving unit shows the hard disk information of input unit input for receiving information;
Parameter input unit includes VD type, amount of capacity, hard disk number and read-write parameter for inputting;
Creating unit is executed, the instruction that instruction execution creation RAID is completed for receiving parameter input unit input carries out RAID creation.
Present invention is generally directed to high density, the storage-type server with huge hard disk quantity is integrated with storcli function Can, the parameters such as desired RAID type only need to be simply input, the purpose that all hard disks set up RAID can be rapidly completed.For For other tests of storage-type server, the present apparatus can be directly integrated into corresponding test script, have stronger compatibility, Applicability, introducing property improve entire hard disk test process.
Description and claims of this specification and term " first ", " second ", " third " " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to Here the sequence other than those of diagram or description is implemented.In addition, term " includes " and " having " and their any deformation, It is intended to cover and non-exclusive includes.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (9)

1. a kind of method of more hard-disc storage fast assembling multiplicity RAID, it is characterised in that include the following steps:
Detect disk state;
Hard disk is pre-processed according to the disk state of acquisition;
RAID creation module is called to carry out RAID creation according to the hard disk information for receiving input.
2. the method for more hard-disc storage fast assembling multiplicity RAID according to claim 1 a kind of, which is characterized in that step Detect disk state, comprising:
Detect hard-disk interface information;
Information by obtaining hard-disk interface determines the type of hard disk.
3. the method for more hard-disc storage fast assembling multiplicity RAID according to claim 2 a kind of, which is characterized in that step Detect disk state, further includes:
It is not set up under detection system and has created RAID state under RAID disk and system.
4. the method for more hard-disc storage fast assembling multiplicity RAID according to claim 3 a kind of, which is characterized in that step Hard disk is pre-processed according to the disk state of acquisition, comprising:
Hard disk is subjected to pretreatment refinement hard disk information and shows input;
The hard disk type that will acquire is inputted.
5. the method for more hard-disc storage fast assembling multiplicity RAID according to claim 4 a kind of, which is characterized in that step RAID creation module is called to carry out RAID creation according to the hard disk information for receiving input, comprising:
Receive the hard disk information of input;
Creation RAID module sequence prompt user is called to input parameter;Wherein, parameter includes: VD type, amount of capacity, hard disk Number and read-write parameter;
It receives user and inputs the instruction progress RAID creation for completing instruction execution creation RAID.
6. the method for more hard-disc storage fast assembling multiplicity RAID according to claim 5 a kind of, which is characterized in that the party Method further include:
After successfully creating RAID, RAID disk state lamp information is shown automatically, and show remaining hard disk information and new creation RAID prompt, until no longer there is free hard disk under system terminates.
7. a kind of device of more hard-disc storage fast assembling multiplicity RAID, it is characterised in that including detection module, preprocessing module, Calling module, RAID creation module
Detection module, for detecting disk state;
Preprocessing module, for being pre-processed according to the disk state of acquisition to hard disk;
Calling module is instructed for calling RAID creation module and sending to RAID creation module;
RAID creation module carries out RAID creation for receiving instruction.
8. the device of more hard-disc storage fast assembling multiplicity RAID according to claim 7 a kind of, which is characterized in that hard disk State, comprising:
Disk state includes not setting up to have created RAID state under RAID hard disk and system under hard disk type state and system.
9. the device of more hard-disc storage fast assembling multiplicity RAID according to claim 8 a kind of, which is characterized in that pre- place Reason module includes that information abstraction unit and information show input unit, comprising:
Information abstraction unit refines hard disk information for hard disk to be carried out pretreatment;
Information shows input unit, for inputting the hard disk information of refinement;
RAID creation module, including receiving unit, parameter input unit and execution creating unit;
Receiving unit shows the hard disk information of input unit input for receiving information;
Parameter input unit includes VD type, amount of capacity, hard disk number and read-write parameter for inputting;
Creating unit is executed, the instruction that instruction execution creation RAID is completed for receiving parameter input unit input carries out RAID Creation.
CN201910002198.XA 2019-01-02 2019-01-02 A kind of method and device of more hard-disc storage fast assembling multiplicity RAID Withdrawn CN109783022A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910002198.XA CN109783022A (en) 2019-01-02 2019-01-02 A kind of method and device of more hard-disc storage fast assembling multiplicity RAID

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910002198.XA CN109783022A (en) 2019-01-02 2019-01-02 A kind of method and device of more hard-disc storage fast assembling multiplicity RAID

Publications (1)

Publication Number Publication Date
CN109783022A true CN109783022A (en) 2019-05-21

Family

ID=66499180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910002198.XA Withdrawn CN109783022A (en) 2019-01-02 2019-01-02 A kind of method and device of more hard-disc storage fast assembling multiplicity RAID

Country Status (1)

Country Link
CN (1) CN109783022A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475111A (en) * 2020-04-01 2020-07-31 苏州浪潮智能科技有限公司 RAID group pairing method and device for avoiding damage to hard disk data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475111A (en) * 2020-04-01 2020-07-31 苏州浪潮智能科技有限公司 RAID group pairing method and device for avoiding damage to hard disk data

Similar Documents

Publication Publication Date Title
CN107273257A (en) A kind of automatic method for carrying out the out of order inspection of hard disk under linux system
CN103198122A (en) Method and device for restarting in-memory database
CN108733525A (en) A kind of memory module tests and verifies the method and system of correctness automatically
CN101604290B (en) Background module test method and backstage module test system
CN109783022A (en) A kind of method and device of more hard-disc storage fast assembling multiplicity RAID
CN105825172A (en) Mobile-terminal-based multi-fingerprint matching method and system
CN100419680C (en) Method and apparatus for loading compatibly equipment software in distributed control system
CN106934383B (en) The recognition methods of picture markup information, device and server in file
CN104142959A (en) Automated test device and method based on expert knowledge database
US6438714B1 (en) Method and apparatus for testing large arrays of storage devices
CN110489242A (en) Distributed data calculation method, device, terminal device and storage medium
CN112860329B (en) Startup configuration method, system and medium
CN109783074A (en) The data type conversion method of programming, electronic equipment
CN109240936A (en) Compatibility test method, terminal device and the medium of application program
CN105678557A (en) Method and device for generating model, method and device for evaluating service quality
CN106598843B (en) A kind of software log behavior automatic identifying method based on program analysis
CN104199689B (en) The installation method and device of comprehensive front-end system
CN101662394B (en) Automated testing system and automated testing method
CN104199779B (en) A kind of method and system of flush bonding module combined test
CN107885527A (en) A kind of code revision method and device of test system
CN115640183A (en) Chip verification device and method
CN112069006B (en) Method and device for detecting and analyzing GPU (graphics processing Unit) rate state and computer readable medium
CN100458694C (en) Detecting method for all general flash storage during micro processor start process
CN107133060A (en) A kind of data processing method and terminal
CN111863096B (en) Method and device for reading data of NOR flash memory

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20190521

WW01 Invention patent application withdrawn after publication