A SAS expander configuration adaptive system
By designing an adaptive system for monitoring, execution and storage modules in the SAS expander, automatic detection and update of firmware and CFG files are realized, which solves the shortcomings of manual updates in the existing technology, improves the automation and reliability of the system, and simplifies maintenance management.
Patent Information
- Application Number
- CN202210570165.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-24
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-05-24
AI Technical Summary
The existing firmware update operation of SAS Expander requires manual judgment and manual operation, and cannot achieve automatic update, and cannot achieve automatic recovery when a firmware problem causes a hang.
A SAS expander configuration adaptive system is designed, including a monitoring module, an execution module and a storage module. By monitoring the status interface and expansion interface of the SAS expander, it generates fault repair or configuration modification instructions and automatically replaces Firmware and CFG in the flash memory. files to achieve automatic updates and fault recovery.
It implements automatic fault detection and firmware updates for SAS expanders, and promptly handles CFG file updates when connection objects change, significantly simplifying maintenance and management work and reducing labor and time costs.
Smart Images

Figure CN114860494B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automation, and in particular to a SAS expander configuration adaptive system. Background Art
[0002] Serial Attached Small Computer System Interface Expander (Serial Attached Small Computer System Interface Expander) is a memory expansion chip based on SAS signal, and its function is to expand the number of SAS hard disks.
[0003] As the application scenarios of SAS Expander become more complex, the requirements for the expansion flexibility of SAS Expander interfaces are getting higher and higher. In actual application, some SAS Expander expansion interfaces are often set to SAS CONN interfaces, so that they can connect to both upstream devices such as SAS control cards and downstream devices such as hard disks. After changing the connection object, only the firmware of the SAS Expander needs to be updated (that is, the configuration file in the flash). In addition, when the disk sequence of the hard disk under a SAS Expander expansion interface changes, the firmware also needs to be updated. And when the SAS Expander hangs due to firmware problems, it also needs to be resolved by reflashing the firmware.
[0004] The existing firmware update operation for SAS Expander requires maintenance personnel to judge the actual situation and then perform manual update, but it is impossible to automatically update the firmware according to the connection status of the expansion object, and it is also impossible to automatically recover when the SAS Expander hangs due to firmware problems. Summary of the invention
[0005] In order to solve the above technical problems, the present invention proposes a SAS expander configuration adaptive system, including: a SAS expander, configured to provide a SAS expansion interface; a monitoring module, configured to monitor the status interface and expansion interface of the SAS expander, and generate a fault repair instruction according to the signal on the status interface, or generate a configuration modification instruction according to the signal on the expansion interface; an execution module, configured to receive the fault repair instruction or the configuration modification instruction, and replace the Firmware file in the flash memory of the SAS expander according to the fault repair instruction, or replace the CFG file in the flash memory of the SAS expander according to the configuration modification instruction; a storage module, mounted to the monitoring module, configured to pre-store multiple CFG files, and provide corresponding CFG files according to the configuration modification instruction.
[0006] In one or more embodiments, the monitoring module is a BMC module, and the monitoring module is further configured to: identify the model of the SAS expander; in response to a fault signal obtained by a status interface of the SAS expander, obtain a firmware file corresponding to the model of the SAS expander through a BMC network and send it to the execution module.
[0007] In one or more embodiments, the monitoring module is further configured to: after obtaining a fault signal from the status interface of the SAS expander and before obtaining the firmware file corresponding to the model of the SAS expander through the BMC network, obtain the work log of the SAS expander through the BMC network; determine whether there is alarm information related to the SAS expander within a period of time before and after receiving the fault signal; in response to the existence of the relevant alarm information, obtain the firmware file corresponding to the model of the SAS expander through the BMC network and send it to the execution module.
[0008] In one or more embodiments, the monitoring module is further configured to: in response to the absence of the relevant alarm information, generate a reset instruction and send it to the execution module.
[0009] In one or more embodiments, the execution module is also configured to: in response to receiving the fault repair instruction, control the SAS expander to enter a fault repair mode to enable the burning interface of the SAS expander; receive a firmware file from the monitoring module, and burn the firmware file into the flash memory of the SAS expander through the burning interface to replace the original firmware file; send a reset signal to the reset interface of the SAS expander so that the SAS expander reloads and executes the new firmware file from the flash memory.
[0010] In one or more embodiments, the execution module is further configured to: in response to receiving the reset instruction, send a reset signal to the reset interface of the SAS expander, so that the SAS expander reloads and executes the firmware file from the flash memory.
[0011] In one or more embodiments, the monitoring module is further configured to: obtain device information on the custom expansion interface of the SAS expander; generate a query ID based on the device information; match the corresponding CFG file in the storage module based on the query ID and send it to the execution module.
[0012] In one or more embodiments, the execution module is also configured to: receive the CFG file from the monitoring module; write the CFG file into the flash memory of the SAS expander through the UART interface of the SAS expander to replace the original CFG file; send a reset signal to the reset interface of the SAS expander so that the SAS expander reloads and executes the new CFG file from the flash memory.
[0013] In one or more embodiments, the monitoring module is further configured to: identify the device type and disk sequence of the device connected to the custom expansion interface based on the device information; generate a configuration modification instruction in response to identifying that the device type or disk sequence does not match the configuration in the current CPG file, and generate a different query ID based on the device type or disk sequence.
[0014] In one or more embodiments, the SAS expander includes: an Augusta SAS4.0 expander.
[0015] The beneficial effects of the present invention include: the SAS expander configuration adaptive system of the present invention can automatically update the entire firmware file according to the detected fault signal and after confirmation through the BMC log; when it is detected that the device connected to the custom interface has changed, the corresponding CFG file can also be automatically updated. The use of the SAS expander configuration adaptive system of the present invention will greatly facilitate the maintenance and management of the SAS expansion system. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.
[0017] Figure 1 A schematic diagram of a SAS expander configuration adaptive system structure of the present invention. DETAILED DESCRIPTION
[0018] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0019] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for distinguishing two non-identical entities with the same name or non-identical parameters. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. The subsequent embodiments will not explain this one by one.
[0020] SAS Expander can achieve different configurations by replacing Expander backplanes with different numbers. The same Expander backplane has only one fixed configuration. In the prior art, when the configuration needs to be changed, it is generally achieved by replacing backplanes with different numbers; or re-writing the Firmware (abbreviated as FW) in the Flash chip on the backplane through an offline burner or an online burner. For example, when an Expander fails (such as hanging), it can be burned through the JTAG port on the backplane.
[0021] The existing technology cannot automatically update the firmware based on the configuration of the SAS Expander. The firmware update operation of the SAS Expander requires maintenance personnel to judge the actual situation and then perform manual updates. The manual update method not only increases the labor cost, but also requires rework when an update error occurs due to unfamiliarity with the operation, further increasing the time cost.
[0022] To this end, the present invention proposes a SAS expander configuration adaptive system. It includes: a SAS expander 10, configured to provide a SAS expansion interface; a monitoring module 20, configured to monitor the status interface and expansion interface of the SAS expander, and generate a fault repair instruction according to a signal on the status interface, or generate a configuration modification instruction according to a signal on the expansion interface; an execution module 30, configured to receive a fault repair instruction or a configuration modification instruction, and replace a firmware file in a flash memory of the SAS expander according to the fault repair instruction, or replace a CFG file in a flash memory of the SAS expander according to the configuration modification instruction; a storage module 40, mounted to the monitoring module, configured to pre-store a variety of CFG files, and provide corresponding CFG files according to the configuration modification instruction.
[0023] Specifically, firmware (FW for short) can be understood as the device "driver" stored inside the device. Only through the firmware operating system can the operation be implemented according to the standard device driver. The firmware of SAS Expander consists of three files, including boot, Sboot and CFG file; among them, CFG file is mainly used to record the configuration of the interface, upstream and downstream bandwidth, the topology of the supported downstream devices, etc.
[0024] Figure 1The schematic diagram of the adaptive system structure of a SAS expander configuration of the present invention. Among them, the SAS expander 10 adopts Augusta SAS4.0 Expande, and its expansion interface can be roughly divided into three categories, including SAS upstream port interface, downstream port interface and SAS CONN interface, wherein the SAS upstream port interface is used to connect to upstream devices such as SAS control cards, the downstream port interface is used to connect to downstream devices such as hard disks, and the SAS CONN interface is a custom interface, which can be connected to a SAS control card or hard disk according to the configuration in the CFG file. The monitoring module 20 is a BMC, the execution module 30 is a CPLD, and the storage module 40 is an EEPROM;
[0025] During the working process, one situation is that the monitoring module 20 and the BMC obtain the FAULT_BOOTROM signal by monitoring the status interface of the SAS expander 10, and judge whether the firmware is working normally according to the FAULT_BOOTROM signal; when a firmware fault in the flash is detected, the BMC transmits a control signal to the CPLD through I2C, and the CPLD sends a GPIO signal to control the Expander to enter the fault repair mode. After entering the fault repair mode, the TWI3 port allows data burning, and the BMC updates the Expander's FW file through the I2C bus connected to TWI3. After the update, the BMC transmits a control signal to the CPLD through I2C, and the CPLD sends a GPIO to control the Expander to enter the normal working mode, and then sends a Reset signal (reset) to control the Expander to start working again.
[0026] In a further embodiment, the monitoring module is further configured to: identify the model of the SAS expander; in response to a fault signal obtained from the status interface of the SAS expander, obtain the firmware file corresponding to the model of the SAS expander through the BMC network and send it to the execution module. Since the firmware file is relatively large, it is possible to pre-store multiple CFG files in the storage module EEPROM as in the following embodiment, and mount them on the BMC controller so that they can be called by the BMC at any time.
[0027] In a further embodiment, the monitoring module is also configured to: obtain the work log of the SAS expander through the BMC network after obtaining the fault signal from the status interface of the SAS expander and before obtaining the firmware file of the model of the corresponding SAS expander through the BMC network; determine whether there is alarm information related to the SAS expander within a period of time before and after receiving the fault signal; in response to the existence of relevant alarm information, obtain the firmware file of the model of the corresponding SAS expander through the BMC network and send it to the execution module. The purpose of this embodiment is to further confirm whether the firmware has a fault. If only the FAULT_BOOTROM signal is monitored, but the relevant fault log is not monitored, it means that the current SAS expander can still work normally and no firmware update is required. In an optional embodiment, the problem can be solved by resetting only the SAS expander.
[0028] In another case, the BMC monitors the device signals on each expansion interface and updates the CFG file when any of the following situations are found: when the disk sequence or topology of the hard disk connected to the downstream port interface changes, or when the device type connected to the SAS CONN interface changes. The CFG file will be updated.
[0029] Specifically, the monitoring module identifies the device type and disk sequence of the device connected to the custom expansion interface based on the obtained device information;
[0030] In response to identifying that the device type or disk sequence does not match the configuration in the current CPG file, a configuration modification instruction is generated, and a different query ID is generated according to the device type or disk sequence.
[0031] In one embodiment, the monitoring module is further configured to: obtain device information on the custom expansion interface of the SAS expander; generate a query ID based on the device information; match the corresponding CFG file in the storage module based on the query ID and send it to the execution module.
[0032] Specifically, for the SAS CONN interface, each SAS CONN sideband signal can define three cfg_id<2:0> signals. When the SAS CONN is connected to different devices, the three cfg_id<2:0> signals will generate different high and low levels, so that when the SAS CONN is connected to the upstream SAS control card or to different downstream hard disk backplanes, the IDs are different. For example,
[0033]
[0034] Among them, 111 represents that SAS CONN1 is connected to a SAS control card; 110, 101 and 100 represent that SAS CONN2 is connected to a hard disk, but the disk sequence or topology structure of the hard disk is not the same. Among them, the specific method of judging the need to update the CPG file includes: the monitoring module identifies the device type and disk sequence of the device connected to the custom expansion interface according to the device information (such as 111 / 110 / 101 and 100); in response to identifying that the device type or disk sequence does not match the configuration in the current CPG file, a configuration modification instruction is generated, and different query IDs are generated according to the device type or disk sequence. For example, the ID of the CPG file configured in the flash of the current SAS Expander is 1, but SAS CONN2 has reconnected to the device corresponding to 101. At this time, the CPG file in the flash needs to be updated to the CPG file corresponding to ID-2.
[0035] In a further embodiment, the execution module is further configured to: receive a CFG file from the monitoring module; write the CFG file into the flash memory of the SAS expander through the UART interface of the SAS expander to replace the original CFG file; send a reset signal to the reset interface of the SAS expander so that the SAS expander reloads and executes the new CFG file from the flash memory. Different from the method of burning the complete firmware file through the TWI3 port when the firmware fails, updating the CFG file only requires writing the new CFG file through the UART interface to replace the old CFG file.
[0036] As in the above embodiments, the SAS expander configuration adaptive system of the present invention can automatically update the entire firmware file according to the detected fault signal and after confirmation through the BMC log; when it is detected that the device connected to the custom interface has changed, the corresponding CFG file can also be automatically updated. The use of the SAS expander configuration adaptive system of the present invention will greatly facilitate the maintenance and management of the SAS expansion system.
[0037] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope disclosed in the embodiments of the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.
[0038] It should be understood that, as used herein, the singular forms "a", "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations including one or more of the associated listed items.
[0039] The serial numbers of the embodiments disclosed in the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0040] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the embodiments of the present invention as above, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.
Claims
1. A SAS expander configuration adaptive system, characterized in that: include: SAS expander, configured to provide a SAS expansion interface; A monitoring module configured to monitor the status interface and expansion interface of the SAS expander and generate a fault repair instruction based on a signal on the status interface or a configuration modification instruction based on a signal on the expansion interface; An execution module configured to receive the fault repair instruction or the configuration modification instruction, and replace the firmware file in the flash memory of the SAS expander according to the fault repair instruction, or replace the CFG file in the flash memory of the SAS expander according to the configuration modification instruction; A storage module, mounted to the monitoring module, configured to pre-store multiple CFG files and provide corresponding CFG files according to the configuration modification instruction; wherein the CFG files are used to record the configuration of the interface, the upstream and downstream bandwidths, and the topology of the supported downstream devices; The monitoring module is a BMC module, and the monitoring module is further configured to: identify the model of the SAS expander; in response to a fault signal obtained by the status interface of the SAS expander, obtain a firmware file corresponding to the model of the SAS expander through the BMC network and send it to the execution module; The monitoring module is further configured to: after receiving a fault signal from the status interface of the SAS expander and before obtaining a firmware file corresponding to the model of the SAS expander through the BMC network, obtain a work log of the SAS expander through the BMC network; determine whether there is any alarm information related to the SAS expander within a period of time before and after receiving the fault signal; in response to the presence of the relevant alarm information, obtain the firmware file corresponding to the model of the SAS expander through the BMC network and send it to the execution module; in response to the absence of the relevant alarm information, generate a reset instruction and send it to the execution module; The execution module is further configured to: in response to receiving the fault repair instruction, control the SAS expander to enter a fault repair mode to enable the burning interface of the SAS expander; receive a firmware file from the monitoring module, and burn the firmware file into the flash memory of the SAS expander through the burning interface to replace the original firmware file; send a reset signal to the reset interface of the SAS expander to cause the SAS expander to reload and execute the new firmware file from the flash memory; The execution module is further configured to: in response to receiving the reset instruction, send a reset signal to the reset interface of the SAS expander, so that the SAS expander reloads and executes the firmware file from the flash memory; The monitoring module is further configured to: obtain device information on the custom expansion interface of the SAS expander; generate a query ID based on the device information; match a corresponding CFG file in the storage module based on the query ID and send it to the execution module; wherein the custom expansion interface includes a three-bit signal, and when the custom expansion interface is connected to different devices, the three-bit signal will generate different high and low levels for distinguishing different device information; wherein the device information includes a SAS control card and a hard disk; The execution module is further configured to: receive the CFG file from the monitoring module; write the CFG file into the flash memory of the SAS expander through the UART interface of the SAS expander to replace the original CFG file; send a reset signal to the reset interface of the SAS expander to cause the SAS expander to reload and execute the new CFG file from the flash memory; The monitoring module is further configured to: identify the device type and disk sequence of the device connected to the custom expansion interface based on the device information; generate a configuration modification instruction in response to identifying that the device type or disk sequence does not match the configuration in the current CPG file, and generate a different query ID based on the device type or disk sequence; wherein the monitoring module identifies the device type and disk sequence connected to the custom expansion interface based on the obtained device information.
2. The SAS expander configuration adaptive system according to claim 1, characterized in that: The SAS expander includes: Augusta SAS4.0 expander.
Citation Information
Patent Citations
SAS expander and maintenance control system and method for achieving SAS expander
CN104298580A
