Storage system and thermal maintenance method

By using the coordinated work of computer equipment and backup extenders in the storage system, the location indication information of the faulty extender is obtained and control commands are generated to realize the thermal maintenance of the extender, and the business interruption caused by the extender failure is solved, ensuring business continuity and efficient maintenance.

CN120491899AActive Publication Date: 2025-08-15INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510565706.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-30
Publication Date
2025-08-15
Estimated Expiration
2045-04-30

AI Technical Summary

Technical Problem

In storage systems, manual maintenance is required in case of an extender failure, resulting in a long business interruption time, affecting business continuity.

Method used

The computer equipment obtains the position indication information of the fault extender, determines the backup extender, and generates a control command to send it to the backup extender during the troubleshooting process. The backup extender manages the downlink port based on the position indication information to realize the thermal maintenance of the extender.

Benefits of technology

No interruption is required during troubleshooting, ensuring business continuity, implementing thermal maintenance of the extender, reducing maintenance time and human errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120491899A_ABST
    Figure CN120491899A_ABST
Patent Text Reader

Abstract

The invention discloses a storage system and a hot maintenance method, and relates to the technical field of storage, and the method comprises the steps that after computer equipment obtains position indication information of a fault expander, a corresponding standby expander can be determined firstly, and then when signal state change information is obtained at any stage of fault processing of the fault expander, the standby expander is determined to be a standby expander; and according to the signal state change information, the position indication information and the control command template, a control command is generated and sent to the standby expander. Therefore, the standby expander can determine the downlink port corresponding to the position indication information according to the position indication information included in the control command. In the fault processing period, the standby expander can perform the management operation corresponding to the target stage on the downlink port so as to process the management right of the downlink equipment corresponding to the faulted expander, related services corresponding to the standby expander do not need to be interrupted, the service continuity can be ensured, and the hot maintenance of the expanders is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of storage technology, and in particular to a storage system and a thermal maintenance method. Background Art

[0002] In the field of storage technology, the rapid development of technologies such as big data, artificial intelligence, and the metaverse has led to a rapid increase in the demand for server storage capabilities. Therefore, by connecting expanders to servers, servers can connect to more storage devices through expanders to meet larger data storage needs.

[0003] However, the expander may fail, requiring manual maintenance after the failure, and replacing the failed expander if it is determined that the failed expander cannot be repaired. During the process of replacing the failed expander, service interruption time is long. Summary of the Invention

[0004] The present application provides a storage system and a hot maintenance method to solve the problem of long service interruption time during maintenance.

[0005] The present application provides a storage system including a computer device and a plurality of expanders;

[0006] A computer device is configured to obtain location indication information of a faulty expander, wherein the faulty expander is any one of a plurality of expanders; determine, based on the location indication information, a backup expander corresponding to the faulty expander from the plurality of expanders; and, when signal state change information of the faulty expander is obtained in a target phase, generate a control command based on the signal state change information, the location indication information, and a pre-built control command template, and send the control command to the backup expander, wherein the target phase is any one of a plurality of phases for performing fault processing on the faulty expander;

[0007] The standby expander is used to determine, based on the position indication information, a downstream port corresponding to the position indication information among the ports included in the standby expander; and perform a management operation corresponding to the target stage on the downstream port, so as to process the management right of the downstream device corresponding to the faulty expander in the storage system through the management operation.

[0008] The present application also provides a thermal maintenance method, which is applied to the above-mentioned storage system, comprising:

[0009] The computer device obtains location indication information of a faulty expander, wherein the faulty expander is any one of a plurality of expanders; determines a backup expander corresponding to the faulty expander from the plurality of expanders based on the location indication information; and when signal state change information of the faulty expander is obtained in a target phase, generates a control command based on the signal state change information, the location indication information, and a pre-built control command template, and sends the control command to the backup expander, wherein the target phase is any one of a plurality of phases for performing fault processing on the faulty expander.

[0010] The standby expander determines, based on the position indication information, a downstream port corresponding to the position indication information among the ports included in the standby expander; and performs a management operation corresponding to the target stage on the downstream port, so as to process the management right of the downstream device corresponding to the failed expander in the storage system through the management operation.

[0011] Through the present application, after obtaining the position indication information of the faulty expander, the computer device can first determine the corresponding backup expander. At any stage of the fault processing of the faulty expander, the signal state of the faulty expander will change. Therefore, when the signal state change information is obtained at any stage of the fault processing, a control command can be generated and sent to the backup expander based on the signal state change information, position indication information and control command template of the stage. In this way, the backup expander can determine the downstream port corresponding to the position indication information based on the position indication information included in the control command. During the fault processing, the backup expander can perform management operations corresponding to the target stage on the downstream port in order to handle the management rights of the downstream device corresponding to the faulty expander, without interrupting the related business corresponding to the backup expander, thereby ensuring business continuity and realizing hot maintenance of the expander. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0013] Figure 1 A schematic diagram of the architecture of a storage system provided in an embodiment of the present application;

[0014] Figure 2 A schematic diagram of the architecture of another storage system provided in an embodiment of the present application;

[0015] Figure 3 A schematic diagram of the architecture of another storage system provided in an embodiment of the present application;

[0016] Figure 4 A schematic diagram of the architecture of another storage system provided in an embodiment of the present application;

[0017] Figure 5 A schematic flow chart of a thermal maintenance method provided in an embodiment of the present application;

[0018] Figure 6 A schematic diagram of the architecture of another storage system provided in an embodiment of the present application;

[0019] Figure 7 A schematic flow chart of another thermal maintenance method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0020] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0021] It should be noted that, in the description of this application, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. The terms "first," "second," etc., in this application are used to distinguish similar objects, and are not used to describe a particular order or sequence.

[0022] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0023] This application provides a storage system, such as Figure 1 As shown, the storage system may include a computer device 10 and multiple expanders (EXP). For example, the multiple expanders may include expander 201 and expander 202. The computer device 10 may be a server, and the expander may be a Serial Attached Small Computer System Interface Expander (SAS Expander).

[0024] The multiple expanders can be arranged in a hierarchical manner. The computer device 10 can be connected to each expander at the highest level of the storage system. Each expander can be connected to multiple downstream devices, and the multiple downstream devices connected to each expander include the downstream devices managed by the expander as the main expander, for example, Figure 1 The downstream devices connected to expanders 201 and 202 by solid lines also include downstream devices managed by the expander as a backup expander, for example, Figure 1 The downstream device connected by the dotted line between expander 201 and expander 202 in the figure can be the downstream device connected to the downstream port of the expander which is open by default, that is, the downstream device managed by the expander as the supervisor expander.

[0025] When a storage system includes a hierarchy of expanders, each expander in the storage system can be connected to one or more storage devices. The storage devices can be hard disk drives (HDDs). For example, Figure 1 The device connected to the expander 202 is the corresponding downstream device. Alternatively, when the storage system includes multiple levels, the expander of the first level is connected to multiple expanders in the second level, and the first level is any level in the multiple levels except the lowest level. The second level is one level lower than the first level, and the expanders of the lowest level are connected to one or more storage devices. Take two levels as an example, Figure 2 As shown, the first-level expanders include expander 203 and expander 204, and the second-level expanders include expander 205, expander 206, expander 207, and expander 208, wherein expander 203 is responsible for expander 205 and expander 206, and expander 204 is responsible for expander 207 and expander 208. When expander 204 fails, expander 203 can serve as a backup expander corresponding to expander 204 to manage expander 207 and expander 208. Conversely, when expander 203 fails, expander 204 can serve as a backup expander corresponding to expander 204 to manage expander 205 and expander 206.

[0026] After introducing the architecture of the storage system, the specific functions of the computer device 10 and the expander in the storage system are introduced in detail below.

[0027] First, the computer device 10 can be used to perform the following steps:

[0028] Step 1: Obtain location indication information of the fault extender.

[0029] The fault expander can be any one of the multiple expanders. The downstream devices corresponding to the multiple expanders can include storage devices, for example, Figure 2 In the example, the downstream devices corresponding to expander 203 include expander 205, expander 206, a storage device connected to expander 205, and a storage device connected to expander 206. Accordingly, the computer device 10 can be specifically configured to perform the following steps to obtain location information indicating the faulty expander:

[0030] Step 1: Obtain identification information of the monitored storage device.

[0031] Step 2. When it is determined that there is identification information of an unmonitored storage device based on the identification information of the monitored storage device and the pre-built full information table, the identification information of the target expander corresponding to the identification information of the unmonitored storage device is determined based on the identification information of the unmonitored storage device and the correspondence between the identification information of the expander and the identification information of the storage device.

[0032] The full information table includes identification information of all storage devices identified by the computer device 10 when any expander is not faulty.

[0033] Step 3: Obtain the storage path of the target expander according to the identification information of the target expander.

[0034] Specifically, the computer device 10 can periodically monitor the storage devices connected to the expander and record the identification information of the monitored storage devices. When the expander fails, the storage devices connected to it cannot be monitored by the computer device 10. Therefore, the computer device 10 can compare the identification information of the monitored storage devices with the identification information of the storage devices included in the full information table to see if they are completely consistent. If so, it can be determined that no expander failure has occurred. If there is inconsistent identification information of the storage device, it can be determined that the identification information of the inconsistent storage device is the identification information of the storage device that has not been monitored. Since the computer device 10 has recorded the identification information of each expander and the identification information of the storage device connected to each expander, the computer device 10 can determine the identification information of the expander corresponding to the identification information of the storage device that has not been monitored based on this. Furthermore, the computer device 10 can obtain the storage path of the target expander based on the identification information of the target expander. The determined identification information of the target expander and the obtained storage path of the target expander together constitute the location indication information.

[0035] In some optional implementations, the location indication information may also include only identification information of the target expander, or only storage path of the target expander.

[0036] Step 2: Determine a backup expander corresponding to the faulty expander from among the multiple expanders according to the location indication information.

[0037] The standby expander and the fault expander belong to the same layer.

[0038] Step three: when the signal state change information of the faulty expander is obtained in the target phase, a control command is generated according to the signal state change information, the location indication information, and the pre-built control command template, and sent to the standby expander.

[0039] The target stage may be any one of multiple stages of performing fault processing on the fault expander.

[0040] Specifically, in step 2, after determining the location indication information of the fault expander, the computer device 10 can perform corresponding fault processing, that is, first determine the target backup device identification information corresponding to the identification information of the fault expander based on the identification information of the fault expander included in the location indication information, and the correspondence between the fault device identification information and the backup device identification information, and determine the expander corresponding to the target backup device identification information as the backup expander corresponding to the fault expander.

[0041] In step three, the computer device 10 can add the identification information and / or storage path of the fault expander included in the location indication information to the corresponding location field of the control command template, determine the status indication information corresponding to the signal status change information based on the signal status change information, and add the status indication information corresponding to the signal status change information to the status field of the control command template.

[0042] The target phase may be an expander reset phase or an expander replacement phase. Accordingly, in different phases, generating control commands may specifically include the following two situations:

[0043] Case 1: When the target stage is the expander reset stage, and it is detected that the state of the reset signal of the faulty expander changes from a normal state to an abnormal state (that is, the signal state change information corresponding to the expander reset stage is obtained), the computer device 10 can generate a first control command based on the signal state change information corresponding to the expander reset stage, the position indication information, and the pre-built control command template, and send it to the backup expander.

[0044] The normal state of the reset signal may be a high level state, and the abnormal state may be a "pulled dead state", that is, the state of the reset signal remains at a low level state.

[0045] The control command template may include the identification information of the calling tool, parameter list, command type, status indication information of the downstream port, security code, identification information of the expander, path of the expander, etc. For example, the control command template may be "sg_senddiag-pr 10, 0, 0, 3, <level1expanderdownlinkset> , <level1expanderid> , <on off> , <securitycode>, / dev / sgX", where "sg_senddiag" is the identification information of the calling tool, "-p-r10,0,0,3" means that the parameter list "10,0,0,3" is required to execute this command. <level1expanderdownlinkset>"Indicates that this command is used to control the status of the downstream port. <level1expanderid>" is the identification information of the extender, <on off>It is the status indication information of the downlink port, that is, when the status indication information is " <on>", it indicates to open the downstream port corresponding to the identification information of the expander, or when the status indication information is " <off>"When the device is in the state of " , it indicates to close the downstream port corresponding to the identification information of the expander."<security code> " is a security code, a specific code required for verifying operation authority or encryption purposes. " / dev / sgX" is the storage path of the expander. The first control command may be a control command to close the downstream port.

[0046] Specifically, when the reset signal of the faulty expander changes from a normal state to an abnormal state, it indicates that the faulty expander has been identified as an expander that cannot be repaired and needs to be replaced. Therefore, the computer device 10 can add the identification information and storage path of the faulty expander included in the location indication information to the corresponding position of the control command template, and can determine that the status indication information is in the open state, and adjust the status field of the control command template to the open state (for example, the above-mentioned " <on>”), in this way, a first control command can be generated and sent to the standby expander, so that the standby expander can take over the service of the faulty expander in time to avoid service interruption.

[0047] Case 2, when the target phase is the expander replacement phase, and the signal status change information corresponding to the expander replacement phase is obtained (it can be directly detected by the status of the faulty expander's in-place signal, or it can be sent to the computer device 10 after other components detect the status of the faulty expander's in-place signal, and the other components can be Figure 3 When the logic controller 30 in the target phase is used, the computer device 10 can generate a second control command according to the signal state change information, position indication information, and a pre-built control command template corresponding to the target phase, and send it to the standby expander.

[0048] The second control command may be a control command for opening a downlink port.

[0049] Specifically, when the presence signal of the faulty expander changes from the not-in-place state to the in-place state, it indicates that a new expander has been connected to the location where the original faulty expander was located. At this time, the identification information and storage path of the faulty expander included in the location indication information can be added to the corresponding position of the control command template, and the status indication information can be determined to be in the closed state, and the status field of the control command template can be adjusted to the closed state (for example, the above-mentioned " <off>”), so that a second control command can be generated, so that the standby expander can return the service to the new expander in time.

[0050] In summary, when the faulty expander fails, the computer device 10 can generate a first control command to notify the backup expander to take over the business of the faulty expander in time, or it can generate a second control command to return the business of the faulty expander after replacing the business of the faulty expander. During the whole process, the business of the faulty business device is not interrupted, and after the fault is resolved, the business can be returned in time to reduce the load of the backup expander as soon as possible.

[0051] Second, the standby expander can be used to perform the following steps:

[0052] Step 1: According to the location indication information, a downlink port corresponding to the location indication information is determined from among the ports included in the standby expander.

[0053] Step 2: Perform a management operation corresponding to the target stage on the downstream port, so as to process the management right of the downstream device corresponding to the fault expander in the storage system through the management operation.

[0054] The downstream device corresponding to the faulty expander is connected to the downstream port. When the faulty expander is not faulty, the downstream port is in a closed state, which can reduce signal interference.

[0055] Specifically, after receiving the control command sent by the computer device 10, the standby expander can parse the control command and read the identification information of the calling tool, parameter list, command type, status indication information of the downstream port, security code, expander identification information, expander path and other information.

[0056] When the parsed command type is a command type for controlling the status of a downstream port, and the parsed status indication information is used to indicate opening the downstream port, indicating that the process is currently in the expander reset phase, the standby expander can determine the identification information of the port corresponding to the position indication information of the faulty expander based on the position indication information carried in the control command, as well as the position indication information and the port identification information, and the downstream port corresponding to the identification information of the port corresponding to the position indication information of the faulty expander among the multiple downstream ports included in the standby expander. The standby expander can open the downstream port and take over the management rights of the downstream device corresponding to the faulty expander.

[0057] If the parsed command type is for controlling the state of a downstream port, and the parsed status indication indicates shutting down the downstream port, the process is currently underway to replace the expander. The backup expander can shut down the downstream port to return management rights to the downstream device corresponding to the failed expander.

[0058] In the storage system of the embodiment of the present application, after the computer device 10 obtains the position indication information of the faulty expander, it can first determine the corresponding backup expander. Then, when the signal state change information is obtained at any stage of the fault processing of the faulty expander, the control command can be generated according to the signal state change information, the position indication information, and the pre-built control command template, and sent to the backup expander. In this way, the backup expander can determine the downstream port corresponding to the position indication information according to the position indication information included in the control command, that is, determine the downstream device managed by the backup expander and the downstream port connected to the backup expander. During the fault processing, the backup expander can perform management operations corresponding to the target stage on the downstream port to handle the management rights of the downstream device corresponding to the faulty expander, without interrupting the related business corresponding to the backup expander, thereby ensuring business continuity and realizing hot maintenance of the expander.

[0059] This application also provides another storage system, such as Figure 3 As shown, the storage system may further include a logic controller 30, which is electrically connected to each expander. Figure 3 Under the illustrated architecture, the various components in the storage system can cooperate with each other to perform an initial reset operation on the faulty expander, thereby restoring the service of the faulty expander after a successful reset, or performing further fault processing after a reset failure.

[0060] The logic controller 30 may be a complex programmable logic controller (CPLD) or a field programmable gate array (FPGA).

[0061] The computer device 10 can also be used to generate a first reset command based on the position indication information and a pre-built first reset command template, and send it to the standby expander. The standby expander can also be used to forward the first reset command to the logic controller 30. The logic controller 30 can be used to send a reset notification to the fault expander after executing the first reset command, and send a reset operation completion notification to the standby expander. The fault expander can also be used to perform a restart operation. The standby expander can also be used to forward the reset operation completion notification to the computer device 10 when receiving the reset operation completion notification sent by the logic controller 30. The computer device 10 can also be used to restore the service of the storage device connected to the fault expander when obtaining link success indication information after performing a link operation on the fault expander.

[0062] The link success indication information is used to indicate that the fault extender has recovered to a normal working state after performing a restart operation.

[0063] The first reset command template may be a soft reset command template. Accordingly, the first reset command is a soft reset command. The first reset command template may include identification information of the calling tool, parameter list, command type, status indication information of the downlink port, security code, identification information of the expander, path of the expander, etc. For example, the first reset command template may be "sg_senddiag-pr 10,0,0,3, <level1expanderreset> , <level1expanderid>,<security code>, / dev / sgX”, <level1expanderreset>Indicates that this command is a soft reset command type.

[0064] Specifically, upon obtaining the location indication information of the faulty expander, the computer device 10 can first add the obtained identification information and / or storage path of the faulty expander to the corresponding location fields of the first reset command template, generate a first reset command, and send it to the backup expander. After receiving the first reset command, the backup expander can execute the first reset command to trigger a reset signal state flip operation, i.e., adjust the reset signal state from a high level to a low level and then back to a high level. Upon detecting this change in the reset signal (a rising delay in the reset signal, i.e., a flip from a low level to a high level), the faulty expander can perform a restart operation. After the restart, the operating state of the faulty expander may return to normal or remain abnormal. After the reset operation is completed, the logic controller 30 can notify the computer device 10 by sending a reset operation completion notification to the computer device 10. The computer device 10 can then execute the operation of linking to the faulty expander and obtain the link indication information. When the link indication information indicates a successful link, the computer device 10 can resume the service of the storage device connected to the faulty expander.

[0065] In this way, a soft reset operation is performed first to determine whether the fault of the fault expander is recoverable. If so, the logic controller 30 can restore the fault expander to normal operation after performing the soft reset operation. This eliminates the need for subsequent service takeover or return operations, allowing for faster fault resolution and saving resources. Furthermore, the entire process does not require the involvement of technical personnel, reducing the error rate and making it more convenient.

[0066] In some optional embodiments, when the link indication information is link failure indication information, the computer device 10 may be further configured to generate a second reset command based on the location indication information and a pre-built second reset command template, and send the command to the backup expander. The backup expander may also be configured to forward the second reset command to the logic controller 30. The logic controller 30 may also be configured to adjust the state of the reset signal from a normal state to an abnormal state. The computer device 10 is specifically configured to obtain signal state change indication information during the expander reset phase when it detects that the state of the reset signal has changed from a normal state to an abnormal state.

[0067] The second reset command template may be a forced reset command template (or may also be called a hard reset command template). Accordingly, the second reset command is a forced reset command. The second reset command template may include identification information of the calling tool, parameter list, command type, status indication information of the downstream port, security code, identification information of the expander, path of the expander, etc. For example, the second reset command template may be: "sg_senddiag-p-r10,0,0,3, <level1expandercontrol> , <level1expanderid> , <online>,<security code>, / dev / sgX”," <level1expandercontrol>"Indicates that this command is a forced reset command type. <online>Indicates that the command is a forced reset command.

[0068] Specifically, if the faulty expander remains in a faulty state after the logic controller 30 performs a soft reset on it, this indicates that the faulty expander is unrecoverable and requires replacement. In this case, the logic controller 30 can adjust the reset signal state from a normal state to an abnormal state. In this way, the computer device 10 can detect the change in the reset signal state from a normal state to an abnormal state, thereby obtaining signal state change information corresponding to the expander reset phase.

[0069] In this way, when the link to the faulty expander fails, the computer device 10 can promptly generate a first control command and send it to the backup expander, so that the backup expander can promptly take over the service corresponding to the faulty expander, avoiding service interruption.

[0070] In some optional embodiments, the logic controller 30 can also be used to light up the fault indicator light corresponding to the position indication information according to the position indication information when it is detected that the restart operation of the fault expander fails, or the state of the reset signal is abnormal, to indicate the replacement of the fault expander.

[0071] Specifically, the logic controller 30 can also monitor whether the restart operation of the faulty expander is successful and whether the reset signal status is abnormal. If so, the logic controller 30 can determine the fault indicator corresponding to the location indication information based on the location indication information and execute the lighting operation. In this way, the fault indicator at the location of the faulty expander will light up, allowing technicians to promptly replace the expander at the faulty location.

[0072] In some optional embodiments, the logic controller 30 may also be configured to generate signal state change information during the expander replacement phase and transmit it to the backup expander upon detecting that the status of the presence signal changes from the not-in-place state to the in-place state. The computer device 10 is specifically configured to receive the signal state change information during the expander replacement phase forwarded by the backup expander.

[0073] The signal state change information during the expander replacement phase may be used to indicate that a new expander is added to the storage system as a replacement expander corresponding to the failed expander.

[0074] Specifically, after replacing the new expander, the power supply of the new expander is automatically powered on, and the state of the in-place signal corresponding to the position indication information will change from the out-of-place state to the in-place state. The logic controller 30 can periodically monitor the in-place signal of the faulty expander. When it is detected that the state of the in-place signal changes from the out-of-place state to the in-place state, it can be determined that the fault location is connected to a new expander. At this time, the logic controller 30 can generate signal state change information and send it to the standby expander. Alternatively, the standby expander can periodically read the signal state change information of the faulty expander recorded by the logic controller 30. The standby expander forwards the signal state change information to the computer device 10. The computer device 10 can receive the signal state change information of the expander replacement phase, generate a second control command and send it to the standby expander. The standby expander can return the business corresponding to the faulty expander to the newly connected expander.

[0075] This reduces the load on the backup expander by promptly returning services. This eliminates the need to interrupt services and makes maintenance more efficient. Furthermore, aside from expander replacement, all other operations are handled by the various components within the storage system, reducing manual errors and further improving maintenance efficiency.

[0076] In some optional embodiments, the computer device 10 may further be configured to generate a third reset command based on the location indication information and the third reset command template, and send the command to the backup expander. The backup expander may further be configured to forward the third reset command to the logic controller 30. The logic controller 30 may further be configured to restore the state of the reset signal from an abnormal state to a normal state, and send a recovery completion notification to the backup expander. The backup expander may further be configured to forward the recovery completion notification to the computer device 10. The computer device 10 may further be configured to restore services of a storage device connected to the failed expander.

[0077] The third reset command template may include the identification information of the calling tool, parameter list, command type, status indication information of the downstream port, security code, identification information of the expander, path of the expander, etc. For example, the third reset command template may be "sg_senddiag-pr 10,0,0,3, <level1expandercontrol> , <level1expanderid> , <offline>,<security ocde>, / dev / sgX”。" <level1expandercontrol>"Indicates that this command is a forced reset command type. <offline>Indicates that the command is to release the forced reset command.

[0078] Specifically, after obtaining the signal state change information during the expander replacement phase, the computer device 10, in addition to performing the aforementioned operation of sending the second control command, can also add the identification information and storage path of the faulty expander included in the location indication information to the corresponding position in the third reset command template, generate a third reset command, and send it to the backup expander. The backup expander forwards the third reset command to the logic controller 30. After executing the third reset command, the logic controller 30 can send a recovery completion notification to the backup expander. The backup expander can forward the recovery completion notification to the computer device 10, so that the computer device 10 can restore the service of the storage device connected to the faulty expander.

[0079] In some optional implementations, the logic controller 30 may be provided with a register for recording reset operation information for the fault expander. Before a soft reset operation is performed on the fault expander, the value in the register is 0. After the soft reset operation is performed on the fault expander, the value in the register may be set to 1. For example, reg1[0] changes to reg1[1].

[0080] In some optional embodiments, the logic controller 30 is further configured to turn off the fault indicator light corresponding to the position indication information after detecting that the state of the in-place signal changes from the out-of-place state to the in-place state (for example, when the in-place state is in a low-level state and the out-of-place state is in a high-level state, if a falling edge of the in-place signal is detected, it can be considered that the in-place signal has changed from the out-of-place state to the in-place state). By turning off the fault indicator light, visual confirmation information can be immediately provided to the technician, indicating that the faulty expander has been successfully replaced and the new expander is working properly. This not only improves the transparency of problem solving, but also reduces the technician's uncertainty about whether the problem has been solved.

[0081] In some optional embodiments, the computer device 10 may periodically count the number of detected storage device identification information, and when the number of detected storage device identification information equals a preset total number, perform a service recovery operation on the expander corresponding to the location indication information. The preset total number may be the total number of storage device identification information included in the full information table.

[0082] The storage system of the embodiment of the present application automatically executes the reset command through the logic controller 30 and takes further action based on the reset result. The entire process does not require human intervention, and can quickly resolve recoverable faults and reduce downtime. In addition, this solution adopts a hierarchical reset strategy, first trying a soft reset to minimize interference with the system. If it is invalid, a more radical forced reset operation is performed to ensure that different types of fault conditions can be covered. In addition, this solution attempts to repair the fault immediately after detecting the fault, and only considers replacing the hardware when it is confirmed that it cannot be restored by reset, avoiding unnecessary hardware replacement costs and time consumption. When an irrecoverable fault is detected, the logic controller 30 will light up the corresponding fault indicator light to help technicians quickly locate the components that need to be replaced and simplify the maintenance process. The logic controller 30 continuously monitors the status of the expander and can respond to status changes in a timely manner (such as from not in place to in place), ensuring that the newly installed expander can quickly take over the business and maintain stable operation of the storage system.

[0083] This application also provides another storage system, such as Figure 4 As shown, the storage system may further include a baseboard management controller 40 (BMC) 40. The baseboard management controller 40 may be connected to each expander respectively.

[0084] The expander can be configured to, upon receiving a first reset command, record the location indication information of the faulty expander in the first reset command and the first time at which the first reset command was received. Furthermore, upon receiving signal status number information corresponding to the expander replacement phase of the faulty expander from the logic controller 30, record signal status change information for the expander replacement phase and the second time at which the signal status change information for the expander replacement phase was received. The location indication information of the faulty expander and the first time constitute one piece of fault information, while the signal status change information for the expander replacement phase and the second time constitute one piece of in-position change information.

[0085] The baseboard management controller 40 can be configured to periodically extract fault information and in-place change information from each expander, generate fault log information based on the fault information and in-place change information, record the fault log information, and transmit it to the client, so that the client can display the fault log information and notify technical personnel to review and analyze it. Alternatively, the baseboard management controller 40 can also be configured to determine an interval length based on the first time and the second time. If the determined interval length exceeds the preset interval length, it indicates that the storage system is delaying processing the expander failure, and a warning notification can be sent to the client to facilitate technical personnel to review and perform repair operations.

[0086] In the storage system of the embodiment of the present application, the baseboard management controller 40 periodically extracts fault information and in-place change information from each expander and generates fault log information based on this information. This automated monitoring mechanism can significantly reduce the workload of manual inspections and improve system maintenance efficiency. When the interval duration is detected to be greater than the preset interval duration, the baseboard management controller 40 will send a warning notification to the client to alert technicians to possible delay issues. This method can promptly detect potential risks and prevent small problems from turning into major failures.

[0087] The embodiment of the present application provides a thermal maintenance method, which can be implemented by the cooperation between the various components in the above storage system, such as Figure 5 As shown, the specific processing steps of the thermal maintenance method may include:

[0088] Step S501: The computer device 10 obtains location indication information of a fault extender.

[0089] The faulty expander is any expander among the multiple expanders.

[0090] In step S502 , the computer device 10 determines a backup expander corresponding to the failed expander from among the multiple expanders according to the location indication information.

[0091] Step S503: When the computer device 10 obtains the signal state change information of the faulty expander in the target phase, it generates a control command according to the signal state change information, the location indication information, and the pre-built control command template, and sends it to the standby expander.

[0092] The target stage is any one of multiple stages of performing fault processing on the fault expander.

[0093] Step S504: The standby expander determines, based on the position indication information, a downlink port corresponding to the position indication information from among the ports included in the standby expander.

[0094] Step S505: The standby expander performs a management operation corresponding to the target phase on the downstream port, so as to process the management right of the downstream device corresponding to the failed expander in the storage system.

[0095] The specific processing of steps S501 to S505 can refer to the execution process in the structural embodiment of the above storage system, and will not be repeated here.

[0096] In the hot maintenance method of the embodiment of the present application, after the computer device 10 obtains the position indication information of the faulty expander, it can first determine the corresponding backup expander. Then, when the signal state change information is obtained at any stage of the fault processing of the faulty expander, the control command can be generated based on the signal state change information, the position indication information, and the pre-built control command template, and sent to the backup expander. In this way, the backup expander can determine the downlink port corresponding to the position indication information based on the position indication information included in the control command, that is, determine the downlink port connected to the downlink device managed by the backup expander and the backup expander. During the fault processing, the backup expander can perform management operations corresponding to the target stage on the downlink port to handle the management rights of the downlink device corresponding to the faulty expander, without interrupting the related business corresponding to the backup expander, thereby ensuring business continuity and realizing hot maintenance of the expander.

[0097] The execution process of the above storage system and thermal maintenance method is described in detail below using a specific example.

[0098] The storage system can be structured as follows Figure 6 As shown, it includes a head server (that is, the computer device 10 mentioned above), a host bus adapter (HBA), and a tail server. Among them, the tail server may include a complex programmable logic device, a first-level expander 1, a first-level expander 2, a second-level expander 3, a second-level expander 4, a second-level expander 5, a second-level expander 6, and multiple HDD disks. The complex programmable logic device can be located on a printed circuit board (PCB). The head server and the head server can be connected to the host bus adapter respectively. The host bus adapter can be connected to the first-level expander 1 and the first-level expander 2 respectively. The first-level expander 1 and the first-level expander 2 are respectively connected to the complex programmable logic device through the I2C line and the reset (Reset, RST) line. The first-level expander 1 is respectively connected to the second-level expander 3, the second-level expander 4, the second-level expander 5, and the second-level expander 6. The downstream port on the first-level expander 1 connected to the second-level expander 5 and the second-level expander 6 is in a closed state under normal circumstances. The primary expander 2 is connected to the secondary expanders 3, 4, 5, and 6. The downstream ports on the primary expander 2 that connect to the secondary expanders 3 and 4 are normally closed. Each of the secondary expanders 3, 4, 5, and 6 can be connected to a single HDD. Figure 6 The "x4" in the figure indicates that each connection uses four SAS physical links, which can improve data transfer rate and transmission performance.

[0099] In such Figure 6 In the storage system shown in FIG, the execution process of the thermal maintenance method can be as follows Figure 7 shown.

[0100] Step 1: When the first-level expander 2 fails, the head server obtains the location indication information of the first-level expander 2.

[0101] Step 2: The head server determines, according to the position indication information, the first-level expander 1 corresponding to the first-level expander 2 from among the multiple expanders as a backup expander.

[0102] Step 3: The head server generates a first reset command according to the position indication information and a pre-built first reset command template, and sends it to the first-level expander 1.

[0103] The first reset command may be sent in the form of an in-band notification. In-band notification refers to a method of sending a notification through the same channel or path as main data transmission.

[0104] Step 4: The first-level expander 1 forwards the first reset command to the complex programmable logic device.

[0105] Step 5: After executing the reset command, the complex programmable logic device sends a reset notification to the first-level expander 2.

[0106] Step 6: The first-level expander 2 performs a restart operation.

[0107] Step 7: When the first-level expander 1 receives the reset operation completion notification sent by the logic controller, it forwards the reset operation completion notification to the head server.

[0108] Step 8: The head server attempts to connect to the first-level expander 2.

[0109] Step 9: When the head server obtains the link success indication information, it resumes the service of the storage device connected to the first-level expander 2.

[0110] The link success indication information is used to indicate that the first-level expander 2 has recovered to a normal working state after performing the restart operation.

[0111] Step 10: When the head end server obtains the link failure indication information, the head end server generates a second reset command according to the position indication information and the pre-built second reset command template, and sends it to the first-level expander 1.

[0112] Step 11: The first-level expander 1 forwards the second reset command to the complex programmable logic device.

[0113] In step 12, the complex programmable logic device adjusts the state of the reset signal from a normal state to an abnormal state.

[0114] In step 13, the head server detects that the state of the reset signal of the first-level expander 2 changes from a normal state to an abnormal state, and generates a first control command based on the signal state change information, position indication information, and pre-built control command template in the expander reset phase, and sends it to the first-level expander 1.

[0115] Step 14: The first-level expander 1 receives the first control command, and determines a downlink port corresponding to the position indication information among the ports included in the first-level expander 1 according to the position indication information included in the first control command.

[0116] In step 15 , the first-level expander 1 opens the downstream port to take over the management rights of the downstream device corresponding to the first-level expander 2 .

[0117] In step 16, the technician removes the primary expander 2 and reconnects a new expander to the corresponding position on the host bus adapter.

[0118] Step 17 , when the complex programmable logic device detects that the state of the in-place signal changes from the out-of-place state to the in-place state, it generates signal state change information of the expander replacement phase and sends it to the first-level expander 1 .

[0119] The signal state change information in the expander replacement phase is used to indicate that a new expander is added to the storage system as a replacement expander corresponding to the first-level expander 2 .

[0120] In step 18, the first-level expander 1 forwards the signal status change information during the expander replacement phase to the head server.

[0121] In step 19, when the head server obtains the signal status change information of the expander replacement phase of the first-level expander 2, it generates a second control command based on the signal status change information, position indication information, and pre-built control command template of the expander replacement phase, and sends it to the first-level expander 1.

[0122] In step 20, the first-level expander 1 closes the downstream port to return the management right of the downstream device corresponding to the first-level expander 2 to the new expander.

[0123] In step 21 , the head server generates a third reset command according to the position indication information and a pre-built third reset command template, and sends the third reset command to the first-level expander 1 .

[0124] In step 22 , the first-level expander 1 forwards the third reset command to the complex programmable logic device.

[0125] In step 23 , the complex programmable logic device restores the state of the reset signal from the abnormal state to the normal state, and sends a restoration completion notification to the first-level expander 1 .

[0126] In step 24, the first-level expander 1 forwards the recovery completion notification to the head server.

[0127] Step 25: The head server attempts to connect to the new extender.

[0128] Step 26: When the head server obtains the link success indication information, it resumes the service of the storage device connected to the new expander.

[0129] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method.

[0130] Professionals may further appreciate 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 interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0131] The above is a detailed introduction to a storage system and a thermal maintenance method provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.< / offline> < / offline> < / level1expanderid> < / level1expandercontrol> < / online> < / online> < / level1expanderid> < / level1expandercontrol> < / level1expanderreset> < / off> < / on> < / off> < / on> < / on> < / securitycode> < / on> < / level1expanderid> < / level1expanderdownlinkset>

Claims

1. A storage system, characterized in that: The storage system includes a computer device and a plurality of expanders; The computer device is configured to obtain location indication information of a faulty expander, wherein the faulty expander is any one of the plurality of expanders; determine, based on the location indication information, a backup expander corresponding to the faulty expander from the plurality of expanders; and, when signal state change information of the faulty expander is obtained in a target phase, generate a control command based on the signal state change information, the location indication information, and a pre-built control command template, and send the control command to the backup expander, wherein the target phase is any one of the plurality of phases for performing fault processing on the faulty expander; The standby expander is used to determine, based on the position indication information, a downstream port corresponding to the position indication information among the ports included in the standby expander; and perform a management operation corresponding to the target stage on the downstream port, so as to process the management right of the downstream device corresponding to the fault expander in the storage system through the management operation.

2. The storage system according to claim 1, wherein: The downstream devices respectively corresponding to the multiple expanders include storage devices; The computer device is specifically used for: Obtain identification information of monitored storage devices; When it is determined that there is identification information of a storage device that has not been monitored based on the identification information of the monitored storage device and the pre-constructed full information table, the identification information of the target expander corresponding to the identification information of the unmonitored storage device is determined based on the identification information of the unmonitored storage device and the correspondence between the identification information of the expander and the identification information of the storage device, wherein the full information table includes the identification information of all storage devices recognized by the computer device when any one of the expanders is not faulty; The storage path of the target expander is acquired according to the identification information of the target expander, wherein the location indication information includes the identification information and the storage path of the target expander.

3. The storage system according to claim 1 or 2, characterized in that: A downstream device corresponding to the faulty expander is connected to the downstream port, and when the faulty expander is not faulty, the state of the downstream port is a closed state; when the target stage is the expander reset stage, the signal state change information is used to indicate that the state of the reset signal changes from a normal state to an abnormal state; The standby expander is specifically used for: The downstream port is opened to take over the management right of the downstream device corresponding to the fault expander.

4. The storage system according to claim 3, wherein: When the target phase is the expander replacement phase, the signal state change information is used to indicate that the state of the in-place signal changes from the out-of-place state to the in-place state, and the expander replacement phase is a phase after the expander reset phase; The standby expander is specifically used for: The downstream port is closed to return the management right of the downstream device corresponding to the fault expander.

5. The storage system according to claim 4, wherein: The storage system further includes a logic controller, wherein the logic controller is electrically connected to the fault expander and the backup expander respectively; The computer device is further configured to generate a first reset command based on the position indication information and a pre-built first reset command template, and send the first reset command to the standby expander; The standby expander is further configured to forward the first reset command to the logic controller; The logic controller is configured to send a reset notification to the faulty expander after executing the first reset command, and send a reset operation completion notification to the standby expander; The fault expander is further configured to perform a restart operation; The standby expander is further configured to forward the reset operation completion notification to the computer device; The computer device is further used to restore the service of the storage device connected to the fault expander when link success indication information is obtained after performing a link operation on the fault expander, wherein the link success indication information is used to indicate that the fault expander has resumed normal working status after performing the restart operation.

6. The storage system according to claim 5, wherein: When the signal state change information is signal state change information during a reset phase of the expander, the computer device is further configured to, upon obtaining link failure indication information after performing a link operation on the faulty expander, generate a second reset command based on the position indication information and a pre-constructed second reset command template, and send the command to the standby expander; The standby expander is further configured to forward the second reset command to the logic controller; The logic controller is further configured to adjust the state of the reset signal from the normal state to the abnormal state; The computer device is specifically used for: When it is monitored that the state of the reset signal changes from the normal state to the abnormal state, signal state change indication information of the expander reset phase is acquired.

7. The storage system according to claim 5, wherein: The logic controller is also used for: When it is obtained that the restart operation of the faulty expander fails, or the state of the reset signal is the abnormal state, the fault indicator light corresponding to the position indication information is lit according to the position indication information to indicate that the faulty expander should be replaced.

8. The storage system according to claim 7, wherein: When the signal state change information is signal state change information of the expander replacement stage, the logic controller is further configured to: When it is detected that the state of the in-place signal changes from the not-in-place state to the in-place state, generating signal state change information of the expander replacement phase and sending the information to the standby expander, wherein the signal state change information of the expander replacement phase is used to indicate that a new expander is added to the storage system as a replacement expander corresponding to the failed expander; The computer device is specifically used for: Receive the signal state change information of the expander replacement phase forwarded by the standby expander.

9. The storage system according to claim 8, wherein: The computer device is further configured to generate a third reset command based on the position indication information and a third reset command template, and send the third reset command to the standby expander; The standby expander is further configured to forward the third reset command to the logic controller; The logic controller is further configured to restore the state of the reset signal from the abnormal state to the normal state, and send a restoration completion notification to the standby expander; The standby expander is further configured to forward the recovery completion notification to the computer device; The computer device is further used to restore the service of the storage device connected to the fault expander.

10. A thermal maintenance method, characterized in that: The hot maintenance method is applied to the storage system according to any one of claims 1 to 9, wherein the storage system includes a computer device and a plurality of expanders, and the method includes: The computer device obtains location indication information of a faulty expander, wherein the faulty expander is any one of the plurality of expanders; determines a backup expander corresponding to the faulty expander from the plurality of expanders based on the location indication information; when signal state change information of the faulty expander is obtained in a target phase, generates a control command based on the signal state change information, the location indication information, and a pre-built control command template, and sends the control command to the backup expander, wherein the target phase is any one of the plurality of phases for performing fault processing on the faulty expander; The standby expander determines, based on the position indication information, a downstream port corresponding to the position indication information among the ports included in the standby expander; and performs a management operation corresponding to the target stage on the downstream port, so as to process the management right of the downstream device corresponding to the faulty expander in the storage system through the management operation.

Citation Information

Patent Citations

  • Storage configuration adjustment method, device and system of server, equipment and medium

    CN117472289A

  • Expander interrupt processing

    US20140289437A1

  • Dual-port SCSI sub-system with fail-over capabilities

    US6598106B1