Data processing method and device, equipment and medium

By issuing discovery instructions and obtaining chassis status information in high-density storage devices, and determining data refresh strategies, the problem of data accuracy in SAS Expander link failure is solved, ensuring the stability and reliability of the system, and reducing error propagation is reduced risk.

CN119166557APending Publication Date: 2024-12-20INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411281705.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

In the SAS Expander network layout, when the link between two SAS Expanders fails, the accuracy and consistency of the data cannot be guaranteed, resulting in nodes being unable to obtain the latest or accurate information to update their local data.

Method used

In high-density storage devices, when the component state changes, a discovery instruction is issued to the backbone SAS extender to obtain the chassis status information, and determine the data refresh policy based on the extender status information to ensure that the corresponding data is executed in the event of a link failure Refresh the policy to avoid transferring inaccurate or corrupt data.

Benefits of technology

Effectively maintain data accuracy, ensure system stability and reliability, reduce the risk of error propagation, and help administrators quickly identify and resolve network connectivity problems through alarm reporting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119166557A_ABST
    Figure CN119166557A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device, equipment and a medium, and relates to the technical field of storage. The method is applied to a high-density storage device, and comprises the following steps: when the component state of the high-density storage device changes, issuing a discovery instruction to a trunk SAS expander under a current networking structure, so that the trunk SAS expander returns currently cached case state information according to the discovery instruction; determining expander state information between every two expanders in the case according to the case state information, and determining a data refreshing strategy corresponding to the expanders according to the expander state information; and based on the expander state information and the data refreshing strategy, carrying out alarm reporting through a chassis and carrying out data refreshing on the data of the expander. Through the technical scheme of the invention, the accuracy of data can be effectively maintained when a link fault occurs between any two expanders.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of storage technology, and in particular to a data processing method, device, equipment and medium. Background Art

[0002] High-density storage refers to a data storage method that provides the maximum capacity in the smallest physical space within a limited space. High-density storage devices have been applied to various industries. In order to achieve the disk array management of the system, such storage devices often require multiple SAS Expanders to work together. SAS Expander is a device used in SAS (Serial Attached SCSI) storage systems to expand one SAS port into multiple SAS ports, thereby increasing the connection capacity of the storage system. In the SAS Expander network layout, whenever the link between two SAS Expanders fails, the firmware on the SAS Expander will detect this situation and communicate this information to the EN (Enclosure) through the status page. The P2P (peer to peer) link is a key part of the SAS Expander network layout to ensure data consistency and accuracy between nodes. When this link is interrupted, the node may not be able to obtain the latest or accurate information to update its local data. However, for EN, under the current design, it may not be clear which data should be avoided in such an enclosure configuration. Therefore, the data accuracy cannot be guaranteed when a link failure occurs between SAS Expanders. Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve at present. Summary of the invention

[0003] In view of this, the purpose of the present invention is to provide a data processing method, device, equipment and medium, which can effectively maintain the accuracy of data when a link failure occurs between any two expanders. The specific scheme is as follows:

[0004] In a first aspect, the present application discloses a data processing method, which is applied to a high-density storage device whose storage density meets a preset high-density determination condition, comprising:

[0005] When the component status of the high-density storage device changes, a discovery instruction is sent to the trunk SAS expander under the current networking structure, so that the trunk SAS expander returns the currently cached chassis status information according to the discovery instruction;

[0006] Determine the expander status information between every two expanders in the chassis according to the chassis status information, and determine the data refresh strategy corresponding to the expander according to the expander status information; wherein the expander includes the trunk SAS expander and the leaf SAS expander; the expander status information includes the connection status information between the expanders in the horizontal direction and the vertical direction, and the link status information used to characterize whether a link failure occurs between the expanders; the data refresh strategy includes a first data refresh strategy when the link is normal, a second data refresh strategy when a point-to-point link abnormality occurs in the trunk SAS expander, and a third data refresh strategy when a link abnormality occurs between the trunk SAS expander and the leaf SAS expander;

[0007] Based on the expander status information and the data refresh strategy, an alarm is reported through the chassis and the data of the expander is refreshed.

[0008] Optionally, when the component status of the high-density storage device changes, before issuing a discovery instruction to the backbone SAS expander under the current networking structure, the method further includes:

[0009] After the high-density storage device is powered on, the storage management software of the high-density storage device and the firmware functions on each of the expanders are detected. When the storage management software and the firmware functions are running normally, the step of sending a discovery instruction to the backbone SAS expander under the current networking structure when the component status of the high-density storage device changes is triggered.

[0010] Optionally, determining the expander status information between every two expanders in the chassis according to the chassis status information includes:

[0011] Determine the connection status information between every two expanders in the chassis according to the chassis status information; the connection status information includes first connection status information for characterizing whether a connection has been successfully established and initialized between point-to-point expanders in a horizontal direction, and second connection status information for characterizing whether a connection has been successfully established and initialized between the trunk SAS expander and the leaf SAS expander in a vertical direction;

[0012] Determine link status information between every two expanders in the chassis according to the chassis status information; the link status information includes first link status information for characterizing whether a link failure occurs between point-to-point expanders in a horizontal direction, and second link status information for characterizing whether a link failure occurs between the trunk SAS expander and the leaf SAS expander in a vertical direction;

[0013] Accordingly, based on the expander status information, an alarm is reported through the chassis, including:

[0014] When the corresponding mark status in the first link status information and / or the second link status information is a true value, it is determined that a link failure occurs in the current networking structure, and the link failure is reported as an alarm through the chassis.

[0015] Optionally, when the data refresh strategy is the first data refresh strategy, refreshing the data of the expander through the chassis based on the data refresh strategy includes:

[0016] Refreshing data of the point-to-point trunk SAS expanders in the horizontal direction, and refreshing data of the point-to-point leaf SAS expanders in the horizontal direction;

[0017] The data in the trunk SAS expander is used to refresh the data of the leaf SAS expander in the vertical direction.

[0018] Optionally, the refreshing of the data of the leaf SAS expander in the vertical direction by using the data in the trunk SAS expander includes:

[0019] Determine a target trunk SAS expander, and use the data in the target trunk SAS expander to refresh the data of the target leaf SAS expander managed by the target trunk SAS expander in the vertical direction;

[0020] Detecting whether a point-to-point link abnormality occurs in the target leaf SAS expander in the horizontal direction;

[0021] If the target leaf SAS expander does not have a point-to-point link abnormality in the horizontal direction, the data in the target trunk SAS expander is used to refresh the data of the opposite leaf SAS expander; the opposite leaf SAS expander is a leaf SAS expander that is point-to-point with the target leaf SAS expander in the horizontal direction;

[0022] If the target leaf SAS expander has a point-to-point link abnormality in the horizontal direction, the data in the opposite trunk SAS expander is used to refresh the data of the opposite leaf SAS expander; the opposite trunk SAS expander is a trunk SAS expander that is point-to-point with the target trunk SAS expander in the horizontal direction.

[0023] Optionally, when the data refresh strategy is the second data refresh strategy, refreshing the data of the expander through the chassis based on the data refresh strategy includes:

[0024] Determine the first trunk SAS expander that detects a point-to-point link anomaly;

[0025] Stop refreshing the data of the second trunk SAS expander synchronized with the first trunk SAS expander; the second trunk SAS expander is a trunk SAS expander that is point-to-point with the first trunk SAS expander in the horizontal direction;

[0026] The data of the first trunk SAS expander is refreshed according to the byte value used to characterize the data source which is pre-marked by the controller corresponding to the trunk SAS expander, and the data of the second trunk SAS expander is refreshed according to the chassis status information of the chassis uploaded by the second trunk SAS expander.

[0027] Optionally, when the data refresh strategy is the third data refresh strategy, refreshing the data of the expander through the chassis based on the data refresh strategy includes:

[0028] Determine a first link corresponding to when a link abnormality occurs between the trunk SAS expander and the leaf SAS expander, and stop refreshing data uploaded by a third trunk SAS expander in the first link;

[0029] Acquire data uploaded by a fourth trunk SAS expander in a second link except the first link, and determine whether a link abnormality occurs in the second link;

[0030] If the second link does not have a link abnormality, based on the tray position corresponding to the leaf SAS expander in the second link, using the data of the fourth trunk SAS expander to refresh the data of the leaf SAS expander in the tray;

[0031] If a link abnormality occurs in the second link, the data of the leaf SAS expander in the tray will not be refreshed, and an alarm will be reported through the chassis.

[0032] In a second aspect, the present application discloses a data processing device, which is applied to a high-density storage device whose storage density meets a preset high-density determination condition, comprising:

[0033] An instruction issuing module, used for issuing a discovery instruction to a trunk SAS expander under the current networking structure when the component status of the high-density storage device changes, so that the trunk SAS expander returns the currently cached chassis status information according to the discovery instruction;

[0034] An information acquisition module, used for determining the expander status information between every two expanders in the chassis according to the chassis status information, and determining the data refresh strategy corresponding to the expander according to the expander status information; wherein the expander includes the trunk SAS expander and the leaf SAS expander; the expander status information includes the connection status information between the expanders in the horizontal direction and the vertical direction, and the link status information used to characterize whether a link failure occurs between the expanders; the data refresh strategy includes a first data refresh strategy when the link is normal, a second data refresh strategy when the trunk SAS expander has a point-to-point link abnormality, and a third data refresh strategy when a link abnormality occurs between the trunk SAS expander and the leaf SAS expander;

[0035] The data processing module is used to report an alarm through the chassis and refresh the data of the expander based on the expander status information and the data refresh strategy.

[0036] In a third aspect, the present application discloses an electronic device, comprising a processor and a memory; wherein the memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the data processing method as described above.

[0037] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein the computer program implements the data processing method as described above when executed by a processor.

[0038] The present application provides a data processing method, which is applied to a high-density storage device whose storage density meets a preset high-density judgment condition, comprising: when the component state of the high-density storage device changes, sending a discovery instruction to a trunk SAS expander under the current networking structure, so that the trunk SAS expander returns the currently cached chassis state information according to the discovery instruction; determining the expander state information between every two expanders in the chassis according to the chassis state information, and determining the data refresh strategy corresponding to the expander according to the expander state information; wherein the expander includes the trunk SAS expander and the leaf SAS expander; the expander state information includes the connection state information between the expanders in the horizontal direction and the vertical direction, and the link state information used to characterize whether a link failure occurs between the expanders; the data refresh strategy includes a first data refresh strategy when the link is normal, a second data refresh strategy when the trunk SAS expander has a point-to-point link abnormality, and a third data refresh strategy when the link between the trunk SAS expander and the leaf SAS expander has a link abnormality; based on the expander state information and the data refresh strategy, an alarm is reported through the chassis and the data of the expander is refreshed.

[0039] The beneficial technical effect of the present application is: when the component state of the high-density storage device changes, by issuing a discovery instruction to the main SAS expander under the current networking structure, the expander state information between every two expanders in the chassis is determined according to the chassis state information replied by the main SAS expander. The expander state information can determine the link state between the expanders, and then the chassis executes the corresponding data refresh strategy for the expander according to the link state. When a link failure occurs between any two expanders, the relevant data of the expander connected to the failure and the data that may come from unreliable elements will not be uploaded, effectively maintaining the accuracy of the data. Such a design ensures the stability and reliability of the system, and reduces the risk of error propagation by avoiding the transmission of data that may be inaccurate or damaged. At the same time, the chassis can also report an alarm based on the expander state information, reminding users to troubleshoot in time, helping system administrators to quickly identify and solve connection problems in the network, and ensuring the stability of storage.

[0040] In addition, the present application provides a data processing device, equipment and storage medium, which correspond to the above-mentioned data processing method and have the same effect as above. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] 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 described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0042] Figure 1 A schematic diagram of a "cross" layout of a SAS expander provided as an example in this application;

[0043] Figure 2 A schematic diagram of data synchronization and information transmission during an extended period provided as an example for this application;

[0044] Figure 3 A flow chart of a data processing method disclosed in this application;

[0045] Figure 4 A schematic diagram of the structure of a data processing device disclosed in this application;

[0046] Figure 5 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

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

[0048] In today's society, a huge amount of data is generated every day in production and life. Some of this data is very important, such as financial data, experimental data, etc. These data are all high-value data. In order to save these high-value data, professional storage devices are needed. Professional storage devices must not only have extremely high performance, rich functionality, and good usability, but also have extreme reliability.

[0049] High-density storage refers to a data storage method that provides the maximum capacity in a limited space with the smallest physical space. Its main advantages are: saving space, reducing costs, improving performance, and ensuring data security. High-density storage devices have been applied to various industries. In order to realize the disk array management of the system, such storage devices often require multiple SAS Expanders to cooperate with each other. Multiple SAS Expanders can be linked into a network through links such as SAS, UART (Universal Asynchronous Receiver / Transmitter), and I2C (Inter-Integrated Circuit). SAS Expanders can exchange information through these links to achieve complex functions. Under the current design, for the SAS Expander networking layout, if a link failure occurs between SAS Expanders, the chassis may not know which data should be avoided in such a chassis configuration, and the data accuracy cannot be guaranteed when a link failure occurs between SAS Expanders.

[0050] To this end, the present application provides a data processing solution that can effectively maintain data accuracy when a link failure occurs between any two expanders.

[0051] First, the technical implementation presented in the course of describing the present embodiment is applicable to the following explanation.

[0052] like Figure 1As shown, networking is required to realize information exchange between SAS Expanders. There is a "cross" layout of SAS Expander, in which SAS Expander is divided into two types: Trunk SAS Expander and Leaf SAS Expander. Leaf SAS Expander belongs to Trunk SAS Expander. The two horizontal trunk expanders are located in two controllers; the leaf expander is located in the tray. In this networking, the horizontal direction mainly synchronizes data between the two SAS Expanders to form redundant data and improve storage reliability; in the vertical direction, all leaf expanders need to transmit the collected data to the trunk expander.

[0053] Now combined Figure 2 Explain the horizontal data synchronization and vertical information transmission:

[0054] Horizontal direction: There are two SAS Expanders in the horizontal direction. These two SAS Expanders can be of Trunk type or Leaf type. The two SAS Expanders in the horizontal direction need to synchronize exclusive information, such as the SAS Expander's own operating status, the sensor points exclusively owned by the controller where the SAS Expander is located, and the SAS Expander firmware version number. This information can only be accessed by the SAS Expander itself. In this architecture, in order to achieve data redundancy, the two P2P SAS Expanders need to communicate and save the data sent by the other end after getting the data to form redundant data. Trunk or Leaf type SAS Expanders can also access the public information of storage devices. The public information accessible by Trunk SAS Expander includes public sensors, PSU (Power Supply Unit), backplane and other public devices; the public devices accessible by Leaf SAS Expander include: tray positioning lights, hard disk related status, etc. This information does not need to be synchronized between the two horizontal SAS Expanders.

[0055] Vertical direction: The vertical direction is mainly the information communication between Trunk SAS Expander and Leaf SASExpander. Trunk SAS Expander can manage Leaf SAS Expander, and Leaf SASExpander needs to pass the collected information to Trunk SAS Expander. Trunk SAS Expander summarizes the information and then passes it to CPU (Central Processing Unit) for processing.

[0056] Whenever the link between two SAS Expanders fails, the firmware on the SAS Expander detects this condition and communicates this information to the EN via the status page.

[0057] In the event of a P2P communication failure, the data collected by a node from a non-local controller and its temperature sensor will become unreliable. This is because the P2P link is a key part of ensuring data consistency and accuracy between nodes. When this link is interrupted, the node may not be able to obtain the latest or accurate information to update its local data.

[0058] In the high-density storage device design of the present application, a network structure including two trunk SAS Expanders and multiple leaf SAS Expanders is used for illustration, wherein P2P links are established between the trunk SAS Expanders and between the leaf SAS Expanders on each side and their corresponding partner leaf SAS Expanders.

[0059] The embodiment of the present invention discloses a data processing method, see Figure 3 As shown, the method is applied to a high-density storage device whose storage density meets a preset high-density determination condition, and includes:

[0060] Step S11: when the component status of the high-density storage device changes, a discovery instruction is sent to the backbone SAS expander in the current networking structure, so that the backbone SAS expander returns the currently cached chassis status information according to the discovery instruction.

[0061] In the embodiment of the present application, it is applied to a high-density storage device whose storage density meets a preset high-density determination condition to realize large-capacity data storage in a limited space.

[0062] It should be noted that after the high-density storage device is powered on and runs normally, the storage management software and the firmware functions on each expander included therein are tested. When the storage management software is started and runs normally, and the firmware functions on each expander run normally, including the periodic inspection function and the information collection function, it is determined whether the component status of the high-density storage device has changed.

[0063] In the embodiment of the present application, when the status of a component of a high-density storage device changes, the SAS Expander will report a broadcast event to the EN. After receiving the broadcast event, the EN will issue a discover command to two Trunk SAS Expanders at the same time based on the current networking structure. After receiving the command, the Trunk SAS Expander needs to return the currently cached chassis status information to the EN. The returned chassis status information records the status information between every two Expanders in the chassis.

[0064] Step S12: Determine the expander status information between every two expanders in the chassis according to the chassis status information, and determine the data refresh strategy corresponding to the expander according to the expander status information.

[0065] In the embodiment of the present application, the expander includes a trunk SAS expander and a leaf SAS expander under the current networking structure. Since the present invention takes a storage device with two controllers as an example, the expander status information between each two expanders can be the expander status information between two Trunk SAS Expanders, the expander status information between a Leaf SAS Expander and its corresponding partner Leaf SAS Expander in the same tray, the expander status information between a Trunk SAS Expander on each side and the Leaf SAS Expander it manages, etc.

[0066] In an embodiment of the present application, the expander status information includes connection status information between the expanders in the horizontal and vertical directions, and link status information used to characterize whether a link failure occurs between the expanders; the data refresh strategy includes a first data refresh strategy when the link is normal, a second data refresh strategy when a point-to-point link abnormality occurs in the trunk SAS expander, and a third data refresh strategy when a link abnormality occurs between the trunk SAS expander and the leaf SAS expander.

[0067] It is understandable that, according to the link status information in the expander status information, the fault type of the current link fault can be determined, and then the corresponding data refresh strategy can be determined according to the scenario corresponding to the current fault type.

[0068] It should be pointed out that the EN and SAS Expander can interact using the SES (SCSI Enclosure Services, a standard for chassis management) protocol. At this time, it is necessary to mark which Trunk SASExpander provides data to the EN. In a feasible implementation, two bytes can be used to represent the two controllers respectively. For example: when the value of the two bytes is 10, it means that the data is provided by Trunk SAS Expander0 to EN; when the value of the two bytes is 01, it means that the data is provided by Trunk SAS Expander1 to EN. This mark can be used to prevent data overwriting in subsequent process execution.

[0069] Step S13: Based on the expander status information and the data refresh strategy, an alarm is reported through the chassis and the data of the expander is refreshed.

[0070] In the embodiment of the present application, EN will refresh the data after receiving the reply from the Trunk SAS Expander. When uploading data, if there is any point-to-point connection failure, the data from the opposite direction and the data that may come from the unreliable element will not be uploaded. Similarly, if there is a failure of the vertical element (i.e., trunk to leaf or leaf to trunk), the data related to the leaf on the faulty connection and that may come from the unreliable source will not be uploaded. The specific content will be described in detail in the following invention embodiments, and will not be repeated here.

[0071] It should be added that when any link abnormality is detected based on the expander status information, EN also has an alarm reporting mechanism to remind users to troubleshoot in time and ensure storage stability.

[0072] The present application provides a data processing method, which is applied to a high-density storage device whose storage density meets a preset high-density judgment condition, comprising: when the component state of the high-density storage device changes, sending a discovery instruction to a trunk SAS expander under the current networking structure, so that the trunk SAS expander returns the currently cached chassis state information according to the discovery instruction; determining the expander state information between every two expanders in the chassis according to the chassis state information, and determining the data refresh strategy corresponding to the expander according to the expander state information; wherein the expander includes the trunk SAS expander and the leaf SAS expander; the expander state information includes the connection state information between the expanders in the horizontal direction and the vertical direction, and the link state information used to characterize whether a link failure occurs between the expanders; the data refresh strategy includes a first data refresh strategy when the link is normal, a second data refresh strategy when the trunk SAS expander has a point-to-point link abnormality, and a third data refresh strategy when the link between the trunk SAS expander and the leaf SAS expander has a link abnormality; based on the expander state information and the data refresh strategy, an alarm is reported through the chassis and the data of the expander is refreshed.

[0073] The beneficial technical effect of the present application is: when the component state of the high-density storage device changes, by issuing a discovery instruction to the main SAS expander under the current networking structure, the expander state information between every two expanders in the chassis is determined according to the chassis state information replied by the main SAS expander. The expander state information can determine the link state between the expanders, and then the chassis executes the corresponding data refresh strategy for the expander according to the link state. When a link failure occurs between any two expanders, the relevant data of the expander connected to the failure and the data that may come from unreliable elements will not be uploaded, effectively maintaining the accuracy of the data. Such a design ensures the stability and reliability of the system, and reduces the risk of error propagation by avoiding the transmission of data that may be inaccurate or damaged. At the same time, the chassis can also report an alarm based on the expander state information, reminding users to troubleshoot in time, helping system administrators to quickly identify and solve connection problems in the network, and ensuring the stability of storage.

[0074] The following is a detailed description of a second embodiment of a data processing method provided by the present invention. The second embodiment is implemented based on the above embodiment and is expanded to a certain extent on the basis of the above embodiment. Specifically, the expander status information between every two expanders in the chassis is determined according to the chassis status information, including:

[0075] Determine connection status information between every two extenders in the chassis according to the chassis status information;

[0076] The link status information between every two extenders in the chassis is determined according to the chassis status information.

[0077] In the embodiment of the present application, the expander status information is recorded in the SAS Expander, which stores four Boolean value information about the connection status information and link status information between SAS Expanders.

[0078] In a first specific implementation, the connection status information includes first connection status information for characterizing whether a connection has been successfully established and initialized between point-to-point expanders in a horizontal direction, and second connection status information for characterizing whether a connection has been successfully established and initialized between the trunk SAS expander and the leaf SAS expander in a vertical direction.

[0079] For example:Horizontal (point-to-point, P2P) Initialized: This indicates that the point-to-point SAS Expander connection has been successfully established and initialized. This state is meaningful for all SAS Expanders.Vertical (trunk to leaf) Initialized: This indicates that the connection from the trunk to the leaf (or from the leaf to the trunk, depending on the specific implementation) has been successfully established and initialized. This state is meaningful only for the leaf SAS Expander because it involves the connection between the trunk and the leaf.

[0080] In a second specific implementation, the link status information includes first link status information for characterizing whether a link failure occurs between point-to-point expanders in a horizontal direction, and second link status information for characterizing whether a link failure occurs between the trunk SAS expander and the leaf SAS expander in a vertical direction.

[0081] For example, horizontally, if the point-to-point SAS Expander connection fails, this state will be marked as true. This state is meaningful for all SAS Expanders. Vertically, if the trunk-to-leaf connection (or leaf-to-trunk, depending on how it is defined) fails, this state will be marked as true. This state is also only meaningful for leaf SAS Expanders.

[0082] During data upload, if there is any point-to-point connection failure, data from the opposite direction and possibly from unreliable elements will not be uploaded. Similarly, if there is a failure of the vertical element (i.e., backbone to leaf or leaf to backbone), data related to the leaf on the failed connection and possibly from unreliable sources will not be uploaded.

[0083] It can be seen that such a design ensures the stability and reliability of the system, reduces the risk of error propagation by avoiding the transmission of potentially inaccurate or corrupted data. At the same time, it also helps system administrators quickly identify and resolve connection problems in the network.

[0084] With respect to step S13 of the aforementioned embodiment, in a first feasible implementation manner, when the data refresh strategy is the first data refresh strategy, based on the data refresh strategy, the process of refreshing the data of the expander through the chassis may include the following steps:

[0085] Refreshing data of the point-to-point trunk SAS expanders in the horizontal direction, and refreshing data of the point-to-point leaf SAS expanders in the horizontal direction;

[0086] The data in the trunk SAS expander is used to refresh the data of the leaf SAS expander in the vertical direction.

[0087] In the embodiment of the present application, when the P2P and Vertical links between SAS Expanders are normal, the corresponding data refresh strategy is the first data refresh strategy. At this time, EN believes that the data from the two controllers are credible, and both the exclusive data of each expander and the shared data of the expander can be refreshed.

[0088] In a possible implementation, when Trunk-to-Leaf is normal, the common information of the tray collected by Leaf SASExpander is refreshed normally. It should be noted that a high-density expansion cabinet generally has multiple trays stacked, each tray has two Leaf SAS Expanders, and the tray is mainly used to carry hard disks. When Trunk-to-Leaf is normal, the information of the status of the two Leaf SAS Expanders on the tray also needs to be refreshed.

[0089] Specifically, the method of refreshing the data of the leaf SAS expander in the vertical direction by using the data in the trunk SAS expander comprises the following steps:

[0090] Determine a target trunk SAS expander, and use the data in the target trunk SAS expander to refresh the data of the target leaf SAS expander managed by the target trunk SAS expander in the vertical direction;

[0091] Detecting whether a point-to-point link abnormality occurs in the target leaf SAS expander in the horizontal direction;

[0092] If the target leaf SAS expander does not have a point-to-point link abnormality in the horizontal direction, the data in the target trunk SAS expander is used to refresh the data of the opposite leaf SAS expander; the opposite leaf SAS expander is a leaf SAS expander that is point-to-point with the target leaf SAS expander in the horizontal direction;

[0093] If the target leaf SAS expander has a point-to-point link abnormality in the horizontal direction, the data in the opposite trunk SAS expander is used to refresh the data of the opposite leaf SAS expander; the opposite trunk SAS expander is a trunk SAS expander that is point-to-point with the target trunk SAS expander in the horizontal direction.

[0094] The above steps are explained below with specific examples:

[0095] Assume that when the data comes from Trunk SAS Expander1, since Trunk-to-Leaf is normal, the status data of Leaf SAS Expander1 managed by TrunkSAS Expander1 must be credible, so it can be refreshed directly. However, when the data comes from Trunk SAS Expander1, the status data of Leaf SAS Expander2 may not be credible, so it is necessary to check the p2p link status between Leaf SAS Expander1 and Leaf SAS Expander2. If the p2p link status between the two is normal, the status data of Leaf SAS Expander2 is credible and can be refreshed; if the p2p link status between the two is abnormal, the status data of Leaf SAS Expander2 is untrustworthy and cannot be refreshed. The status data of Leaf SASExpander2 can only be refreshed when the data uploaded by Trunk SAS Expander2 arrives.

[0096] In a second feasible implementation manner, when the data refresh strategy is the second data refresh strategy, based on the data refresh strategy, the process of refreshing the data of the expander through the chassis may include the following steps:

[0097] Determine the first trunk SAS expander that detects a point-to-point link anomaly;

[0098] Stop refreshing the data of the second trunk SAS expander synchronized with the first trunk SAS expander; the second trunk SAS expander is a trunk SAS expander that is point-to-point with the first trunk SAS expander in the horizontal direction;

[0099] The data of the first trunk SAS expander is refreshed according to the byte value used to characterize the data source which is pre-marked by the controller corresponding to the trunk SAS expander, and the data of the second trunk SAS expander is refreshed according to the chassis status information of the chassis uploaded by the second trunk SAS expander.

[0100] In the embodiment of the present application, when the Trunk SAS Expander P2P link is abnormal, the corresponding data refresh strategy is the second data refresh strategy. The above steps are described below with reference to specific examples:

[0101] Take Trunk SAS Expander 1 detecting a P2P link anomaly as an example. At this time, the exclusive information of the controller information class monitored by Trunk SAS Expander 1 is only the data collected by the local Trunk SAS Expander 1. The data synchronized by the other end Trunk SAS Expander 2 cannot be determined to be usable due to the link failure, so all the information synchronized by Trunk SAS Expander 2 is no longer refreshed.

[0102] According to the contents disclosed in the above embodiments, since the Trunk SAS Expander that provides data to EN is marked, that is, the data source has been marked in advance. Therefore, although the data uploaded by Trunk SAS Expander 1 contains exclusive information of controller 1 and controller 2, only the information of controller 1 needs to be refreshed at this time. For the data of controller 2, since the discover command is sent to two Trunk SAS Expanders, Trunk SAS Expander 2 will also upload a copy of the data to EN, and the data of controller 2 can be refreshed at this time.

[0103] It is worth noting that during the labeling process, the data source may fail to be labeled. In this case, all controller information does not need to be refreshed, and EN can maintain the cached information status.

[0104] It should be pointed out that each Drawer SAS Expander in the tray needs to have a small database to store information collected periodically from the tray, such as the port status of the tray, the LED status of the tray, the temperature of the tray, the LED status of the tray itself, etc. The above information has one thing in common, that is, both Drawer SASExpanders in the same tray can access this information. On the contrary, some information can only be accessed by the Drawer SAS Expander itself, such as: each Drawer SAS Expander's own information, such as: operating status, firmware version number, etc. Therefore, a portion of space must be reserved in the database of each SAS Expander to store the exclusive data of the opposite SAS Expander.

[0105] Furthermore, the tray information is refreshed. It should be noted that the failure of the Trunk SAS Expander does not affect the refresh of the tray data. Since there is also a P2P synchronization link between the Leaf SAS Expanders, a single Trunk SAS Expander can also obtain complete tray information.

[0106] In a third feasible implementation manner, when the data refresh strategy is the third data refresh strategy, based on the data refresh strategy, the process of refreshing the data of the expander through the chassis may include the following steps:

[0107] Determine a first link corresponding to when a link abnormality occurs between the trunk SAS expander and the leaf SAS expander, and stop refreshing data uploaded by a third trunk SAS expander in the first link;

[0108] Acquire data uploaded by a fourth trunk SAS expander in a second link except the first link, and determine whether a link abnormality occurs in the second link;

[0109] If the second link does not have a link abnormality, based on the tray position corresponding to the leaf SAS expander in the second link, using the data of the fourth trunk SAS expander to refresh the data of the leaf SAS expander in the tray;

[0110] If a link abnormality occurs in the second link, the data of the leaf SAS expander in the tray will not be refreshed, and an alarm will be reported through the chassis.

[0111] In the embodiment of the present application, when Trunk-to-Leaf is abnormal, the corresponding data refresh strategy is the third data refresh strategy, in which the tray data is not refreshed. The above steps are explained below with reference to specific examples:

[0112] For example, when the link between Trunk SAS Expander1 and Leaf SAS Expander1 is abnormal, the pallet data uploaded by Trunk SAS Expander1 is no longer reliable. Therefore, you can wait for the data uploaded by Trunk SAS Expander2. If the link between Trunk SAS Expander2 and Leaf SAS Expander2 is normal, the data is reliable and the pallet information is refreshed; if the link between Trunk SAS Expander2 and Leaf SAS Expander2 is also abnormal, the pallet information cached by EN is maintained unchanged, and a link abnormality alarm is reported to the customer.

[0113] It can be seen that the three data refresh strategies corresponding to the above feasible implementation methods ensure the integrity and accuracy of the data when the link between SASExpanders is abnormal.

[0114] It should be added that when any of the above situations detects link anomalies, EN also needs to have an alarm reporting mechanism to remind users to troubleshoot in a timely manner and ensure storage stability. In a feasible implementation, based on the alarm reporting mechanism, a corresponding log file can be generated, and the information related to the fault can be determined by analyzing the content of the log file. It is also possible to set a related feature database for keywords in the log file and perform keyword searches to help users troubleshoot.

[0115] Accordingly, the present application also discloses a data processing device, see Figure 4 As shown, the device is applied to a high-density storage device where the storage density meets a preset high-density determination condition, and the device comprises:

[0116] The instruction issuing module 11 is used for issuing a discovery instruction to the trunk SAS expander under the current networking structure when the component status of the high-density storage device changes, so that the trunk SAS expander returns the currently cached chassis status information according to the discovery instruction;

[0117] An information acquisition module 12 is used to determine the expander status information between every two expanders in the chassis according to the chassis status information, and determine the data refresh strategy corresponding to the expander according to the expander status information; wherein the expander includes the trunk SAS expander and the leaf SAS expander; the expander status information includes the connection status information between the expanders in the horizontal direction and the vertical direction, and the link status information used to characterize whether a link failure occurs between the expanders; the data refresh strategy includes a first data refresh strategy when the link is normal, a second data refresh strategy when the trunk SAS expander has a point-to-point link abnormality, and a third data refresh strategy when a link abnormality occurs between the trunk SAS expander and the leaf SAS expander;

[0118] The data processing module 13 is used to report an alarm through the chassis and refresh the data of the expander based on the expander status information and the data refresh strategy.

[0119] Among them, for more specific working processes of the above-mentioned modules, please refer to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.

[0120] It can be seen that, through the above scheme of this embodiment, a high-density storage device whose storage density meets the preset high-density judgment condition is applied, including: when the component status of the high-density storage device changes, a discovery instruction is sent to the trunk SAS expander under the current networking structure, so that the trunk SAS expander returns the currently cached chassis status information according to the discovery instruction; the expander status information between every two expanders in the chassis is determined according to the chassis status information, and the data refresh strategy corresponding to the expander is determined according to the expander status information; wherein the expander includes the trunk SAS expander and the leaf SAS expander; the expander status information includes the connection status information between the expanders in the horizontal direction and the vertical direction, and the link status information used to characterize whether a link failure occurs between the expanders; the data refresh strategy includes a first data refresh strategy when the link is normal, a second data refresh strategy when the trunk SAS expander has a point-to-point link abnormality, and a third data refresh strategy when the link between the trunk SAS expander and the leaf SAS expander has a link abnormality; based on the expander status information and the data refresh strategy, an alarm is reported through the chassis and the data of the expander is refreshed.

[0121] The beneficial technical effect of the present application is: when the component state of the high-density storage device changes, by issuing a discovery instruction to the main SAS expander under the current networking structure, the expander state information between every two expanders in the chassis is determined according to the chassis state information replied by the main SAS expander. The expander state information can determine the link state between the expanders, and then the chassis executes the corresponding data refresh strategy for the expander according to the link state. When a link failure occurs between any two expanders, the relevant data of the expander connected to the failure and the data that may come from unreliable elements will not be uploaded, effectively maintaining the accuracy of the data. Such a design ensures the stability and reliability of the system, and reduces the risk of error propagation by avoiding the transmission of data that may be inaccurate or damaged. At the same time, the chassis can also report an alarm based on the expander state information, reminding users to troubleshoot in time, helping system administrators to quickly identify and solve connection problems in the network, and ensuring the stability of storage.

[0122] In a specific implementation, the data processing device further includes:

[0123] The detection module is used to detect the storage management software of the high-density storage device and the firmware functions on each of the expanders after the high-density storage device is powered on and started. When the storage management software and the firmware functions are running normally, the step of sending a discovery instruction to the main SAS expander under the current networking structure when the component status of the high-density storage device changes is triggered.

[0124] In a specific implementation, the information acquisition module 12 includes:

[0125] A connection status information determination unit, configured to determine the connection status information between every two expanders in the chassis according to the chassis status information; the connection status information includes first connection status information for indicating whether a connection has been successfully established and initialized between point-to-point expanders in a horizontal direction, and second connection status information for indicating whether a connection has been successfully established and initialized between the trunk SAS expander and the leaf SAS expander in a vertical direction;

[0126] A link status information determination unit, configured to determine link status information between every two expanders in the chassis according to the chassis status information; the link status information includes first link status information for characterizing whether a link failure occurs between point-to-point expanders in a horizontal direction, and second link status information for characterizing whether a link failure occurs between the trunk SAS expander and the leaf SAS expander in a vertical direction;

[0127] Accordingly, the data processing module 13 is specifically used for:

[0128] When the corresponding mark status in the first link status information and / or the second link status information is a true value, it is determined that a link failure occurs in the current networking structure, and the link failure is reported as an alarm through the chassis.

[0129] In a specific implementation, when the data refresh strategy is the first data refresh strategy, the data processing module 13 includes: a first data processing unit, specifically configured to:

[0130] Refreshing data of the point-to-point trunk SAS expanders in the horizontal direction, and refreshing data of the point-to-point leaf SAS expanders in the horizontal direction;

[0131] The data in the trunk SAS expander is used to refresh the data of the leaf SAS expander in the vertical direction.

[0132] In a specific implementation, the first data processing unit includes: a vertical data refresh unit, specifically configured to:

[0133] Determine a target trunk SAS expander, and use the data in the target trunk SAS expander to refresh the data of the target leaf SAS expander managed by the target trunk SAS expander in the vertical direction;

[0134] Detecting whether a point-to-point link abnormality occurs in the target leaf SAS expander in the horizontal direction;

[0135] If the target leaf SAS expander does not have a point-to-point link abnormality in the horizontal direction, the data in the target trunk SAS expander is used to refresh the data of the opposite leaf SAS expander; the opposite leaf SAS expander is a leaf SAS expander that is point-to-point with the target leaf SAS expander in the horizontal direction;

[0136] If the target leaf SAS expander has a point-to-point link abnormality in the horizontal direction, the data in the opposite trunk SAS expander is used to refresh the data of the opposite leaf SAS expander; the opposite trunk SAS expander is a trunk SAS expander that is point-to-point with the target trunk SAS expander in the horizontal direction.

[0137] In a specific implementation, when the data refresh strategy is the second data refresh strategy, the data processing module 13 includes: a second data processing unit, specifically configured to:

[0138] Determine the first trunk SAS expander that detects a point-to-point link anomaly;

[0139] Stop refreshing the data of the second trunk SAS expander synchronized with the first trunk SAS expander; the second trunk SAS expander is a trunk SAS expander that is point-to-point with the first trunk SAS expander in the horizontal direction;

[0140] The data of the first trunk SAS expander is refreshed according to the byte value used to characterize the data source which is pre-marked by the controller corresponding to the trunk SAS expander, and the data of the second trunk SAS expander is refreshed according to the chassis status information of the chassis uploaded by the second trunk SAS expander.

[0141] In a specific implementation, when the data refresh strategy is the third data refresh strategy, the data processing module 13 includes: a third data processing unit, specifically configured to:

[0142] Determine a first link corresponding to when a link abnormality occurs between the trunk SAS expander and the leaf SAS expander, and stop refreshing data uploaded by a third trunk SAS expander in the first link;

[0143] Acquire data uploaded by a fourth trunk SAS expander in a second link except the first link, and determine whether a link abnormality occurs in the second link;

[0144] If the second link does not have a link abnormality, based on the tray position corresponding to the leaf SAS expander in the second link, using the data of the fourth trunk SAS expander to refresh the data of the leaf SAS expander in the tray;

[0145] If a link abnormality occurs in the second link, the data of the leaf SAS expander in the tray will not be refreshed, and an alarm will be reported through the chassis.

[0146] Furthermore, the present application also discloses an electronic device. Figure 5 This is a structural diagram of an electronic device 20 according to an exemplary embodiment, and the content in the diagram cannot be considered as any limitation on the scope of use of the present application.

[0147] Figure 5 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the data processing method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be a server.

[0148] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0149] In addition, the memory 22 as a carrier for resource storage may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon may include an operating system 221, a computer program 222 and data 223, etc. The data 223 may include various data. The storage method may be temporary storage or permanent storage.

[0150] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, and may be Windows Server, Netware, Unix, Linux, etc. In addition to computer programs that can be used to complete the data processing method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 may further include computer programs that can be used to complete other specific tasks.

[0151] Furthermore, the embodiment of the present application also discloses a computer-readable storage medium, wherein the computer-readable storage medium mentioned here includes a random access memory (Random Access Memory, RAM), a memory, a read-only memory (Read-Only Memory, ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a magnetic disk or an optical disk, or any other form of storage medium known in the technical field. Wherein, the computer program implements the aforementioned data processing method when executed by the processor. For the specific steps of the method, reference can be made to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.

[0152] Furthermore, an embodiment of the present application also provides a computer program product, including a computer program / instruction, which implements any implementation method of the above-mentioned data processing method when executed by a processor.

[0153] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0154] The steps of the data processing method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0155] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0156] The data processing method, device, equipment and medium provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A data processing method, It is characterized in that Applicable to high-density storage devices whose storage density meets the preset high-density judgment conditions, including: When the component status of the high-density storage device changes, a discovery instruction is sent to the trunk SAS expander under the current networking structure, so that the trunk SAS expander returns the currently cached chassis status information according to the discovery instruction; Determine the expander status information between every two expanders in the chassis according to the chassis status information, and determine the data refresh strategy corresponding to the expander according to the expander status information; wherein the expander includes the trunk SAS expander and the leaf SAS expander; the expander status information includes the connection status information between the expanders in the horizontal direction and the vertical direction, and the link status information used to characterize whether a link failure occurs between the expanders; the data refresh strategy includes a first data refresh strategy when the link is normal, a second data refresh strategy when a point-to-point link abnormality occurs in the trunk SAS expander, and a third data refresh strategy when a link abnormality occurs between the trunk SAS expander and the leaf SAS expander; Based on the expander status information and the data refresh strategy, an alarm is reported through the chassis and the data of the expander is refreshed.

2. The data processing method according to claim 1, It is characterized in that When the component status of the high-density storage device changes, before sending a discovery instruction to the main SAS expander under the current networking structure, the method further includes: After the high-density storage device is powered on, the storage management software of the high-density storage device and the firmware functions on each of the expanders are detected. When the storage management software and the firmware functions are running normally, the step of sending a discovery instruction to the backbone SAS expander under the current networking structure when the component status of the high-density storage device changes is triggered.

3. The data processing method according to claim 1, It is characterized in that The step of determining the expander status information between every two expanders in the chassis according to the chassis status information includes: Determine the connection status information between every two expanders in the chassis according to the chassis status information; the connection status information includes first connection status information for characterizing whether a connection has been successfully established and initialized between point-to-point expanders in a horizontal direction, and second connection status information for characterizing whether a connection has been successfully established and initialized between the trunk SAS expander and the leaf SAS expander in a vertical direction; Determine link status information between every two expanders in the chassis according to the chassis status information; the link status information includes first link status information for characterizing whether a link failure occurs between point-to-point expanders in a horizontal direction, and second link status information for characterizing whether a link failure occurs between the trunk SAS expander and the leaf SAS expander in a vertical direction; Accordingly, based on the expander status information, an alarm is reported through the chassis, including: When the corresponding mark status in the first link status information and / or the second link status information is a true value, it is determined that a link failure occurs in the current networking structure, and the link failure is reported as an alarm through the chassis.

4. The data processing method according to claim 1, It is characterized in that When the data refresh strategy is the first data refresh strategy, refreshing the data of the expander through the chassis based on the data refresh strategy includes: Refreshing data of the point-to-point trunk SAS expanders in the horizontal direction, and refreshing data of the point-to-point leaf SAS expanders in the horizontal direction; The data in the trunk SAS expander is used to refresh the data of the leaf SAS expander in the vertical direction.

5. The data processing method according to claim 4, It is characterized in that The method of refreshing the data of the leaf SAS expander in the vertical direction by using the data in the trunk SAS expander comprises: Determine a target trunk SAS expander, and use the data in the target trunk SAS expander to refresh the data of the target leaf SAS expander managed by the target trunk SAS expander in the vertical direction; Detecting whether a point-to-point link abnormality occurs in the target leaf SAS expander in the horizontal direction; If the target leaf SAS expander does not have a point-to-point link abnormality in the horizontal direction, the data in the target trunk SAS expander is used to refresh the data of the opposite leaf SAS expander; the opposite leaf SAS expander is a leaf SAS expander that is point-to-point with the target leaf SAS expander in the horizontal direction; If the target leaf SAS expander has a point-to-point link abnormality in the horizontal direction, the data in the opposite trunk SAS expander is used to refresh the data of the opposite leaf SAS expander; the opposite trunk SAS expander is a trunk SAS expander that is point-to-point with the target trunk SAS expander in the horizontal direction.

6. The data processing method according to claim 1, It is characterized in that When the data refresh strategy is the second data refresh strategy, refreshing the data of the expander through the chassis based on the data refresh strategy includes: Determine the first trunk SAS expander that detects a point-to-point link anomaly; Stop refreshing the data of the second trunk SAS expander synchronized with the first trunk SAS expander; the second trunk SAS expander is a trunk SAS expander that is point-to-point with the first trunk SAS expander in the horizontal direction; The data of the first trunk SAS expander is refreshed according to the byte value used to characterize the data source which is pre-marked by the controller corresponding to the trunk SAS expander, and the data of the second trunk SAS expander is refreshed according to the chassis status information of the chassis uploaded by the second trunk SAS expander.

7. The data processing method according to any one of claims 1 to 6, It is characterized in that When the data refresh strategy is the third data refresh strategy, based on the data refresh strategy, refreshing the data of the expander through the chassis includes: Determine a first link corresponding to when a link abnormality occurs between the trunk SAS expander and the leaf SAS expander, and stop refreshing data uploaded by a third trunk SAS expander in the first link; Acquire data uploaded by a fourth trunk SAS expander in a second link except the first link, and determine whether a link abnormality occurs in the second link; If the second link does not have a link abnormality, based on the tray position corresponding to the leaf SAS expander in the second link, using the data of the fourth trunk SAS expander to refresh the data of the leaf SAS expander in the tray; If a link abnormality occurs in the second link, the data of the leaf SAS expander in the tray will not be refreshed, and an alarm will be reported through the chassis.

8. A data processing device, It is characterized in that Applicable to high-density storage devices whose storage density meets the preset high-density judgment conditions, including: An instruction issuing module, used for issuing a discovery instruction to a trunk SAS expander under the current networking structure when the component status of the high-density storage device changes, so that the trunk SAS expander returns the currently cached chassis status information according to the discovery instruction; An information acquisition module, used for determining the expander status information between every two expanders in the chassis according to the chassis status information, and determining the data refresh strategy corresponding to the expander according to the expander status information; wherein the expander includes the trunk SAS expander and the leaf SAS expander; the expander status information includes the connection status information between the expanders in the horizontal direction and the vertical direction, and the link status information used to characterize whether a link failure occurs between the expanders; the data refresh strategy includes a first data refresh strategy when the link is normal, a second data refresh strategy when the trunk SAS expander has a point-to-point link abnormality, and a third data refresh strategy when a link abnormality occurs between the trunk SAS expander and the leaf SAS expander; The data processing module is used to report an alarm through the chassis and refresh the data of the expander based on the expander status information and the data refresh strategy.

9. An electronic device, It is characterized in that The electronic device comprises a processor and a memory; wherein the memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the data processing method according to any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that Used to store a computer program; wherein when the computer program is executed by a processor, the data processing method according to any one of claims 1 to 7 is implemented.