CN109783026A - A kind of method and device of automatic configuration server RAID - Google Patents

A kind of method and device of automatic configuration server RAID Download PDF

Info

Publication number
CN109783026A
CN109783026A CN201910033412.8A CN201910033412A CN109783026A CN 109783026 A CN109783026 A CN 109783026A CN 201910033412 A CN201910033412 A CN 201910033412A CN 109783026 A CN109783026 A CN 109783026A
Authority
CN
China
Prior art keywords
raid
configuration
server
bmc
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
CN201910033412.8A
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 CN201910033412.8A priority Critical patent/CN109783026A/en
Publication of CN109783026A publication Critical patent/CN109783026A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The present invention discloses the method and device of automatic configuration server RAID a kind of, and Telnet BMC first obtains log-on message;Then BMC is accessed according to acquired log-on message, obtains RAID configuration information;RAID configuration is finally carried out to server according to acquired RAID configuration information.The present invention passes through Telnet and accesses BMC, completes the configuration of server RAID, without manually greatling save server test and maintenance time without grid into the interface BIOS, improving the test maintaining efficiency of server.

Description

A kind of method and device of automatic configuration server RAID
Technical field
The present invention relates to server field of configuration, and in particular to the method and device of automatic configuration server RAID.
Background technique
Current big data technology development is more and more rapider, and the requirement to data reliability also carrys out higher, server in machine room In order to guarantee that data reliably generally all can be by the way of multiple hard disk groups RAID.Corresponding computer room high-volume is newly into for server Configuring RAID is a cumbersome and time-consuming job, and the general RAID that configures requires to carry out at the interface BIOS, and most of automatic The method for changing configuration RAID requires OS grid, and the premise for installing OS is to have needed to configure RAID.This contradiction is big The deployment efficiency of computer room high-volume server is constrained greatly.
Summary of the invention
To solve the above problems, the present invention discloses one kind it is not necessary that into the interface BIOS, the automation without grid is matched Set the method and device of server RAID.
The technical scheme is that a kind of method of automatic configuration server RAID, comprising:
S1: Telnet BMC, obtain log-on message;
S2: BMC is accessed according to acquired log-on message, obtains RAID configuration information;
S3: RAID configuration is carried out to server according to acquired RAID configuration information.
Further, further includes:
S4: obtaining RAID information, and judges whether configured RAID information is consistent with expection;
If consistent, configuration successful;
If inconsistent, alert, and repeat step S2 and S3.
Further,
In step S1, BMC is logged in by Redfish interface, acquired log-on message is TOKEN value.
Further,
In step S2, configuration information is obtained by Redfish interface and the corresponding path URL;Acquired RAID configuration information packet Include RAID card model, hard disk number and hard-disk capacity.
Further,
In step S3, to server carry out RAID configuration include: selection the RAID type to be configured, creation RAID virtual hard disk and Logical volume.
The present invention also provides the devices of automatic configuration server RAID a kind of, comprising:
Telnet module: being used for Telnet BMC, obtains log-on message;
Configuration information obtains module: for accessing BMC according to acquired log-on message, obtaining configuration information;
RAID configuration module: for carrying out RAID configuration to server according to acquired RAID configuration information.
Further, further includes:
Authentication module: for obtaining RAID information, and judge whether configured RAID information is consistent with expection;If consistent, Configuration successful;If inconsistent, alert, and repeat running configuration data obtaining module and RAID configuration module.
Further,
Telnet module logs in BMC by Redfish interface, and acquired log-on message is TOKEN value.
Further,
Configuration information obtains module and obtains configuration information by Redfish interface and the corresponding path URL;Acquired RAID configuration Information includes RAID card model, hard disk number and hard-disk capacity.
Further,
It includes: the selection RAID type to be configured that RAID configuration module, which carries out RAID configuration to server, and creation RAID is virtually hard Disk and logical volume.
The method and device of automatic configuration server RAID provided by the invention passes through Telnet and accesses BMC, complete At the configuration of server RAID, without manually greatling save server test and maintenance without grid into the interface BIOS Time improves the test maintaining efficiency of server.
Detailed description of the invention
Fig. 1 is one method flow schematic diagram of the specific embodiment of the invention.
Fig. 2 is two structural schematic block diagram of the specific embodiment of the invention.
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
A kind of method that the present invention discloses automatic configuration server RAID completes the automatic of server RAID by BMC network Change configuration, is not necessarily to manually into the interface BIOS, without grid.
As shown in Figure 1, this method specifically includes the following steps:
S1: Telnet BMC, obtain log-on message;
In the step, the long-range machine that controls can log in BMC by Redfish interface, and acquired log-on message is TOKEN value, with Just in next step, BMC is accessed according to TOKEN value.
S2: BMC is accessed according to acquired log-on message, obtains RAID configuration information;
In the step, BMC is accessed according to TOKEN value, RAID configuration is then obtained by Redfish interface and the corresponding path URL Information.
Acquired RAID configuration information specifically includes: RAID card model, hard disk number and hard-disk capacity.
S3: RAID configuration is carried out to server according to acquired RAID configuration information;
In the step, carry out RAID configuration to server and specifically include: the selection RAID type to be configured, creation RAID are virtually hard Disk and logical volume.Since then, RAID automatic configuration is completed.
S4: obtaining RAID information, judges whether configured RAID information is consistent with expection;
If consistent, configuration successful;
If inconsistent, alert, and repeat step S2 and S3;
In the step, operator can the fault-tolerant number of self-setting, and corresponding type of alarm is set.
It should be noted that above-mentioned steps order can arrange shell script in the method for the present embodiment, need to only hold It travels far and wide and the automatic configuration of RAID originally can be completed.
Embodiment two
As shown in Fig. 2, the present embodiment provides the dresses of automatic configuration server RAID for realizing one the method for embodiment a kind of It sets, which includes:
(1) Telnet module: being used for Telnet BMC, obtains log-on message;
It should be noted that Telnet module logs in BMC by Redfish interface, acquired log-on message is TOKEN Value.
(2) configuration information obtains module: for accessing BMC according to acquired log-on message, obtaining configuration information;
It should be noted that configuration information, which obtains module, obtains configuration information by Redfish interface and the corresponding path URL;Institute The RAID configuration information of acquisition includes RAID card model, hard disk number and hard-disk capacity.
(3) RAID configuration module: for carrying out RAID configuration to server according to acquired RAID configuration information;
It should be noted that it includes: the selection RAID type to be configured, wound that RAID configuration module, which carries out RAID configuration to server, Build RAID virtual hard disk and logical volume.
(4) authentication module: for obtaining RAID information, and judge whether configured RAID information is consistent with expection;If Unanimously, then configuration successful;If inconsistent, alert, and repeat running configuration data obtaining module and RAID configuration Module;
It should be noted that operator can self-setting authentication module fault-tolerant number, and corresponding type of alarm is set.
This programme is to manage network by the BMC of server, logs in BMC by Redfish interface, and automatic by BMC Change configuration RAID.Remotely control machine obtains TOKEN value by Redfish interface login BMC first;Then it is visited according to TOKEN value It asks BMC, server RAID card model, hard disk number and hard-disk capacity etc. is obtained by redfish interface and the corresponding path URL Information;Then according to the information selection RAID type to be configured got, RAID virtual hard disk and logical volume is created, is completed RAID automatic configuration.This programme is suitable for all servers for supporting BMC Redfish module, is not necessarily to grid, so that it may It realizes remote server automatic configuration RAID, greatlys save server test and maintenance time, improve the test dimension of server Protect efficiency.
Disclosed above is only the preferred embodiment of the present invention, but the present invention is not limited to this, any this field What technical staff can think does not have creative variation, and without departing from the principles of the present invention made by several improvement and Retouching, should all be within the scope of the present invention.

Claims (10)

1. a kind of method of automatic configuration server RAID characterized by comprising
S1: Telnet BMC, obtain log-on message;
S2: BMC is accessed according to acquired log-on message, obtains RAID configuration information;
S3: RAID configuration is carried out to server according to acquired RAID configuration information.
2. the method for automatic configuration server RAID according to claim 1, which is characterized in that further include:
S4: obtaining RAID information, and judges whether configured RAID information is consistent with expection;
If consistent, configuration successful;
If inconsistent, alert, and repeat step S2 and S3.
3. the method for automatic configuration server RAID according to claim 1 or 2, which is characterized in that
In step S1, BMC is logged in by Redfish interface, acquired log-on message is TOKEN value.
4. the method for automatic configuration server RAID according to claim 1 or 2, which is characterized in that
In step S2, configuration information is obtained by Redfish interface and the corresponding path URL;Acquired RAID configuration information packet Include RAID card model, hard disk number and hard-disk capacity.
5. the method for automatic configuration server RAID according to claim 1 or 2, which is characterized in that
In step S3, to server carry out RAID configuration include: selection the RAID type to be configured, creation RAID virtual hard disk and Logical volume.
6. a kind of device of automatic configuration server RAID characterized by comprising
Telnet module: being used for Telnet BMC, obtains log-on message;
Configuration information obtains module: for accessing BMC according to acquired log-on message, obtaining configuration information;
RAID configuration module: for carrying out RAID configuration to server according to acquired RAID configuration information.
7. the device of automatic configuration server RAID according to claim 6, which is characterized in that further include:
Authentication module: for obtaining RAID information, and judge whether configured RAID information is consistent with expection;If consistent, Configuration successful;If inconsistent, alert, and repeat running configuration data obtaining module and RAID configuration module.
8. the device of automatic configuration server RAID according to claim 6 or 7, which is characterized in that
Telnet module logs in BMC by Redfish interface, and acquired log-on message is TOKEN value.
9. the device of automatic configuration server RAID according to claim 6 or 7, which is characterized in that
Configuration information obtains module and obtains configuration information by Redfish interface and the corresponding path URL;Acquired RAID configuration Information includes RAID card model, hard disk number and hard-disk capacity.
10. the device of automatic configuration server RAID according to claim 6 or 7, which is characterized in that
It includes: the selection RAID type to be configured that RAID configuration module, which carries out RAID configuration to server, and creation RAID is virtually hard Disk and logical volume.
CN201910033412.8A 2019-01-14 2019-01-14 A kind of method and device of automatic configuration server RAID Withdrawn CN109783026A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910033412.8A CN109783026A (en) 2019-01-14 2019-01-14 A kind of method and device of automatic configuration server RAID

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910033412.8A CN109783026A (en) 2019-01-14 2019-01-14 A kind of method and device of automatic configuration server RAID

Publications (1)

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

Family

ID=66499311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910033412.8A Withdrawn CN109783026A (en) 2019-01-14 2019-01-14 A kind of method and device of automatic configuration server RAID

Country Status (1)

Country Link
CN (1) CN109783026A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110399727A (en) * 2019-06-25 2019-11-01 苏州浪潮智能科技有限公司 A kind of BMC permission automatic test approach, system, terminal and storage medium
CN111580888A (en) * 2020-05-13 2020-08-25 浪潮商用机器有限公司 Method, device and equipment for batch creation of server RAID (redundant array of independent disks) and storage medium
CN114063912A (en) * 2021-10-31 2022-02-18 郑州云海信息技术有限公司 RAID configuration method, system, equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110399727A (en) * 2019-06-25 2019-11-01 苏州浪潮智能科技有限公司 A kind of BMC permission automatic test approach, system, terminal and storage medium
CN111580888A (en) * 2020-05-13 2020-08-25 浪潮商用机器有限公司 Method, device and equipment for batch creation of server RAID (redundant array of independent disks) and storage medium
CN114063912A (en) * 2021-10-31 2022-02-18 郑州云海信息技术有限公司 RAID configuration method, system, equipment and storage medium
CN114063912B (en) * 2021-10-31 2024-04-16 郑州云海信息技术有限公司 RAID configuration method, system, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109804648B (en) IoT configuration service
WO2019100605A1 (en) Platform-as-a-service paas container platform construction method, server, system, and storage medium
CN110879712B (en) Cloud data center physical host installation method and related device
CN108234164B (en) Cluster deployment method and device
CN107332899A (en) One kind virtualization cloud computing desktop
CN109274722A (en) Data sharing method, device and electronic equipment
CN102404381A (en) Software deployment system and deployment method based on workflow in cloud computing environment
CN109783026A (en) A kind of method and device of automatic configuration server RAID
CN109639803A (en) A kind of method and system by BMC Long-range Automatic Deployment server OS
CN105487859B (en) A kind of big data component WEB dispositions methods based on template
CN107666493B (en) Database configuration method and equipment thereof
CN106325953A (en) Weblogic cluster one-key automatic deployment method
CN104077199A (en) Shared disk based high availability cluster isolation method and system
CN105095103A (en) Storage device management method and device used for cloud environment
WO2017036330A1 (en) Service configuration method and device for network cutover
CN106648838B (en) Resource pool management configuration method and device
CN112152843B (en) Cluster node deployment method, device and system and electronic equipment
CN113312064A (en) Installation configuration method and device of physical machine and computer readable medium
CN111338881B (en) Automatic testing method and device for parallel reading and writing of NAS file system
CN108683567A (en) A kind of switch port fault testing method and system based on MCS and server
CN105573872A (en) Hardware maintenance method and device of data storage system
CN105391566B (en) A kind of method and device that dynamic network equipments configuration compares
US20070204071A1 (en) Apparatus, system, and method for automated device configuration and testing
CN104598202A (en) Command line management device and method
CN111580888A (en) Method, device and equipment for batch creation of server RAID (redundant array of independent disks) and storage 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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20190521