CN215181949U - Storage device - Google Patents

Storage device Download PDF

Info

Publication number
CN215181949U
CN215181949U CN202120395399.3U CN202120395399U CN215181949U CN 215181949 U CN215181949 U CN 215181949U CN 202120395399 U CN202120395399 U CN 202120395399U CN 215181949 U CN215181949 U CN 215181949U
Authority
CN
China
Prior art keywords
controller
data
storage
storage device
links
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202120395399.3U
Other languages
Chinese (zh)
Inventor
冯国宝
蔡剑峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202120395399.3U priority Critical patent/CN215181949U/en
Application granted granted Critical
Publication of CN215181949U publication Critical patent/CN215181949U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The application discloses storage device, this storage device includes: a first controller. And the second controller is in communication connection with the first controller through a link aggregation group, and the link aggregation group is formed by aggregating at least two member links. And the storage component is connected with the first controller and the second controller. The first controller and/or the second controller acquire external first data and write the first data into the storage component by using the first controller or the second controller. Or the first controller and/or the second controller reads the second data from the storage component and transmits the second data by using the first controller or the second controller. The reliability of the storage device can be improved.

Description

Storage device
Technical Field
The present application relates to the field of computer storage technologies, and in particular, to a storage device.
Background
With the continuous development of cloud computing technology, people have an increasing demand for data storage, and further requirements on the performance, reliability and the like of storage equipment are provided. The double-control storage system is an effective way for guaranteeing the reliability of data and is a preferred scheme for data storage of medium and small enterprises at present. Firstly, the double-control storage system can process I/O requests from the application server in parallel, once one controller fails or goes offline, the other controller can take over the work of the controller in time, and the existing task of the other controller is not influenced. Secondly, the dual-control storage system can realize the load balancing function of the two storage controllers.
The current design of the dual-control storage system mostly adopts a storage resource monopolizing management mode, namely, the same storage resource is occupied by the same storage controller within a certain time, data read and write of another storage controller need to be forwarded to the storage controller, and the storage controller completes the actual read and write functions. The exclusive management of the storage resources simplifies the read-write flow of the system and does not need to cooperate with the synchronization problem of the two storage controllers.
However, the storage resource monopolizing management mode cannot support a large storage space due to its limitation. First, one memory controller is used for reading and writing, the transmission buses and the computing resources of the two memory controllers cannot be fully utilized, and the performance is greatly limited when the memory controller is expanded to a certain memory space. Secondly, because the management of the storage resources is strong, when one storage controller fails, a complex storage resource switching process is required, and if the tolerance of the application to the data reading and writing time is small, the service interruption phenomenon will occur.
SUMMERY OF THE UTILITY MODEL
The technical problem that this application mainly solved is a storage device, can improve storage device's reliability.
A technical solution adopted by the present application is to provide a storage device, which is characterized in that the storage device includes: a first controller. And the second controller is in communication connection with the first controller through a link aggregation group, and the link aggregation group is formed by aggregating at least two member links. And the storage component is connected with the first controller and the second controller. The first controller or the second controller obtains external first data and writes the first data into the storage component by using the first controller and/or the second controller. Or the first controller and/or the second controller reads the second data from the storage component and transmits the second data by using the first controller or the second controller.
Further, the storage assembly comprises two storage disks, wherein one storage disk is connected with the first controller, and the other storage disk is connected with the second controller.
Further, the first controller or the second controller acquires external first data and writes the first data to the storage component by using the first controller and/or the second controller, including: one of the first controller and the second controller obtains first data and sends the first data in a preset proportion to the other one of the first controller and the second controller through a link aggregation group, wherein one controller writes the first data in the residual proportion into a storage disk connected with one of the controllers, and the other controller writes the first data in the preset proportion into a storage disk connected with the other controller.
The first controller and/or the second controller reads the second data from the storage component and transmits the second data by using the first controller or the second controller, and the method comprises the following steps: one of the first controller and the second controller reads a preset proportion of the second data from a storage disk connected with the one of the first controller and the second controller, and the other of the first controller and the second controller reads the remaining proportion of the second data from a storage disk connected with the other controller, wherein the one controller transmits the preset proportion of the second data to the other controller, and the other controller transmits the second data.
Further, one of the controllers or the other controller adjusts the size of the preset proportion according to the abnormal conditions of at least two member links.
Further, one of the controllers or the other controller decreases the preset ratio when the number of the abnormal links in the at least two member links increases, and increases the preset ratio when the number of the abnormal links in the at least two member links decreases.
Further, when the number of the abnormal links in the at least two member links is K, one of the controllers or the other controller sets the preset ratio to zero, where K is a positive integer.
Further, the storage disk is an SAS hard disk.
Further, the link aggregation group includes at least two different links of a gigabit ethernet link, a 2.5 gigabit ethernet link, a 5 gigabit ethernet link, and a gigabit ethernet link. Or, the link aggregation group includes at least two identical links of a gigabit ethernet link, a 2.5 gigabit ethernet link, a 5 gigabit ethernet link, and a gigabit ethernet link.
Further, one of the first controller and the second controller acquires the first data and writes the first data into the storage component when the other of the first controller and the second controller is in an abnormal operating state. Or reading the second data from the storage component and sending the second data out.
Further, the first controller sends a heartbeat message to the second controller, and if a heartbeat response message returned by the second controller is not received within a predetermined time period, it is determined that the second controller is in an abnormal working state. Or the second controller sends a heartbeat message to the first controller, and if a heartbeat response message returned by the first controller is not received within a preset time period, the first controller is determined to be in an abnormal working state.
The beneficial effect of this application is: in contrast to the prior art, the storage device provided by the present application includes a first controller. And the second controller is in communication connection with the first controller through a link aggregation group, and the link aggregation group is formed by aggregating at least two member links. And the storage component is connected with the first controller and the second controller. The first controller and/or the second controller acquire external first data and write the first data into the storage component by using the first controller or the second controller. Or the first controller and/or the second controller reads the second data from the storage component and transmits the second data by using the first controller or the second controller. Because the link aggregation group is formed by aggregating at least two member links, the fault tolerance of data transmission between the first controller and the second controller can be improved, and the reliability of the storage device is further improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Wherein:
FIG. 1 is a schematic diagram of a structure of an embodiment of a conventional storage device;
FIG. 2 is a schematic structural diagram of another embodiment of a conventional storage device;
FIG. 3 is a schematic structural diagram of a first embodiment of a storage device provided herein;
FIG. 4 is a schematic structural diagram of a second embodiment of a memory device provided in the present application;
fig. 5 is a schematic structural diagram of a third embodiment of the storage device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other manners. For example, the above-described device embodiments are merely illustrative, and for example, the division of the above modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an embodiment of a conventional memory device, and as shown in fig. 1, a memory device 100 includes a first controller 110, a second controller 120 connected to the first controller 110, and a memory element 130.
The storage 130 connects the first controller 110 and the second controller 120.
The first controller 110 and the second controller 120 may be connected via a variety of network single links, such as a gigabit ethernet link, a 2.5 gigabit ethernet link, a 5 gigabit ethernet link, a gigabit ethernet link, etc., or via a PCIE NT network.
In order to improve the reliability of the storage device 100, the storage device 100 is provided with two controllers, namely the first controller 110 and the second controller 120, only one controller occupies the storage resource in the storage element 130 at the same time, and the storage device 100 is controlled to read the storage data from the storage element 130 and send the data to the outside, or obtain the data from the outside and write the data into the storage element 130. The two controllers can monitor the heartbeat of the opposite controller mutually, namely, monitor whether the opposite controller works normally, and if the opposite controller is monitored to be in an abnormal working state, the two controllers are responsible for completing all services of the opposite controller.
Referring to fig. 2, fig. 2 is a schematic structural diagram of another embodiment of a conventional storage device, and as shown in fig. 2, a storage device 200 includes a first controller 210, a second controller 220 connected to the first controller 210, and a storage element 230.
The storage component 230 connects the first controller 210 and the second controller 220. The storage assembly 230 includes a first storage disk 231 and a second storage disk 232, wherein the first storage disk 231 is connected to the first controller 210, and the second storage disk 232 is connected to the second controller 220.
The first controller 210 and the second controller 220 may be connected through various network single links with higher bandwidth, such as 5 gigabit ethernet links, ten gigabit ethernet links, etc., or connected through a PCIE NT network.
The storage device 200 is a dual-control dual-active storage device, that is, in order to accelerate the read-write speed of the storage device 200, fully utilize the overall performance of the dual controllers of the storage device 200, and achieve the purpose of load balancing, the first controller 210 and the second controller 220 may be used to transmit data information in addition to a heartbeat packet for detecting whether the counterpart controller is working normally. That is, one of the first controller 210 and the second controller 220 transmits a portion of data acquired from the outside to the other controller through a network link, the controller receives the portion of data and writes the received data in a storage disk corresponding thereto, and the controller acquiring the external data writes the remaining data in the storage disk connected thereto. Or the first controller 210 and the second controller 220 respectively read certain data from the storage disk connected thereto, that is, the first controller 210 reads certain data from the first storage disk 231, the second controller 220 reads certain data from the first storage disk 232, and one of the first controller 210 and the second controller 220 transfers the read data to the other controller and the controller transmits the read data to the outside.
For example, if the main controller in the storage device 200 is not set as the first controller 210, after the first controller 210 obtains data from the outside, the first controller 210 sends a part of the data to the second controller 220, the first controller 210 writes the remaining part of the data into the first storage disk 231, and the second controller 22 writes the data received from the first controller 210 into the first storage disk 231, that is, the data writing operation is completed. Alternatively, the first controller 210 reads a part of data from the first storage disk 231, the second controller 220 reads a part of data from the second storage disk 232, the second controller 220 sends the read data to the first controller 210, and the first controller 210 sends all the data read from the storage component 230 to the outside, that is, the service of reading data of the storage device 200 is completed.
The inventors of the present application have found that, in the related art, in both the storage device according to the first embodiment and the storage device according to the second embodiment, the first controller and the second controller are connected by a single link connection method, and when the single link fails, the first controller and the second controller cannot communicate with each other, and the reliability of the storage device is not high.
In addition, if the first controller and the second controller are required to be communicatively connected through a high-bandwidth network link in order to implement the dual-active function of the storage device, this approach will undoubtedly increase the manufacturing cost of the storage device.
Based on this, the inventors of the present application provide a storage device capable of improving reliability of the storage device.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a first embodiment of a memory device provided in the present application, and as shown in fig. 3, the memory device 300 includes a first controller 310, a second controller 320, and a memory element 330.
The second controller 320 is communicatively connected to the first controller 310 through a link aggregation group, the link aggregation group is formed by aggregating at least two member links, and the storage component 330 is connected to the first controller 310 and the second controller 320.
A Link Aggregation Group (LAG) refers to a logical Link formed by binding several ethernet links together. In this embodiment, the link aggregation technology is adopted, and the purpose of increasing the link bandwidth can be achieved by binding a plurality of physical interfaces into one logical interface without upgrading hardware. While the purpose of increasing the bandwidth is achieved, the link aggregation calculation adopts a mechanism of backup links, which can effectively improve the reliability of the link between the first controller 310 and the second controller 320.
The link aggregation group comprises at least two different links of a gigabit Ethernet link, a 2.5 gigabit Ethernet link, a 5 gigabit Ethernet link and a gigabit Ethernet link. Or, the link aggregation group includes at least two identical links of a gigabit ethernet link, a 2.5 gigabit ethernet link, a 5 gigabit ethernet link, and a gigabit ethernet link.
The storage device 300 provided in this embodiment is a dual-control storage device, and the first controller 310 or the second controller 320 acquires external first data and writes the first data to the storage component 330 by using the first controller 310 or the second controller 320. Either the first controller 310 or the second controller 320 reads the second data from the storage component 330 and transmits the second data using the first controller 310 or the second controller 320.
That is, in the present embodiment, only one controller is operating at a time, for example, the first controller 310 obtains first data from the outside and writes the first data to the storage component 330, or the second controller 320 obtains first data from the outside and writes the first data to the storage component 330, or the first controller 310 reads second data from the storage component 330 and transmits the second data to the outside, or the second controller 320 reads second data from the storage component 330 and transmits the second data to the outside.
The storage device 300 specifically uses which of the above ways to read and write data depends on which of the first controller 310 and the second controller 320 the main controller of the storage device 300 is at this time. The storage device 300 can only have one controller as a main controller and the other controller as a standby controller at the same time, and the main controller is used for acquiring first data from the outside and sending second data in the storage component 330 to the outside. The first controller 310 and the second controller 320 may both be used as a main controller, and the main controller and the standby controller may be switched to each other when a certain condition is satisfied.
The storage device 300 provided by the present embodiment includes a first controller 310. And a second controller 320, wherein the second controller 320 is in communication connection with the first controller 310 through a link aggregation group, and the link aggregation group is formed by aggregating at least two member links. And a storage component 330 connecting the first controller 310 and the second controller 320. The first controller 310 or the second controller 320 obtains external first data, and writes the first data to the storage component 330 by using the first controller 310 or the second controller 320. Or the first controller 310 and the second controller 320 read the second data from the storage component 330 and transmit the second data using the first controller 310 or the second controller 320, the reliability of the storage device 300 can be improved.
Alternatively, one of the first controller 310 and the second controller 320 acquires the first data from the outside and writes the first data into the storage component 330 when the other of the first controller 310 and the second controller 320 is in an abnormal operation state. Alternatively, the second data is read from the storage component 330 and sent out.
For example, when the first controller 310 is a main controller and the second controller 320 is a standby controller, if it is detected that the first controller 310 is in an abnormal operating state, the second controller 320 switches to the main controller and takes over all services of the storage device 300. That is, the second controller 320 acquires the first data from the outside and writes the first data to the storage component 330, or reads the second data from the storage component 330 and transmits the second data.
The first controller 310 sends a heartbeat message to the second controller 320, and if a heartbeat response message returned by the second controller 320 is not received within a predetermined time period, it is determined that the second controller 320 is in an abnormal working state. Or, the second controller 320 sends a heartbeat message to the first controller 310, and if a heartbeat response message returned by the first controller 310 is not received within a predetermined time period, it is determined that the first controller 310 is in an abnormal working state.
In this embodiment, the number of member links included in the link aggregation group and the specific type of each member link may be set according to a specific application scenario, for example, considering that only a heartbeat packet needs to be transmitted between the first controller 310 and the second controller 320, the link aggregation group may include 4 member links, and each member link is a gigabit ethernet link.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a second embodiment of the memory device provided in the present application, and as shown in fig. 4, the memory device 400 includes a first controller 410, a second controller 420, and a memory element 430.
The second controller 420 is communicatively connected to the first controller 410 through a link aggregation group, the link aggregation group is formed by aggregating at least two member links, and the storage component 430 is connected to the first controller 410 and the second controller 420.
The storage assembly 430 may include two storage disks, one of which is coupled to the first controller 410 and the other of which is coupled to the second controller 420. The two storage disks included in the storage assembly 430 in this embodiment may be a first storage disk 431 and a second storage disk 432, respectively, wherein the first storage disk 431 is connected to the first controller 410, and the second storage disk 432 is connected to the second controller 420.
In this embodiment, the first controller 410 or the second controller 420 acquires external first data, and writes the first data to the storage component 430 using the first controller 410 and the second controller 420. Or the first controller 410 and the second controller 420 read the second data from the storage component 430 and transmit the second data using the first controller 410 or the second controller 420.
Specifically, in the storage device 400 of this embodiment, after one of the first controller 410 and the second controller 420 acquires external first data, the first data in the preset proportion is sent to the other one of the first controller 410 and the second controller 420 through the link aggregation group, the controller that acquires the first data writes the first data in the remaining proportion into the storage disk connected to the other one of the first controller 410 and the second controller 420, and the other one of the first controller and the second controller writes the received first data in the preset proportion into the storage disk connected to the other one of the first controller 410 and the second controller to complete the data storage service.
In this embodiment, the controller that acquires the external first data is the primary controller, that is, the primary controller transmits a part of the first data to the standby controller through the link aggregation group after acquiring the external first data. The main controller writes the remaining part of the first data to the disk connected thereto, and the standby controller writes a part of the received first data to the disk connected thereto.
One of the first controller 410 and the second controller 420 reads a preset proportion of the second data from a storage disk connected to the controller, and the other of the first controller 410 and the second controller 420 reads a remaining proportion of the second data from a storage disk connected to the controller, acquires the preset proportion of the second data, transmits the preset proportion of the second data to the controller acquiring the remaining data, and transmits the second data to the controller acquiring the remaining data.
That is, when the second data needs to be read from the storage module 430, if the second data is stored in two different storage disks, a controller connected to each storage disk is used to read all the portions of the storage disks belonging to the second data, and only the main controller can send the data to the outside, so that the standby controller needs to send the read portions of the second data to the main controller, and the main controller sends the second data to the outside completely.
For example, it is not assumed that the first controller 410 is a main controller and the second controller 420 is a standby controller, when the first controller 410 acquires the first data from the outside, the first controller 410 may transmit a preset proportion of the first data to the second controller 420 through the link aggregation group and write the remaining part of the first data to the first storage disk 431, and the second controller 420 receives the preset proportion of the first data and writes it to the second storage disk 432. When the second data needs to be read from the storage component 430, the second controller 420 reads a preset proportion of the second data from the second storage disk 432, the first controller 410 reads the remaining proportion of the second data from the first storage disk 431, the second controller 420 sends the preset proportion of the second data to the first controller 410 through the link aggregation group, and the first controller 410 sends the second data to the outside.
By the method, the reading and writing speed of the storage device 400 can be increased, the overall performance of the dual controllers of the storage device 400 can be fully exerted, and the purpose of load balancing is achieved.
It is understood that the present embodiment may determine the number of member links included in the link aggregation group and the specific type of each member link according to the actual application scenario. For example, in the case that the data to be transmitted between the first controller 410 and the second controller 420 in the storage device 400 is constant, the number of member links in the link aggregation group may be increased, or the member links may be set to ethernet links with a higher bandwidth. It should be noted that, in order to ensure the reliability of data transmission between the first controller 410 and the second controller 420, it is necessary to ensure that the number of member links is greater than or equal to 2.
Optionally, in this embodiment, considering that a plurality of member links in the link aggregation group may be abnormal, and the abnormal member link may not be able to transmit data, because the bandwidth of the link aggregation group after aggregation of the plurality of member links is the sum of the bandwidths of each independent member link, if one or more member links are abnormal, the bandwidth of the entire link aggregation group is finally affected, and thus the data transmission performance is affected.
Therefore, the present embodiment may adjust the size of the preset ratio according to the abnormal condition of at least two member links in the link aggregation group. Specifically, one of the first controller 410 and the second controller 420 adjusts the size of the preset ratio, depending on whether the main controller of the memory device 400 of the present embodiment at a certain time is the first controller 410 or the second controller 420.
Specifically, when the number of abnormal member links in the link aggregation group increases, one of the first controller 410 and the second controller 420 decreases by a preset ratio, and when the number of abnormal links in at least two member links decreases, the preset ratio is increased.
In this embodiment, the adjustment of the preset ratio may be the first data of the preset ratio or the second data of the preset ratio.
For example, it is not assumed that the first controller 410 is a master controller, the second controller 420 is a standby controller, the storage assembly 430 includes two storage disks, namely a first storage disk 431 and a second storage disk 432, the first storage disk 431 is connected to the first controller 410, the second storage disk 432 is connected to the second controller 420, and the link aggregation group includes 4 member links, where the 4 member links are gigabit ethernet links.
At a certain time, when it is detected that no abnormality occurs in any of the 4 member links, the first controller 410 allocates 50% of the first data to the second controller 420 after acquiring the first data from the outside, the first controller 410 writes the remaining proportion of the first data, that is, 50% of the first data, to the first storage disk 431, and the second controller 420 writes the received 50% of the first data to the second storage disk 432. Or, the first controller 410 reads 50% of the second data from the first storage disk 431, the second controller 420 reads 50% of the second data from the second storage disk 432 and transmits the 50% of the second data to the first controller 410 through the link aggregation group, and the first controller 410 transmits the second data to the outside. When 1 member link of the 4 member links is detected to be abnormal, the first controller 410 allocates 30% of the first data to the second controller 420 after acquiring the first data from the outside, and when 2 member links of the 4 member links are detected to be abnormal, the first controller 410 allocates 10% of the first data to the second controller 420 after acquiring the first data from the outside. It should be noted that, the setting of the preset ratio in this example is only an exemplary representation, and the size of the preset ratio can be adjusted according to actual situations.
In this embodiment, when the number of links in which an abnormality occurs in a member link of the link aggregation group is detected to be K, the preset ratio is adjusted to be zero, where K is a positive integer. In fact, when the number of abnormal links of the member links of the link aggregation group is too large to send data information between the first controller 410 and the second controller 420, in order to ensure that the first controller 410 and the second controller 420 maintain the function of monitoring heartbeat mutually, and further ensure that the storage device 400 can realize the function of dual control, the preset ratio is adjusted to zero at this time. That is, at this time, one of the first controller 410 and the second controller 420 acquires first data from the outside and writes the first data to the storage component 430, or one of the first controller 410 and the second controller 420 reads second data from the storage component 430 and transmits the second data to the outside. The link aggregation group between the first controller 410 and the second controller 420 can only send heartbeat messages, and thus, mutually monitor heartbeats of the other party.
In this way, data transmission between the first controller 410 and the second controller 420 can be flexibly adjusted according to the communication quality of the member links in the link aggregation group between the first controller 410 and the second controller 420.
The storage device 400 provided by the present embodiment includes a first controller 410. And the second controller 420, the second controller 420 and the first controller 410 are in communication connection through a link aggregation group, and the link aggregation group is formed by aggregating at least two member links. And a storage component 430 connected to the first controller 410 and the second controller 420.
The first controller 410 or the second controller 420 obtains external first data, and writes the first data to the storage component 430 by using the first controller 410 and the second controller 420. Or the first controller 410 and the second controller 420 read the second data from the storage component 430 and transmit the second data using the first controller 410 or the second controller 420. The read-write speed of the storage device 400 can be increased, the overall performance of the dual controllers of the storage device 400 can be fully exerted, and the purpose of load balancing is achieved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a third embodiment of the memory device provided in the present application, and as shown in fig. 5, the memory device 500 includes a first controller 510, a second controller 520, and a memory element 530.
The second controller 520 is communicatively coupled to the first controller 510 via a link aggregation group, the link aggregation group is formed by aggregating at least two member links, and the storage component 530 is coupled to the first controller 510 and the second controller 520.
The storage component 530 may include two storage disks to which the first controller 510 and the second controller 520 are respectively connected. The two storage disks included in the storage component 530 in this embodiment may be a first storage disk 531 and a second storage disk 532, respectively, wherein the first controller 510 is connected to the first storage disk 531 and the second storage disk 532, and the second controller 520 is connected to the first storage disk 531 and the second storage disk 532.
In the present embodiment, the first controller 510 or the second controller 520 acquires external first data and writes the first data to the storage element 530 using the first controller 510 and the second controller 520. Or the first controller 510 and the second controller 520 read the second data from the storage component 530 and transmit the second data using the first controller 510 or the second controller 520.
One of the first controller 510 and the second controller 520 reads the second data of the preset proportion from the storage disk connected with the controller, and the other of the first controller 510 and the second controller 520 reads the second data of the remaining proportion from the storage disk connected with the controller, and the controller obtains the second data of the preset proportion, and sends the second data of the preset proportion to the controller obtaining the remaining data, and the controller obtaining the remaining data sends the second data.
In this embodiment, the first controller 510 sends a heartbeat message to the second controller 520, and if a heartbeat response message returned by the second controller 520 is not received within a predetermined time period, it is determined that the second controller 520 is in an abnormal working state. In this case, the first controller 510 takes over the second disk 532, writes the first data acquired from the outside to the first disk 531 and the second disk 532, or acquires the second data from the first disk 531 and the second disk 532 and transmits the data to the outside.
Or, the second controller 520 sends a heartbeat message to the first controller 510, and if a heartbeat response message returned by the first controller 510 is not received within a predetermined time period, it is determined that the first controller 510 is in an abnormal working state. In this case, the second controller 520 takes over the first disk 531, writes the first data acquired from the outside to the first disk 531 and the second disk 532, or acquires the second data from the first disk 531 and the second disk 532 and transmits the data to the outside.
Optionally, in this embodiment, the first storage disk 531 and the second storage disk 532 are both SAS storage disks, and the SAS storage disks can provide a connection between the first controller 510 and the second controller 520.
In the storage device 500 provided in this embodiment, the first controller 510 and the second controller 520 are respectively connected to the first storage disk 531 and the second storage disk 532, so that when one of the first controller 510 and the second controller 520 fails, the other controller can take over the whole storage component 530, and thus data reading and writing are realized.
In summary, the storage device provided in the present application includes a first controller. And the second controller is in communication connection with the first controller through a link aggregation group, and the link aggregation group is formed by aggregating at least two member links. And the storage component is connected with the first controller and the second controller. The first controller and/or the second controller acquire external first data and write the first data into the storage component by using the first controller or the second controller. Or the first controller and/or the second controller reads the second data from the storage component and transmits the second data by using the first controller or the second controller. Because the link aggregation group is formed by aggregating at least two member links, the fault tolerance of data transmission between the first controller and the second controller can be improved, and the reliability of the storage device is further improved.
The above embodiments are merely examples and are not intended to limit the scope of the present disclosure, and all modifications, equivalents, and flow charts using the contents of the specification and drawings of the present disclosure or those directly or indirectly applied to other related technical fields are intended to be included in the scope of the present disclosure.

Claims (10)

1. A storage device, the storage device comprising:
a first controller;
the second controller is in communication connection with the first controller through a link aggregation group, and the link aggregation group is formed by aggregating at least two member links;
a storage component connecting the first controller and the second controller;
the first controller or the second controller acquires external first data and writes the first data into the storage component by using the first controller and/or the second controller; or
And the first controller and/or the second controller reads second data from the storage component and sends the second data out by utilizing the first controller or the second controller.
2. The storage device of claim 1,
the storage assembly comprises two storage disks, wherein one storage disk is connected with the first controller, and the other storage disk is connected with the second controller.
3. The storage device of claim 2,
the first controller or the second controller acquires external first data and writes the first data to the storage component by using the first controller and/or the second controller, including:
one of the first controller and the second controller obtains the first data and sends a preset proportion of the first data to the other one of the first controller and the second controller through the link aggregation group, wherein the one controller writes the remaining proportion of the first data into a storage disk connected with the one controller, and the other controller writes the preset proportion of the first data into a storage disk connected with the other controller;
the first controller and/or the second controller reads second data from the storage component and transmits the second data by using the first controller or the second controller, and the method comprises the following steps:
one of the first controller and the second controller reads a preset proportion of the second data from a storage disk connected to the one controller, and the other of the first controller and the second controller reads a remaining proportion of the second data from a storage disk connected to the other controller, the one controller transmitting the preset proportion of the second data to the other controller, and the other controller transmitting the second data.
4. The storage device of claim 3,
and the one controller or the other controller adjusts the size of the preset proportion according to the abnormal conditions of the at least two member links.
5. The storage device of claim 4,
and the one controller or the other controller reduces the preset proportion when the number of the abnormal links in the at least two member links is increased, and increases the preset proportion when the number of the abnormal links in the at least two member links is reduced.
6. The storage device of claim 3,
and when the number of the abnormal links in the at least two member links is K, the preset proportion is set to be zero, and K is a positive integer.
7. The storage device of claim 2,
the storage disk is an SAS hard disk.
8. The storage device of claim 1,
the link aggregation group comprises at least two different links of a gigabit Ethernet link, a 2.5 gigabit Ethernet link, a 5 gigabit Ethernet link and a gigabit Ethernet link; or the like, or, alternatively,
the link aggregation group comprises at least two identical links of a gigabit Ethernet link, a 2.5 gigabit Ethernet link, a 5 gigabit Ethernet link and a gigabit Ethernet link.
9. The storage device of claim 1,
one of the first controller and the second controller acquires the first data and writes the first data into the storage component when the other of the first controller and the second controller is in an abnormal working state; or reading the second data from the storage component and sending the second data out.
10. The storage device of claim 9,
the first controller sends a heartbeat message to the second controller, and if a heartbeat response message returned by the second controller is not received within a preset time period, the second controller is determined to be in an abnormal working state; alternatively, the first and second electrodes may be,
and the second controller sends a heartbeat message to the first controller, and if a heartbeat response message returned by the first controller is not received within a preset time period, the first controller is determined to be in an abnormal working state.
CN202120395399.3U 2021-02-22 2021-02-22 Storage device Active CN215181949U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202120395399.3U CN215181949U (en) 2021-02-22 2021-02-22 Storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202120395399.3U CN215181949U (en) 2021-02-22 2021-02-22 Storage device

Publications (1)

Publication Number Publication Date
CN215181949U true CN215181949U (en) 2021-12-14

Family

ID=79411628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202120395399.3U Active CN215181949U (en) 2021-02-22 2021-02-22 Storage device

Country Status (1)

Country Link
CN (1) CN215181949U (en)

Similar Documents

Publication Publication Date Title
CN101557379B (en) Link reconfiguration method for PCIE interface and device thereof
WO2016062037A1 (en) Method, apparatus and system for information transmission and controller fault handling through interface cards
JP2004530972A (en) Twin-connection failover for file servers that maintain full performance in the presence of failures
CN105159851A (en) Multi-controller storage system
CN103533081A (en) Cloud-computing-based billing system and implementation method thereof
CN114265753A (en) Management method and management system of message queue and electronic equipment
CN113867226A (en) Industrial control system-oriented redundant data acquisition system
WO2021012169A1 (en) Method of improving reliability of storage system, and related apparatus
CN109684257B (en) Remote memory expansion management system
CN111045602A (en) Cluster system control method and cluster system
CN105005515B (en) A kind of LAN free standby systems
CN111104263A (en) Blade reinforcement server system and server based on VPX framework
CN215181949U (en) Storage device
US11874786B2 (en) Automatic switching system and method for front end processor
CN110675614A (en) Transmission method of power monitoring data
CN114553900B (en) Distributed block storage management system, method and electronic equipment
JP6134720B2 (en) Connection method
CN112948300B (en) Server, integrated storage and calculation device, and server system
CN116225986A (en) Storage system, data processing method and device
CN113742142B (en) Method for managing SATA hard disk by storage system and storage system
CN108762672B (en) Distributed storage device, method and cascade module
CN113609036A (en) Hard disk backboard based on U.3 interface
CN112650168A (en) Distributed control system and method for dynamically scheduling resources thereof
CN112003683B (en) Reliability control method and system based on unidirectional optical transmission
CN116661688B (en) Service response method and device of SAS storage system

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant