Search

CN-121996594-A - Expander management method, system and storage medium

CN121996594ACN 121996594 ACN121996594 ACN 121996594ACN-121996594-A

Abstract

The invention provides a method, a system and a storage medium for expander management, and relates to the field of SAS expander management. The invention can additionally introduce the baseboard management controller to be connected with the SAS expander to form an out-of-band management channel on the basis of the connection between the SAS expander and the SAS host to form the out-of-band management channel, thereby being capable of constructing a redundant dual-channel service management mechanism for the SAS expander, solving the problems that the current SAS host is insufficient in-band service management function and the SAS host cannot support the in-band service management function due to reasons, making up the defect of a single service management channel of the SAS expander and remarkably improving the availability and reliability of the service management of the SAS expander.

Inventors

  • YANG WENLI
  • LIU YANG
  • CHENG XIAOXIONG
  • LI HAISHENG
  • HE WENCONG

Assignees

  • 杭州华澜微电子股份有限公司

Dates

Publication Date
20260508
Application Date
20260409

Claims (10)

  1. 1. An expander management method, applied to a SAS expander, wherein the SAS expander is connected with a baseboard management controller to form an out-of-band management channel, and the SAS expander is connected with a SAS host to form an in-band management channel, the method comprising: receiving an out-of-band management command sent by the baseboard management controller, and determining the management maintenance function type of the out-of-band management command; Determining respective enabling states of the out-of-band management channel and the in-band management channel, dynamically distributing permission responding to each management maintenance function for the out-of-band management channel and the in-band management channel according to the enabling states, and judging whether the out-of-band management channel has target permission responding to the out-of-band management command; if the target permission is provided, processing the out-of-band management command to obtain a command response, and sending the command response to the baseboard management controller; and if the target permission authority is not available, executing error processing on the management command.
  2. 2. The expander management method of claim 1, wherein determining the enablement status of each of the in-band management channel and the out-of-band management channel comprises: Acquiring a link connection state between the SAS host, judging that the in-band management channel is started if the link connection state is link connection, and judging that the in-band management channel is not started if the link connection state is link disconnection; and sending a handshake signal to the baseboard management controller, judging that the out-of-band management channel is started if the baseboard management controller responds to the handshake signal, and judging that the out-of-band management channel is not started if the baseboard management controller does not respond to the handshake signal.
  3. 3. The expander management method of claim 1, further comprising, prior to determining the management maintenance function type of the out-of-band management command: judging whether the out-of-band management channel is started or not; If the out-of-band management channel is started, a step of determining the management maintenance function type of the out-of-band management command is entered; and if the out-of-band management channel is not started, executing error processing on the out-of-band management command.
  4. 4. The expander management method of claim 1, wherein said processing the out-of-band management command results in a command response, comprising: converting the out-of-band management command into an in-band management command; and sending the in-band management command to a standard firmware module so that the standard firmware module processes the in-band management command to obtain the command response.
  5. 5. The expander management method of claim 1, wherein the SAS expander is connected to a baseboard management controller via an I2C bus; The receiving the out-of-band management command sent by the baseboard management controller includes: receiving a first data frame through the I2C bus, and analyzing the first data frame according to a communication protocol between the SAS expander and the baseboard management controller to obtain the out-of-band management command; Transmitting the command response to the baseboard management controller, including: And according to a communication protocol between the SAS expander and the baseboard management controller, packaging the command response into a second data frame, and sending the second data frame through the I2C bus.
  6. 6. The expander management method according to any one of claims 1 to 5, further comprising: receiving an in-band management command sent by the SAS host, calling a standard firmware module to process the in-band management command, and detecting whether the SAS host has communication abnormality or not in the command processing process; If the SAS host is detected to have communication abnormality, recording the abnormal moment, the communication abnormality type and the management maintenance function category corresponding to the in-band management command to a debug log, and storing the debug log; Receiving an out-of-band management command sent by the baseboard management controller and used for acquiring the debug log, and sending the debug log to the baseboard management controller, wherein the baseboard management controller sends the out-of-band management command used for acquiring the debug log to the SAS expander when detecting that the SAS host is abnormal.
  7. 7. The expander management method is characterized by being applied to a baseboard management controller, wherein the baseboard management controller is connected with a SAS expander to form an out-of-band management channel, the SAS expander is connected with a SAS host to form an in-band management channel, and the baseboard management controller is connected with a management maintenance terminal device in a network mode, and the method comprises the following steps: receiving a SAS expander remote management command sent by management maintenance terminal equipment; sending a corresponding out-of-band management command to the SAS expander according to the SAS expander remote management command, so that the SAS expander dynamically distributes permission for responding to each management maintenance function for the out-of-band management channel and the in-band management channel according to the respective enabling states of the out-of-band management channel and the in-band management channel, processes the out-of-band management command to obtain a command response when determining that the out-of-band management channel has the permission for responding to the out-of-band management command, and sends the command response to the baseboard management controller; And receiving the command response and sending the command response to the management maintenance terminal equipment.
  8. 8. The expander management method of claim 7, further comprising: Detecting whether the SAS host is abnormal; When determining that the SAS host is abnormal, sending an out-of-band management command to the SAS expander, wherein the out-of-band management command is used for acquiring a debug log, and receiving the debug log sent by the SAS expander, wherein the debug log is recorded by the SAS expander when determining that the SAS host is abnormal in communication, and comprises an abnormal moment, a communication abnormality type and a management maintenance function class corresponding to the in-band management command which is being processed by the SAS expander when the communication abnormality occurs; And carrying out fault location on the SAS host according to the debugging log.
  9. 9. The expander management system is characterized by comprising an SAS expander, an SAS host, a baseboard management controller and management maintenance terminal equipment, wherein the SAS expander is connected with the baseboard management controller to form an out-of-band management channel, the SAS expander is connected with the SAS host to form an in-band management channel, and the baseboard management controller is connected with the management maintenance terminal equipment in a network manner; The SAS expander is used for receiving an out-of-band management command sent by the baseboard management controller, determining the type of a management maintenance function of the out-of-band management command, determining the respective enabling states of the out-of-band management channel and the in-band management channel, dynamically distributing permission responding to each management maintenance function for the out-of-band management channel and the in-band management channel according to the enabling states, judging whether the out-of-band management channel has target permission responding to the out-of-band management command, processing the out-of-band management command to obtain a command response if the out-of-band management command has the target permission, and sending the command response to the baseboard management controller, and executing error processing on the management command if the out-of-band management channel does not have the target permission; The base plate management controller is used for receiving a SAS expander remote management command sent by the management maintenance terminal equipment, sending a corresponding out-of-band management command to the SAS expander according to the SAS expander remote management command, receiving the command response and sending the command response to the management maintenance terminal equipment.
  10. 10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the expander management method of any one of claims 1 to 6 or the expander management method of any one of claims 7 to 8.

Description

Expander management method, system and storage medium Technical Field The present invention relates to the field of SAS expander management, and in particular, to a method, a system, and a storage medium for expander management. Background In the related art, management for SAS expanders (SERIAL ATTACHED SCSI, serial attached SCSI interfaces) generally adopts an in-band management manner, that is, SAS expanders are managed by SAS hosts. However, SAS expanders cannot be reliably managed when SAS hosts do not support the in-band management communication protocol or when in-band management channels between SAS hosts and SAS hosts fail. Disclosure of Invention The invention aims to provide a method, a system and a storage medium for expander management, which can effectively solve the technical problems of insufficient availability and reliability of SAS expander service management. In order to solve the above technical problems, the present invention provides an expander management method, applied to an SAS expander, where the SAS expander is connected with a baseboard management controller to form an out-of-band management channel, and the SAS expander is connected with a SAS host to form an in-band management channel, the method includes: receiving an out-of-band management command sent by the baseboard management controller, and determining the management maintenance function type of the out-of-band management command; Determining respective enabling states of the out-of-band management channel and the in-band management channel, dynamically distributing permission responding to each management maintenance function for the out-of-band management channel and the in-band management channel according to the enabling states, and judging whether the out-of-band management channel has target permission responding to the out-of-band management command; if the target permission is provided, processing the out-of-band management command to obtain a command response, and sending the command response to the baseboard management controller; and if the target permission authority is not available, executing error processing on the management command. Optionally, determining the enabling state of each of the in-band management channel and the out-of-band management channel includes: Acquiring a link connection state between the SAS host, judging that the in-band management channel is started if the link connection state is link connection, and judging that the in-band management channel is not started if the link connection state is link disconnection; and sending a handshake signal to the baseboard management controller, judging that the out-of-band management channel is started if the baseboard management controller responds to the handshake signal, and judging that the out-of-band management channel is not started if the baseboard management controller does not respond to the handshake signal. Optionally, before determining the management maintenance function type of the out-of-band management command, the method further includes: judging whether the out-of-band management channel is started or not; If the out-of-band management channel is started, a step of determining the management maintenance function type of the out-of-band management command is entered; and if the out-of-band management channel is not started, executing error processing on the out-of-band management command. Optionally, the processing the out-of-band management command is responded by a command, including: converting the out-of-band management command into an in-band management command; and sending the in-band management command to a standard firmware module so that the standard firmware module processes the in-band management command to obtain the command response. Optionally, the SAS expander is connected with the baseboard management controller through an I2C bus; The receiving the out-of-band management command sent by the baseboard management controller includes: receiving a first data frame through the I2C bus, and analyzing the first data frame according to a communication protocol between the SAS expander and the baseboard management controller to obtain the out-of-band management command; The sending the command response to the baseboard management controller includes: And according to a communication protocol between the SAS expander and the baseboard management controller, packaging the command response into a second data frame, and sending the second data frame through the I2C bus. Optionally, the method comprises: receiving an in-band management command sent by the SAS host, calling a standard firmware module to process the in-band management command, and detecting whether the SAS host has communication abnormality or not in the command processing process; If the SAS host is detected to have communication abnormality, recording the abnormal moment, the communication abnormality type and the management maintenance function category c