FIELD

Embodiments of the present disclosure relate to the field of fault detection, and more specifically, to a method and device for detecting a data storage system.

BACKGROUND

Along with the development of data storage techniques, storage servers usually need to manage storage systems containing a large amount of disks and the storage servers are often connected with the disks by a bus to transmit information. In the storage architecture with bus interconnections, if an error occurs in a disk, it is usually required to execute a corresponding error response mechanism for the error. Therefore, the task of ensuring that a corresponding response is made in an occurrence of error is worth studying.

SUMMARY

Embodiments of the present disclosure provide method for detecting data storage system, device and data storage system.

In a first aspect of the present disclosure, there is provided a method for detecting a data storage system. The method includes: acquiring, through a first downstream port of a first switch of the data storage system, information indicating an error of a storage device array from a second switch of the data storage system, wherein the first switch and the second switch are connected to the storage device array and the first downstream port is connected to a second downstream port of the second switch; executing, based on the acquired information, actual actions intended for solving the error; and in response to the executed actual actions failing to match with expected actions for the error, issuing an alarm indicating failure of processing the error.

In some embodiments, the acquired information indicating an error of a storage device array is inputted at a second downstream port of the second switch and transmitted to the first switch via the first downstream port.

In some embodiments, the switch is a PCIe (Peripheral Component Interconnect Express) switch.

In a second aspect of the present disclosure, there is provided an electronic device. The electronic device includes a processor and a switch, wherein the processor is configured to execute the method according to the first aspect of the present disclosure.

In a third aspect of the present disclosure, there is provided a data storage system. The data storage system includes: a first switch including a first downstream port; a second switch including a second downstream port connected to the first downstream port; a first processor connected to the first switch via an upstream port of the first switch; a second processor connected to the second switch via an upstream port of the second switch; a storage device array to which both the first switch and the second switch are connected; wherein the first switch is configured to acquire, through the first downstream port, information indicating an error of the storage device array inserted at the second downstream port.

In some embodiments, the first switch is configured to execute the method according to the first aspect of the present disclosure.

In some embodiments, a third downstream port of the first switch is configured to connect a fourth downstream port of the second switch; a first downstream port group of the first switch is configured to send, via an upstream port of the first switch, information from connected storage devices to the first processor; a second downstream port group of the first switch is configured to send, via the third downstream port and the fourth downstream port, information from connected storage devices to the second processor; a third downstream port group of the second switch is configured to send, via an upstream port of the second switch, information from connected storage devices to the second processor; a fourth downstream port group of the second switch is configured to send, via the first downstream port and the second downstream port, information from a connected storage device to the first processor.

In some embodiments, the first switch includes: a first upstream port configured to connect the first downstream port group; and a second upstream port configured to connect, via the first downstream port and the second downstream port, the fourth downstream port group; the second switch includes: a third upstream port configured to connect the third downstream port group; and a fourth upstream port configured to connect, via the third downstream port and the fourth downstream port, the second downstream port group.

In some embodiments, the first downstream port group, the second downstream port group, the third downstream port group and the fourth downstream port group are configured to have the same number of downstream ports.

This Summary is provided to introduce a selection of concepts that are further described below in the Detailed Description in a simplified form. This Summary is not intended to identify key features or essential features of the present disclosure, nor is it intended to be used to limit the scope of the present disclosure.

