CN111104174A - Remote physical machine RAID automatic configuration method based on MEGACLI - Google Patents

Remote physical machine RAID automatic configuration method based on MEGACLI Download PDF

Info

Publication number
CN111104174A
CN111104174A CN201911281736.XA CN201911281736A CN111104174A CN 111104174 A CN111104174 A CN 111104174A CN 201911281736 A CN201911281736 A CN 201911281736A CN 111104174 A CN111104174 A CN 111104174A
Authority
CN
China
Prior art keywords
raid
physical machine
megacli
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.)
Pending
Application number
CN201911281736.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.)
Inspur Cloud Information Technology Co Ltd
Original Assignee
Inspur Cloud 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 Inspur Cloud Information Technology Co Ltd filed Critical Inspur Cloud Information Technology Co Ltd
Priority to CN201911281736.XA priority Critical patent/CN111104174A/en
Publication of CN111104174A publication Critical patent/CN111104174A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Debugging And Monitoring (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a remote physical machine RAID automatic configuration method based on MEGACLI, which comprises the following steps: s1, acquiring physical hard disk information of the physical machine; s2, designing a RAID structure according to actual requirements based on the physical hard disk information; s3, modifying the RAID configuration based on the designed RAID structure. After the physical machine is started through a network starting mode, the agent in the ramdisk calls the MEGACLI to acquire the hard disk information and transmits the hard disk information to the ironic, a user can call the ironic interface to check the hard disk information and modify RAID configuration, when the RAID configuration is modified, the agent calls the MEGACLI to complete the modification of the RAID configuration, the physical machine does not need to be manually operated in the whole process, and the management is convenient.

Description

Remote physical machine RAID automatic configuration method based on MEGACLI
Technical Field
The invention relates to the technical field of cloud computing, in particular to a remote physical machine RAID automatic configuration method based on MEGACLI.
Background
RAID represents an independent redundant disk array, and a disk group is composed of a plurality of independent disks, and according to different combination modes, performance, capacity, and reliability may be improved compared to a single disk. RAID can be divided into software RAID and hardware RAID, and generally, hardware RAID has a single RAID card hardware to drive, and has better performance. MegaCli is a piece of management and maintenance hardware RAID software that can be used to view RAID information and the like, and MEGA is a RAID card series that is pushed by LSI and provides a command line tool MegaCli that can modify the configuration of RAID cards through a series of commands within a command line. As a tenant, RAID manufacturing is often performed on a hard disk on a cloud physical host according to business requirements, and a traditional manner of manually configuring RAID requires direct operation on a physical machine, which is inefficient and inconvenient.
Disclosure of Invention
The invention aims to solve the defects and provides a method for remotely discovering the physical hard disk information of a physical host and carrying out RAID configuration on the physical host by calling MEGACLI.
The technical scheme adopted by the invention is as follows:
a remote physical machine RAID automatic configuration method based on MEGACLI comprises the following steps:
s1, acquiring physical hard disk information of the physical machine;
s2, designing a RAID structure according to actual requirements based on the physical hard disk information;
s3, modifying the RAID configuration based on the designed RAID structure.
Specifically, the step of acquiring the physical hard disk information of the physical machine includes:
s11, starting the physical machine through a network starting mode, and automatically acquiring ramdisk containing agent and MEGACLI;
s12, calling MEGACLI by the agent of the ramdisk to acquire the physical hard disk information of the physical machine, and transmitting the acquired physical hard disk information to the ironic;
s13, ironic receives the physical hard disk information, registers the node containing the physical hard disk information and stores the node information into a database;
and S14, the user views the physical hard disk information by calling an ironic interface.
As a further optimization, in step S11, the physical machine is started by a pxe or an ipxe, the physical machine automatically obtains an IP address through a dhcp service, and obtains kernerl and ramdisk through a file server.
As a further optimization, the physical machine sets the starting mode to be the network starting mode through the ipmi tool.
As a further optimization, in step S11, after the ramdisk is started, the agent in the ramdisk automatically obtains various items of information of the physical machine, and calls the MEGACLI to collect information of the physical hard disk of the physical machine and send the information to the ironic by writing the MEGACLI call module in the agent in advance.
As a further optimization, in step S13, after the ironic receives the physical hard disk information from the MEGACLI, the automatic discovery module in the ironic automatically registers the physical machine according to the received information and stores the information in the database, and adds the obtained physical hard disk information to the registered node by writing the hard disk information addition module in the ironic in advance.
Specifically, the step of modifying the RAID configuration based on the designed RAID structure includes:
s31, compiling the designed RAID structure into RAID configuration information and transmitting the RAID configuration information to the ironic;
s32, sending a restart signal to the physical machine by the ironic, restarting the physical machine and acquiring ramdisk of the built-in agent and the MEGACLI;
s33, agent calls RAID configuration information sent by ironic and calls MEGACLI to modify RAID configuration based on RAID configuration information.
As a further optimization, the present invention compiles the set RAID configuration into a json file storing RAID configuration information and sends the json file to the ironic in step S31.
As a further optimization, in step 32, when the physical machine is restarted, the physical machine is started through a pxe or an ipxe, the physical machine automatically acquires an IP address through a dhcp service, and acquires kernerl and ramdisk through a file server.
The invention has the following advantages:
1. after the physical machine is started through a network starting mode, the agent in the ramdisk calls the MEGACLI to acquire hard disk information and transmits the hard disk information to the ironic, a user can call the ironic interface to check the hard disk information and modify RAID configuration, when the RAID configuration is modified, the agent calls the MEGACLI to complete the modification of the RAID configuration, the physical machine does not need to be manually operated in the whole process, and the management is convenient;
2. in the process of modifying the RAID configuration, the physical hard disk information can be remotely acquired, so that a user can conveniently make more suitable configuration for the RAID based on the physical hard disk information;
3. when the RAID configuration is modified, the physical machine does not need to be operated manually, the whole process is processed remotely through the computer, a user only needs to manually intervene to design the RAID structure after acquiring the hard disk information, and other processes are all processed through the built-in software tool, so that the modification process of the RAID configuration is facilitated, and the working efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
The invention is further described below with reference to the accompanying drawings:
FIG. 1 is a schematic diagram of the logic structure of the present invention;
FIG. 2 is a schematic flow chart of the present invention.
Detailed Description
The present invention is further described in the following with reference to the drawings and the specific embodiments so that those skilled in the art can better understand the present invention and can implement the present invention, but the embodiments are not to be construed as limiting the present invention, and the embodiments and the technical features of the embodiments can be combined with each other without conflict.
It is to be understood that the terms first, second, and the like in the description of the embodiments of the invention are used for distinguishing between the descriptions and not necessarily for describing a sequential or chronological order. The "plurality" in the embodiment of the present invention means two or more.
The term "and/or" in the embodiment of the present invention is only an association relationship describing an associated object, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, B exists alone, and A and B exist at the same time. In addition, the character "/" herein generally indicates that the former and latter associated objects are in an "or" relationship.
The method for automatically configuring the remote physical machine RAID based on MEGACLI as shown in fig. 1 and fig. 2 includes the following steps:
s1, acquiring physical hard disk information of the physical machine; preferably, the step of acquiring the physical hard disk information of the physical machine comprises the following steps:
s11, starting the physical machine through a network starting mode, and automatically acquiring ramdisk containing agent and MEGACLI; specifically, an ipmi tool is used to set a physical machine to be pxe or ipxe to start, and when the physical machine starts, the physical machine automatically acquires an IP address through a dhcp service and acquires kernerl and ramdisk through a file server, where: the ipmi tool is a tool for managing and monitoring a computer system, can monitor and manage the computer even if the computer system fails or is shut down, can be used for remotely controlling the startup and shutdown, and the pxe and the ipxe are network starting technologies, which allow a system BIOS and a network card to boot the computer from a network and use the network card to boot the computer instead of a hard disk.
S12, calling MEGACLI by the agent of the ramdisk to acquire the physical hard disk information of the physical machine, and transmitting the acquired physical hard disk information to the ironic; after the ramdisk is started, the agent in the ramdisk can automatically acquire various information of the physical machine, and the agent writes a MEGACLI calling module in the agent in advance, calls the MEGACLI to collect the physical hard disk information of the physical machine and sends the information to the ironic.
S13, ironic receives the physical hard disk information, registers the node containing the physical hard disk information and stores the node information into a database; specifically, after the ironic receives the physical hard disk information from the MEGACLI, an automatic discovery module in the ironic automatically registers the physical machine according to the received information and stores the information into a database, and the obtained physical hard disk information is added to a registered node by writing a hard disk information adding module in the ironic in advance;
and S14, the user views the physical hard disk information by calling an ironic interface.
S2, designing a RAID structure according to actual requirements based on the physical hard disk information;
s3, modifying the RAID configuration based on the designed RAID structure; preferably, modifying the RAID configuration based on the designed RAID configuration comprises the steps of:
s31, compiling the designed RAID structure into RAID configuration information and transmitting the RAID configuration information to the ironic; specifically, the set RAID structure is compiled into a json file storing RAID configuration information or RAID is configured through another program or interface and converted into a format that the ironic can receive, and the format is sent to the ironic.
S32, sending a restart signal to the physical machine by the ironic, restarting the physical machine and acquiring ramdisk of the built-in agent and the MEGACLI; specifically, after receiving the configuration information of the RAID configuration information, the ironic controls the physical machine to restart through the ipmi tool, the physical machine is still started in a pxe or ipxe mode, the physical machine automatically acquires an IP address through a dhcp service, and acquires kernerl and ramdisk through the file server.
S33, agent calls RAID configuration information sent by ironic and calls MEGACLI to modify RAID configuration based on RAID configuration information. Specifically, the agent in the ramdisk receives RAID configuration information from the ironic and calls the MEGACLI to control the RAID card to modify the RAID configuration, so that the RAID configuration is modified.
The above-mentioned embodiments are merely preferred embodiments for fully illustrating the present invention, and the scope of the present invention is not limited thereto. The equivalent substitution or change made by the technical personnel in the technical field on the basis of the invention is all within the protection scope of the invention. The protection scope of the invention is subject to the claims.

Claims (9)

1. A remote physical machine RAID automatic configuration method based on MEGACLI is characterized in that: the method comprises the following steps:
s1, acquiring physical hard disk information of the physical machine;
s2, designing a RAID structure according to actual requirements based on the physical hard disk information;
s3, modifying the RAID configuration based on the designed RAID structure.
2. The MEGACLI-based remote physical machine RAID automatic configuration method according to claim 1, characterized in that: the step of acquiring the physical hard disk information of the physical machine comprises the following steps:
s11, starting the physical machine through a network starting mode, and automatically acquiring ramdisk containing agent and MEGACLI;
s12, calling MEGACLI by the agent of the ramdisk to acquire the physical hard disk information of the physical machine, and transmitting the acquired physical hard disk information to the ironic;
s13, ironic receives the physical hard disk information, registers the node containing the physical hard disk information and stores the node information into a database;
and S14, the user views the physical hard disk information by calling an ironic interface.
3. The MEGACLI-based remote physical machine RAID automatic configuration method according to claim 2, characterized in that: in step S11, the physical machine is started by a pxe or an ipxe, the physical machine automatically acquires an IP address through a dhcp service, and acquires kernerl and ramdisk through a file server.
4. The MEGACLI-based remote physical machine RAID automatic configuration method according to claim 3, characterized in that: the physical machine sets the starting mode to be a network starting mode through the ipmi tool.
5. The MEGACLI-based remote physical machine RAID automatic configuration method according to claim 3, characterized in that: in step S11, after the ramdisk is started, the agent in the ramdisk automatically obtains various items of information of the physical machine, and by writing the agent into the MEGACLI call module in advance, calls the MEGACLI to collect the information of the physical hard disk of the physical machine and sends the information to the ironic.
6. The MEGACLI-based remote physical machine RAID automatic configuration method according to claim 3, characterized in that: in step S13, after the ironic receives the physical hard disk information from the MEGACLI, the automatic discovery module in the ironic automatically registers the physical machine according to the received information and stores the information in the database, and adds the acquired physical hard disk information to the registered node by writing the hard disk information addition module in the ironic in advance.
7. The MEGACLI-based remote physical machine RAID automatic configuration method according to claim 1, characterized in that: the step of modifying the RAID configuration based on the design RAID configuration comprises:
s31, compiling the designed RAID structure into RAID configuration information and transmitting the RAID configuration information to the ironic;
s32, sending a restart signal to the physical machine by the ironic, restarting the physical machine and acquiring ramdisk of the built-in agent and the MEGACLI;
s33, agent calls RAID configuration information sent by ironic and calls MEGACLI to modify RAID configuration based on RAID configuration information.
8. The MEGACLI-based remote physical machine RAID auto-configuration method of claim 6, wherein: in step S31, the set RAID configuration is compiled into a json file storing RAID configuration information and sent to ironic.
9. The MEGACLI-based remote physical machine RAID auto-configuration method of claim 6, wherein: in step 32, when the physical machine is restarted, the physical machine is started through the pxe or the ipxe, the physical machine automatically acquires the IP address through the dhcp service, and acquires the kernerl and the ramdisk through the file server.
CN201911281736.XA 2019-12-13 2019-12-13 Remote physical machine RAID automatic configuration method based on MEGACLI Pending CN111104174A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911281736.XA CN111104174A (en) 2019-12-13 2019-12-13 Remote physical machine RAID automatic configuration method based on MEGACLI

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911281736.XA CN111104174A (en) 2019-12-13 2019-12-13 Remote physical machine RAID automatic configuration method based on MEGACLI

Publications (1)

Publication Number Publication Date
CN111104174A true CN111104174A (en) 2020-05-05

Family

ID=70421762

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911281736.XA Pending CN111104174A (en) 2019-12-13 2019-12-13 Remote physical machine RAID automatic configuration method based on MEGACLI

Country Status (1)

Country Link
CN (1) CN111104174A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111784179A (en) * 2020-07-10 2020-10-16 重庆顺戴网络科技有限公司 Server basic information management system and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105242877A (en) * 2015-09-29 2016-01-13 浪潮电子信息产业股份有限公司 Hardware RAID management method under Linux
CN105242875A (en) * 2015-09-17 2016-01-13 浪潮集团有限公司 Server raid batch configuration method
CN106095339A (en) * 2016-06-13 2016-11-09 浪潮(北京)电子信息产业有限公司 A kind of RAID collocation method for server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105242875A (en) * 2015-09-17 2016-01-13 浪潮集团有限公司 Server raid batch configuration method
CN105242877A (en) * 2015-09-29 2016-01-13 浪潮电子信息产业股份有限公司 Hardware RAID management method under Linux
CN106095339A (en) * 2016-06-13 2016-11-09 浪潮(北京)电子信息产业有限公司 A kind of RAID collocation method for server

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111784179A (en) * 2020-07-10 2020-10-16 重庆顺戴网络科技有限公司 Server basic information management system and method

Similar Documents

Publication Publication Date Title
US8046627B2 (en) Server failover control method and apparatus and computer system group
EP3495938B1 (en) Raid configuration
CN109587005B (en) Connection detection method and device, computer equipment and readable storage medium
CN102244669B (en) Software upgrading method in stacking equipment and stacking equipment
JP2010152704A (en) System and method for operational management of computer system
US10430082B2 (en) Server management method and server for backup of a baseband management controller
JP2008035456A (en) Operation management method, operation management program, operation management system, and operation management device
CN106657167B (en) Management server, server cluster, and management method
CN111343016B (en) Cloud server cluster management method and device
US20200084275A1 (en) Computer servers for datacenter management
CN106980493B (en) Firmware management method and device
WO2019153532A1 (en) Deployment method and apparatus for monitoring system, and computer device and storage medium
CN109067599A (en) A kind of method and device for disposing cluster
JPWO2012168995A1 (en) I / O switch control method, virtual computer control method, and computer system
US8819200B2 (en) Automated cluster node configuration
CN111367618A (en) Code management method, system, terminal and medium based on docker
US10795747B2 (en) File synchronizing service status monitoring and error handling
US20060167886A1 (en) System and method for transmitting data from a storage medium to a user-defined cluster of local and remote server blades
CN103618634A (en) Method for automatically finding nodes in cluster
CN111104174A (en) Remote physical machine RAID automatic configuration method based on MEGACLI
CN111209125B (en) Multi-process command line implementation method
CN112948008A (en) Ironic based physical bare computer management method
CN114598604A (en) Monitoring method, monitoring device and terminal for virtual network function instance information
US20170153907A1 (en) Out-of-band Management Of Virtual Machines
CN116820686B (en) Physical machine deployment method, virtual machine and container unified monitoring method and device

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