STORAGE SYSTEM AND METHOD FOR SWITCHING OPERATION MODE OF STORAGE SYSTEM - Patent application
The storage system allows flexible switching between centralized and distributed architectures by removably connecting control devices and drives, enhancing flexibility, reducing costs, and improving reliability and signal transmission rates.
Patent Information
- Application Number
- JP2023036383
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-03-09
- Publication Date
- 2024-10-23
- Estimated Expiration
- 2038-06-27
AI Technical Summary
Existing storage architectures are inflexible and costly, requiring the purchase of new drive controllers and drives to switch between centralized and distributed storage architectures, lacking the ability to removably connect components for flexible deployment.
A storage system with removably connected control devices and drives that support multiple operating modes, allowing seamless switching between centralized and distributed architectures without replacing hardware, using connectors that overcome relative shifts and reduce impedance mismatches.
Enhances flexibility and reduces costs by enabling mode switching within the storage system without hardware changes, improving reliability and signal transmission rates while increasing storage density.
Smart Images

Figure 0007572483000001 
Figure 0007572483000002 
Figure 0007572483000003
Abstract
Description
[Technical field]
[0001] The present application relates to the field of storage technology, and in particular to a storage system and a method for switching an operating mode of a storage system. [Background technology]
[0002] With the development of technologies such as big data analysis and the Internet of Things, data has become a core element in promoting the evolution of related technologies, so ensuring the reliability of data storage has become more important.
[0003] A data storage system includes a drive controller and a drive. The storage architecture of a storage system is classified into a centralized storage architecture and a distributed storage architecture based on the manner in which the drive controller accesses the drive. In the prior art, both the centralized storage architecture and the distributed storage architecture are unique designs. Specifically, regardless of the storage architecture of the two storage architectures, the drive controller and the drive are fixedly connected and cannot be separated. When one storage architecture needs to be switched to the other storage architecture, for example, when the centralized storage architecture should be switched to the distributed storage architecture, the whole storage architecture needs to be purchased. Specifically, the drive controller and the corresponding drive of the integrated distributed storage architecture need to be purchased. Obviously, the cost is relatively high. It can be seen that the storage architecture of the prior art is not flexible and is inconvenient for flexible deployment. Summary of the Invention
[0004] SUMMARY OF THE DISCLOSURE The embodiments of the present application provide a storage system and a method for switching the working mode of the storage system to improve the flexibility of the storage architecture.
[0005] According to a first aspect, an embodiment of the present application provides a storage system, the storage system including: M control devices, N first connectors, N second connectors, and K drives, where M, N, and K are positive integers; the N first connectors are configured to removably connect to the M control devices, and the N second connectors are configured to removably connect to or fixedly connect to the K drives, each of the K drives configured to store data; Each of the M control devices communicates with the K drives by using all of the N first connectors and all of the N second connectors, or each of the M control devices communicates with the K drives by using some of the N first connectors and some of the N second connectors; Each of the M control devices supports a first operating mode and a second operating mode, each of the K drives supports the first operating mode and the second operating mode, and when the M control devices switch from the first operating mode to the second operating mode, the K drives are controlled to switch from the first operating mode to the second operating mode, and when the first operating mode is a mode of operating in a centralized storage architecture, the second operating mode is a mode of operating in a distributed storage architecture, or when the first operating mode is a mode of operating in a distributed storage architecture, the second operating mode is a mode of operating in a centralized storage architecture.
[0006] In the above technical solution, the control device can be removably connected to the first connector, and the drive can be removably or fixedly connected to the second connector, so that users can flexibly configure the connection relationship between the drive and the control device based on the requirements of use to configure different storage architectures. In addition, since both the control device and the drive support two working modes, when the storage architecture needs to be changed, only the working modes of the control device and the drive need to be switched, or only the drive needs to be replaced, and a new control device and a new drive do not need to be purchased. This improves the flexibility of the storage system and reduces the cost of switching the storage architecture.
[0007] In one possible design, each of the M control devices is connected to all or some of the N first connectors, or each of the M control devices includes all or some of the N first connectors.
[0008] In the above technical solution, the control device can be connected to the first connector in multiple ways. For example, the control device can be electrically connected to the first connector. Alternatively, the control device can include the first connector. For example, the first connector is disposed on the control device. The flexibility of the storage system can be improved.
[0009] In one possible design, one of the K drives has X second connectors, and each of the M control devices is removably connected to one second connector of each of the K drives by using all or some of the N first connectors, one first connector is connected to one second connector, and the first connectors connected to the X second connectors are connected to different control devices, or the first connectors connected to the X second connectors are included in different control devices, where X is a positive integer and X is less than or equal to M.
[0010] In the above technical solution, each drive may include multiple second connectors, and the multiple second connectors of the drive are connected to different control devices by using multiple first connectors. In this way, when all the multiple second connectors included in the drive are in a communication-enabled state, all the different control devices connected to the multiple second connectors of the drive may access the drive, constituting a centralized storage architecture. When only one of the multiple second connectors included in the drive is in a communication-enabled state, only one of the different control devices connected to the multiple second connectors of the drive may access the drive, constituting a distributed storage architecture based on usage requirements. The state of the second connector of the drive is flexibly set to configure different storage architectures.
[0011] In one possible design, one first connector and one second connector are corresponding perpendicular orthogonal connectors, or one first connector and one second connector are corresponding connectors with a preset rotation angle.
[0012] In the above technical solution, the first connector and the second connector can be used to overcome the relative shift between the control device and the drive in the directions of the X-axis, Y-axis, and Z-axis of the spatial coordinate system. Thus, multiple control devices can be reliably connected to multiple drives, and the backplane of the prior art can be eliminated, reducing the design complexity of the storage system, reducing the probability that the entire storage system cannot be used due to a defect in the backplane, and thereby improving the reliability of the storage system.
[0013] Furthermore, the backplane of the prior art is eliminated, and by doing so, the impedance mismatch points between the control device and the drive in the communication process can be reduced. Specifically, the impedance mismatch between the control device and the backplane, and the impedance mismatch between the backplane and the drive are reduced. This can improve the signal transmission rate.
[0014] Furthermore, the backplane of the prior art is eliminated, thereby reducing airflow defect points in the storage system and improving the heat dissipation performance of the storage system. Thus, in a given space of the storage system, more devices can be allowed in the storage system due to the given heat dissipation performance of the storage system, and the density of the storage system can be improved.
[0015] In one possible design, one of the M control devices is configured to obtain information about each of the K drives, then determine operating modes of the K drives based on the information about each of the K drives, and supply power to the K first connectors when it determines that the operating modes of the K drives are compatible with a current operating mode of the control device.
[0016] In the above technical solution, the control device supplies power to the drive only when it determines that the working mode of the drive is compatible with the working mode of the control device, in this way the electric energy of the storage system can be used appropriately.
[0017] In one possible design, the control device is further configured to stop supplying power to the K first connectors when, after determining operating modes of the K drives based on the information for each of the K drives, it determines that the operating modes of the K drives are incompatible with a current operating mode of the control device.
[0018] In one possible design, the control device is configured to obtain a status of each of the K drives, and when it determines that S drives of the K drives are in a disconnected or defective state, to stop supplying power to S first connectors connected to the S drives.
[0019] In the above technical solution, the control device may first determine the working state of the drive connected to the control device, and when it determines that the working state of the drive is in a disconnected state or a defective state, the control device will not supply power to the drive. In this way, the electric energy of the storage system can be properly used, and the drive in a defective state will not dissipate heat, thereby reducing the heat dissipation of the storage system.
[0020] In one possible design, one of the K drives includes a high-speed signal interface and a low-speed signal interface, the high-speed signal interface configured to send service data to the control device by using the X second connectors and a first connector connected to the X second connectors, and the low-speed signal interface configured to receive a first command input from the X second connectors and used to obtain information about the drive.
[0021] In the above technical solutions, the drive may communicate with the control device through different interfaces, so that the drive manages the signals sent by the control device.
[0022] In one possible design, each of the K drives further includes an internal drive control module, for each of the K drives, the low speed signal interface is further configured to receive a second command sent by a first control device among the control devices corresponding to a first connector connected to the X second connectors and used to command the drive receiving the second command to change an operating mode to a mode operating in the distributed storage architecture, the internal drive control module is configured to control P second connectors among the X second connectors to be in a communication outage state after the second command is received through the low speed signal interface, one second connector being in a communication outage state means that the drive is controlled to stop communicating with the control device corresponding to the first connector connected to the second connector by using the second connector, P is a positive integer, and a difference between X and P is 1.
[0023] In the above technical solution, the drive may control the second connector of the drive to be in a communication stop state based on an instruction sent by the control device, so that the working mode of the drive is switched to a mode in the distributed storage architecture, and the working mode of the storage system can be switched without changing the hardware structure and connection relationship, and the step of switching the working mode of the storage system can be simplified.
[0024] In one possible design, each of the K drives further includes an internal drive control module, for each of the K drives, the low speed signal interface is further configured to receive a third command sent by a first one of the control devices corresponding to a first connector connected to the X second connectors and used to command the drive receiving the third command to change an operating mode to a mode operating in the converged storage architecture, and the internal drive control module is configured to control the drive to resume communicating with the control devices corresponding to the L first connectors connected to the L second connectors by using the L second connectors when the P second connectors of the X second connectors are in a communication outage state after the third command is received through the low speed signal interface, where L is a positive integer and L is less than or equal to P.
[0025] According to a second aspect, the present application provides a method for switching an operation mode of a storage system, the method including the steps of: when M control devices in the storage system operate in a first operation mode and the M control devices support a second operation mode, at least one of the M control devices transmits a first command to each of K drives in the storage system, the first command being used to command the drive receiving the first command to operate in the second operation mode, whereby each of the K drives receiving the first command controls P second connectors of the X second connectors to be in a state adapted to the second operation mode according to the first command, and when the first operation mode is a mode of operating in a centralized storage architecture, the second operation mode is a mode of operating in a distributed storage architecture, or when the first operation mode is a mode of operating in a distributed storage architecture, the second operation mode is a mode of operating in a centralized storage architecture. Each of the M control devices communicates with the K drives by using all of the N first connectors and all of the N second connectors, or each of the M control devices communicates with the K drives by using some of the N first connectors and some of the N second connectors, the N first connectors are configured to removably connect to the M control devices, and the N second connectors are configured to removably connect to the K drives or configured to permanently connect to the K drives, and each of the K drives is configured to store data. M, N, K, X, and P are positive integers, and the difference between X and P is 1.
[0026] In the above technical solution, when the storage system needs to switch the working mode, the working mode of the control device is switched, and the control device sends a working mode switching command to the drive, so as to switch the working mode of the storage system without changing the hardware structure and connection relationship. The step of switching the working mode of the storage system can be simplified.
[0027] In one possible design, the controlling, when the second operating mode is a mode of operating in a distributed storage architecture, controlling one of the P second connectors to be in a state accommodating the second operating mode includes controlling the drive to stop communicating with a control device corresponding to a first connector connected to the second connector by using the second connector, or, when the second operating mode is a mode of operating in a centralized storage architecture, controlling one of the P second connectors to be in a state accommodating the second operating mode includes controlling the drive to resume communicating with a control device corresponding to L first connectors connected to the L second connectors by using L second connectors of the P second connectors, where L is a positive integer and L is less than or equal to P.
[0028] In the above technical solution, the drive can switch the working mode of the drive by controlling the communication status of the second connector of the drive according to the command sent by the control device. For example, when the mode of working in the distributed storage architecture needs to be switched, some of the M second connectors are controlled to be in a communication stop state, and when the mode of working in the centralized storage architecture needs to be switched, some or all of the second connectors in the communication stop state resume communication. Thus, the working mode of the drive is switched to the mode in the centralized storage architecture, and the working mode of the drive can be switched without changing the hardware structure and connection relationship.
[0029] According to a third aspect, an embodiment of the present application further provides a computer-readable storage medium, the computer-readable storage medium including a computer program, which, when running on a terminal, enables the storage system to execute the method of the second aspect or any one of the possible designs of the second aspect.
[0030] According to a fourth aspect, an embodiment of the present application further provides a computer program product, wherein when the computer program product runs on a terminal, the storage system 2 It is possible to carry out the method of the first aspect or any one of the possible designs of the second aspect.
[0031] For the beneficial effects of the third and fourth aspects and the implementation of the third and fourth aspects, please refer to the description of the beneficial effects of the method of the second aspect and the implementation of the second aspect. [Brief description of the drawings]
[0032] [Figure 1A] FIG. 1 is a schematic diagram of an application scenario according to an embodiment of the present application. [Figure 1B] FIG. 1 is a schematic diagram of an application scenario according to an embodiment of the present application. [Figure 2A] FIG. 1 is an architecture diagram of an example of a centralized storage system. [Figure 2B] FIG. 1 is an architecture diagram of an example distributed storage system. [Figure 3A] 1 is a schematic structural diagram of a storage system 300 according to an embodiment of the present application. [Figure 3B] 3 is another schematic structural diagram of a storage system 300 according to an embodiment of the present application. [Figure 3C] 3 is another schematic structural diagram of a storage system 300 according to an embodiment of the present application. [Figure 3D] 3 is another schematic structural diagram of a storage system 300 according to an embodiment of the present application. [Figure 4] 3 is a schematic structural diagram of a processor 3011 included in a control device 301 of a storage system 300 according to an embodiment of the present application. [Diagram 5] 3 is a schematic structural diagram of several individual components included in a control device 301 of a storage system 300 according to an embodiment of the present application. [Figure 6]3 is a schematic structural diagram of a detection circuit 3021 further included in the storage system 300 according to an embodiment of the present application. [Figure 7] 3 is a schematic structural diagram of a PCIE switch further included in the storage system 300 according to an embodiment of the present application. [Figure 8A] FIG. 1 is a schematic diagram of a distributed drive according to an embodiment of the present application. [Figure 8B] FIG. 2 is another schematic diagram of a distributed drive according to an embodiment of the present application. [Figure 9A] FIG. 1 is a schematic diagram of a centralized drive according to an embodiment of the present application. [Figure 9B] FIG. 13 is a schematic diagram of the separation between two second connectors of a centralized drive according to an embodiment of the present application. [Figure 9C] FIG. 2 is another schematic diagram of a centralized drive according to an embodiment of the present application. [Figure 10A] 1 is a schematic diagram of a universal drive according to an embodiment of the present application. [Figure 10B] FIG. 2 is another schematic diagram of a universal drive according to an embodiment of the present application. [Figure 10C] FIG. 10 is a schematic diagram of a generic drive controlling the second connector 1002 to be in a communication outage state according to an embodiment of the present application. [Figure 10D] FIG. 10 is a schematic diagram of a generic drive dividing a data storage module 1006 into two independently accessible areas according to an embodiment of the present application. [Figure 11] FIG. 2 is a schematic diagram of a distributed storage architecture when a control device A is defective, according to an embodiment of the present application. [Figure 12A] FIG. 1 is a schematic diagram of a storage system of a centralized storage architecture according to an embodiment of the present application. [Figure 12B] FIG. 2 is a side view of a storage system of a centralized storage architecture according to an embodiment of the present application. [Figure 13A] 3 is a schematic diagram of a drive 303 according to an embodiment of the present application. [Figure 13B] FIG. 3 is a side view of a control device 301 including one first connector 302 according to an embodiment of the present application. [Figure 13C] FIG. 3 is a side view of a drive 303 including one second connector according to an embodiment of the present application. [Figure 13D] 3 is a schematic diagram of a connection relationship between a control device 301 and a drive 303 according to an embodiment of the present application. [Figure 14A] FIG. 3 is a side view of another control device 301 including one first connector 302 according to an embodiment of the present application. [Figure 14B] FIG. 3 is a side view of another drive 303 including one second connector according to an embodiment of the present application. [Figure 14C] 3 is a schematic diagram of another connection relationship between a control device 301 and a drive 303 according to an embodiment of the present application. [Figure 15A] 2 is a flowchart of a method for operating a storage system according to an embodiment of the present application. [Figure 15B] 2 is a flowchart of a method for operating a storage system according to an embodiment of the present application. [Figure 15C] 2 is a flowchart of a method for operating a storage system according to an embodiment of the present application. [Figure 16] 1 is a flowchart of a method for switching an operating mode of a storage system according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0033] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the following will describe in detail the technical solutions of the embodiments of the present application with reference to the accompanying drawings and specific implementations herein.
[0034] The term "and / or" in this specification describes only an association relationship for describing associated entities, and indicates that three relationships may exist. For example, A and / or B may represent three cases: only A is present, both A and B are present, and only B is present. In addition, the character " / " in this specification generally indicates an "or" relationship between associated entities, unless otherwise specified.
[0035] In addition, it should be understood that "plurality" in the embodiments of the present application means "two or more." Words such as "first" and "second" are only used for distinction and explanation, and should not be understood as an indication or suggestion of relative importance, or an indication or suggestion of order.
[0036] An embodiment of the present application provides a storage system. The storage system is applied to the data read / write scenario shown in FIG. 1A or FIG. 1B. In the data read / write scenario shown in FIG. 1A, a client accesses a drive connected to the drive controller by using a drive controller. For example, when a client needs to obtain data in a drive, the client sends a data read command to the drive controller. After receiving the data read command, the drive controller obtains data from the drive storing the data and sends the data to the client. When a client needs to store data, the client sends a data write command to the drive controller. The data write command carries the data to be stored. After receiving the data write command, the drive controller obtains the data to be stored from the data write command and stores the data to be stored in the corresponding drive.
[0037] Different from Fig. 1A, in the data read / write scenario shown in Fig. 1B, the client sends a data read command or a data write command to the drive controller by using the cloud network. After receiving the data read command by using the cloud network and retrieving the data from the corresponding drive, the drive controller sends the data to the client by using the cloud network. After receiving the data write command by using the cloud network, the drive controller stores the to-be-stored data retrieved from the data write command in the corresponding drive.
[0038] Please note that in the scenario shown in Figure 1A and Figure 1B, the interaction between one client, one drive controller, and one drive is only used as an example for explanation, and should not constitute any limitation to the application scenario of the embodiment of the present application. In an actual data read / write scenario, there may be multiple clients, multiple drive controllers, and multiple drives. For example, multiple clients may access drives connected to any one of multiple drive controllers, or multiple clients may only access drives connected to a specific drive controller. This is not limited in the embodiment of the present application.
[0039] The drive controller and the drive may be in a centralized storage architecture. As shown in FIG. 2A, the centralized storage architecture includes a drive controller A, a drive controller B, a plurality of drives, and a backplane. In the centralized storage architecture, one data is stored in one of a plurality of drives. For example, the video data of user A is stored in drive 1, and the voice data of user A is stored in drive 2. When an operation needs to be performed on a certain data, the drive controller A or the drive controller B may send an instruction and output the instruction to the drive by using the backplane to retrieve the data from the corresponding drive. In the centralized storage architecture, both the drive controller A and the drive controller B can access the data stored in the drive, and after either the drive controller A or the drive controller B is in a defective state, the service of the defective drive controller may be taken over by the other drive controller, and the other drive controller continues to share the service of the defective drive controller.
[0040] The drive controller and the drives may be in a distributed storage architecture. FIG. 2B shows an example of the distributed storage architecture. The distributed storage architecture includes one drive controller, multiple drives, and a backplane. In the distributed storage architecture, data may be divided into multiple data, and a verification code corresponding to each data is generated. Each data and the corresponding verification code are stored in each of the multiple drives. For example, the video data of user A is divided into video data 1 to video data 3, and verification codes corresponding to the video data 1 to video data 3, respectively, and verification codes 1 to 3 are generated. Then, the video data 1 and the verification code 1 are stored in the drive 1, the video data 2 and the verification code 2 are stored in the drive 2, and the video data 3 and the verification code 3 are stored in the drive 3. When the drive controller needs to read the video data, the drive controller can send a data read command, fan out the command from the drive 1 to the drive 3 by using the backplane, and obtain the video data 1 to the video data 3 and the verification code 1 to the verification code 3 from the three drives. Then, the drive controller processes, for example combines, the video data 1 to the video data 3 and the verification code 1 to the verification code 3 to finally obtain the video data.
[0041] The following describes in detail the storage system provided in the embodiments of the present application with reference to the accompanying drawings.
[0042] 3A is a schematic structural diagram of a storage system 300 according to an embodiment of the present application. The storage system 300 includes at least one control device 301 and a first connector 302. The first connector 302 is configured to removably connect to a drive, and the drive is configured to store data. The at least one control device 301 is configured to communicate with a drive connected to the first connector 302 by using the first connector 302. The drive may be a solid state drive (SSD), for example, an SSD with a serial advanced technology attachment (SATA) interface, an SSD with a serial attached small computer system interface (SAS) interface, or an SSD with a non-volatile memory express (NVME) interface. Alternatively, the drive may be a hard disk drive (HDD), for example, an HDD with a SATA interface or an HDD with a SAS interface. This is not limited herein.
[0043] It should be noted that the at least one control device 301 communicating with the drives connected to the first connectors 302 by using the first connectors 302 can be understood as follows: When there are K first connectors 302, K>0, and each of the K first connectors 302 is connected to a drive, the at least one control device 301 communicates with the drives connected to the K first connectors 302 by using the K first connectors 302. When only some of the K first connectors 302 are connected to drives, the at least one control device 301 communicates with the drives connected to some of the first connectors 302 by using some of the first connectors 302.
[0044] In the aforementioned technical solution, since the drives can be removably connected to the control device 301 by using the first connector 302, a user can flexibly configure the connection relationship between the drives and the control device 301 based on the usage requirements to configure different storage architectures. For example, one control device 301 is connected to multiple drives by using the first connector 302 to configure a distributed storage architecture. Alternatively, two control devices 301 are connected to one drive by using the first connector 302 to configure a centralized storage architecture. In this way, when the storage architecture needs to be changed, the connection relationship between the first connector 302 and the drives needs to be changed, and a new control device and a new drive do not need to be purchased. This improves the flexibility of the storage system.
[0045] The following describes the control device 301 and the first connector 302.
[0046] In one example, there is one control device 301 and one first connector 302. As shown in FIG. 3A, the control device 301 and the first connector 302 can be two independent components. The control device 301 and the first connector 302 can be connected by using a communication bus. For example, the communication bus can be a peripheral component interface express (PCIE or PCIe) bus. Alternatively, as shown in FIG. 3B, the control device 301 can include the first connector 302. In this case, the first connector 302 is part of the control device 301. For example, the first connector 302 can be a fan-out connector of the control device 301. The fan-out connector can be a single connector on one node or multiple nodes. of A connector that spreads multiple signals over a wider spatial range.
[0047] In another example, there may be multiple first connectors 302. For example, the first connectors 302 are part of a control device 301. As shown in FIG 3C, the control device 301 may include three first connectors 302, and each first connector 302 may be configured to connect to a drive.
[0048] In an example, there may be multiple control devices 301. Referring to Figure 3D, a storage system 300 includes M control devices 301 and N first connectors 302, where the N first connectors 302 are configured to connect to drives, where M is an integer greater than or equal to 2, N is an integer greater than or equal to M, and K is a positive integer.
[0049] The configuration relationship between each control device 301 and the first connector 302 is shown in FIG. 3A to FIG. 3C, and the details will not be described again. In FIG. 3D, for example, the first connector 302 is a part of the control device 301. The quantity of the first connectors 302 included in all the control devices 301 may be the same. For example, each of the M control devices 301 may include S first connectors 302. Alternatively, the quantity of the first connectors 302 included in all the control devices 301 may be different. For example, the first control device 301 of the M control devices 301 includes three first connectors 302, the second control device 301 of the M control devices 301 includes two first connectors 302, and so on. In FIG. 3D, for example, M is 3, and each of the three control devices 301 includes two first connectors 302.
[0050] The following describes the control device 301. In the following description, for example, the first connector 302 is part of the control device 301.
[0051] 4, the control device 301 may include a processor 3011. The processor 3011 is electrically connected to the first connector 302. The processor 3011 may be a central processing unit (CPU), a digital signal processor, an application specific integrated circuit, or a field-programmable gate array (FPGA) or another programmable logic device, without being limited herein.
[0052] In an example, the processor 3011 may include a high-speed signal unit 30111 and a control unit 30112. The high-speed signal unit 30111 is configured for transmitting service data between the processor 3011 and the drive. For example, the processor 3011 obtains data stored in the drive by using the high-speed signal unit 30111, or the processor 3011 stores data to be stored received from a client in the drive by using the high-speed signal unit 30111. The control unit 30112 detects the state of the drive, for example, detects whether the drive is connected to the first connector. 302 , detect whether the drive is connected to or disconnected from the drive, detect whether the drive is in a defective state, detect information about the drive, control the power-on or power-off state of the drive, and control the reset or reset-deasserted state of the port of the drive used to transmit service data. The following will describe the high-speed signal unit 30111 and the control unit 30112 separately.
[0053] The high-speed signal unit 30111 may be configured to supply power to the first connector 302 when it determines that the operating mode of the drive connected to the first connector 302 is compatible with the current operating mode of the processor 3011, thereby powering on the drive connected to the first connector 302.
[0054] In this embodiment of the present application, before determining whether the working mode of the drive is compatible with the current working mode of the high-speed signal unit 30111, the high-speed signal unit 30111 may first determine whether the first connector 302 is connected to or disconnected from the drive. For example, still referring to FIG. 4, a detection circuit 3021 may be disposed in the first connector 302, and the detection circuit 3021 is electrically connected to the high-speed signal unit 30111. When the first connector 302 is disconnected from the drive, the detection circuit 3021 outputs a first level, for example, a low level, to the high-speed signal unit 30111. When the first connector 302 is connected to the drive, the detection circuit 3021 outputs a second level, for example, a high level, to the high-speed signal unit 30111. In this case, a determination condition may be preset in the high-speed signal unit 30111, and the determination condition may be as follows: When receiving a second level output by the detection circuit 3021, the high speed signal unit 30111 determines that the first connector 302 corresponding to the detection circuit 3021 is connected to the drive, and when receiving a first level output by the detection circuit, the high speed signal unit 30111 determines that the first connector 302 corresponding to the detection circuit 3021 is disconnected from the drive. For example, when receiving a high level output by the detection circuit 3021, the high speed signal unit 30111 determines that the first connector 302 corresponding to the detection circuit 3021 is connected to the drive.
[0055] It should be noted that if there are multiple first connectors 302, the detection circuit 3021 may be disposed in each first connector 302, and based on the level output by the detection circuit 3021 of each first connector 302, it is determined whether the first connector 302 is connected to a drive.
[0056] The high speed signal unit 30111 may further determine whether the connection between the first connector 302 and the drive is loose based on a change in the level output by the detection circuit 3021. For example, if the high speed signal unit 30111 determines that the level output by the detection circuit 3021 changes from a first level to a second level or from the second level to the first level at an interval of 0.5 seconds, the high speed signal unit 30111 determines that the connection between the first connector 302 and the drive is loose.
[0057] When the high-speed signal unit 30111 determines that the first connector 302 is connected to a drive, the high-speed signal unit 30111 may further send the first information to the drive connected to the first connector 302 by using the first connector 302. The first information is used to detect whether the drive connected to the first connector 302 is defective. If the drive is not defective, the drive sends feedback information corresponding to the first information to the high-speed signal unit 30111 by using the first connector 302. If the drive is defective, the drive cannot send the feedback information to the high-speed signal unit 30111. The first information and the feedback information may be pre-agreed by the high-speed signal unit 30111 together with the drive. And when the high-speed signal unit 30111 does not receive the feedback information within a preset time by using the first connector 302 after sending the first information to the drive connected to the first connector 302, the high-speed signal unit 30111 determines that the drive connected to the first connector 302 is defective.
[0058] If the first connector 302 is connected to a drive and the high-speed signal unit 30111 determines that the drive connected to the first connector 302 is not defective, the high-speed signal unit 30111 may obtain the operating mode of the drive connected to the first connector 302.
[0059] In this embodiment of the present application, the working modes of the high-speed signal unit 30111 include a first working mode and a second working mode. The first working mode may also be called a processor-intensive working mode, which is a mode in which the drive in the centralized storage architecture shown in FIG. 2A is operated. controller For example, after receiving a data write command from a client, the high-speed signal unit 30111 transmits data to be stored, which is carried in the data write command, to the drive. The second operating mode may be referred to as a processor-distributed operating mode, and may be a process in which the high-speed signal unit 30111 operates in the same processing mode as the .... For example, after receiving a data write command from a client, the high-speed signal unit 30111 transmits data to be stored, which is carried in the data write command, to the drive. The second operating mode may be referred to as a processor-distributed operating mode, and may be a process in which the high-speed signal unit 30111 operates in the same processing mode as the process in which the high-speed signal unit 30111 operates in the same processing mode as the process in which the high-speed signal unit 30111 operates. controller For example, after receiving a data write command from a client, the control device 301 first divides the data to be stored carried in the data write command into multiple sub-data, generates a confirmation code corresponding to each sub-data, and sends each sub-data and the confirmation code corresponding to the sub-data to the drive.
[0060] The operation mode of the drive includes a third operation mode and a fourth operation mode. The third operation mode may be referred to as a drive-centralized operation mode, and may indicate that the drive operates in the same processing mode as the drive in the centralized storage architecture shown in FIG. 2A, for example, in a drive shared access mode. Specifically, all of the multiple control devices connected to the drive may perform read / write operations on the drive. The fourth operation mode may be referred to as a drive-distributed operation mode, and may indicate that the drive operates in the same processing mode as the drive in the distributed storage architecture shown in FIG. 2B, for example, in a drive exclusive operation mode. Specifically, only one of the multiple control devices connected to the drive may perform read / write operations on the drive.
[0061] In a particular implementation process, the working mode of the high speed signal unit 30111 may be set to include only one of the first working mode and the second working mode. In this case, the high speed signal unit 30111 operates in a fixed working mode. When the working mode of the high speed signal unit 30111 is set to the first working mode, the high speed signal unit 30111 can only operate in the first working mode. For example, the high speed signal unit 30111 may determine to operate in one of the working modes according to a user's command. In an example, a system code corresponding to at least one working mode may be set in the high speed signal unit 30111. For example, at least one of a first system code corresponding to the first working mode and a second system code corresponding to the second working mode may be set. After the processor 3011 is powered on, the high speed signal unit 30111 reads and executes the corresponding system code stored in the control unit 30112, and thereby the high speed signal unit 30111 can enter the working mode corresponding to the system code. The system code includes information such as the high reliability fault tolerance policy of the storage system in different operating modes, the operating mode of the drives, and the type, manufacturer, and model of the drives.
[0062] In this embodiment of the present application, the high-speed signal unit 30111 determines whether the working mode of the drive connected to the first connector 302 is compatible with the current working mode of the processor 3011. The manner of determination includes, but is not limited to, the following two manners:
[0063] In the first manner, the high-speed signal unit 30111 may first obtain information about the drive by using the control unit 30112, where the information about the drive includes at least one type of relevant information, such as the model, capacity, and manufacturer of the drive. The high-speed signal unit 30111 pre-stores a correspondence between the information about the drive and the working mode of the drive. In this case, the high-speed signal unit 30111 can determine the working mode of the drive based on the correspondence between the information about the drive and the working mode of the drive. For example, the correspondence between the information about the drive and the working mode of the drive is stored in the form of Manufacturer A and Third A first association between the operating mode and manufacturer B and Fourth If the information about the drive obtained by the high-speed signal unit 30111 by using the control unit 30112 indicates that the manufacturer of the drive is manufacturer A, the high-speed signal unit 30111 determines that the operating mode of the drive is Third The high speed signal unit 30111 may then determine whether the drive's operating mode is compatible with the high speed signal unit 30111's current operating mode.
[0064] In the second manner, when the high-speed signal unit 30111 determines the current working mode of the high-speed signal unit 30111, the high-speed signal unit 30111 may set a corresponding drive determination condition. The drive determination condition includes information about the drive when the working mode of the drive is compatible with the current working mode of the high-speed signal unit 30111. The information about the drive is the same as the corresponding content in the first manner, and is not described again. For example, when the current working mode of the high-speed signal unit 30111 is the first working mode, the drive determination condition is set to manufacturer A. Then, when the information about the drive is the same as the drive determination condition, the high-speed signal unit 30111 determines that the working mode of the drive is compatible with the current working mode of the high-speed signal unit 30111. If the information about the drive is different from the drive determination condition, the high-speed signal unit 30111 determines that the working mode of the drive is not compatible with the current working mode of the high-speed signal unit 30111.
[0065] It should be noted that the working mode of the high-speed signal unit 30111 is compatible with the working mode of the drive means that when the working mode of the high-speed signal unit 30111 is the first working mode, the working mode of the drive is the third working mode, or when the working mode of the high-speed signal unit 30111 is the second working mode, the working mode of the drive is the fourth working mode. Of course, when the working modes of the high-speed signal unit 30111 and the drive include further working modes, the working mode of the high-speed signal unit 30111 is compatible with the working mode of the drive may further include another correspondence. This is not limited in the present specification.
[0066] In addition, it should be noted that the high-speed signal unit 30111 obtains information about the drive by using the control unit 30112 as follows: information about the drive is pre-stored in a fixed storage space in the drive, and when the drive is connected to the first connector 302, the high-speed signal unit 30111 reads information about the drive from the fixed storage space in the drive by using the control unit 30112.
[0067] After determining the drive whose working mode is compatible with the current working mode of the high-speed signal unit 30111, the high-speed signal unit 30111 supplies power to the first connector 302 connected to the drive. As shown in FIG. 4, when the high-speed signal unit 30111 determines that the first first connector 302 and the third first connector 302 of the three first connectors 302 are connected to drive A and drive B, respectively, and the working mode of the drive connected to the first first connector 302 is compatible with the current working mode of the high-speed signal unit 30111, the high-speed signal unit 30111 supplies power to the first first connector 302.
[0068] After determining the drive whose working mode is incompatible with the current working mode of the high speed signal unit 30111, the high speed signal unit 30111 stops supplying power to the first connector 302 connected to the drive. As shown in FIG. 4, when the high speed signal unit 30111 determines that the first first connector 302 and the third first connector 302 of the three first connectors 302 are connected to drive A and drive B, respectively, and the working mode of the drive connected to the third first connector 302 is incompatible with the current working mode of the high speed signal unit 30111, the high speed signal unit 30111 stops supplying power to the first connector 302 connected to the drive. 3 3. Stop supplying power to the first connector 302.
[0069] It should be noted that the high speed signal unit 30111 supplies power to the first connector 302 means the following: if the first connector 302 connected to the drive is currently powered on, the high speed signal unit 30111 continues to supply power to the first connector 302 by maintaining the power supply status of the control unit 30112. if the first connector 302 connected to the drive is currently not powered on, the high speed signal unit 30111 supplies power to the first connector 302 by changing the power supply status of the control unit 30112. It should be noted that the high speed signal unit 30111 stops supplying power to the first connector 302 means the following: if the first connector 302 connected to the drive is currently powered on, the high speed signal unit 30111 stops supplying power to the first connector 302 by changing the power supply status of the control unit 30112. If the first connector 302 connected to the drive is currently powered off, the high speed signal unit 30111 keeps the first connector 302 in an unpowered state by maintaining the power supply status of the control unit 30112.
[0070] After the high-speed signal unit 30111 supplies power to at least one first connector 302, for example, after the high-speed signal unit 30111 supplies power to the M first connectors 302, the high-speed signal unit 30111 may send a data read command to one or more of the drives connected to the M1 first connectors 302 by using M1 first connectors 302 of the M first connectors 302, and obtain data corresponding to the data read command by using the M1 first connectors 302, where M1 is an integer greater than 0 and less than or equal to M. Alternatively, the high-speed signal unit 30111 may send a data write command to one or more of the drives connected to the M1 first connectors 302, and store the data to be stored carried in the data write command in the drive.
[0071] After the high-speed signal unit 30111 sends a data read command or a data write command to one or more of the drives connected to the M1 first connectors 302 by using the M1 first connectors 302 of the M first connectors 302, the high-speed signal unit 30111 may further continue to detect whether each of the M first connectors 302 is connected to a drive. If the high-speed signal unit 30111 determines that the first connector 302 is disconnected from the drive, the high-speed signal unit 30111 may stop supplying power to the first connector 302.
[0072] In one example, the control device 301 may include multiple individual components. With reference to FIG. 5, the control device 301 may include a processor, a memory, a clock signal generator, and a power supply module. The processor may be, for example, a central processing unit (CPU), an FPGA, or another programmable logic device. This is not limited herein. An example in which the processor is a CPU is used in the following description.
[0073] The CPU of the control device 301 is configured to communicate with the drives connected to the first connector 302 by using the first connector 302. For example, the CPU may communicate with the drives by using a drive transmission protocol. The drive transmission protocol is, for example, a PCIE protocol, a serial advanced technology attachment (SATA) protocol, or a serial attached small computer system interface (SAS) protocol. If there are multiple first connectors 302, the CPU communicates with the drives connected to all the first connectors 302 by using all of the multiple first connectors 302. Alternatively, the CPU may communicate with the drives connected to some of the first connectors 302 by using some of the multiple first connectors 302. The communication between the CPU and the drives may include storing the data to be stored in the corresponding drive by the CPU after receiving the data to be stored from another device (e.g., a client), or retrieving the data corresponding to the data read command from the drive by the CPU after receiving the data read command from another device.
[0074] The memory of the control device 301 is connected to the CPU and configured to provide a cache function for the CPU during communication between the CPU and the drive. For example, after receiving data to be stored from a client, the CPU first stores the data to be stored in the memory, and then sends a data write command to the drive to store the data to be stored in the corresponding drive.
[0075] The clock signal generator of the control device 301 is connected to the CPU and the first connector 302 separately, and is configured to provide clocks for the CPU and the drives connected to the first connector 302. It should be noted that when there are multiple first connectors 302, a clock signal generator is connected to each first connector 302. The clocks include a first clock required for communication between the CPU and the drives by using a drive transmission protocol, and / or include an operational clock of the CPU and the drives and a local phase-locked loop clock. The first clock may alternatively be called a high-speed clock, or a phase-locked loop clock used by the drive 303 to sample data. If the transmission protocol used by the drive 303 supports an operational clock or a local phase-locked loop clock, the clock signal generator may not need to provide the first clock. The drive transmission protocol is, for example, a PCIE protocol, a serial advanced technology attachment (SATA) protocol, or a serial attached small computer system interface (SAS) protocol.
[0076] The power supply module of the control device 301 is separately connected to the CPU and the first connector 302, and is configured to provide operating voltages for the CPU and the drives connected to the first connector 302. It should be noted that when there are multiple first connectors 302, a power supply module is connected to each first connector 302.
[0077] In an example, as shown in FIG. 5, the control device 301 further includes an input / output interface configured to connect to a client. The input / output interface is electrically connected to the CPU and configured to receive a data read instruction or a data write instruction from the client, and then send the data read instruction or the data write instruction to the CPU. When the input / output interface obtains a data read instruction from the client, the input / output interface is further configured to send data corresponding to the data read instruction and sent by the CPU to the client. The input / output interface may be a SAS, a PCIE interface, a Gigabit Ethernet interface, or a 3Gb / s 2Gb / s 1Gb / s 1Gb / s 2 ...2Gb / s 1Gb / s 2Gb / s 2Gb / s 1Gb / s 2Gb / s 2Gb / s 2Gb / s 2Gb / s 2Gb / s 2Gb / s 2Gb / s 2Gb / s 2Gb / s 2Gb / s 2Gb / s 2Gb / s 2Gb / s 2Gb / s 2Gb / s 2Gb / s 2Gb / s 2Gb / s 2Gb / s 2Gb / s 2Gb / s 2Gb / s 2Gb / s 2Gb / s 2Gb / s E The interface may be a IEEE 802.11b, ...
[0078] In one example, when the CPU determines that the operating mode of the drive connected to the first connector 302 is compatible with the current operating mode of the CPU, it may be configured to control the power supply module to supply power to the first connector 302, thereby powering on the drive connected to the first connector 302.
[0079] In this embodiment of the present application, before determining whether the working mode of the drive is compatible with the current working mode of the CPU, the CPU may first determine whether the first connector 302 is connected to or disconnected from the drive. Referring to FIG. 6, in this case, the control device 301 may further include a detection component. The detection component is separately connected to the CPU, the first connector 302, and the power supply module, and the power supply module is further configured to provide an operating voltage for the detection component. The detection component may be configured to detect whether the first connector 302 is connected to or disconnected from the drive. It should be noted that when there are multiple first connectors 302, the detection component is connected to each first connector 302. For example, the detection component may be a complex programmable logic device (CPLD) or an application specific integrated circuit (ASIC). In FIG. 6, an example in which the detection component is a CPLD is used.
[0080] Note that in FIG. 6, the CPLD is directly connected to the CPU. In another example, the CPLD could alternatively be connected to the CPU by using a peripheral port expansion chip. CPU In FIG. 7, an example is used in which the peripheral port expansion chip of the CPU is an integrated south bridge (platform controller hub, PCH), and the PCH and the CPLD can be connected by using a low pin count (LPC).
[0081] 6, a detection circuit 3021 may further be disposed in the first connector 302. When the first connector 302 is disconnected from the drive, the detection circuit 3021 outputs a first level, e.g., a low level, to the CPLD. When the first connector 302 is connected to the drive, the detection circuit 3021 outputs a second level, e.g., a high level, to the CPLD. When the second level output by the detection circuit 3021 is received, the CPLD determines that the first connector 302 corresponding to the detection circuit 3021 is connected to the drive, and when the first level output by the detection circuit is received, the CPLD determines that the first connector 302 corresponding to the detection circuit 3021 is disconnected from the drive. For example, when receiving a high level output by the detection circuit 3021, the CPLD determines that the first connector 302 corresponding to the detection circuit 3021 is connected to the drive.
[0082] After the CPLD determines whether the first connector 302 is connected to or disconnected from the drive, the CPU may obtain the determination result of the CPLD in multiple ways, and the determination result is used to indicate whether the first connector 302 is connected to or disconnected from the drive. For example, the manner in which the CPU obtains the determination result of the CPLD includes, but is not limited to, the following two ways:
[0083] In the first acquisition manner, the CPLD may send the determination result to the CPU. If there are multiple first connectors 302, the identifier of the first connector 302 may be carried when the CPLD sends the determination result to the CPU. For example, numbers may be set for the multiple first connectors 302, and the CPLD adds the number of the first connector 302 to the determination result.
[0084] In the second acquisition manner, the CPLD may set a register configured to store the determination result, for example, the register is called a first register. The CPLD may store the determination result in the first register, for example, may use one bit to represent the determination result. If the value of the one bit is 0, it indicates that the first connector 302 is connected to the drive, and if the value of the one bit is 1, it indicates that the first connector 302 is disconnected from the drive. When the CPU needs to acquire the determination result, the CPU directly reads the value of the first register and determines whether the first connector 302 is connected to or disconnected from the drive based on the value of the first register and the preset correspondence between the value of the bit in the first register and the connection status. The correspondence between the value of the first register and the connection status may be as follows: If the value of the bit in the first register is 0, it indicates that the first connector 302 is connected to the drive, and if the value of the bit in the first register is 1, it indicates that the first connector 302 is disconnected from the drive.
[0085] It should be noted that in the second manner, when there are multiple first connectors 302, the CPLD may set a corresponding first register for each first connector 302. The CPU may read the value of the first register corresponding to each first connector 302 and determine whether each first connector 302 is disconnected or connected to the drive. Alternatively, the CPLD may set only one first register and store the determination result corresponding to each first connector 302 in the first register. Specifically, the first register includes multiple bits, and one bit indicates the determination result corresponding to one first connector 302. As shown in FIG. 6, the control device 301 includes three first connectors 302. The CPLD sets one first register, and the determination results corresponding to all the first connectors 302 are indicated by using three bits of the first register, and one bit of the first register is used to indicate the determination result corresponding to one first connector 302. For example, if the value of the register bits is "001", it indicates that the third first connector 302 is disconnected from the drive and the remaining two first connectors 302 are separately connected to the drive. If the value of the register bits is "000", it indicates that each of the third first connectors 302 is disconnected from the drive.
[0086] The CPLD may further send first information to the drive connected to the first connector 302 by using the first connector 302. The first information is used to detect whether the drive connected to the first connector 302 is defective. If the drive is not defective, the drive sends feedback information corresponding to the first information to the CPLD by using the first connector 302. If the drive is defective, the drive cannot send the feedback information to the CPLD. The first information and the feedback information may be pre-agreed by the CPLD and the drive. Then, if the CPLD does not receive the feedback information within a pre-set time by using the first connector 302 after sending the first information to the drive connected to the first connector 302, the CPLD determines that the drive connected to the first connector 302 is defective. Correspondingly, the CPLD may also store the detection result on whether the detected drive is defective in a corresponding register, for example, a second register.
[0087] If the CPU determines, based on the value of the bit in the corresponding register of the CPLD, that the first connector 302 is connected to a drive and that the drive connected to the first connector 302 is not defective, the CPU may obtain the operating mode of the drive connected to the first connector 302.
[0088] In this embodiment of the present application, the working mode of the drive and the working mode of the CPU have been described above, and the details will not be described again in this specification. The CPU obtains information about the drive connected to the first connector 302, and determines whether the working mode of the drive is compatible with the working mode of the CPU. The specific determination manner has already been described before, and will not be described again in this specification.
[0089] In this embodiment of the present application, the manner in which the CPU obtains information about the drive includes, but is not limited to, the following two manners:
[0090] In a first manner for obtaining information about a drive, the CPU may send a command used to obtain information about the drive to a drive connected to the first connector 302 by using a bus connected to the first connector 302. After receiving the command, the drive sends information about the drive to the CPU. In this case, the bus connecting the CPU and the first connector 302 may be a customized bus or a bus configured to transmit high-speed signals, such as a PCIE bus. The high-speed signals are corresponding signals used when the CPU communicates with the drive by using a drive transmission protocol. This is not limited in this specification.
[0091] In a second manner for obtaining information about a drive, as shown in Fig. 7, the control device 301 further includes a PCIE switch. The PCIE switch is connected to the CPU by using a PCIE bus, and the PCIE switch is connected to the first connector 302 by using an I2C bus. The CPU sends a command used to obtain information about the drive to the drive connected to the first connector 302 by using the PCIE switch. After receiving the command, the drive sends information about the drive to the CPU.
[0092] After determining a drive whose operating mode is compatible with the current operating mode of the CPU, the CPU sends an instruction to the CPLD to supply power to the first connector 302 connected to the drive, and thereby the CPLD controls the power supply module to supply power to the first connector 302. After determining a drive whose operating mode is incompatible with the current operating mode of the CPU, the CPU sends an instruction to the CPLD to stop supplying power to the first connector 302 connected to the drive, and thereby the CPLD controls the power supply module to stop supplying power to the first connector 302.
[0093] It should be noted that the CPLD controls the power supply module to supply power to the first connector 302, and the CPLD controls the power supply module to stop supplying power to the first connector 302, which have already been described above and will not be described again in this specification.
[0094] After the CPU supplies power to the at least one first connector 302, the CPU can communicate with the drive by using the at least one first connector 302. In addition, the CPU can also send a reset command or a reset deassert command to the drive by using the CPLD to control the port of the drive used to transmit service data to be in a reset state or a reset deassert state.
[0095] The CPLD may further determine the working state of the drive connected to the first connector 302 based on the detected data read command or the detected data write command sent by the CPU to the drive connected to the first connector 302. For example, if the CPLD detects a data read command sent by the CPU to the drive connected to the first connector 302, the CPLD determines that the drive is in a read working state. If the CPLD detects a data write command sent by the CPU to the drive connected to the first connector 302, the CPLD determines that the drive is in a write working state. Of course, the CPLD may also set a register configured to store the working state of the drive. The specific manner is the same as the aforementioned manner of storing the detection result about whether the detected drive is defective in the corresponding register, and will not be described again in this specification.
[0096] The CPLD may further send an interrupt signal to the PCIE switch after determining that the connection between the first connector 302 and the drive changes from a connected state to a disconnected state, or after information such as an operating state of the drive connected to the first connector 302 changes, and the PCIE switch sends the interrupt signal to the CPU. After receiving the interrupt signal, the CPU processing changes.
[0097] Further referring to FIG. 4, the storage system 300 provided in this embodiment of the present application may further include a drive 303 .
[0098] In this embodiment of the present application, the drive 303 may include, but is not limited to, three types: a first drive type is a drive that can be used only in a centralized storage architecture and may be referred to as a centralized drive; a second drive type is a drive that can be used only in a distributed storage architecture and may be referred to as a distributed drive; and a third drive type is a drive that can be used in both a centralized storage architecture and a distributed storage architecture and may be referred to as a general-purpose drive. The three types of drives are described separately below.
[0099] First drive / distributed drive: Referring to FIG. 8A, the drive 303 includes a second connector 801 , a presence signal output module 802 , a power conversion module 803 , an internal drive control module 804 , and a data storage module 805 .
[0100] The second connector 801 is configured to connect to the control device 301 and provide a channel for data communication between the control device 301 and the drive 303. For example, after being connected to the first connector 302, the drive 303 obtains a data read command from the control device 301 by using the second connector 801, and then transmits data corresponding to the data read command to the control device 301 by using the second connector 801.
[0101] The presence signal output module 802 is configured to generate a presence signal of the drive 303, and the presence signal is used to indicate whether the drive 303 is connected to or disconnected from the first connector 302. In an example, the control device 301 may include a peripheral circuit and a logic determination module. When the drive 303 is connected to the first connector 302 by using the second connector 801, the presence signal output module 802 is connected to a ground cable of the power supply module of the control device 301 by using the second connector 801, so that the peripheral circuit of the control device 301 generates a low level signal, and the logic determination module of the control device 301 determines that the drive 303 is connected to the first connector 302 based on the low level signal. After the second connector 801 of the drive 303 is disconnected from the first connector 302, 、 The peripheral circuit of the control device 301 generates a high-level signal, so that the logical decision module of each control device 301 determines that the drive 303 is disconnected from the first connector 302 based on the high-level signal.
[0102] The power conversion module 803 is configured to supply power to the drive 303, convert a power supply voltage input from the second connector 801 to a power supply voltage of the internal drive control module 804 and the data storage module 805 when the second connector 801 is connected to the first connector 302, and output the converted voltage to the internal drive control module 804 and the data storage module 805. For example, the power conversion module 803 can be a Buck circuit, etc.
[0103] The drive 303 may further include a backflow prevention module disposed between the second connector 801 and the power conversion module 803 to avoid abnormal power supply to the drive 303 caused by the control device 301 being short-circuited or the voltage output by the control device 301 being lower than the normal operating voltage of the drive 303.
[0104] The internal drive control module 804 is configured to process the signals of the control device 301 to implement the function of managing the drive 303, for example, to provide the function of receiving the control device 301's control signals for the drive 303 and performing read or write operations on data on the data storage module 805. For example, the control signals are signals used to read relevant information such as the model, capacity, and manufacturer of the drive 303, signals used to control the second connector 801 to stay in a reset state, and signals used to control the second connector 801 to de-assert the reset state.
[0105] 8B, the drive 303 may further include a first storage module 806, which is configured to store relevant information, such as the model, capacity, and manufacturer, of the drive 303. The control device 301 may directly read the relevant information, such as the model, capacity, and manufacturer, of the drive 303 from the first storage module 806. For example, the first storage module 806 may include an electrically erasable programmable read only memory (EEPROM) chip and an I2C circuit.
[0106] If an indicator used to indicate the operating state of the drive is located on the drive 303, the internal drive control module 804 may be further configured to control the indicator of the drive 303. For example, when the drive 303 is in a data reading state, the input signal indicator may be controlled to output an indication signal of a first frequency, when the drive 303 is in a data writing state, the input signal indicator may be controlled to output an indication signal of a second frequency, etc.
[0107] In addition, a high-speed signal interface and a low-speed signal interface are configured in the internal drive control module 804, and the internal drive control module 804 can communicate with the control device 301 through different interfaces. The definition of a high-speed signal is explained above. In the communication signals transmitted between the internal drive control module 804 and the control device 301, signals other than the high-speed signal are low-speed signals.
[0108] Of course, the internal drive control module 804 may have other functions, and this specification does not list them one by one. It should be noted that those skilled in the art can set the functions of the internal drive control module 804 based on the requirements of use, which is not limited in this specification.
[0109] In one example, the internal drive control module 804 may be implemented using one or a combination of multiple individual devices, such as, but not limited to, a central processing unit (CPU), a digital signal processor, an application specific integrated circuit, a field-programmable gate array (FPGA), or another programmable logic device.
[0110] The data storage module 805 is configured to store or read user data under the control of the internal drive control module 804. In one example, the data storage module may be a drive medium.
[0111] Secondary drive / centralized drive: Referring to FIG. 9A, the drive 303 includes two second connectors (which are second connector 901 and second connector 902), a presence signal output module 903, a power conversion module 904, an internal drive control module 905, and a data storage module 906.
[0112] The functions of the second connector 901 and the second connector 902 are the same as those of the access port 801, and the details are not described again in this specification. The second connector 901 and the second connector 902 are two independent access ports, which can be respectively connected to two control devices 301. In this way, after the two control devices 301 are respectively connected to the second connector 901 and the second connector 902, the two control devices 301 can both communicate with the drive 303, for example, read data in the data storage module 906 of the drive 303.
[0113] 9A, it should be noted that the drive 303 includes two access ports, a second connector 901 and a second connector 902. The quantity of the access ports of the drive 303 may also be more than two. For example, the drive 303 includes a second connector, a second connector, and a third access port. In this case, the drive 303 can be connected to three control devices 301 at the same time. The quantity of the access ports is not limited in this embodiment of the present application.
[0114] It should be noted that if the second connector 901 and the second connector 902 need to be connected to two control devices 301 simultaneously, a sufficient separation needs to be ensured between the second connector 901 and the second connector 902, and this separation is related to the interval between the two control devices 301. For example, as shown in Fig. 9B, the two control devices 301 are both arranged horizontally, and one control device 301 is on the upper right of the other control device 301. If the interval between the two control devices 301 is x and the width of the first connector 302 is h, the separation between the second connector 901 and the second connector 902 is equal to or greater than (xh).
[0115] The presence signal output module 903 is configured to generate a presence signal of the drive 303, and the presence signal is used to indicate whether the drive 303 is connected to or disconnected from the first connector 302. In an example, the control device 301 may include a peripheral circuit and a logic determination module. When the drive 303 is connected to the two first connectors 302 by using the second connector 901 and the second connector 902 respectively, the presence signal output module 903 is connected to the ground cables of the power supply modules of the two control devices 301 by using the second connector 901 and the second connector 902 respectively, so that the peripheral circuit of the control device 301 generates a low level signal, and the logic determination module of each control device 301 determines that the drive 303 is connected to the first connector 302 based on the low level signal. After the second connector 901 and the second connector 902 of the drive 303 are respectively disconnected from the first connectors 302 of the two control devices 301, the peripheral circuit of each control device 301 generates a high-level signal, so that the logical determination module of each control device 301 determines that the drive 303 is disconnected from the first connector 302 based on the high-level signal.
[0116] The power conversion module 904 is configured to supply power to the drive 303, convert a power supply voltage input from the second connector 901 and the second connector 902 into a power supply voltage for the internal drive control module 905 and the data storage module 906 when the second connector 901 and the second connector 902 are respectively connected to the two first connectors 302, and output the converted voltage to the internal drive control module 905 and the data storage module 906. For example, the power conversion module can be a Buck circuit, etc.
[0117] The drive 303 further includes a backflow prevention module. The backflow prevention module includes a backflow prevention module A and a backflow prevention module B, which are disposed between the second connector 901 and the power conversion module 904, and between the second connector 902 and the power conversion module 904, respectively.
[0118] The internal drive control module 905 is configured to process the signals of the control device 301 to implement the function of managing the drive 303, for example, to provide the function of receiving the control signal of the control device 301 for the drive 303 and performing a read or write operation on the data in the data storage module 906. For example, the control signal is a signal used to read relevant information such as the model, capacity, and manufacturer of the drive 303, a signal used to control the second connector 901 and the second connector 902 to stay in a reset state, and a signal used to control the second connector 901 and the second connector 902 to deassert the reset state.
[0119] In one example, as shown in Figure 9C, the drive 303 may further include a first storage module 907. The first storage module 907 is the same as the first storage module 806 shown in Figure 8B, and the details will not be described again in this specification.
[0120] If an indicator used to indicate the operating state of the drive is located in the drive 303, the internal drive control module 804 may be further configured to control the indicator of the drive 303. For example, when the drive 303 is in a data reading state, the input signal indicator may be controlled to output an indication signal of a first frequency, when the drive 303 is in a data writing state, the input signal indicator may be controlled to output an indication signal of a second frequency, etc.
[0121] In addition, the high-speed and low-speed signal interfaces for the second connector 901 and the high-speed and low-speed signal interfaces for the second connector 902 are separately configured in the internal drive control module 905. The internal drive control module 905 may communicate with the control device 301 connected to the second connector 901 by using the high-speed and / or low-speed signal interfaces for the second connector 901. The internal drive control module 905 may communicate with the control device 301 connected to the second connector 901 by using the high-speed and / or low-speed signal interfaces for the second connector 902. 901 The internal drive control module 905 may communicate with the control device 301 connected to the internal drive control module 905. The definition of a high-speed signal is explained above. In the communication signals transmitted between the internal drive control module 905 and the control device 301, signals other than the high-speed signal are low-speed signals.
[0122] Of course, the internal drive control module 905 may have other functions, and this specification does not give examples one by one. It should be noted that those skilled in the art can set the functions of the internal drive control module 905 based on the requirements of use, which is not limited in this specification.
[0123] In one example, the internal drive control module 905 may be implemented using one or a combination of multiple individual devices, such as, but not limited to, a central processing unit (CPU), a digital signal processor, an application specific integrated circuit, a field-programmable gate array (FPGA), or another programmable logic device.
[0124] The data storage module 906 is configured to store or read user data under the control of the internal drive control module 905. In one example, the data storage module 906 can be a drive medium.
[0125] Third drive / general purpose drive: 10A, the drive 303 includes two second connectors (which are second connector 1001 and second connector 1002), a presence signal output module 1003, a backflow prevention module A, a backflow prevention module B, a power conversion module 1004, an internal drive control module 1005, and a data storage module 1006. In an example, referring to FIG. 10B, the drive 303 may further include a first storage module 1007.
[0126] The second connector 1001, the second connector 1002, the presence signal output module 1003, the power conversion module 1004, the data storage module 1006, and the first storage module 1007 are respectively the same as the second connector 901, the second connector 902, the presence signal output module 903, the power conversion module 904, the data storage module 906, and the first storage module 907 in FIG. 9A, and the details will not be described again in this specification.
[0127] The internal drive control module 1005 is described below.
[0128] The internal drive control module 1005 is further configured to adjust the working mode of the drive in addition to the functions of the internal drive control module 905. The universal drive has two working modes: a distributed drive working mode and a centralized drive working mode. The following describes how the internal drive control module 1005 adjusts the working mode of the universal drive.
[0129] First adjustment method: When the general-purpose device is in the centralized drive working mode, when the internal drive control module 1005 receives an instruction sent by the drive 303 to instruct the drive 303 to switch to the distributed drive working mode, the internal drive control module 1005 may control one access port of the second connector 1001 and the second connector 1002 to be in a communication stop state. Specifically, the internal drive control module 1005 logically disables the function of the access port, and the internal drive control module 1005 does not receive or process any signal input through the access port, and does not output any signal through the access port. The instruction may be sent by the control device 301 in-band by using a high-speed signal, or may be indicated by the control device 301 by controlling the high or low level of the control signal cable used to transmit the signal of the control unit 30112 shown in FIG. 4. This is not limited in this specification.
[0130] In Fig. 10C, for example, the second connector 1002 is controlled to be in a communication outage state. The communication outage state can be understood as follows: the drive cannot communicate with the control device 301 connected to the connector by using the connector in the communication outage state. Therefore, the operation mode of the drive is switched from the centralized drive operation mode to the distributed drive operation mode.
[0131] Second adjustment method: When the generic drive is in a centralized drive operating mode, when the internal drive control module 1005 receives a command sent by the drive 303 to instruct the drive 303 to switch to a distributed drive operating mode, the internal drive control module 1005 may divide the data storage module 1006 of the drive 303 into two independent access areas, as shown in FIG. 10D. For example, the data storage module 1006 is a drive medium, and the data storage module 1006 includes a total of 12 drive media, respectively labeled as drive medium 0 to drive medium 11. The internal drive control module 1005 may switch the operating mode of the drive from the centralized drive operating mode to the distributed drive operating mode by grouping drive medium 0 to drive medium 5 into an independent access area, where the access area can only be accessed by using the second connector 1001, and grouping drive medium 6 to drive medium 11 into another independent access area, where the access area can only be accessed by using the second connector 1002.
[0132] The third adjustment method: General-purpose drives decentralized When the drive is in an operational mode, the internal drive control module 1005: centralizedWhen receiving a command sent by the drive 303 to instruct the drive 303 to switch to the drive operation mode, the internal drive control module 1005 may restore the communication function of the access port in the communication stopped state. Specifically, the internal drive control module 1005 logically enables the function of the access port, and the internal drive control module 1005 receives or processes any signal input through the access port and outputs a signal through the access port. The command may be sent by the control device 301 in-band by using a high-speed signal, or may be indicated by the control device 301 by controlling the high or low level of the control signal cable used to transmit the signal of the control unit 30112 shown in FIG. 4. This is not limited in this specification. Thus, the drive operation mode is switched from the distributed drive operation mode to the centralized drive operation mode.
[0133] The fourth adjustment method: When the general-purpose drive is in a distributed drive working mode, when the internal drive control module 1005 receives an instruction sent by the drive 303 to instruct the drive 303 to switch to a centralized drive working mode, the internal drive control module 1005 may cancel the setting of dividing the data storage module 1006 into two independent access areas, so that the drive 303 includes only one independent access area, and the two control devices 301 connected to the second connector 1001 and the second connector 1002 can access any drive media of the data storage module 1006. Thus, the working mode of the drive is switched from the distributed drive working mode to the centralized drive working mode.
[0134] In this embodiment of the present application, the type of each drive 303 is determined according to relevant information such as the model, capacity, and manufacturer of the drive 303. The specific determination method has been described above, and the details will not be described again in this specification.
[0135] In this manner, the control device 301 is connected to different types of drives 303 to configure storage systems in a distributed storage architecture and storage systems in a centralized storage architecture separately.
[0136] It should be noted that the second connector may be fixedly connected to the drive 303, or may be removably connected to the drive 303. This is not a limitation herein.
[0137] When the control device 301 is connected to a distributed drive, a storage system in the distributed storage architecture may be formed. In an example, the structural diagram of the storage system in the distributed storage architecture may be the same as the structural diagram of the storage system shown in Figures 3D and 4. When the drive 303 connected to the first connector 302 in Figures 3D and 4 is a distributed drive, a storage system in the distributed storage architecture is formed.
[0138] In the storage system in the distributed storage architecture shown in FIG. 3D, the control device A, the control device B, and the control device C are distributed access nodes independent of each other, and each control device independently accesses the drives connected to the control device. When one of the control devices is defective, another node of the storage system takes over the service corresponding to the defective control device, and the data in the drives connected to the defective control device can be restored by another node based on the data in the other drives. As shown in FIG. 11, when the control device A is defective, the control device B or the control device C may take over the service of the control device A, and the data in the drives connected to the control device A can be restored to the drives connected to the control device B and the drives connected to the control device C through restoring the data in the drives connected to the control device B and restoring the data in the drives connected to the control device C.
[0139] When the control device 301 is connected to the centralized drive, a storage system of the centralized storage architecture can be formed. Figures 12A and 12B are examples of a storage system in the centralized storage architecture. The storage system 300 includes two control devices 301 and two centralized drives 303, and each control device 301 includes two first connectors 302. The two first connectors 302 of the first control device 301 are respectively connected to the second connectors 901 of the two centralized drives, and the two first connectors 302 of the second control device 301 are respectively connected to the second connectors 902 of the two centralized drives. For ease of explanation, dashed lines with arrows are used in Figure 12A to indicate the connection status between the first connector 302 and the second connector 901 and the connection status between the first connector 302 and the second connector 902. Figure 12B is a side view of the storage system 300.
[0140] In a storage system in the centralized storage architecture shown in FIG. 12B, the drives may communicate separately with the two control devices so that when one of the control devices is defective or removed, the other control device may take over the services of the defective control device.
[0141] The control device 301 is removably connected to a distributed drive or a centralized drive, so that different storage architectures can be formed based on the requirements of use. For example, when a distributed storage architecture needs to be formed, the control device 301 is allowed to be in a distributed operating mode, and a distributed drive is inserted into the first connector 302. When it is needed to switch to a centralized storage architecture, the control device 301 is allowed to be in a centralized operating mode, the distributed drive is removed, and the centralized drive is inserted.
[0142] To simplify the process of switching the storage architecture, the control device 301 may be directly connected to the generic drives. When the storage system 300 needs to switch from the centralized storage architecture to the distributed storage architecture, the control device 301 executes a system code corresponding to the distributed storage architecture and sends to the drives 303 an instruction used to instruct the drives 303 to switch to the distributed drive. After receiving the instruction, the drives 303 may switch the storage architecture of the storage system 300 from the centralized storage architecture to the distributed storage architecture by adjusting the drives 303 to the distributed drive in the first coordination manner or the second coordination manner described above. When the storage system 300 needs to switch from the distributed storage architecture to the centralized storage architecture, the control device 301 executes a system code corresponding to the centralized storage architecture and sends to the drives 303 an instruction used to instruct the drives 303 to switch to the centralized drive. After receiving the command, the drive 303 can adjust the drive 303 to the centralized drive in the third or fourth adjustment manner described above, and switch the storage architecture of the storage system 300 from the distributed storage architecture to the centralized storage architecture. In this case, the connection relationship between the control device 301 and the drive 303 is the same as the connection relationship between the control device 301 and the drive 303 in the centralized storage architecture. For details, please refer to Figure 12A and Figure 12B. Details will not be described again in this specification.
[0143] It should be noted that the second connector may be directly connected to the first connector 302. For example, the second connector may be inserted into the first connector, or the second connector may be otherwise connected to the first connector 302. For example, the second connector may be connected to the first connector 302 by using a communication bus, which may be a PCIE bus, an I / O bus, or a PCI Express bus. 2 C bus, etc. This is not limited in this specification.
[0144] The following describes the first connector 302 and the second connector.
[0145] In this embodiment of the present application, the first connector 302 and the second connector are corresponding perpendicular and orthogonal connectors, or the first connector 301 and the second connector are corresponding connectors having a preset rotation angle.
[0146] For example, the control device 301 includes one first connector 302, the drive 303 includes one second connector, the first connector 301 being a socket having a jack and the second connector being a plug having pins.
[0147] In this embodiment of the present application, for example, the control device 301 may be a circuit board, and the shape of the drive 303 may be a rectangular parallelepiped. Referring to FIG. 13A, the drive 303 includes six faces, which are faces A to F, respectively. As shown in FIG. 13A, both faces C and D of the drive are parallel to the horizontal plane, and the projections of faces C and D onto the horizontal plane are rectangles. The lengths of the two long sides of the rectangle are the same as the length of the rectangular parallelepiped corresponding to the drive 303, and the lengths of the two short sides of the rectangular parallelepiped are the same as the height of the rectangular parallelepiped corresponding to the drive 303. Faces A, F, B, and E of the drive are perpendicular to the horizontal plane. The projections of faces A and F onto the horizontal plane are line segments, and the length of the line segments is the same as the length of the rectangular parallelepiped corresponding to the drive 303. The projections of faces B and E onto the horizontal plane are also line segments, and the length of the line segments is the same as the height of the rectangular parallelepiped corresponding to the drive 303. A second connector is set on face E of the drive 303.
[0148] FIG 13B is a side view of a control device 301 including one first connector 302. In FIG 13B, the jacks of the first connector 301 are arranged in two rows by three columns, with two adjacent jacks in each row spaced equally apart, and three jacks in the first row aligned with three jacks in the second row. FIG 13C is a side view of a drive 303 including one second connector. In FIG 13C, the pins of the second connector are arranged in three rows by two columns, with two adjacent jacks in each row spaced equally apart, and three jacks in the first row aligned with three jacks in the second row. pin are equally spaced, plus two every two lines. pin are aligned with each other. When the second connector is inserted into the first connector 302, the control device 301 and the drive 303 are in the positional relationship shown in Fig. 13D. Fig. 13D is a side view of the control device 301 and the drive 303. In Fig. 13D, the control device 301 is set horizontally, with face C of the drive 303 parallel to the horizontal plane and face A of the drive 303 perpendicular to the horizontal plane.
[0149] The height of the cuboid is usually shorter than its length or width, so that one control device 301 may communicate with more drives 303, and the capacity expansion requirements of the storage system are met.
[0150] FIG. 14A is a side view of a control device 301 including one first connector 302. In FIG. 14A, the jacks of the first connector 301 are arranged in two rows, two adjacent jacks in each row are spaced apart by the same distance, and there is a specific distance between the first jack in the first row and the first jack in the second row. FIG. 14B is a side view of a drive 303 including one second connector. In FIG. 14B, the pins of the second connector are arranged in two rows, two adjacent jacks in each row are spaced apart by the same distance, and there is a specific distance between the first jack in the first row and the first jack in the second row. When the second connector is inserted into the first connector 302, the control device 301 and the drive 303 are in the positional relationship shown in FIG. 14C. FIG. 14C is a side view of the control device 301 and the drive 303. In Fig. 14C, the control device 301 is set horizontally, and there is a preset included angle between the face A of the drive 303 and the horizontal plane. In Fig. 14C, for example, the included angle between the face A of the drive 303 and the horizontal plane is 80 degrees. Of course, the face A of the drive 303 and the horizontal plane may alternatively be disposed at another angle, and the angle between the face A of the drive 303 and the horizontal plane is related to the arrangement position of the pin on the drive 303 and is not limited herein.
[0151] In the above technical solution, the first connector 302 and the second connector are vertical and orthogonal connectors, or connectors with a preset rotation angle, so that the first connector 302 and the second connector can overcome the relative shift between the control device 301 and the drives 303 in the directions of the X-axis, Y-axis, and Z-axis of the spatial coordinate system. Therefore, multiple control devices 301 can be reliably connected to multiple drives 303. The backplane of the prior art is eliminated, reducing the design complexity of the storage system and reducing the probability that the whole storage system cannot be used due to the defect of the backplane, thereby improving the reliability of the storage system.
[0152] Furthermore, the backplane of the prior art is eliminated, and by doing so, the impedance mismatch points between the control device 301 and the drives 303 in the communication process can be reduced. Specifically, the impedance mismatch between the control device 301 and the backplane, and the impedance mismatch between the backplane and the drives are reduced, which can improve the signal transmission rate.
[0153] Furthermore, the backplane of the prior art is eliminated, thereby reducing airflow bottlenecks in the storage system and improving the heat dissipation performance of the storage system. Thus, in a given space in the storage system, more devices can be allowed in the storage system with a given heat dissipation performance of the storage system, and the density of the storage system can be improved.
[0154] Those skilled in the art may select different first connectors 302 and second connectors based on the requirements of actual use to set the relative positions of the control device 301 and the drive 303 .
[0155] In addition, it should be noted that when the control device 301 includes multiple first connectors 302, a certain interval needs to be set between the multiple first connectors 302. For example, when the control device 301 and the drive 303 are 14C When connected in the second connection manner shown in FIG. 13, the spacing between every two first connectors 302 in the control device 301 is equal to or greater than the height of the drive 303. For the definition of the height of the drive 303, please refer to FIG. 13A. The details will not be described again in this specification.
[0156] In the above technical solutions, based on the requirements of use, the storage system in the centralized storage architecture or the storage system in the distributed storage architecture can be flexibly constructed by connecting the control device 301 to the drives 303 with different configurations. In addition, when the storage architecture needs to be switched, only the working modes of the control device 301 and the drives 303 need to be switched, or the drives 303 need to be replaced, and the control device 301 and the drives 303 do not need to be purchased again. This improves the flexibility of the storage system and reduces the cost of switching the storage architecture.
[0157] Based on the same inventive concept, an embodiment of the present application provides a storage system operating method, which is applied to the storage system shown in Figure 3D, Figure 4, or Figure 12A.
[0158] 15A to 15C are a flowchart of a method for operating a storage system according to an embodiment of the present application. The flowchart is described as follows.
[0159] S1: The control device performs system configuration.
[0160] In an example, the control device may be connected to a client. In the client, a user may set a type of storage system based on usage requirements. For example, the user may set the storage system to a centralized storage architecture or a distributed storage architecture. After receiving an instruction from the client, the control device may execute a system configuration according to the instruction. The system configuration includes a system code configuration of the control device. For example, the memory of the control device stores a system code corresponding to the centralized storage architecture and a system code corresponding to the distributed storage architecture, and the corresponding system code is configured for the storage system according to the instruction of the client.
[0161] The system configuration may further include a drive configuration. When the drive connected to the control device is a generic drive as shown in FIG. 10A, the control device may send commands to the drive to configure the drive to a distributed drive or a centralized drive. For example, when a command from a client commands the storage system to configure a centralized storage architecture, a command may be sent to the drive to set the number of access ports of the drive to 2. decentralized When instructing the storage architecture to configure the storage system, a command can be sent to the drive to set the number of access ports of the drive to 1. Of course, alternatively, the number of access areas in the drive can be set, and the details are not described in this specification.
[0162] Please note that step S1 is an optional step, in other words, step S1 does not need to be performed. For example, a user may directly select a control device and a drive corresponding to a storage architecture to be used based on usage requirements. For example, if a user needs to use a centralized storage architecture, the user may directly connect a control device that can implement the centralized storage architecture to the centralized drive. In this case, step S1 does not need to be performed.
[0163] S2: The control device is started and initialized.
[0164] S3: The control device sets the drive determination conditions based on the type of system configuration.
[0165] In this embodiment of the present application, the drive determination condition is used to determine whether the drive connected to the control device is compatible with the control device. For example, when in a centralized storage architecture, the control device determines whether the drive connected to the control device is a centralized drive based on the drive determination condition. In an example, if the control device determines that the system code configured for the storage system is a system code corresponding to the centralized storage architecture, the control device configures the drive determination condition as a centralized drive determination condition. The centralized drive determination condition may include information such as the manufacturer and model of the centralized drive. For example, the centralized determination condition may be manufacturer A or model A. If the control device determines that the system code configured for the storage system is a system code corresponding to the distributed storage architecture, the control device configures the drive determination condition as a distributed drive determination condition. Correspondingly, the distributed drive determination condition may include information such as the manufacturer and model of the distributed drive. For example, the distributed determination condition may be manufacturer B or model B. Of course, the centralized drive determination condition and the distributed drive determination condition may alternatively be other parameters, which is not limited in this specification.
[0166] S4: The control device detects whether each first connector is connected to or disconnected from a drive.
[0167] In one example, the CPU of the control device may detect the presence signal of the drive by using the CPLD, determine whether each first connector is connected to or disconnected from the drive, and store the determination result in a corresponding register of the CPLD. The CPU reads the value of the bit stored in the register to determine whether each first connector is connected to or disconnected from the drive. When the first connector is disconnected from the drive, the control device may output a warning by using the display of the client. For example, the control device outputs prompt information to the client, and the prompt information carries the index number of the first connector. Of course, alternatively, another warning mode may be used and is not limited herein.
[0168] S5: The control device determines the number of drives that are connected.
[0169] The control device detects whether each first connector is connected to or disconnected from a drive to determine the number of drives in a connected state. If the number of drives in a connected state is equal to 0, S13 will be executed. If the number of drives in a connected state is 1 or more, S6 will be executed.
[0170] S6: The control device obtains information about the drives that are in a connected state.
[0171] In one example, the CPU of the control device may obtain information about each connected drive by using a PCIE switch, or may send instructions to the connected drives by using a PCIE bus to obtain information about each connected drive, including relevant information such as the drive's model, capacity, and manufacturer.
[0172] S7: The control device determines the number of drives that match.
[0173] Specifically, after obtaining information about the drives in the connected state, the CPU of the control device determines the type of each drive in the connected state based on the determination condition set in S3. For example, if the determination condition set in S3 is a centralized drive determination condition, and the centralized drive determination condition is manufacturer A, the CPU determines whether the manufacturer of the drive in the connected state is manufacturer A. If the manufacturer of the drive in the connected state is manufacturer A, the CPU determines that the drive is a compatible drive. If the manufacturer of the drive in the connected state is not manufacturer A, the CPU determines that the drive is an incompatible drive. The CPU may store the determination result of the drive in the connected state in a corresponding register of the CPLD, for example, a second register. When the CPU determines that the drive is a compatible drive, the CPU sets the value of the bit in the second register of the CPLD corresponding to the drive to 1, and when the CPU determines that the drive is an incompatible drive, the CPU sets the value to 0. In addition, after determining that the drive is an incompatible drive, the CPU may further output warning information to the client.
[0174] Then, the CPU of the control device may calculate the quantity of the matching drives by using the value of the bit of the second register corresponding to each drive in the connected state of the CPLD. If the quantity of the matching drives is equal to 0, S13 will be executed; if the quantity of the matching drives is equal to 1, S8 will be executed; if the quantity of the matching drives is greater than 1, S10 will be executed.
[0175] It should be noted that in this embodiment of the present application, the execution order of steps S4 and S5, and steps S6 and S7 is not limited. Specifically, the control device may first execute steps S4 and S5, and then execute steps S6 and S7, or may first execute steps S6 and S7, and then execute steps S4 and S5, or may simultaneously execute steps S4 and S5, and steps S6 and S7. Those skilled in the art may set the order based on the usage.
[0176] S8: The control device performs the power-on startup process of a single drive.
[0177] It should be noted that when performing step S6, the CPU of the control device may obtain the information by using a PCIE switch in step S6, or may obtain the information by using a PCIE bus in step S6, and therefore the execution order of step S8 is described for two different implementations.
[0178] If the information is obtained by using the PCIE switch in step S6, step S8 is performed after step S6. If the information is obtained by using the PCIE bus in step S6, the control device needs to first perform step S8 to power on the drive, and then perform step S6.
[0179] S9: The control device controls the corresponding compatible drive to be in operation.
[0180] Specifically, the CPU of the control device controls a clock signal generator to provide an operating clock and / or a clock used to transmit high-speed signals to the compatible drives, thereby causing the compatible drives to enter an operational state.
[0181] S10: The control device is in-batch powered on. of Run the process.
[0182] Specifically, when determining that the number of compatible drives is greater than one, the CPU of the control device may first power on one or some of the multiple compatible drives based on a preset reliability policy or fault-tolerant policy, and then power on the remaining drives. The content of the specific policy is not limited in this specification.
[0183] S11: The control device controls the corresponding compatible drives in several steps to be in an operational state.
[0184] Step S11 is the same as step S9, and the details will not be described again.
[0185] S12: Start the storage system of the corresponding architecture.
[0186] S13: The control device detects whether the connection or disconnection state between the drive and the first connector changes.
[0187] Specifically, the PCIE switch of the control device monitors whether the connection or disconnection state between the drive and the first connector changes by using an interrupt signal of the CPLD. If the PCIE switch obtains the interrupt signal of the CPLD through detection, the PCIE switch determines that a change occurs, and S14 is executed. If the PCIE switch does not obtain the interrupt signal of the CPLD through detection, the PCIE switch determines that no change occurs, and S18 is executed.
[0188] S14: The control device determines whether the quantity of drives in a connected state changes.
[0189] Specifically, the CPU of the control device determines whether the number of drives in a connected state changes based on the value of the bit of the first register of the CPLD. If the CPU determines that the number of drives in a connected state increases based on the value of the bit of the first register, the CPU determines that a drive is inserted, and step S5 will be executed. If the CPU determines that the number of drives in a connected state decreases based on the value of the first register, the CPU determines that a drive is removed, and step S15 will be executed.
[0190] S15: The control device determines whether the drive to be removed is a defective drive.
[0191] Specifically, the CPLD of the control device monitors the working state of each drive in a connected state in real time, and stores the monitoring result in a register configured to store the defective state of the drive in the CPLD. When determining that a drive is to be removed, the CPU reads the value of the bit of the register configured to store the defective state of the drive and corresponding to the drive in the CPLD, and determines whether the drive is a defective drive. If the drive is a defective drive, step S17 will be executed. If the drive is not a non-defective drive, step S16 will be executed.
[0192] S16: The control device controls the drive to be in a power-off state, stops providing a clock signal for the drive, and sets the value of a bit in a first register of the CPLD to a value corresponding to a connected state.
[0193] S17: The control device clears the record of the defect state of the drive and sets the value of the bit in the first register of the CPLD to a value corresponding to a disconnected state.
[0194] Since the drive has already been removed, the control device needs to clear the record of the drive's defect status. In other words, the value of the bit of the register configured to store the drive's defect status of the CPLD, which is used to indicate whether the drive is in a defect status, is set to an initial value. In one example, the initial value of the bit of the register configured to store the drive's defect status of the CPLD is 0, and by doing so, the value of the bit is set to 0.
[0195] S18: The control device detects a defective condition in the drive.
[0196] The CPU reads the value of the bit of the register configured to store the defect status of the drive in the CPLD and corresponding to the drive, and determines whether the drive is a defective drive. If the drive is a defective drive, step S19 will be executed. If the drive is not a defective drive, step S20 will be executed.
[0197] S19: The control device controls the drive to be in a power-off state, stops providing a clock signal for the drive, and sets the value of the bit in the first register of the CPLD to a value corresponding to a disconnected state.
[0198] S20: The control device detects whether a shut-off command is received.
[0199] The CPU of the control device monitors whether a shutdown command is received from the client, if a shutdown command is received, step S21 will be executed, if no shutdown command is received, step S13 will be executed.
[0200] S21: Stop.
[0201] In the storage system operation method shown in Figures 15A to 15C, before startup, the control device of the storage system determines the operation mode of the control device, specifically, the mode of operating in a centralized storage architecture or the mode of operating in a distributed storage architecture, and then the storage system operates in the operation mode.
[0202] In the storage system of an embodiment of the present application, the operation mode switching can also be performed during operation. Figure 16 is a flowchart of a method for switching the operation mode of a storage system according to an embodiment of the present application. The flowchart is described as follows.
[0203] Step S1601: M control devices in the storage system operate in a first operating mode.
[0204] In this embodiment of the present application, the M control devices support a first working mode and a second working mode, and the first working mode and the second working mode have the following two definitions:
[0205] First definition: When the first operating mode is a mode of operating in a centralized storage architecture, the second operating mode is a mode of operating in a distributed storage architecture.
[0206] Second definition: When the first operating mode is a mode of operating in a distributed storage architecture, the second operating mode is a mode of operating in a centralized storage architecture.
[0207] It should be noted that M is a positive integer. The specific contents of the first working mode and the second working mode have already been described above, and the details will not be described again in this specification.
[0208] Step S1602: At least one control device among the M control devices sends a first command to each of the K drives in the storage system, and each of the K drives receives the first command.
[0209] In this embodiment of the present application, the first command is used to command a drive that receives the first command to operate in a second operating mode.
[0210] In an example, the M control devices may be separately connected to the client, and the M control devices receive an instruction sent by the client to switch from a first working mode to a second working mode, and send a first instruction to the K drives. The M control devices may also operate in a first working mode in a first time period and in a second working mode in a second time period by using a pre-stored operation policy, e.g., a user setting, and the storage system sends the first instruction to the K drives when it determines that a switching condition is met. Alternatively, a primary control device and a secondary control device may be configured in the M control devices. The primary control device determines that the drives need to be switched from the first working mode to the second working mode from the client or by using a pre-stored operation policy, and sends the first instruction to each of the K drives. Of course, the M control devices may be triggered in another manner to send the first instruction to each of the K drives, which is not limited in this specification.
[0211] It should be noted that the first command may be transmitted by each of the M control devices, or may be transmitted by one or some of the M control devices, which is not limited herein.
[0212] In the storage system, each of the M control devices may communicate with the K drives by using all of the N first connectors and all of the N second connectors, or each of the M control devices may communicate with the K drives by using some of the N first connectors and some of the N second connectors. The N first connectors are configured to removably connect to the M control devices, and the N second connectors are configured to removably connect to the K drives. Each of the K drives is configured to store data, where N and K are positive integers.
[0213] It should be noted that the structure of the first connector, the structure of the second connector, the manner in which the first connector is connected to the control device, the manner in which the second connector is connected to the drive, and the structures and functions of the control device and the drive have already been described above and will not be described again in this specification.
[0214] In addition, it should be noted that the execution order of step S1601 and step S1602 is not limited in this embodiment of the present application. Specifically, step S1601 may be executed first, and then step S1602, or step S1602 may be executed first, and then step S1601, or step S1601 and step S1602 may be executed simultaneously.
[0215] Step S1603: Control P second connectors among X second connectors of each of the K drives according to the first command so that each of the K drives is in a state suitable for the second operating mode.
[0216] In this embodiment of the present application, the second operating mode may be a mode of operating in a distributed storage architecture, or may be a mode of operating in a centralized storage architecture. Therefore, the definition of controlling P second connectors among X second connectors of each drive to be in a state suitable for the second operating mode is also different, specifically as follows:
[0217] When the second operating mode is a mode of operating in a distributed storage architecture, controlling one of the P second connectors to be in a state adapted to the second operating mode includes: and controlling the drive to stop communicating with a control device corresponding to the first connector connected to the second connector by using the second connector, where X and P are positive integers and the difference between X and P is 1.
[0218] When the second operating mode is a mode of operating in a centralized storage architecture, controlling the P number of second connectors to be in a state suitable for the second operating mode includes: controlling the drive to resume communication with control devices corresponding to the L first connectors connected to the L second connectors by using L second connectors among the P second connectors, where L is a positive integer and L is less than or equal to P.
[0219] It should be noted that the method of controlling the drive to stop communicating with a control device corresponding to a first connector connected to the second connector by using a second connector, and the method of controlling the drive to resume communicating with a control device corresponding to L first connectors connected to the L second connectors by using L second connectors have been described above and will not be described in detail again in this specification.
[0220] After the drives have completed switching the operating mode, the entire storage system is switched from the storage architecture corresponding to the first operating mode to the storage architecture corresponding to the second operating mode, completing the storage architecture switching process.
[0221] In the above technical solution, when the storage system needs to switch the working mode, the working mode of the control device is switched, and the control device sends a working mode switching command to the drive to switch the working mode of the storage system without changing the hardware structure and connection relationship. The step of switching the working mode of the storage system can be simplified.
[0222] From the description of the implementation above, those skilled in the art can clearly understand that the embodiments of the present application can be implemented by hardware, firmware, or a combination thereof. When the embodiments of the present application are implemented by software, the functions described above can be stored in a computer-readable medium or transmitted as one or more instructions or codes in a computer-readable medium. A computer-readable medium includes a computer storage medium or a communication medium. A communication medium includes any medium that facilitates the transmission of a computer program from one place to another. A storage medium can be any available medium accessible by a computer. This is used as an example, but is not limited to the following. A computer-readable medium can include a RAM, a ROM, an electrically erasable programmable read only memory (EEPROM), a compact disc read-Only memory (CD-ROM) or other optical disk storage, a magnetic disk storage medium or other magnetic storage device, or any other medium that can be configured to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. In addition, any connection can be properly defined as a computer-readable medium. For example, if the software is transmitted from a website, server, or another remote source by using coaxial cable, fiber optic / cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, the coaxial cable, fiber optic / cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the fixation of the medium to which they belong. For example, disks and discs used in embodiments of the present invention include compact discs (CDs), laser discs, optical discs, digital versatile discs (DVDs), floppy disks, and Blu-ray discs.Disks generally replicate data by magnetic means, and disks replicate data optically by laser means. Combinations of the above should also be included in the scope of protection of the computer readable medium.
[0223] In summary, what has been described above is only an embodiment of the present application, and is not intended to limit the scope of protection of the present application. Any modification, equivalent replacement, or improvement made according to the disclosure of the present application shall fall within the scope of protection of the present application.
Claims
1. A storage system, comprising: A storage drive comprising a physical connector A and a physical connector B, the physical connector A and the physical connector B being two independent access ports; a first control device connected to the storage drive via the physical connector A and configured to access the storage drive via the physical connector A; a second control device connected to the storage drive via the physical connector B and configured to access the storage drive via the physical connector B; Equipped with The storage drive includes: providing a first storage space within the storage drive accessible to the first control device via the physical connector A; providing a second storage space within the storage drive accessible to the second control device via the physical connector B; or The storage drive includes: configured to provide a third storage space within the storage drive, the third storage space being accessible by the first control device via the physical connector A and the second control device via the physical connector B; Storage system.
2. The first control device is configured to access a first storage space in the storage drive via the physical connector A; the second control device is configured to access a second storage space in the storage drive via the physical connector B, the first storage space being different from the second storage space; The storage system according to claim 1 .
3. The first control device is configured to access a third storage space in the storage drive via the physical connector A; the second control device is configured to access the third storage space in the storage drive via the physical connector B; 3. The storage system according to claim 1 or 2.
4. The first control device Obtaining a status of the storage drive; Stop providing power to the physical connector A when the storage drive is in a disconnected or defective state. further comprising: The storage system according to any one of claims 1 to 3.
5. The storage drive, a high-speed signal interface configured to transmit service data to the first control device and the second control device; a low-speed signal interface configured to receive instructions from the first control device or the second control device, the instructions being to obtain information about the storage drive; and Further comprising: The storage system according to any one of claims 1 to 4.
6. The physical connector A and the physical connector B are PCIe connectors or NVMe connectors. The storage system according to any one of claims 1 to 4.
7. The storage drive is a solid-state drive (SSD). The storage system according to any one of claims 1 to 4.
8. A storage drive, comprising: A physical connector A; A physical connector B; a controller connected to the physical connector A and the physical connector B and configured to control access to the storage drives via the physical connector A and the physical connector B, respectively, the physical connector A and the physical connector B being two independent access ports; Equipped with The controller: providing a first storage space within said storage drive for access by a first control device via said physical connector A; providing a second storage space within said storage drive for access by a second control device via said physical connector B; or The controller: and providing a third storage space within the storage drive for access by a first control device via the physical connector A and by a second control device via the physical connector B. Storage drive.
9. A high-speed signal interface configured to transmit service data to the first control device and the second control device; a low-speed signal interface configured to receive commands from a first control device via the physical connector A or from a second control device via the physical connector B, the commands being to obtain information about the storage drives; and Further comprising: The storage drive of claim 8.
10. The storage drive, a high-speed signal interface configured to transmit service data to the first control device and the second control device; a low-speed signal interface configured to receive instructions from the first control device or the second control device, the instructions being to obtain information about the storage drive; and Further comprising:
10. A storage drive as claimed in claim 8 or 9.
11. The physical connector A and the physical connector B are PCIe connectors or NVMe connectors.
10. A storage drive as claimed in claim 8 or 9.
12. The storage drive is a solid-state drive (SSD).
10. A storage drive as claimed in claim 8 or 9.
13. A method for accessing a storage drive in a storage system, comprising: accessing the storage drive via a physical connector A of the storage drive by a first control device of the storage system; accessing the storage drive by a second control device of the storage system through a physical connector B of the storage drive, the physical connector A and the physical connector B being two independent access ports on the storage drive; Including, the step of accessing by the first control device accessing a first storage space in the storage drive via the physical connector A, and the step of accessing by the second control device accessing a second storage space in the storage drive via the physical connector B, the first storage space being different from the second storage space; or In the step of accessing by the first control device, a third storage space in the storage drive is accessed via the physical connector A, and in the step of accessing by the second control device, the third storage space in the storage drive is accessed via the physical connector B. method.
14. The method of claim 13, further comprising: acquiring, by the first control device, a status of the storage drive; stopping, by the first control device, supplying power to the physical connector A when the storage drive is in a disconnected state or a defective state; Further comprising: The method of claim 13.
15. The storage drive, a high-speed signal interface configured to transmit service data to the first control device and the second control device; a low-speed signal interface configured to receive instructions from the first control device or the second control device, the instructions being to obtain information about the storage drive; and Further comprising:
15. The method according to claim 13 or 14.
16. The physical connector A and the physical connector B are PCIe connectors or NVMe connectors.
15. The method according to claim 13 or 14.
17. The storage drive is a solid-state drive (SSD).
15. The method according to claim 13 or 14.
Citation Information
Patent Citations
Logical sector mapping in flash storage arrays
JP2014529126A
Storage system and method of storage system for constructing system
WO2018051386A1
