CN107844276A - A kind of method and system based on MegaCli order disk array management - Google Patents

A kind of method and system based on MegaCli order disk array management Download PDF

Info

Publication number
CN107844276A
CN107844276A CN201711183497.5A CN201711183497A CN107844276A CN 107844276 A CN107844276 A CN 107844276A CN 201711183497 A CN201711183497 A CN 201711183497A CN 107844276 A CN107844276 A CN 107844276A
Authority
CN
China
Prior art keywords
raid
disk
array
option
module
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
CN201711183497.5A
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 CN201711183497.5A priority Critical patent/CN107844276A/en
Publication of CN107844276A publication Critical patent/CN107844276A/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/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/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration 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/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

Abstract

The invention provides a kind of method and system based on MegaCli order disk array management, the order of complexity is simplified to the numeral input for being easy to left-hand seat of wizard-like using shell scripts, disc information is inquired about by inputting numeral automatically, realize the establishment of the different raid ranks of hard disk, delete, inquiry, the complexity of simple command row management;The script of the present invention gathers MegaCli related command, is then mapped to different numerals, by inputting corresponding digital call instruction is to realize that the easy of raid arrays configures after Run Script, saves human cost, time cost.

Description

A kind of method and system based on MegaCli order disk array management
Technical field
The present invention relates to the technical field of disk array management, and in particular to one kind is based on MegaCli order disk arrays The method and system of management.
Background technology
With the rapid development of information electronic industries, various information security incident grows in intensity so that national consciousness is to must It need be quickened one's step in production domesticization, especially the production domesticization of core devices, domestic CPU seems also to have welcome the good opportunity of development, Tide grinds server NF2180 certainly and also smoothly departed by this shareholder's wind.This domestic server based on ARM frameworks is in specification Above on probation is 1500A chips of soaring, and is aided with milky way kylin operating system, does well in ease for use and stability.But Also have one it is notable the problem of:Software ecological environment is to be improved.Raid cards are most important for server among this, And NF2180 Raid cards management can only rely on order line, this virtually adds test and cost on probation.
In Command Line Interface, disk and RAID array are carried out plus various corresponding parameters using MegaCli orders Operation, it is so relatively complicated and spend more time and manpower, simple example explanation:
1st, the disc information under RAID card, input instruction are confirmed:
#MegaCli-PDlist-aALL
2nd, existing RAID array information, input instruction are shown:
#MegaCli-ldinfo-Lall–aALL
3rd, the instruction of RAID array is created, it is necessary to input instruction:
#MegaCli-cfgldadd-r1[252:0,252:1,252:2,252:3]WB–sz100g-direct-a0
In this instruction, the parameter behind-R can be 0,1,5,6,10 etc., i.e., the RAID array created required for input;Fang Kuo To be inputted in number [] needs disk Enclosure ID and the Slot ID for being created to RAID array;Parameter behind-sz is to need The RAID array size to be created.
4th, delete RAID array, delete RAID card configuration
#MegaCli-Cfgclr-aALL
#MegaCli-Cfglddel-LALL
It can be seen that from above-mentioned 4 instructions, if input command line instructions, it is necessary first to the structure of familiar with instructions, be familiar with Implication of parameter etc..If operating time or the degree of accuracy are required, then the competency profiling to operational staff is exactly very high. And if these instructions realized by way of automated procedures, operational staff only needs to understand group RAID necessary step Suddenly, just can quick and precisely be operated.Just there is following idea, by " disc information is shown, RAID information is shown, is created RAID, delete RAID, remove all configuration informations " this several big functions of modules is as a main menu, with 1,2,3,4,5 generation Replace, operator only needs the numeral according to as prompting input " 1 " or " 2 ", it is possible to the complicated instruction of automated execution:
After script performs, a main menu can be exported first:
Raid Management
1.Display disk"
2.Display raid"
3.Create raid"
4.Delete raid"
5.Clean all"
And in actual shell scripts, than function described above and it can judge more and complicated.
The content of the invention
Based on above mentioned problem, the present invention proposes a kind of method and system based on MegaCli order disk array management, Disc information is inquired about automatically by inputting numeral, realizes the establishment of the different raid ranks of hard disk, is deleted, inquiry.It is significantly simple Change the complexity of order line management, there is too deep technical experience to complete without operating personnel.
The present invention provides following technical scheme:
On the one hand, the invention provides a kind of method based on MegaCli order disk array management, including:
Step 101, disk operating option is generated, the option of operation includes display disc information option, display RAID magnetic Disk array information option, establishment RAID disk array option, deletion RAID disk array option, all RAID of removing and disk are matched somebody with somebody Put information option and exit option;
Step 102, the disk operating option is selected, selection shows that disc information option then enters step 103, selection display RAID disk array information option then enters step 104, and selection creates RAID disk array option and then enters step 105, selects Delete RAID disk array option and then enter step 106, selection removes all RAID and disk configuration information option and then enters step Rapid 107, otherwise into step 108;
Step 103, all disc informations are shown;
Step 104, all RAID array information are shown;
Step 105, different stage, different size, the RAID array of different disk are created;
Step 106, RAID array is deleted;
Step 107, all settings of RAID card and all Foreign disks are removed;
Step 108, operation is exited.
Wherein, the establishment different stage, different size, the RAID array of different disk are specially:Read input RAID, hard disk quantity is inputted, RAID array is created according to the RAID and hard disk quantity of input.
Wherein, the acquiescence RAID is RAID1.
Wherein, the deletion RAID array is specially:All RAID array information is shown, selects the RAID to be deleted Array is deleted, and all RAID arrays are deleted if non-selected.
In addition, present invention also offers a kind of system based on MegaCli order disk array management, the system bag Include:
Menu module, for generating disk operating option, the option of operation includes display disc information option, display RAID disk array information option, create RAID disk array option, delete RAID disk array option, remove all RAID and Disk configuration information option and exit option;
Selecting module, for selecting the disk operating option, selection shows that disc information option then enters and shows disk module, Selection shows that RAID disk array information option then enters and shows RAID array module, and selection creates RAID disk array option then Into RAID array module is created, selection deletes RAID disk array option and then enters removing module, and all RAID are removed in selection Then enter with disk configuration information option and remove module, otherwise enter and exit module;
Disk module is shown, for showing all disc informations;
RAID array module is shown, for showing all RAID array information;
RAID array module is created, for creating different stage, different size, the RAID array of different disk;
Removing module, for deleting RAID array;
Module is removed, for removing all settings of RAID card and all Foreign disks;
Module is exited, for exiting operation.
Wherein, the establishment different stage, different size, the RAID array of different disk are specially:Read input RAID, hard disk quantity is inputted, RAID array is created according to the RAID and hard disk quantity of input.
Wherein, the acquiescence RAID is RAID1.
Wherein, the deletion RAID array is specially:All RAID array information is shown, selects the RAID to be deleted Array is deleted, and all RAID arrays are deleted if non-selected.
The invention provides a kind of method and system based on MegaCli order disk array management, shell scripts are utilized The order of complexity is simplified to the numeral input for being easy to left-hand seat of wizard-like, disc information is inquired about automatically by inputting numeral, The establishment of the different raid ranks of hard disk is realized, is deleted, inquiry, the complexity of simple command row management;The script of the present invention will MegaCli related command gathers, and is then mapped to different numerals, is adjusted after Run Script by inputting corresponding numeral It is to realize that the easy of raid arrays configures with order, saves human cost, time cost.
Brief description of the drawings
Fig. 1 is flow chart of the method for the present invention.
Fig. 2 is the system architecture diagram of the present invention.
Embodiment
Technical scheme in order to illustrate the embodiments of the present invention more clearly, it will use below required in embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for ability For the those of ordinary skill of domain, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other attached Figure.
Based on linux system, it is easy to the digital defeated of left-hand seat by what the order of complexity was simplified to wizard-like using shell scripts Enter, disc information is inquired about automatically by inputting numeral, realize the establishment of the different raid ranks of hard disk, delete, inquiry.Significantly The complexity of simple command row management, there is too deep technical experience to complete without operating personnel.
On the one hand, embodiments of the present invention provide a kind of method based on MegaCli order disk array management, attached Fig. 1 is flow chart of the method for the present invention, including:
Step 101, disk operating option is generated, the option of operation includes display disc information option, display RAID magnetic Disk array information option, establishment RAID disk array option, deletion RAID disk array option, all RAID of removing and disk are matched somebody with somebody Put information option and exit option;
Script is mainly made up of 7 functions, respectively create_menu:Draw menu function;disk:Inquire about hard disk letter Number;display:Show raid functions;create:Create Raid functions;delete:Delete Raid functions;clean:Remove Raid card configuration functions.Different options is corresponded to respectively.
The main implementation method of the establishment RAID is as follows:
Step 102, the disk operating option is selected, selection shows that disc information option then enters step 103, and selection is aobvious Show that RAID disk array information option then enters step 104, selection creates RAID disk array option and then enters step 105, selects Select deletion RAID disk array option and then enter step 106, selection is removed all RAID and disk configuration information option and then entered Step 107, otherwise into step 108;
The input options correspond to a digital option respectively, and option one is display disc information, and option 2 is display RAID Disk array information, option 3 is creates RAID disk array, and option 4 is deletion RAID disk array, and option 5 is all to remove RAID and disk configuration information, option 0 are to exit menu.
Step 103, all disc informations are shown;
Step 104, all RAID array information are shown;
Step 105, different stage, different size, the RAID array of different disk are created;
Wherein, raid functions are created, the function can once inquire your raid to be created rank, disk number used, The hard disk specified, here all operations can all have default value, if it is desired to which the idea according to oneself inputs if doing according to prompting .The establishment different stage, different size, the RAID array of different disk are specially:The RAID of input is read, it is defeated Enter hard disk quantity, RAID array is created according to the RAID and hard disk quantity of input.The acquiescence RAID is RAID1, I.e. when not reading the RAID of input, it is defaulted as creating RAID1.
Step 106, RAID array is deleted;
Wherein, the deletion RAID array is specially:All RAID array information is shown, selects the RAID to be deleted Array is deleted, and all RAID arrays are deleted if non-selected.
Step 107, all settings of RAID card and all Foreign disks are removed;
Step 108, operation is exited.
Menu is then exited in input 0.
The invention provides a kind of method based on MegaCli order disk array management, using shell scripts by complexity Order be simplified to the numeral input for being easy to left-hand seat of wizard-like, by input numeral come it is automatic inquire about disc information, realize firmly The establishment of the different raid ranks of disk, delete, inquiry, the complexity of simple command row management;The script of the present invention is by MegaCli Related command gather, be then mapped to different numerals, pass through the corresponding digital call instruction of input after Run Script Being the easy configuration for realizing raid arrays, human cost, time cost are saved.
On the other hand, embodiments of the present invention provide a kind of system based on MegaCli order disk array management, Accompanying drawing 2 is system architecture diagram of the invention, and the system includes:
Menu module 201, for generating disk operating option, the option of operation includes display disc information option, shown Show RAID disk array information option, create RAID disk array option, delete RAID disk array option, remove all RAID With disk configuration information option and exit option;
Script is mainly made up of 7 functions, respectively create_menu:Draw menu function;disk:Inquire about hard disk letter Number;display:Show raid functions;create:Create Raid functions;delete:Delete Raid functions;clean:Remove Raid card configuration functions.Different options is corresponded to respectively.
The main implementation method of the establishment RAID is as follows:
Selecting module 202, for selecting the disk operating option, selection shows that disc information option then enters and shows magnetic Disk module, selection shows that RAID disk array information option then enters and shows RAID array module, and selection creates RAID disk battle array Column selection Xiang Ze, which enters, creates RAID array module, and selection deletes RAID disk array option and then enters removing module, and selection is removed All RAID and disk configuration information options, which then enter, removes module, otherwise enters and exits module;
The input options correspond to a digital option respectively, and option one is display disc information, and option 2 is display RAID Disk array information, option 3 is creates RAID disk array, and option 4 is deletion RAID disk array, and option 5 is all to remove RAID and disk configuration information, option 0 are to exit menu.
Disk module 203 is shown, for showing all disc informations;
RAID array module 204 is shown, for showing all RAID array information;
RAID array module 205 is created, for creating different stage, different size, the RAID array of different disk;
Wherein, raid functions are created, the function can once inquire your raid to be created rank, disk number used, The hard disk specified, here all operations can all have default value, if it is desired to which the idea according to oneself inputs if doing according to prompting .The establishment different stage, different size, the RAID array of different disk are specially:The RAID of input is read, it is defeated Enter hard disk quantity, RAID array is created according to the RAID and hard disk quantity of input.The acquiescence RAID is RAID1, I.e. when not reading the RAID of input, it is defaulted as creating RAID1.
Removing module 206, for deleting RAID array;
Wherein, the deletion RAID array is specially:All RAID array information is shown, selects the RAID to be deleted Array is deleted, and all RAID arrays are deleted if non-selected.
Module 207 is removed, for removing all settings of RAID card and all Foreign disks;
Module 208 is exited, for exiting operation.
Menu is then exited in input 0.
The invention provides a kind of system based on MegaCli order disk array management, using shell scripts by complexity Order be simplified to the numeral input for being easy to left-hand seat of wizard-like, by input numeral come it is automatic inquire about disc information, realize firmly The establishment of the different raid ranks of disk, delete, inquiry, the complexity of simple command row management;The script of the present invention is by MegaCli Related command gather, be then mapped to different numerals, pass through the corresponding digital call instruction of input after Run Script Being the easy configuration for realizing raid arrays, human cost, time cost are saved.
The foregoing description of the disclosed embodiments, those skilled in the art are enable to realize or using the present invention.To this A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and generic principles defined herein can Without departing from the spirit or scope of the present invention, to realize in other embodiments.Therefore, the present invention will not be limited The embodiments shown herein is formed on, but meets the most wide model consistent with principles disclosed herein and features of novelty Enclose.

Claims (8)

  1. A kind of 1. method based on MegaCli order disk array management, it is characterised in that:
    Step 101, disk operating option is generated, the option of operation includes display disc information option, display RAID disk battle array Column information option, establishment RAID disk array option, deletion RAID disk array option, all RAID of removing and disk match somebody with somebody confidence Cease option and exit option;
    Step 102, the disk operating option is selected, selection shows that disc information option then enters step 103, selection display RAID disk array information option then enters step 104, and selection creates RAID disk array option and then enters step 105, selects Delete RAID disk array option and then enter step 106, selection removes all RAID and disk configuration information option and then enters step Rapid 107, otherwise into step 108;
    Step 103, all disc informations are shown;
    Step 104, all RAID array information are shown;
    Step 105, different stage, different size, the RAID array of different disk are created;
    Step 106, RAID array is deleted;
    Step 107, all settings of RAID card and all Foreign disks are removed;
    Step 108, operation is exited.
  2. 2. according to the method for claim 1, it is characterised in that:It is described to create different stage, different size, different disk RAID array is specially:The RAID of input is read, inputs hard disk quantity, is created according to the RAID and hard disk quantity of input Build RAID array.
  3. 3. according to the method for claim 2, it is characterised in that:The acquiescence RAID is RAID1.
  4. 4. according to the method for claim 1, it is characterised in that:It is described deletion RAID array be specially:Show all RAID array information, select the RAID array to be deleted to be deleted, all RAID arrays are deleted if non-selected.
  5. A kind of 5. system based on MegaCli order disk array management, it is characterised in that:The system includes:
    Menu module, for generating disk operating option, the option of operation includes display disc information option, display RAID magnetic Disk array information option, establishment RAID disk array option, deletion RAID disk array option, all RAID of removing and disk are matched somebody with somebody Put information option and exit option;
    Selecting module, for selecting the disk operating option, selection shows that disc information option then enters and shows disk module, Selection shows that RAID disk array information option then enters and shows RAID array module, and selection creates RAID disk array option then Into RAID array module is created, selection deletes RAID disk array option and then enters removing module, and all RAID are removed in selection Then enter with disk configuration information option and remove module, otherwise enter and exit module;
    Disk module is shown, for showing all disc informations;
    RAID array module is shown, for showing all RAID array information;
    RAID array module is created, for creating different stage, different size, the RAID array of different disk;
    Removing module, for deleting RAID array;
    Module is removed, for removing all settings of RAID card and all Foreign disks;
    Module is exited, for exiting operation.
  6. 6. system according to claim 5, it is characterised in that:It is described to create different stage, different size, different disk RAID array is specially:The RAID of input is read, inputs hard disk quantity, is created according to the RAID and hard disk quantity of input Build RAID array.
  7. 7. system according to claim 6, it is characterised in that:The acquiescence RAID is RAID1.
  8. 8. system according to claim 5, it is characterised in that:It is described deletion RAID array be specially:Show all RAID array information, select the RAID array to be deleted to be deleted, all RAID arrays are deleted if non-selected.
CN201711183497.5A 2017-11-23 2017-11-23 A kind of method and system based on MegaCli order disk array management Pending CN107844276A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711183497.5A CN107844276A (en) 2017-11-23 2017-11-23 A kind of method and system based on MegaCli order disk array management

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711183497.5A CN107844276A (en) 2017-11-23 2017-11-23 A kind of method and system based on MegaCli order disk array management

Publications (1)

Publication Number Publication Date
CN107844276A true CN107844276A (en) 2018-03-27

Family

ID=61680162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711183497.5A Pending CN107844276A (en) 2017-11-23 2017-11-23 A kind of method and system based on MegaCli order disk array management

Country Status (1)

Country Link
CN (1) CN107844276A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108762689A (en) * 2018-06-14 2018-11-06 郑州云海信息技术有限公司 A kind of method, apparatus, equipment and storage medium automatically creating disk array
CN109032535A (en) * 2018-08-30 2018-12-18 郑州云海信息技术有限公司 A kind of RAID construction method and relevant apparatus
CN113986440A (en) * 2021-11-01 2022-01-28 联想长风科技(北京)有限公司 Graphical interface management method and device based on arm platform
CN114217746A (en) * 2021-12-16 2022-03-22 浪潮云信息技术股份公司 Hardware Raid remote automatic management method for hybrid architecture node

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
未知: "megamenu:开源LSI RAID卡图形菜单化", 《HTTPS://WWW.TOUTIAO.COM/I6340611092657472001/》 *
未知: "图形菜单化的MegaCli工具", 《HTTPS://JAVASCRIPT.CTOLIB.COM/MEGAMENU.HTML》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108762689A (en) * 2018-06-14 2018-11-06 郑州云海信息技术有限公司 A kind of method, apparatus, equipment and storage medium automatically creating disk array
CN108762689B (en) * 2018-06-14 2020-09-25 苏州浪潮智能科技有限公司 Method, device and equipment for automatically creating disk array and storage medium
CN109032535A (en) * 2018-08-30 2018-12-18 郑州云海信息技术有限公司 A kind of RAID construction method and relevant apparatus
CN113986440A (en) * 2021-11-01 2022-01-28 联想长风科技(北京)有限公司 Graphical interface management method and device based on arm platform
CN114217746A (en) * 2021-12-16 2022-03-22 浪潮云信息技术股份公司 Hardware Raid remote automatic management method for hybrid architecture node

Similar Documents

Publication Publication Date Title
CN107844276A (en) A kind of method and system based on MegaCli order disk array management
US6078325A (en) Object oriented customer information exchange system and method
CN107526600B (en) Hadoop and spark-based visual data mining analysis platform and data cleaning method thereof
CN108021363A (en) Visualize game logic edit methods and system
CN104239313A (en) Method for searching for characters displayed in screen and based on mobile terminal and mobile terminal
CN103336742A (en) Automation software black box testing system and method based on Android
CN103019726A (en) Management method and device of software system service rules
CN105808226A (en) Generation method and system of experimental workflow
CN101261679A (en) Multi-fingerprint password recognition method and system based on field programmable gate array
CN103150165A (en) Frame and method for building outdoor data acquisition program
CN101093512A (en) Data filtering method and data filtering system
CN106095261A (en) A kind of method and apparatus adding notes on an electronic device
CN110750254A (en) Flowchart editor implementation method based on Angular
CN105208232A (en) Method and device for automatically making call
CN101874233A (en) Logical structure design surface
CN106126254B (en) The associated head-up interface game editing system of one kind and method
CN104331360A (en) Automatic testing platform
Mandelli et al. Dynamic PRA methods to evaluate the impact on accident progression of accident tolerant fuels
CN107423204A (en) Processing method, device and the terminal of the Operation Log of application program
CN107861706A (en) The response method and device of a kind of phonetic order
CN107977154A (en) A kind of file management system under touch-control state
CN108154556A (en) A kind of virtual trailing of terminal and system
CN105279074A (en) Method and device for displaying log information on terminal through NSLog
CN107704250A (en) Intelligent electric appliance SN code programming systems and refrigerator
CN114169840A (en) Process approval method and device based on database engine and readable medium

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