CN111506441A - A method, device, device and storage medium for monitoring Raid card information - Google Patents

A method, device, device and storage medium for monitoring Raid card information Download PDF

Info

Publication number
CN111506441A
CN111506441A CN202010290792.6A CN202010290792A CN111506441A CN 111506441 A CN111506441 A CN 111506441A CN 202010290792 A CN202010290792 A CN 202010290792A CN 111506441 A CN111506441 A CN 111506441A
Authority
CN
China
Prior art keywords
raid
monitoring
ipmi
main process
card 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.)
Granted
Application number
CN202010290792.6A
Other languages
Chinese (zh)
Other versions
CN111506441B (en
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 Power Commercial Systems Co Ltd
Original Assignee
Inspur Power Commercial Systems 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 Power Commercial Systems Co Ltd filed Critical Inspur Power Commercial Systems Co Ltd
Priority to CN202010290792.6A priority Critical patent/CN111506441B/en
Publication of CN111506441A publication Critical patent/CN111506441A/en
Application granted granted Critical
Publication of CN111506441B publication Critical patent/CN111506441B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3031Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a motherboard or an expansion card
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a method, a device, equipment and a storage medium for monitoring Raid card information, wherein the method comprises the following steps: on a BMC of the OpenPower server, adjusting the monitoring of the Raid card to be a Raid monitoring process; and controlling the Raid monitoring process and the IPMI main process of the BMC to perform data interaction in a Unix Socket and shared memory mode so that the IPMI main process can stably monitor the Raid card information. The invention realizes the function of monitoring the Raid card by the IPMI main process of the BMC by adjusting Raid monitoring as a process and simultaneously in a mode of Unix Socket and shared memory.

Description

一种监控Raid卡信息的方法、装置、设备及存储介质A method, device, device and storage medium for monitoring Raid card information

技术领域technical field

本发明涉及服务器技术领域,特别是涉及一种监控Raid卡信息的方法、装置、设备及存储介质。The present invention relates to the technical field of servers, in particular to a method, device, device and storage medium for monitoring Raid card information.

背景技术Background technique

在OpenPower服务器上,为了实现对服务器上的Raid卡的带外监控,在服务器的基板管理控制器(Baseboard Management Controller,BMC)上增加对Raid卡的监控,用于实现对Raid卡信息的采集和参数配置。On the OpenPower server, in order to realize the out-of-band monitoring of the Raid card on the server, the monitoring of the Raid card is added on the baseboard management controller (BMC) of the server, which is used to collect and collect information on the Raid card. parameter configuration.

在现有技术中,一般通过BMC的智能平台管理接口(Intelligent PlatformManagement Interface,IPMI)主进程通过创建线程来加载Raid卡生产厂商提供的lib文件的方式实现对Raid卡信息的监控。由于存在兼容性问题,在IPMI主进程调用lib文件进行Raid卡信息的读取和参数设置时,概率性会造成IPMI出现错误,进而导致IPMI主进程终止。又由于在OpenPower平台上,系统启动需依赖BMC服务,若BMC的IPMI服务出现问题,就会造成系统的启动或正常运行受到影响。In the prior art, generally, the main process of BMC's Intelligent Platform Management Interface (Intelligent Platform Management Interface, IPMI) implements the monitoring of Raid card information by creating a thread to load the lib file provided by the Raid card manufacturer. Due to the compatibility problem, when the IPMI main process calls the lib file to read the information of the Raid card and set the parameters, it may cause an error in the IPMI, which will lead to the termination of the IPMI main process. In addition, on the OpenPower platform, system startup depends on the BMC service. If there is a problem with the IPMI service of the BMC, the startup or normal operation of the system will be affected.

因此,如何解决现有BMC访问Raid卡信息的方案存在易出现IPMI主进程异常的缺点,是本领域技术人员亟待解决的技术问题。Therefore, how to solve the problem that the existing solution of BMC accessing Raid card information is prone to abnormal IPMI main process is a technical problem to be solved urgently by those skilled in the art.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明的目的在于提供一种监控Raid卡信息的方法、装置、设备及存储介质,可以提高IPMI主进程的稳定性,确保BMC服务的稳定性。其具体方案如下:In view of this, the purpose of the present invention is to provide a method, device, device and storage medium for monitoring Raid card information, which can improve the stability of the IPMI main process and ensure the stability of the BMC service. Its specific plan is as follows:

一种监控Raid卡信息的方法,包括:A method of monitoring Raid card information, comprising:

在OpenPower服务器的BMC上,将对于Raid卡的监控调整为Raid监控进程;On the BMC of the OpenPower server, adjust the monitoring of the Raid card to the Raid monitoring process;

控制所述Raid监控进程和所述BMC的IPMI主进程通过Unix Socket套接字和共享内存的方式进行数据交互,以使所述IPMI主进程对所述Raid卡信息进行稳定监控。Control the Raid monitoring process and the IPMI main process of the BMC to perform data interaction through Unix Socket sockets and shared memory, so that the IPMI main process can stably monitor the Raid card information.

优选地,在本发明实施例提供的上述监控Raid卡信息的方法中,控制所述IPMI主进程的过程,包括:Preferably, in the above-mentioned method for monitoring Raid card information provided by the embodiment of the present invention, the process of controlling the IPMI main process includes:

启动所述IPMI主进程;Start the IPMI main process;

创建所述Unix Socket套接字连接,并向所述Raid监控进程发送连接请求;Create the Unix Socket socket connection, and send a connection request to the Raid monitoring process;

在与所述Raid监控进程连接后,通过所述Unix Socket套接字和所述Raid监控进程进行通信交互,通过所述共享内存获取所需要的数据;After connecting with the Raid monitoring process, communicate and interact with the Raid monitoring process through the Unix Socket socket, and obtain the required data through the shared memory;

关闭所述Unix Socket套接字连接,释放资源;Close the Unix Socket socket connection and release resources;

返回请求的数据。Returns the requested data.

优选地,在本发明实施例提供的上述监控Raid卡信息的方法中,在启动所述IPMI主进程之后,在创建所述Unix Socket套接字连接之前,还包括:Preferably, in the above-mentioned method for monitoring Raid card information provided by the embodiment of the present invention, after starting the IPMI main process and before creating the Unix Socket socket connection, the method further includes:

初始化所述Unix Socket套接字;Initialize the Unix Socket socket;

等待接收查询或设置Raid控制器参数的IPMI命令;Waiting to receive IPMI commands that query or set Raid controller parameters;

接收到所述IPMI命令后,开始创建所述Unix Socket套接字连接。After receiving the IPMI command, start to create the Unix Socket socket connection.

优选地,在本发明实施例提供的上述监控Raid卡信息的方法中,控制所述Raid监控进程的过程,包括:Preferably, in the above-mentioned method for monitoring Raid card information provided by the embodiment of the present invention, the process of controlling the Raid monitoring process includes:

启动Raid监控进程;Start the Raid monitoring process;

接收到所述IPMI主进程连接请求后,创建所述Unix Socket套接字连接;After receiving the IPMI main process connection request, create the Unix Socket socket connection;

通过所述Unix Socket套接字和所述IPMI主进程进行通信交互,获取请求的数据;Through the Unix Socket socket and the IPMI main process to communicate and interact to obtain the requested data;

根据所述IPMI主进程请求的数据通过所述共享内存返回查询的数据或设置Raid控制器参数的执行结果;Returns the queried data or sets the execution result of the Raid controller parameters through the shared memory according to the data requested by the IPMI main process;

关闭所述Unix Socket套接字连接,释放资源。Close the Unix Socket socket connection, freeing resources.

优选地,在本发明实施例提供的上述监控Raid卡信息的方法中,在启动Raid监控进程之后,在接收到所述IPMI主进程连接请求之前,还包括:Preferably, in the above-mentioned method for monitoring Raid card information provided by the embodiment of the present invention, after starting the Raid monitoring process and before receiving the connection request of the IPMI main process, the method further includes:

初始化所述Unix Socket套接字;Initialize the Unix Socket socket;

创建所述Unix Socket套接字的监听服务,等待所述IPMI主进程的连接请求。Create a monitoring service for the Unix Socket socket, and wait for a connection request from the IPMI main process.

本发明实施例还提供了一种监控Raid卡信息的装置,包括:The embodiment of the present invention also provides a device for monitoring Raid card information, including:

Raid监控进程调整模块,用于在OpenPower服务器的BMC上,将对于Raid卡的监控调整为Raid监控进程;The Raid monitoring process adjustment module is used to adjust the monitoring of the Raid card to the Raid monitoring process on the BMC of the OpenPower server;

数据交互控制模块,用于控制所述Raid监控进程和所述BMC的IPMI主进程通过Unix Socket套接字和共享内存的方式进行数据交互,以使所述IPMI主进程对所述Raid卡信息进行稳定监控。The data interaction control module is used to control the Raid monitoring process and the IPMI main process of the BMC to perform data interaction through Unix Socket sockets and shared memory, so that the IPMI main process can perform data interaction on the Raid card information. Stable monitoring.

优选地,在本发明实施例提供的上述监控Raid卡信息的装置中,所述数据交互控制模块包括:Preferably, in the above-mentioned device for monitoring Raid card information provided by the embodiment of the present invention, the data interaction control module includes:

IPMI主进程控制单元,用于启动所述IPMI主进程;创建所述Unix Socket套接字连接,并向所述Raid监控进程发送连接请求;在与所述Raid监控进程连接后,通过所述UnixSocket套接字和所述Raid监控进程进行通信交互,通过所述共享内存获取所需要的数据;关闭所述Unix Socket套接字连接,释放资源;返回请求的数据。The IPMI main process control unit is used to start the IPMI main process; create the Unix Socket socket connection, and send a connection request to the Raid monitoring process; after connecting with the Raid monitoring process, pass the UnixSocket The socket communicates and interacts with the Raid monitoring process, and obtains the required data through the shared memory; closes the Unix Socket socket connection to release resources; and returns the requested data.

优选地,在本发明实施例提供的上述监控Raid卡信息的装置中,所述数据交互控制模块还包括:Preferably, in the above-mentioned device for monitoring Raid card information provided by the embodiment of the present invention, the data interaction control module further includes:

Raid监控进程控制单元,用于启动Raid监控进程;接收到所述IPMI主进程连接请求后,创建所述Unix Socket套接字连接;通过所述Unix Socket套接字和所述IPMI主进程进行通信交互,获取请求的数据;根据所述IPMI主进程请求的数据通过所述共享内存返回查询的数据或设置Raid控制器参数的执行结果;关闭所述Unix Socket套接字连接,释放资源。The Raid monitoring process control unit is used to start the Raid monitoring process; after receiving the IPMI main process connection request, create the Unix Socket socket connection; communicate with the IPMI main process through the Unix Socket socket Interact to obtain the requested data; return the queried data through the shared memory according to the data requested by the IPMI main process or set the execution result of the Raid controller parameters; close the Unix Socket socket connection to release resources.

本发明实施例还提供了一种监控Raid卡信息的设备,包括处理器和存储器,其中,所述处理器执行所述存储器中保存的计算机程序时实现如本发明实施例提供的上述监控Raid卡信息的方法。An embodiment of the present invention further provides a device for monitoring information on a Raid card, including a processor and a memory, wherein, when the processor executes a computer program stored in the memory, the above-mentioned monitoring of the Raid card provided by the embodiment of the present invention is implemented method of information.

本发明实施例还提供了一种计算机可读存储介质,用于存储计算机程序,其中,所述计算机程序被处理器执行时实现如本发明实施例提供的上述监控Raid卡信息的方法。Embodiments of the present invention further provide a computer-readable storage medium for storing a computer program, wherein, when the computer program is executed by a processor, the above-mentioned method for monitoring Raid card information provided by the embodiments of the present invention is implemented.

从上述技术方案可以看出,本发明所提供的一种监控Raid卡信息的方法、装置、设备及存储介质,包括:在OpenPower服务器的BMC上,将对于Raid卡的监控调整为Raid监控进程;控制Raid监控进程和BMC的IPMI主进程通过Unix Socket套接字和共享内存的方式进行数据交互,以使IPMI主进程对Raid卡信息进行稳定监控。It can be seen from the above technical solutions that the method, device, device and storage medium for monitoring Raid card information provided by the present invention include: on the BMC of the OpenPower server, adjusting the monitoring of the Raid card to a Raid monitoring process; Control the Raid monitoring process and the BMC's IPMI main process to exchange data through Unix Socket sockets and shared memory, so that the IPMI main process can stably monitor the Raid card information.

本发明针对当前OpenPower服务器存在Raid监控不稳定因素造成BMC的IPMI服务停止的问题,通过调整Raid监控为进程,同时通过Unix Socket套接字和共享内存的方式,实现BMC的IPMI主进程对Raid卡进行监控和参数设置的功能,由于Raid监控进程与IPMI主进程是不同进程,Raid监控进程异常不会影响IPMI主进程,避免了因为Raid监控异常,造成BMC的IPMI主进程异常退出,进而提高IPMI主进程的稳定性,确保BMC服务的稳定性。Aiming at the problem that the current OpenPower server has a Raid monitoring unstable factor causing the IPMI service of BMC to stop, the invention realizes that the IPMI main process of BMC is connected to the Raid card by adjusting the Raid monitoring as a process, and at the same time by means of Unix Socket socket and shared memory. The function of monitoring and parameter setting. Since the Raid monitoring process and the IPMI main process are different processes, the abnormal Raid monitoring process will not affect the IPMI main process, which avoids the abnormal exit of the BMC IPMI main process due to the Raid monitoring abnormality, thereby improving the IPMI. The stability of the main process ensures the stability of the BMC service.

附图说明Description of drawings

为了更清楚地说明本发明实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the following briefly introduces the accompanying drawings required for the description of the embodiments or related technologies. Obviously, the accompanying drawings in the following description are only the For the embodiments of the invention, for those of ordinary skill in the art, other drawings can also be obtained according to the provided drawings without any creative effort.

图1为本发明实施例提供的监控Raid卡信息的方法流程图;1 is a flowchart of a method for monitoring Raid card information provided by an embodiment of the present invention;

图2为本发明实施例提供的控制IPMI主进程的方法流程图;2 is a flowchart of a method for controlling an IPMI main process provided by an embodiment of the present invention;

图3为本发明实施例提供的控制Raid监控进程的方法流程图;3 is a flowchart of a method for controlling a Raid monitoring process provided by an embodiment of the present invention;

图4为本发明实施例提供的监控Raid卡信息的装置的结构示意图。FIG. 4 is a schematic structural diagram of an apparatus for monitoring Raid card information provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

本发明提供一种监控Raid卡信息的方法,如图1所示,包括以下步骤:The present invention provides a method for monitoring Raid card information, as shown in Figure 1, comprising the following steps:

S101、在OpenPower服务器的BMC上,将对于Raid卡的监控调整为Raid监控进程;S101. On the BMC of the OpenPower server, adjust the monitoring of the Raid card to the Raid monitoring process;

需要说明的是,本发明基于在OpenPower平台BMC监控Raid的方法,将Raid监控功能调整为进程来运行,由于Raid监控进程与BMC的IPMI主进程是不同进程,Raid监控进程异常不会影响IPMI主进程;It should be noted that the present invention is based on the method for monitoring Raid on the BMC of the OpenPower platform, and adjusts the Raid monitoring function as a process to run. Since the Raid monitoring process and the IPMI main process of the BMC are different processes, the abnormality of the Raid monitoring process will not affect the IPMI main process. process;

S102、控制Raid监控进程和BMC的IPMI主进程通过Unix Socket套接字和共享内存的方式进行数据交互,以使IPMI主进程对Raid卡信息进行稳定监控;S102, control the Raid monitoring process and the IPMI main process of the BMC to perform data interaction through Unix Socket sockets and shared memory, so that the IPMI main process can stably monitor the Raid card information;

需要说明的是,Unix Socket是在Socket架构上发展起来的用于同一台主机的进程间通讯(IPC)的机制,共享内存(Shared Memory)是linux系统下进程之间进行数据交互的一种机制;通过Unix Socket套接字和共享内存,实现和IPMI主进程进行数据交互,在保证IPMI主进程稳定的情况下,可以实现Raid监控功能,防止因为Raid监控功能异常造成BMC的IPMI主进程异常退出。It should be noted that Unix Socket is a mechanism for inter-process communication (IPC) on the same host developed on the Socket architecture, and Shared Memory is a mechanism for data interaction between processes under the Linux system. ; Through the Unix Socket socket and shared memory, data interaction with the IPMI main process can be realized. Under the condition of ensuring the stability of the IPMI main process, the Raid monitoring function can be implemented to prevent the BMC's IPMI main process from exiting abnormally due to the abnormal Raid monitoring function. .

在本发明实施例提供的上述监控Raid卡信息的方法中,在OpenPower服务器的BMC上,首先将对于Raid卡的监控调整为Raid监控进程;然后控制Raid监控进程和BMC的IPMI主进程通过Unix Socket套接字和共享内存的方式进行数据交互,以使IPMI主进程对Raid卡信息进行稳定监控。这样通过调整Raid监控为进程,同时通过Unix Socket套接字和共享内存的方式,实现BMC的IPMI主进程对Raid卡进行监控和参数设置的功能,避免了因为Raid监控异常,造成BMC的IPMI主进程异常退出,提高了IPMI主进程的稳定性,确保了BMC服务的稳定性。In the above-mentioned method for monitoring Raid card information provided by the embodiment of the present invention, on the BMC of the OpenPower server, firstly, the monitoring of the Raid card is adjusted to the Raid monitoring process; then the IPMI main process of the Raid monitoring process and the BMC is controlled through the Unix Socket Sockets and shared memory are used for data interaction, so that the IPMI main process can stably monitor the Raid card information. In this way, by adjusting the Raid monitoring as a process, and at the same time through the Unix Socket socket and shared memory, the IPMI main process of the BMC can monitor and set parameters for the Raid card, avoiding the abnormal Raid monitoring. The process exits abnormally, which improves the stability of the IPMI main process and ensures the stability of the BMC service.

在具体实施时,在本发明实施例提供的上述监控Raid卡信息的方法中,控制IPMI主进程的过程,如图2所示,可以包括以下步骤:During specific implementation, in the above-mentioned method for monitoring Raid card information provided by the embodiment of the present invention, the process of controlling the IPMI main process, as shown in FIG. 2 , may include the following steps:

S201、启动IPMI主进程;S201. Start the IPMI main process;

S202、创建Unix Socket套接字连接,并向Raid监控进程发送连接请求;S202, create a Unix Socket socket connection, and send a connection request to the Raid monitoring process;

S203、在与Raid监控进程连接后,通过Unix Socket套接字和Raid监控进程进行通信交互,通过共享内存获取所需要的数据;S203, after connecting with the Raid monitoring process, communicate and interact with the Raid monitoring process through the Unix Socket socket, and obtain the required data through the shared memory;

S204、关闭Unix Socket套接字连接,释放资源;S204, close the Unix Socket socket connection and release resources;

S205、返回请求的数据。S205. Return the requested data.

进一步地,在具体实施时,在本发明实施例提供的上述监控Raid卡信息的方法中,为了保证IPMI主进程的稳定性,在执行步骤S201启动IPMI主进程之后,在执行步骤S202创建Unix Socket套接字连接之前,如图2所示,还可以包括以下步骤:Further, during specific implementation, in the above-mentioned method for monitoring Raid card information provided by the embodiment of the present invention, in order to ensure the stability of the IPMI main process, after step S201 is performed to start the IPMI main process, step S202 is performed to create a Unix Socket. Before socket connection, as shown in Figure 2, the following steps can also be included:

S206、初始化Unix Socket套接字;S206, initialize the Unix Socket socket;

S207、等待接收查询或设置Raid控制器参数的IPMI命令;在接收到IPMI命令后,开始执行步骤S202创建Unix Socket套接字连接。S207, waiting to receive the IPMI command for querying or setting the parameters of the Raid controller; after receiving the IPMI command, start to perform step S202 to create a Unix Socket socket connection.

在具体实施时,在本发明实施例提供的上述监控Raid卡信息的方法中,控制Raid监控进程的过程,如图3所示,可以包括以下步骤:During specific implementation, in the above-mentioned method for monitoring Raid card information provided by the embodiment of the present invention, the process of controlling the Raid monitoring process, as shown in FIG. 3 , may include the following steps:

S301、启动Raid监控进程;S301. Start the Raid monitoring process;

S302、接收到IPMI主进程连接请求后,创建Unix Socket套接字连接;S302, after receiving the IPMI main process connection request, create a Unix Socket socket connection;

S303、通过Unix Socket套接字和IPMI主进程进行通信交互,获取请求的数据;S303, communicate and interact with the IPMI main process through the Unix Socket socket to obtain the requested data;

S304、根据IPMI主进程请求的数据通过共享内存返回查询的数据或设置Raid控制器参数的执行结果;S304, according to the data requested by the IPMI main process, return the queried data through the shared memory or set the execution result of the Raid controller parameters;

S305、关闭Unix Socket套接字连接,释放资源。S305. Close the Unix Socket socket connection and release resources.

进一步地,在具体实施时,在本发明实施例提供的上述监控Raid卡信息的方法中,为了确保Raid监控进程和IPMI主进程之间数据交互的实时性,在执行步骤S301启动Raid监控进程之后,在执行步骤S302接收到IPMI主进程连接请求之前,如图3所示,还可以包括以下步骤:Further, during specific implementation, in the above-mentioned method for monitoring Raid card information provided by the embodiment of the present invention, in order to ensure the real-time nature of data interaction between the Raid monitoring process and the IPMI main process, after step S301 is executed to start the Raid monitoring process. , before performing step S302 to receive the IPMI main process connection request, as shown in Figure 3, the following steps may also be included:

S306、初始化Unix Socket套接字;S306, initialize the Unix Socket socket;

S307、创建Unix Socket套接字的监听服务,等待IPMI主进程的连接请求。S307. Create a listening service for the Unix Socket socket, and wait for a connection request from the IPMI main process.

下面通过步骤一至步骤六对上述IPMI主进程实施软件控制逻辑进行说明:The following describes the software control logic implemented by the above-mentioned IPMI main process through steps 1 to 6:

步骤一、IPMI主进程启动,初始化Unix Socket套接字;Step 1. The IPMI main process is started, and the Unix Socket socket is initialized;

步骤二、等待接收查询/设置Raid控制器参数的IPMI命令;Step 2. Wait for the IPMI command to query/set the Raid controller parameters;

步骤三、接收到相关IPMI命令后,创建Unix Socket套接字连接,通过Unix Socket套接字和Raid监控进程进行通信交互,通过共享内存获取所需要的数据;Step 3. After receiving the relevant IPMI command, create a Unix Socket socket connection, communicate and interact with the Raid monitoring process through the Unix Socket socket, and obtain the required data through the shared memory;

步骤四、关闭Unix Socket套接字连接,释放资源;Step 4. Close the Unix Socket socket connection and release resources;

步骤五、返回IPMI命令请求的数据;Step 5. Return the data requested by the IPMI command;

步骤六、跳转至步骤三继续执行。Step 6. Jump to Step 3 to continue.

下面通过步骤七至步骤十二对上述Raid监控进程实施软件控制逻辑进行说明:The following describes the implementation of software control logic for the above Raid monitoring process through steps 7 to 12:

步骤七、Raid监控进程启动,初始化Unix Socket套接字;Step 7. Start the Raid monitoring process and initialize the Unix Socket socket;

步骤八、创建Unix Socket套接字监听服务,等待IPMI主进程Unix Socket套接字的连接;Step 8. Create a Unix Socket socket monitoring service and wait for the connection of the IPMI main process Unix Socket socket;

步骤九、接收到相关IPMI主进程连接请求后,创建Unix Socket套接字连接,通过Unix Socket套接字和IPMI主进程进行通信,获取请求的数据;Step 9. After receiving the relevant IPMI main process connection request, create a Unix Socket socket connection, communicate with the IPMI main process through the Unix Socket socket, and obtain the requested data;

步骤十、根据IPMI主进程请求的数据通过共享内存返回查询的数据或设置相关参数的执行结果;Step ten, according to the data requested by the IPMI main process, return the queried data through the shared memory or set the execution result of the relevant parameters;

步骤十一、关闭Unix Socket套接字连接,释放资源;Step 11. Close the Unix Socket socket connection and release resources;

步骤十二、跳转至步骤九继续执行。Step 12. Jump to Step 9 to continue execution.

基于同一发明构思,本发明实施例还提供了一种监控Raid卡信息的装置,由于该装置解决问题的原理与前述一种监控Raid卡信息的方法相似,因此该装置的实施可以参见监控Raid卡信息的方法的实施,重复之处不再赘述。Based on the same inventive concept, an embodiment of the present invention also provides a device for monitoring Raid card information. Since the principle of the device for solving problems is similar to the aforementioned method for monitoring Raid card information, the implementation of the device can refer to the monitoring of Raid card information. The implementation of the information method will not be repeated in the repeated places.

在具体实施时,本发明实施例提供的监控Raid卡信息的装置,如图4所示,具体包括:During specific implementation, the device for monitoring Raid card information provided by the embodiment of the present invention, as shown in FIG. 4 , specifically includes:

Raid监控进程调整模块11,用于在OpenPower服务器的BMC上,将对于Raid卡的监控调整为Raid监控进程;The Raid monitoring process adjustment module 11 is used to adjust the monitoring of the Raid card to the Raid monitoring process on the BMC of the OpenPower server;

数据交互控制模块12,用于控制Raid监控进程和BMC的IPMI主进程通过UnixSocket套接字和共享内存的方式进行数据交互,以使IPMI主进程对Raid卡信息进行稳定监控。The data interaction control module 12 is used to control the Raid monitoring process and the IPMI main process of the BMC to perform data interaction through UnixSocket sockets and shared memory, so that the IPMI main process can stably monitor the Raid card information.

在本发明实施例提供的上述监控Raid卡信息的装置中,可以通过上述两个个模块的相互作用,通过调整Raid监控为进程,同时通过Unix Socket套接字和共享内存的方式,实现BMC的IPMI主进程对Raid卡进行监控和参数设置的功能,由于Raid监控进程与IPMI主进程是不同进程,Raid监控进程异常不会影响IPMI主进程,进而提高IPMI主进程的稳定性,确保BMC服务的稳定性。In the above-mentioned device for monitoring Raid card information provided by the embodiment of the present invention, the interaction of the above-mentioned two modules can be used to adjust the Raid monitoring as a process, and at the same time, through the Unix Socket socket and the shared memory, the BMC can be realized. The IPMI main process monitors and sets parameters for the Raid card. Since the Raid monitoring process is a different process from the IPMI main process, the abnormality of the Raid monitoring process will not affect the IPMI main process, thereby improving the stability of the IPMI main process and ensuring the BMC service. stability.

在具体实施时,在本发明实施例提供的上述监控Raid卡信息的装置中,如图4所示,数据交互控制模块12可以包括:During specific implementation, in the above-mentioned device for monitoring Raid card information provided by the embodiment of the present invention, as shown in FIG. 4 , the data interaction control module 12 may include:

IPMI主进程控制单元121,用于启动IPMI主进程;创建Unix Socket套接字连接,并向Raid监控进程发送连接请求;在与Raid监控进程连接后,通过Unix Socket套接字和Raid监控进程进行通信交互,通过共享内存获取所需要的数据;关闭Unix Socket套接字连接,释放资源;返回请求的数据。The IPMI main process control unit 121 is used to start the IPMI main process; create a Unix Socket socket connection, and send a connection request to the Raid monitoring process; Communication interaction, obtain the required data through shared memory; close the Unix Socket socket connection to release resources; return the requested data.

进一步地,在具体实施时,在本发明实施例提供的上述监控Raid卡信息的装置中,如图4所示,数据交互控制模块12还可以包括:Further, during specific implementation, in the above-mentioned device for monitoring Raid card information provided by the embodiment of the present invention, as shown in FIG. 4 , the data interaction control module 12 may further include:

Raid监控进程控制单元122,用于启动Raid监控进程;接收到IPMI主进程连接请求后,创建Unix Socket套接字连接;通过Unix Socket套接字和IPMI主进程进行通信交互,获取请求的数据;根据IPMI主进程请求的数据通过共享内存返回查询的数据或设置Raid控制器参数的执行结果;关闭Unix Socket套接字连接,释放资源。The Raid monitoring process control unit 122 is used to start the Raid monitoring process; after receiving the IPMI main process connection request, create a Unix Socket socket connection; communicate and interact with the IPMI main process through the Unix Socket socket to obtain the requested data; According to the data requested by the IPMI main process, return the queried data through the shared memory or set the execution result of the Raid controller parameters; close the Unix Socket socket connection to release resources.

关于上述各个单元更加具体的工作过程可以参考前述实施例公开的相应内容,在此不再进行赘述。For more specific working processes of the above-mentioned units, reference may be made to the corresponding contents disclosed in the foregoing embodiments, which will not be repeated here.

相应的,本发明实施例还公开了一种监控Raid卡信息的设备,包括处理器和存储器;其中,处理器执行存储器中保存的计算机程序时实现前述实施例公开的监控Raid卡信息的方法。Correspondingly, the embodiment of the present invention also discloses a device for monitoring Raid card information, including a processor and a memory; wherein, the processor implements the method for monitoring Raid card information disclosed in the foregoing embodiments when executing the computer program stored in the memory.

关于上述方法更加具体的过程可以参考前述实施例中公开的相应内容,在此不再进行赘述。For a more specific process of the above method, reference may be made to the corresponding content disclosed in the foregoing embodiments, which will not be repeated here.

进一步的,本发明还公开了一种计算机可读存储介质,用于存储计算机程序;计算机程序被处理器执行时实现前述公开的监控Raid卡信息的方法。Further, the present invention also discloses a computer-readable storage medium for storing a computer program; when the computer program is executed by a processor, the aforementioned method for monitoring Raid card information is implemented.

关于上述方法更加具体的过程可以参考前述实施例中公开的相应内容,在此不再进行赘述。For a more specific process of the above method, reference may be made to the corresponding content disclosed in the foregoing embodiments, which will not be repeated here.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置、设备、存储介质而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments may be referred to each other. For the apparatuses, devices, and storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and reference may be made to the descriptions of the methods for related parts.

专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Professionals may further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two, in order to clearly illustrate the possibilities of hardware and software. Interchangeability, the above description has generally described the components and steps of each example in terms of functionality. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.

结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of a method or algorithm described in conjunction with the embodiments disclosed herein may be directly implemented in hardware, a software module executed by a processor, or a combination of the two. A software module can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.

综上,本发明实施例提供的一种监控Raid卡信息的方法、装置、设备及存储介质,包括:在OpenPower服务器的BMC上,将对于Raid卡的监控调整为Raid监控进程;控制Raid监控进程和BMC的IPMI主进程通过Unix Socket套接字和共享内存的方式进行数据交互,以使IPMI主进程对Raid卡信息进行稳定监控。本发明针对当前OpenPower服务器存在Raid监控不稳定因素造成BMC的IPMI服务停止的问题,通过调整Raid监控为进程,同时通过UnixSocket套接字和共享内存的方式,实现BMC的IPMI主进程对Raid卡进行监控和参数设置的功能,由于Raid监控进程与IPMI主进程是不同进程,Raid监控进程异常不会影响IPMI主进程,避免了因为Raid监控异常,造成BMC的IPMI主进程异常退出,进而提高IPMI主进程的稳定性,确保BMC服务的稳定性。To sum up, a method, device, device, and storage medium for monitoring Raid card information provided by the embodiments of the present invention include: on the BMC of the OpenPower server, adjusting the monitoring of the Raid card to the Raid monitoring process; controlling the Raid monitoring process Interact with BMC's IPMI main process through Unix Socket sockets and shared memory, so that the IPMI main process can stably monitor Raid card information. Aiming at the problem that the current OpenPower server has Raid monitoring unstable factors causing the IPMI service of BMC to stop, the invention realizes that the IPMI main process of BMC performs the processing on the Raid card by adjusting the Raid monitoring as a process, and at the same time by means of UnixSocket socket and shared memory. The function of monitoring and parameter setting, because the Raid monitoring process and the IPMI main process are different processes, the abnormal Raid monitoring process will not affect the IPMI main process, avoiding the abnormal exit of the BMC IPMI main process due to the abnormal Raid monitoring, thereby improving the IPMI main process. The stability of the process ensures the stability of the BMC service.

最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this document, relational terms such as first and second are used only to distinguish one entity or operation from another, and do not necessarily require or imply these entities or that there is any such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

以上对本发明所提供的监控Raid卡信息的方法、装置、设备及存储介质进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The method, device, device and storage medium for monitoring Raid card information provided by the present invention have been described in detail above. Specific examples are used in this paper to illustrate the principles and implementations of the present invention. The descriptions of the above embodiments are only used for Help to understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. In summary, the content of this specification It should not be construed as a limitation of the present invention.

Claims (10)

1. A method for monitoring information of a Raid card is characterized by comprising the following steps:
on a BMC of the OpenPower server, adjusting the monitoring of the Raid card to be a Raid monitoring process;
and controlling the Raid monitoring process and the IPMI main process of the BMC to perform data interaction in a Unix Socket and shared memory mode, so that the IPMI main process can stably monitor the Raid card information.
2. A method for monitoring Raid card information according to claim 1 wherein controlling the processes of the IPMI host process comprises:
starting the IPMI main process;
creating the Unix Socket connection and sending a connection request to the Raid monitoring process;
after the connection with the Raid monitoring process, performing communication interaction with the Raid monitoring process through the Unix Socket, and acquiring required data through the shared memory;
closing the Unix Socket connection and releasing resources;
the requested data is returned.
3. A method for monitoring Raid card information according to claim 2, wherein after the IPMI host process is started, before the Unix Socket connection is created, further comprising:
initializing the Unix Socket;
waiting for receiving an IPMI command for inquiring or setting Raid controller parameters;
and after receiving the IPMI command, starting to create the Unix Socket connection.
4. A method for monitoring Raid card information as claimed in claim 3, wherein the process of controlling the Raid monitoring process comprises:
starting a Raid monitoring process;
after receiving the IPMI main process connection request, creating Unix Socket connection;
performing communication interaction through the Unix Socket and the IPMI main process to acquire requested data;
returning inquired data or setting an execution result of a Raid controller parameter through the shared memory according to the data requested by the IPMI main process;
and closing the Unix Socket connection and releasing resources.
5. A method for monitoring Raid card information according to claim 4, wherein after initiating a Raid monitoring process and before receiving the IPMI host process connection request, further comprising:
initializing the Unix Socket;
and creating a monitoring service of the Unix Socket, and waiting for a connection request of the IPMI main process.
6. An apparatus for monitoring Raid card information, comprising:
the Raid monitoring process adjusting module is used for adjusting the monitoring of the Raid card into a Raid monitoring process on the BMC of the OpenPower server;
and the data interaction control module is used for controlling the Raid monitoring process and the IPMI main process of the BMC to perform data interaction in a Unixsocket socket and shared memory mode so that the IPMI main process can stably monitor the Raid card information.
7. An apparatus for monitoring Raid card information according to claim 6 wherein the data interaction control module comprises:
the IPMI main process control unit is used for starting the IPMI main process; creating the Unix Socket connection and sending a connection request to the Raid monitoring process; after the connection with the Raid monitoring process, performing communication interaction with the Raid monitoring process through the UnixSocket socket, and acquiring required data through the shared memory; closing the Unix Socket connection and releasing resources; the requested data is returned.
8. An apparatus for monitoring Raid card information according to claim 7 wherein the data interaction control module further comprises:
the Raid monitoring process control unit is used for starting a Raid monitoring process; after receiving the IPMI main process connection request, creating Unix Socket connection; performing communication interaction through the Unix Socket and the IPMI main process to acquire requested data; returning inquired data or setting an execution result of a Raid controller parameter through the shared memory according to the data requested by the IPMI main process; and closing the Unix Socket connection and releasing resources.
9. An apparatus for monitoring Raid card information, comprising a processor and a memory, wherein the processor implements the method of monitoring Raid card information according to any one of claims 1 to 5 when executing a computer program stored in the memory.
10. A computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the method of monitoring Raid card information according to any one of claims 1 to 5.
CN202010290792.6A 2020-04-14 2020-04-14 A method, device, equipment and storage medium for monitoring Raid card information Active CN111506441B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010290792.6A CN111506441B (en) 2020-04-14 2020-04-14 A method, device, equipment and storage medium for monitoring Raid card information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010290792.6A CN111506441B (en) 2020-04-14 2020-04-14 A method, device, equipment and storage medium for monitoring Raid card information

Publications (2)

Publication Number Publication Date
CN111506441A true CN111506441A (en) 2020-08-07
CN111506441B CN111506441B (en) 2023-06-16

Family

ID=71875970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010290792.6A Active CN111506441B (en) 2020-04-14 2020-04-14 A method, device, equipment and storage medium for monitoring Raid card information

Country Status (1)

Country Link
CN (1) CN111506441B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120762954A (en) * 2025-09-08 2025-10-10 安擎计算机信息股份有限公司 A method and device for monitoring abnormality of RAID cards in storage servers

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104714863A (en) * 2015-02-06 2015-06-17 浪潮电子信息产业股份有限公司 Method for completely storing Raid card logs on basis of Linux operation system after system crashes
CN108255618A (en) * 2017-12-27 2018-07-06 诺仪器(中国)有限公司 The data interactive processing method and system of measuring instrument
CN108959026A (en) * 2018-06-28 2018-12-07 合肥浪金防伪科技有限公司 A kind of method of accurate monitoring RAID card
CN110708366A (en) * 2019-09-24 2020-01-17 深圳市迅雷网络技术有限公司 Plug-in process management method, related method and related device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104714863A (en) * 2015-02-06 2015-06-17 浪潮电子信息产业股份有限公司 Method for completely storing Raid card logs on basis of Linux operation system after system crashes
CN108255618A (en) * 2017-12-27 2018-07-06 诺仪器(中国)有限公司 The data interactive processing method and system of measuring instrument
CN108959026A (en) * 2018-06-28 2018-12-07 合肥浪金防伪科技有限公司 A kind of method of accurate monitoring RAID card
CN110708366A (en) * 2019-09-24 2020-01-17 深圳市迅雷网络技术有限公司 Plug-in process management method, related method and related device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120762954A (en) * 2025-09-08 2025-10-10 安擎计算机信息股份有限公司 A method and device for monitoring abnormality of RAID cards in storage servers
CN120762954B (en) * 2025-09-08 2025-11-04 安擎计算机信息股份有限公司 A method and apparatus for monitoring abnormalities in a storage server RAID card

Also Published As

Publication number Publication date
CN111506441B (en) 2023-06-16

Similar Documents

Publication Publication Date Title
US11385908B1 (en) Cloning of firmware configuration settings using rest over IPMI interface
US10860308B1 (en) Peripheral device firmware update using rest over IPMI interface firmware update module
US10853052B1 (en) Peripheral device firmware update using rest over IPMI interface firmware shell utility
US7788477B1 (en) Methods, apparatus and articles of manufacture to control operating system images for diskless servers
US10404538B1 (en) Remote platform configuration
US10996940B1 (en) Secure firmware integrity monitoring using rest over IPMI interface
US10776286B1 (en) Rest over IPMI interface for firmware to BMC communication
US10572242B1 (en) Firmware update using rest over IPMI interface
US10628176B1 (en) Firmware configuration using REST over IPMI interface
CN110943860B (en) BMC (baseboard management controller) firmware updating method and system, electronic equipment and storage medium
WO2023098052A1 (en) Server operation and maintenance method and apparatus, and device and storage medium
JP2023551005A (en) Parameter configuration methods, devices, and systems
CN118550879A (en) File storage method, device, computer equipment and storage medium
CN110750365A (en) A remote procedure calling method, system, terminal and storage medium
US9755897B1 (en) Enhanced throttle management system
CN113746821B (en) Intelligent device control method and device, storage medium and electronic device
CN115604095A (en) Network equipment configuration method and system
CN116010017A (en) An interactive method, computer equipment and computer storage medium
CN111506441A (en) A method, device, device and storage medium for monitoring Raid card information
CN107844311A (en) A kind of server firmware upgrade method and device
CN106547600A (en) A kind of remote auto installs the method and system of whole machine cabinet host operating system
CN111352662A (en) A server startup sequence control method, system, terminal and storage medium
CN118916312B (en) A data transmission method, device, system, computer equipment and storage medium
US10824437B1 (en) Platform management for computing systems without baseboard management controllers
CN119484530A (en) Heterogeneous server management method, device and equipment based on redfish

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
GR01 Patent grant
GR01 Patent grant