Data storage system and method, electronic equipment and storage medium

By introducing the target storage subsystem and management controller into the data storage system, dynamically adjusting the hardware connection mode and data storage attributes, the problem of traditional systems requiring reconfiguration of firmware during data attribute switching is solved, achieving efficient energy saving and reducing development costs.

CN119847418APending Publication Date: 2025-04-18INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411631807.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-15
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

Traditional data storage systems need to reconfigure firmware when switching data storage attributes, resulting in increased development costs.

Method used

By introducing the target storage subsystem and management controller into the data storage system, the hardware connection mode between the main control board and the hard disk backplane is dynamically adjusted, and data storage attributes are switched instantly to adapt to the switching scenarios of different data attributes.

Benefits of technology

It realizes automatic adaptation to the switching of different data attributes without reconfiguring the firmware, reducing development costs and ensuring efficient and energy-saving data storage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119847418A_ABST
    Figure CN119847418A_ABST
Patent Text Reader

Abstract

The invention provides a data storage system and method, electronic equipment and a storage medium. The system comprises a target storage subsystem and a management controller, wherein the target storage subsystem comprises a main control board and a plurality of hard disk backboards; the main control board is used for acquiring a to-be-switched data storage attribute according to a data storage attribute switching instruction corresponding to the target storage subsystem, and sending a connection mode switching instruction to each hard disk backboard according to a hardware connection mode corresponding to the to-be-switched data storage attribute; the hard disk backboards are used for switching the hardware connection modes between the hard disk backboards and the main control board according to the connection mode switching instruction; and the management controller is used for switching the data storage attribute of the main control board and the data storage attribute of each hard disk backboard into the to-be-switched data storage attribute according to the parameter configuration range corresponding to the to-be-switched data storage attribute when determining that the hardware connection mode is switched successfully. According to the invention, the development cost is reduced under the condition of ensuring high efficiency and energy conservation of data storage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] As the amount of data increases, the server and storage industries have more and more demands for data storage and application. As the business develops, the access mode and importance of data may change. Therefore, in the development process of servers and storage, it is often necessary to switch between cold data and warm data. Therefore, how to efficiently design a storage system that can cope with tiered storage of data with different attributes is an important topic that needs to be studied urgently.

[0003] In traditional data storage systems, corresponding storage spaces are usually pre-set for cold data or warm data to be stored. However, when the data storage attribute required to be stored in a certain storage space switches, such as switching from cold data storage attribute to warm data storage attribute, the storage space often cannot directly adapt to the switching scenario of this data storage attribute. At this time, it is necessary to re-develop the firmware of the storage space for the new data storage attribute to be switched, which increases the development cost. Summary of the invention

[0004] The present invention provides a data storage system, method, electronic device and storage medium, which are used to solve the defect in the prior art that corresponding storage spaces are pre-set for different data attributes, resulting in the need to re-develop firmware when the data attributes to be stored in the storage space are switched, resulting in increased development costs, thereby reducing development costs while ensuring efficient and energy-saving data storage.

[0005] The present invention provides a data storage system, comprising: a target storage subsystem and a management controller, wherein the target storage subsystem comprises a main control board and a plurality of hard disk backboards; The main control board is used to obtain the data storage attribute to be switched of the target storage subsystem according to the data storage attribute switching instruction corresponding to the target storage subsystem, and send a connection mode switching instruction to each hard disk backplane according to the hardware connection mode corresponding to the data storage attribute to be switched; Each of the hard disk backplanes is used to switch the hardware connection mode between each of the hard disk backplanes and the main control board according to the connection mode switching instruction; The management controller is used to switch the data storage attributes of the main control board and the data storage attributes of each hard disk backplane to the data storage attributes to be switched according to the parameter configuration range corresponding to the data storage attributes to be switched when it is determined that the hardware connection mode between each hard disk backplane and the main control board is switched successfully; the data storage attributes to be switched include warm data storage attributes or cold data storage attributes.

[0006] According to a data storage system provided by the present invention, each hard disk backplane is also used for: According to the connection mode switching instruction, determine the number of hardware connections of the expansion port of the main control board corresponding to each hard disk backplane; According to the number of hardware connections, the hardware connection mode between each hard disk backplane and the main control board is switched.

[0007] According to a data storage system provided by the present invention, each hard disk backplane is also used for: Obtaining the instruction type of the connection mode switching instruction; When it is determined that the connection mode switching instruction is a first switching instruction according to the instruction type, determining that the number of hardware connections is a first preset number; According to the first preset number, the hardware connection mode between each of the hard disk backplanes and the main control board is switched to the first connection mode; Among them, the first connection mode includes a connection mode in which each of the hard disk backplanes is connected to the first preset number of expansion ports in the main control board; the first switching instruction is issued by the main control board according to the hardware connection mode corresponding to the warm data storage attribute when it is determined that the data storage attribute to be switched is a warm data storage attribute based on the type of the data storage attribute to be switched.

[0008] According to a data storage system provided by the present invention, each hard disk backplane is also used for: When it is determined that the connection mode switching instruction is a second switching instruction according to the instruction type, determining that the number of hardware connections is a second preset number; According to the second preset number, the hardware connection mode between each of the hard disk backplanes and the main control board is switched to a second connection mode; Among them, the second connection mode includes a connection mode in which each of the hard disk backplanes is connected to the second preset number of expansion ports in the main control board; the second switching instruction is issued by the main control board according to the hardware connection mode corresponding to the cold data storage attribute when it is determined that the data storage attribute to be switched is a cold data storage attribute based on the type of the data storage attribute to be switched; and the second preset number is greater than the first preset number.

[0009] According to a data storage system provided by the present invention, the system further comprises a plurality of bus adapter ports; The first end of each bus adapter port is connected to the host end, and the second end of each bus adapter port is correspondingly connected to a third preset number of expansion ports of the main control board; The third preset number is determined according to the number of the hard disk backplanes.

[0010] According to a data storage system provided by the present invention, the management controller is further used for: Scan and obtain the drive device name of the main control board and the drive device name of each hard disk backplane; Generate an attribute configuration instruction according to the parameter configuration range corresponding to the data storage attribute to be switched, the drive device name of the main control board and the drive device name of each hard disk backplane; According to the attribute configuration instruction, the data storage attribute of the main control board and the data storage attribute of each hard disk backplane are switched to the data storage attribute to be switched; When it is determined that the main control board and each of the hard disk backplanes have completed the data storage attribute switching, the main control board and each of the hard disk backplanes are restarted and then the data storage attribute configuration is verified; When it is verified that the data storage attributes of the main control board and each of the hard disk backplanes after restart are the data storage attributes to be switched, it is determined that the data storage attribute switching state of the target storage subsystem is a success state.

[0011] According to a data storage system provided by the present invention, the data storage system further comprises a plurality of storage subsystems; The management controller is also used for: When a data storage attribute switching request is obtained, a partition identifier and a target data storage attribute are obtained by parsing the data storage attribute switching request; According to the partition identifier, locate the target storage subsystem in the plurality of storage subsystems, and obtain the current data storage attribute of the target storage subsystem according to the partition identifier; According to the target data storage attribute and the current data storage attribute, a data storage attribute switching instruction corresponding to the target storage subsystem is obtained.

[0012] The present invention further provides a data storage method, which is applied to any of the data storage systems described above, and comprises: According to the data storage attribute switching instruction corresponding to the target storage subsystem, the data storage attribute to be switched of the target storage subsystem is obtained, and according to the hardware connection mode corresponding to the data storage attribute to be switched, a connection mode switching instruction is sent to each hard disk backplane in the target storage subsystem; According to the connection mode switching instruction, the hardware connection mode between each hard disk backplane and the main control board in the target storage subsystem is switched; When it is determined that the hardware connection mode switch between each hard disk backplane and the main control board is successful, the data storage attributes of the main control board and the data storage attributes of each hard disk backplane are switched to the data storage attributes to be switched according to the parameter configuration range corresponding to the data storage attributes to be switched; the data storage attributes to be switched include warm data storage attributes or cold data storage attributes.

[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-mentioned data storage methods is implemented.

[0014] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, any of the data storage methods described above is implemented.

[0015] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned data storage methods.

[0016] The data storage system, method, electronic device and storage medium provided by the present invention can dynamically adjust the hardware connection mode between the main control board and each hard disk backplane according to the data storage attribute switching instruction through the coordinated work of the target storage subsystem and the management controller, and instantly switch the data storage attributes, so that the storage partition formed by a single storage subsystem can automatically adapt to different data attribute switching scenarios through simple hardware connection mode switching and data storage attribute switching, avoiding manual reconfiguration of firmware, which not only ensures efficient and energy-saving data storage, but also reduces the development cost required for repeated firmware development of storage space for switching of different data attributes, thereby effectively solving the problem of needing to reconfigure the firmware and increase the development cost due to data attribute switching in traditional data storage systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 This is one of the structural schematic diagrams of the data storage system provided by the present invention.

[0019] Figure 2 This is the second structural schematic diagram of the data storage system provided by the present invention.

[0020] Figure 3 This is the third structural schematic diagram of the data storage system provided by the present invention.

[0021] Figure 4 This is one of the structural schematic diagrams of the data storage system under the warm data storage attribute provided by the present invention.

[0022] Figure 5 This is the second structural schematic diagram of the data storage system under the warm data storage attribute provided by the present invention.

[0023] Figure 6 It is a structural schematic diagram of a data storage system under the cold data storage attribute provided by the present invention.

[0024] Figure 7 It is a flow chart of the data storage method provided by the present invention.

[0025] Figure 8 It is a structural schematic diagram of the electronic device provided by the present invention.

[0026] Reference numerals: 10: target storage subsystem; 11: main control board; 12: hard disk backplane; 20: management controller; 30: bus adapter port. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0028] It should be noted that the "warm data" and "cold data" mentioned in the embodiments of the present application are data of different data attributes divided according to the access frequency of the data, among which "warm data" refers to data with an access frequency higher than a certain value, and "cold data" refers to data with an access frequency lower than a certain value.

[0029] As the amount of data increases, the server and storage industries have increasing demands for data storage and application.

[0030] Currently, a separate storage device is usually pre-configured for the storage of current cold data, and a separate storage device is also pre-configured for the storage of warm data. Cold data storage devices have a lower transmission rate but a good energy-saving effect, while warm storage devices have a higher transmission rate but a poor energy-saving effect. As the access mode and importance of data may change with the development of business, it is often necessary to switch between cold data and warm data during the development of servers and storage.

[0031] However, when the data attribute to be stored in a storage space is switched, such as switching from cold data storage attribute to warm data storage attribute, the storage space is often unable to directly adapt to the switching scenario of the data storage attribute. At this time, the firmware configuration of the storage space needs to be reconfigured according to the new data storage attribute to be switched, which increases the development cost.

[0032] In summary, current conventional technologies are all about hot and cold operations on data and storing cold and warm data through databases, but there are no operations on hot and cold storage devices, and no power on and off operations on hard disks, resulting in the inability to cope with the scenario where the data storage attributes required to be stored in the storage space are switched.

[0033] In this regard, the embodiment of the present application provides a data storage system to solve the above technical problems. The system can be widely used in the research and development process of systems that require data partition storage, such as servers, storage devices, switches, and cloud operating systems.

[0034] Figure 1 is one of the structural diagrams of the data storage system provided by the present invention; Figure 1 As shown, the system at least includes a target storage subsystem 10 and a management controller 20 .

[0035] The management controller here can be a device that manages and controls different storage subsystems, such as a baseboard management controller (BMC), etc., and this embodiment does not specifically limit this. The target storage subsystem here is the storage subsystem corresponding to the storage partition that currently needs to switch the data storage attribute; the number of the target storage subsystem can be one or more. The following takes a target storage subsystem as an example to describe the data storage attribute switching process of the data storage system, and each target storage subsystem can refer to it to switch the data storage attribute.

[0036] The target storage subsystem 10 includes a main control board 11 and a plurality of hard disk backplanes 12 .

[0037] Figure 2 This is the second structural schematic diagram of the data storage system provided by the present invention. Figure 3 This is the third structural schematic diagram of the data storage system provided by the present invention.

[0038] like Figure 2 and Figure 3 As shown, the main control board here can be the general control end, which is specifically responsible for the data storage attribute configuration of the storage area (also called Zone) corresponding to the target storage subsystem, that is, it is used to manage and control multiple hard disk backplanes; the main control board can be constructed based on various control boards, such as it can be constructed based on a communication management unit (Communication Management Unit, CMU) board configured with an expansion board (also called expander), etc. The CMU board is configured with an expansion board based on a serial attached small computer system (Serial Attached Small Computer System, SAS) interface (referred to as SAS-expander), and the model of the SAS interface configured in the CMU board can be configured according to actual needs, such as the model SAS35×36R, etc., which is not specifically limited in this embodiment. The number of channels or connection points of the SAS interface in the CMU board is determined according to the number of hard disks, such as the square of the number of hard disks, that is, when there are 4 hard disk backplanes, the corresponding number of channels or connection points of the SAS interface in the CMU board is 16; in addition, the transmission rate of the SAS interface in the CMU board can be set according to actual needs, such as 12G, etc., which is not specifically limited in this embodiment.

[0039] The number of hard disk backplanes here can be set according to actual needs, such as 4 hard disk backplanes, etc., and this embodiment does not make any specific limitation on this.

[0040] like Figure 2 and Figure 3As shown, each hard disk backplane can be constructed based on an expansion board (SAS-expander for short) of a serial attached small computer system (SAS) interface. Accordingly, each hard disk backplane is deployed with multiple hard disks that can be used for data storage, and can also be deployed with a serial attached small computer system (SAS) interface; the models of SAS interfaces on different hard disk backplanes can be configured according to actual needs, such as the models of SAS interfaces on some hard disk backplanes are SAS35×36R, and the models of SAS interfaces on some hard disk backplanes are SAS35×28R, etc. This embodiment does not specifically limit this.

[0041] The number of channels or connection points of each SAS interface can be set according to the number of hard disk backplanes, such as the same as the number of hard disks, that is, when there are 4 hard disk backplanes, the corresponding number of channels or connection points of each SAS interface is also 4; the transmission rate of each SAS interface can be set according to actual needs, such as 12G, etc., which is not specifically limited in this embodiment.

[0042] The number of hard disks deployed on each hard disk backplane may be the same or different, such as the number of hard disks deployed on some hard disk backplanes is 28, the number of hard disks deployed on some hard disk backplanes is 24, etc. This embodiment does not specifically limit this.

[0043] Each hard disk backplane is responsible for controlling and managing each hard disk deployed thereon.

[0044] In some embodiments, the system further comprises a plurality of bus adapter ports 30; A first end of each of the bus adapter ports 30 is connected to the host end, and a second end of each of the bus adapter ports 30 is correspondingly connected to a third preset number of expansion ports of the main control board 11; The third preset number is determined according to the number of the hard disk backplanes 12 .

[0045] The bus adapter port here is a port used to establish a communication channel between the host end and the main control board, which may be a host bus adapter (Host Bus Adapter, HBA) port, etc., which is not specifically limited in this embodiment.

[0046] In order to better store the data of the host end in the target storage subsystem, the number of the bus adapter ports here can be determined according to the number of hard disk backplanes, such as being consistent with the number of hard disk backplanes, that is, when the number of hard disk backplanes is 4, the number of the bus adapter ports is also 4. In addition, the first end of each bus adapter port is connected to the host end, and the second end is correspondingly connected to the third preset number of expansion ports of the main control board; in order to better realize the data interaction between the host end and each hard disk backplane in the target storage subsystem, the number of corresponding connections between each bus adapter port and the expansion port of the main control board, that is, the third preset number, can also be determined according to the number of hard disk backplanes, such as being consistent with the number of hard disk backplanes, that is, when the number of hard disk backplanes is 4, the number of corresponding connections between each bus adapter port and the expansion port of the main control board is also 4.

[0047] like Figure 3 As shown, exemplarily, when the number of hard disk backplanes is 4, the main control board can be set with 16 expansion ports accordingly, and the 16 expansion ports are connected to the bus adapter ports upward, that is, every 4 expansion ports are connected to 1 bus adapter port, and the 16 expansion ports are connected to the 4 hard disk backplanes at the rear end downward, that is, each hard disk backplane corresponds to 4 expansion ports; that is, the main control board can be connected to 4 bus adapter ports externally through 16 expansion ports, and can be connected to 4 different hard disk backplanes internally through 16 expansion ports.

[0048] The main control board 11 is used to obtain the data storage attribute to be switched of the target storage subsystem according to the data storage attribute switching instruction corresponding to the target storage subsystem, and send a connection mode switching instruction to each hard disk backplane according to the hardware connection mode corresponding to the data storage attribute to be switched.

[0049] Here, the data storage attribute switching instruction corresponding to the target storage subsystem is an instruction for instructing to switch the data storage attribute of the target storage subsystem, which can be a user input entered in the front-end interface of the data storage system when the target storage subsystem needs to switch the data storage attribute, or can be information generated under certain conditions by other controllers, such as a management controller, or other devices inside the data storage system, such as a data storage attribute switching instruction triggered under certain conditions. The so-called user input can be information input through a command line interface, a graphical interface, a touch input, a drop-down selection input, a voice input, a gesture input, a visual input, a brain-computer input, etc., and this embodiment does not specifically limit this.

[0050] Optionally, after obtaining the data storage attribute switching instruction corresponding to the target storage subsystem, the main control board can parse the data storage attribute switching instruction to obtain the data storage attribute to be switched of the target storage subsystem, or parse the data storage attribute switching instruction to obtain the storage attribute identifier, so as to obtain the data storage attribute to be switched of the target storage subsystem according to the association relationship between the storage attribute identifier and the data storage attribute, etc. This embodiment does not specifically limit this. The data storage attribute to be switched here can be a warm data storage attribute or a cold data storage attribute.

[0051] Since different data storage attributes are pre-associated with different hardware connection modes, such as the hardware connection mode corresponding to the warm data storage attribute is the first connection mode, and the hardware connection mode corresponding to the cold data storage attribute is the second connection mode, wherein in the first connection mode and the second connection mode, the number of corresponding connections between each hard disk backplane and the expansion port of the main control board is different.

[0052] Therefore, after obtaining the data storage attributes to be switched, the main control board can map and obtain the hardware connection mode corresponding to the data storage attributes to be switched based on the association between different data storage attributes and different hardware connection modes, and generate corresponding connection mode switching instructions based on the hardware connection mode corresponding to the data storage attributes to be switched, and send them to each hard disk backplane to instruct each hard disk backplane to adjust the hardware connection mode between itself and the main control board, thereby adapting to the new data storage attributes.

[0053] Each of the hard disk backplanes 12 is used to switch the hardware connection mode between each of the hard disk backplanes and the main control board according to the connection mode switching instruction.

[0054] Optionally, after each hard disk backplane obtains the connection mode switching instruction sent by the main control board, it can adjust the hardware connection mode between each hard disk backplane and the main control board according to the hardware connection method indicated in the connection mode switching instruction, so as to switch the hardware connection mode between each hard disk backplane and the main control board to the hardware connection mode corresponding to the data storage attribute to be switched. The hardware connection mode switching here includes the on-off operation of the connection path between each hard disk backplane and each expansion port in the main control board for the hardware connection mode corresponding to the data storage attribute to be switched, that is, the configuration of the access rights of the main control board to different hard disk backplanes, thereby adapting to the new data storage attribute.

[0055] The management controller 20 is used to switch the data storage attributes of the main control board and the data storage attributes of each hard disk backplane to the data storage attributes to be switched according to the parameter configuration range corresponding to the data storage attributes to be switched when it is determined that the hardware connection mode between each hard disk backplane and the main control board is switched successfully; the data storage attributes to be switched include warm data storage attributes or cold data storage attributes.

[0056] Optionally, the management controller may monitor the switching of the hardware connection mode between each hard disk backplane and the main control board in real time. When it is determined that the hardware connection mode between each hard disk backplane and the main control board is successfully switched to the hardware connection mode corresponding to the data storage attribute to be switched, it is determined that the switching of the hardware connection mode between each hard disk backplane and the main control board is successful. At this time, the data storage attributes of the main control board and the hard disk backplane may be adjusted according to the parameter configuration range corresponding to the data storage attribute to be switched, so as to switch the data storage attributes of the main control board and the data storage attributes of each hard disk backplane to the data storage attribute to be switched. Among them, the switching of data storage attributes includes but is not limited to parameter modification, configuration setting, etc., which is not specifically limited in this embodiment.

[0057] For example, the data storage attribute of each hard disk backplane is switched to the cold data storage attribute, which can be implemented by the following code: "sg_senddiag -p -r 10,0,0,2,4,0 / dev / XXX"; Among them, "XXX" is the name of the drive device corresponding to each hard disk backplane, such as sg2, sg31, sg60, etc. Therefore, the code can be executed sequentially for each hard disk backplane, or it can be executed in a loop for all hard disk backplanes through a for loop to switch the data storage attribute of all hard disk backplanes to the cold data storage attribute.

[0058] Similarly, switching the data storage attribute of the main control board to the cold data storage attribute can also be implemented using the above code, which will not be repeated here.

[0059] In addition, you can also switch the partition identifier of the main control board to the cold data storage partition, which can be achieved through the following code: "sg_senddiag -p -r 12,0,0,2,2,4 / dev / XXX"; Among them, "XXX" is the name of the drive device corresponding to the main control board, such as sg115, sg203, etc.

[0060] It should be noted that when there are multiple target storage subsystems, the code can be executed sequentially for the main control board in each target storage subsystem to switch the data storage attributes of the main control boards of all target storage subsystems to cold data storage attributes. For example, when there are 8 target storage subsystems, the code needs to be executed 8 times in a loop to switch the data storage attributes of the main control boards of the 8 target storage subsystems to cold data storage attributes.

[0061] In addition, the management controller can also monitor in real time whether the data storage attributes of the main control board and the data storage attributes of each hard disk backplane have been successfully switched to the data storage attributes to be switched. If it is determined that the data storage attributes to be switched have been successfully switched, it is confirmed that the data storage attributes of the target storage subsystem have been switched to the data storage attributes to be switched. Subsequently, the data storage value matching the data storage attributes to be switched can be stored in the target storage subsystem, thereby achieving the effect of data protection and energy saving.

[0062] The system provided in this embodiment, through the collaborative work of the target storage subsystem and the management controller, can dynamically and automatically adjust the hardware connection mode between the main control board and each hard disk backplane according to the data storage attribute switching instruction, and instantly switch the data storage attributes, so that the storage partition formed by a single storage subsystem can automatically adapt to different data attribute switching scenarios through simple hardware connection mode switching and data storage attribute switching, avoiding manual reconfiguration of firmware, which not only ensures efficient and energy-saving data storage, but also reduces the development cost required for repeated firmware development of storage space for switching of different data attributes, thereby effectively solving the problem of the need to reconfigure the firmware and increase the development cost due to data attribute switching in traditional data storage systems.

[0063] In some embodiments, each hard disk backplane 12 is further used for: According to the connection mode switching instruction, determine the number of hardware connections of the expansion port of the main control board corresponding to each hard disk backplane; According to the number of hardware connections, the hardware connection mode between each hard disk backplane and the main control board is switched.

[0064] Optionally, each hard disk backplane may further execute the following logic to implement the switching of the hardware connection mode: After the connection mode switching instruction is obtained, the hardware connection quantity of the expansion port of the main control board to which each hard disk backplane is connected can be determined according to the connection mode switching instruction.

[0065] Here, the method for determining the number of hardware connections includes: parsing the connection mode switching instruction to extract the number of hardware connections of the expansion port of the main control board connected to each hard disk backplane under the hardware connection mode corresponding to the data storage attribute to be switched; or parsing the connection mode switching instruction to obtain the hardware connection information under the hardware connection mode corresponding to the data storage attribute to be switched, and calculating the number of hardware connections of the expansion port of the main control board connected to each hard disk backplane under the hardware connection mode corresponding to the data storage attribute to be switched according to the hardware connection information, etc. Specifically, it can be adaptively selected to parse and obtain the number of hardware connections or to calculate and obtain the number of hardware connections according to the real-time requirements and the complexity of the storage system. For example, when the real-time requirements account for a high proportion, it can be given priority to parse and obtain the number of hardware connections. When the complexity of the storage system accounts for a high proportion, it can be given priority to calculate and obtain the number of hardware connections, thereby improving the flexibility of switching data storage attributes.

[0066] After obtaining the number of hardware connections of the expansion port of the main control board corresponding to each hard disk backplane connected, the number of hardware connection channels between each hard disk backplane and the main control board can be adjusted according to the determined number of hardware connections, thereby switching the hardware connection mode between each hard disk backplane and the main control board, so that the hardware configuration of the target storage subsystem can adapt to the new data storage properties; the switching here can be the on and off processing of the hardware connection channels between each hard disk backplane and the main control board.

[0067] The system provided in this embodiment dynamically determines the number of hardware connections between the hard disk backplane and the main control board expansion port according to the connection mode switching instruction, and switches the hardware connection mode accordingly, so that the hardware configuration of the target storage subsystem can automatically adapt to the new data storage attributes through the hardware connection switching, effectively solving the problem of needing to reconfigure the storage space firmware due to data attribute switching in traditional data storage systems, thereby avoiding additional development costs and realizing the ability of storage resources in a single storage area to flexibly adapt to changes in data attributes.

[0068] In some embodiments, each hard disk backplane 12 is further used for: Obtaining the instruction type of the connection mode switching instruction; When it is determined that the connection mode switching instruction is a first switching instruction according to the instruction type, determining that the number of hardware connections is a first preset number; According to the first preset number, the hardware connection mode between each of the hard disk backplanes and the main control board is switched to the first connection mode; Among them, the first connection mode includes a connection mode in which each of the hard disk backplanes is connected to the first preset number of expansion ports in the main control board; the first switching instruction is issued by the main control board according to the hardware connection mode corresponding to the warm data storage attribute when it is determined that the data storage attribute to be switched is a warm data storage attribute based on the type of the data storage attribute to be switched.

[0069] Optionally, each hard disk backplane may further execute the following logic to implement the switching of the hardware connection mode under the warm data storage attribute: After the connection mode switching instruction is acquired, the instruction type of the connection mode switching instruction is first determined to determine whether the connection mode switching instruction is a first switching instruction or a second switching instruction.

[0070] In the case where it is determined that the connection mode switching instruction is the first switching instruction according to the instruction type, it is characterized that the connection mode switching instruction is issued by the main control board according to the hardware connection mode corresponding to the warm data storage attribute when the data storage attribute to be switched is determined to be a warm data storage attribute according to the type of the data storage attribute to be switched, that is, the connection mode switching instruction is a connection mode switching instruction initiated when the data storage attribute of the corresponding storage area of ​​the target storage subsystem is switched to the warm data storage attribute. In this case, in order to ensure that the data storage attribute of the corresponding storage area of ​​the target storage subsystem is switched to the warm data storage attribute, it is necessary to give priority to ensuring that the data processing of the target storage subsystem has a higher rate, thereby reducing the number of hardware connections of the expansion port of the main control board corresponding to each hard disk backplane. Specifically, the number of hardware connections of the expansion port of the main control board corresponding to each hard disk backplane can be determined to be the first preset number, which is less than the current number of hardware connections of the expansion port of the main control board corresponding to each hard disk backplane, that is, the number of hardware connections corresponding to the target storage subsystem before switching. Specifically, it can be set to be much smaller than the number of hard disk backplanes according to actual needs, such as 1, etc. This embodiment does not make specific restrictions on this.

[0071] After obtaining the first preset number, the number of hardware connection channels between each hard disk backplane and the main control board can be adjusted according to the determined first preset number, thereby switching the hardware connection mode between each hard disk backplane and the main control board to the first connection mode, that is, each hard disk backplane establishes a corresponding connection with the corresponding first preset number of expansion ports on the main control board, so that each expansion port of the main control board can only access the corresponding connected hard disk backplane, thereby ensuring that the data processing of the target storage subsystem has a higher rate, so that the hardware configuration of the target storage subsystem can adapt to the warm data storage properties.

[0072] The following describes the hardware connection structure between various components in the data storage system under the warm data storage attribute by taking a specific example.

[0073] Figure 4 It is one of the structural schematic diagrams of the data storage system under the warm data storage attribute provided by the present invention; Figure 5 This is the second structural schematic diagram of the data storage system under the warm data storage attribute provided by the present invention.

[0074] like Figure 4 and Figure 5 As shown, the data storage system includes four bus adapter ports, namely HBA port 1, HBA port 2, HBA port 3 and HBA port 4, and the target storage subsystem includes four hard disk backplanes, namely hard disk backplane 1, hard disk backplane 2, hard disk backplane 3 and hard disk backplane 4; under the warm data storage attribute, the connection structure of each component in the data storage system can be: HBA port 1, HBA port 2, HBA port 3 and HBA port 4 are respectively connected to the main control board; each hard disk backplane is connected to one expansion port of the main control board in a one-to-one correspondence. Therefore, the storage area corresponding to the target storage subsystem can be set to zone3 mode, that is, each expansion port of the main control board corresponds to accessing the hard disk of one of the four hard disk backplanes at the back end; HBA port 1 accesses hard disk backplane 1; HBA port 2 corresponds to accessing hard disk backplane 2; HBA port 3 corresponds to accessing hard disk backplane 3; HBA port 4 corresponds to accessing hard disk backplane 4, that is, under the warm data storage attribute, one HBA port can only access the hard disks corresponding to one hard disk backplane and one hard disk backplane at the back end, so as to ensure that the data processing of the target storage subsystem has a higher rate, thereby meeting the high-frequency access requirements corresponding to the warm data storage attribute.

[0075] In the system provided by the present embodiment, when the data storage system needs to switch to warm data storage attributes, the main control board will issue a first switching instruction according to the change of data attributes. The system automatically adjusts the number of hardware connections between the hard disk backplane and the main control board to a first preset number according to the instruction, and automatically switches to a first connection mode corresponding to the warm data storage attribute, thereby switching between warm and cold data storage attributes through automatic configuration of the storage area, realizing data protection and data backup, improving the energy-saving effect of the disk unit, and improving storage efficiency. Therefore, efficient and energy-saving storage of data can be performed without re-developing the firmware of the storage space, effectively solving the problem of increased development costs due to data attribute switching in traditional data storage systems.

[0076] In some embodiments, each hard disk backplane 12 may further execute the following logic to implement the switching of the hardware connection mode under the cold data storage attribute: When it is determined that the connection mode switching instruction is a second switching instruction according to the instruction type, determining that the number of hardware connections is a second preset number; According to the second preset number, the hardware connection mode between each of the hard disk backplanes and the main control board is switched to a second connection mode; Among them, the second connection mode includes a connection mode in which each of the hard disk backplanes is connected to the second preset number of expansion ports in the main control board; the second switching instruction is issued by the main control board according to the hardware connection mode corresponding to the cold data storage attribute when it is determined that the data storage attribute to be switched is a cold data storage attribute based on the type of the data storage attribute to be switched; and the second preset number is greater than the first preset number.

[0077] Optionally, each hard disk backplane may further execute the following logic to implement the switching of the hardware connection mode under the cold data storage attribute: After the connection mode switching instruction is acquired, the instruction type of the connection mode switching instruction is first determined to determine whether the connection mode switching instruction is a first switching instruction or a second switching instruction.

[0078] In the case where it is determined that the connection mode switching instruction is the second switching instruction according to the instruction type, it is characterized that the connection mode switching instruction is issued by the main control board according to the hardware connection mode corresponding to the cold data storage attribute when the data storage attribute to be switched is determined to be the cold data storage attribute according to the type of the data storage attribute to be switched, that is, the connection mode switching instruction is a connection mode switching instruction initiated when the data storage attribute of the corresponding storage area of ​​the target storage subsystem is switched to the cold data storage attribute. In this case, in order to ensure that the data storage attribute of the corresponding storage area of ​​the target storage subsystem is switched to the cold data storage attribute, it is necessary to ensure that the data processing of the target storage subsystem has a lower rate to achieve storage energy saving, thereby increasing the number of hardware connections of the expansion port of the main control board corresponding to each hard disk backplane, and specifically, the number of hardware connections of the expansion port of the main control board corresponding to each hard disk backplane can be determined to be the second preset number, which is greater than the current number of hardware connections of the expansion port of the main control board corresponding to each hard disk backplane, that is, the number of hardware connections corresponding to the target storage subsystem before switching, which can be set according to actual needs, such as being set to be the same as the number of hard disk backplanes, etc., and this embodiment does not specifically limit this.

[0079] After obtaining the second preset number, the number of hardware connection channels between each hard disk backplane and the main control board can be adjusted according to the determined second preset number, thereby switching the hardware connection mode between each hard disk backplane and the main control board to the second connection mode, that is, each hard disk backplane establishes a corresponding connection with the corresponding second preset number of expansion ports on the main control board, so that each expansion port of the main control board can access the corresponding multiple connected hard disk backplanes, thereby ensuring that the data processing of the target storage subsystem has a lower rate and achieving the effect of storage energy saving, so that the hardware configuration of the target storage subsystem can adapt to the cold data storage properties.

[0080] It should be noted that the second preset number should be set to be greater than the first preset number. For example, the second preset number is set to be consistent with the number of hard disk backplanes, and the first preset number is much smaller than the number of hard disk backplanes.

[0081] The following describes the hardware connection structure between various components in the data storage system under the cold data storage attribute by taking a specific example.

[0082] Figure 6 It is a structural schematic diagram of a data storage system under the cold data storage attribute provided by the present invention.

[0083] like Figure 6 As shown, the data storage system includes 4 bus adapter ports, namely HBA port 1, HBA port 2, HBA port 3 and HBA port 4, and the target storage subsystem includes 4 hard disk backplanes, namely hard disk backplane 1, hard disk backplane 2, hard disk backplane 3 and hard disk backplane 4; under the cold data storage attribute, the connection structure of each component in the data storage system can be: HBA port 1, HBA port 2, HBA port 3 and HBA port 4 are respectively connected to the main control board; each hard disk backplane and the main control board have the same number of expansion ports (that is, 4) as the hard disk backplane for one-to-many corresponding connection. Therefore, the storage area corresponding to the target storage subsystem can be set to zone4 mode, that is, each expansion port of the main control board can access the 4 hard disk backplanes at the back end and the hard disks on the 4 hard disk backplanes; HBA port 1 can access the 4 hard disk backplanes at the back end and the hard disks on the 4 hard disk backplanes, HBA port 2 can access the 4 hard disk backplanes at the back end and the hard disks on the 4 hard disk backplanes, HBA port 3 can access the 4 hard disk backplanes at the back end and the hard disks on the 4 hard disk backplanes, and HBA port 4 can access the 4 hard disk backplanes at the back end and the hard disks on the 4 hard disk backplanes, that is, under the cold data storage attribute, one HBA port can access all the hard disk backplanes at the back end and all the disks on all the hard disk backplanes, so as to ensure that the data processing of the target storage subsystem has a lower rate while being able to effectively save energy, thereby meeting the access requirements corresponding to the cold data storage attribute.

[0084] In the system provided by the present embodiment, when the data storage system needs to switch to the cold data storage attribute, the main control board will issue a second switching instruction according to the change of the data attribute. The system automatically adjusts the number of hardware connections between the hard disk backplane and the main control board to a second preset number according to the instruction, and automatically switches to the second connection mode corresponding to the cold data storage attribute, thereby switching between warm and cold data storage attributes through automatic configuration of the storage area, realizing data protection and data backup, improving the energy-saving effect of the disk unit, and improving storage efficiency, thereby enabling efficient and energy-saving storage of data without re-developing the firmware of the storage space, effectively solving the problem of increased development costs due to data attribute switching in traditional data storage systems.

[0085] In some embodiments, the management controller 20 is further configured to: Scan and obtain the drive device name of the main control board and the drive device name of each hard disk backplane; Generate an attribute configuration instruction according to the parameter configuration range corresponding to the data storage attribute to be switched, the drive device name of the main control board and the drive device name of each hard disk backplane; According to the attribute configuration instruction, the data storage attribute of the main control board and the data storage attribute of each hard disk backplane are switched to the data storage attribute to be switched; When it is determined that the main control board and each of the hard disk backplanes have completed the data storage attribute switching, the main control board and each of the hard disk backplanes are restarted and then the data storage attribute configuration is verified; When it is verified that the data storage attributes of the main control board and each of the hard disk backplanes after restart are the data storage attributes to be switched, it is determined that the data storage attribute switching state of the target storage subsystem is a success state.

[0086] Optionally, the management controller may perform the following steps to implement data storage attribute switching: Scan and obtain the drive device name of the main control board and the drive device name of each hard disk backplane; According to the parameter configuration range of the main control board corresponding to the data storage attribute to be switched and the drive device name of the main control board, the attribute configuration instruction corresponding to the main control board is generated; and according to the parameter configuration range of the hard disk backplane corresponding to the data storage attribute to be switched and the drive device name of each hard disk backplane, the attribute configuration instruction corresponding to each hard disk backplane is generated.

[0087] The attribute configuration instruction corresponding to the main control board may include an instruction for setting the partition identifier corresponding to the main control board through an in-band command, which may be implemented by the following code: "sg_senddaig -p –r 12,0,0,2,2,xx / dev / sgX"; If the code returns a value of 0, the configuration is successful. "xx" is the parameter configuration range corresponding to the partition identifier, specifically [1,4]; the corresponding parameter configuration range under the warm data storage partition is [1,3], and the corresponding parameter configuration value under the cold data storage partition is 4. "dev / sgX" is the drive device name of the scanned main control board; each main control board of each target storage subsystem needs to be set once, and the scanned duplicate main control boards can be filtered and deduplicated by the SAS address of the main control board.

[0088] In addition, the attribute configuration instructions corresponding to the main control board may also include instructions for setting the data storage attributes of the main control board through in-band commands, which can be specifically implemented through the following code: "sg_senddiag -p –r 10,0,0,2,4,xx / dev / sgX"; If the code return value is 0, the characterization configuration is successful. If the code return value is not 0, the characterization configuration fails, the process ends, and manual inspection is performed. The data storage attribute of "xx" corresponds to the parameter configuration range, specifically [0,1]; the corresponding parameter configuration range under the warm data storage attribute is 1, and the corresponding parameter configuration value under the cold data storage attribute is 0. "dev / sgX" is the drive device name of the scanned main control board; each main control board of each target storage subsystem needs to be set once, and the scanned duplicate main control boards can be filtered and deduplicated through the SAS address of the main control board.

[0089] Similarly, the attribute configuration instructions corresponding to the hard disk backplane may include instructions for setting the data storage attributes of the hard disk backplane through in-band commands, which can be specifically implemented through the following code: "sg_senddiag -p –r 10,0,0,2,4,xx / dev / sgX"; If the code return value is 0, the characterization configuration is successful. If the code return value is not 0, the characterization configuration fails, the process ends, and manual inspection is performed. The data storage attribute of "xx" corresponds to the parameter configuration range, specifically [0,1]; the corresponding parameter configuration range under the warm data storage attribute is 1, and the corresponding parameter configuration value under the cold data storage attribute is 0. "dev / sgX" is the drive device name of the scanned hard disk backplane; each hard disk backplane of each target storage subsystem needs to be set once, and the scanned duplicate hard disk backplanes can be filtered and deduplicated through the SAS address of the hard disk backplane.

[0090] Optionally, after the above code is used to switch the data storage attributes of the main control board and the data storage attributes of each hard disk backplane to the data storage attributes to be switched, it is also necessary to restart the main control board and each hard disk backplane and then perform data storage attribute configuration verification; for example, the newly configured data storage attributes of the main control board (that is, the data storage attributes after restart) can be obtained by executing the following code: "scrtnycli -i 1 list / / is used to output the serial number of the main control board contained in the data storage system; / scrtnycli –I 14 (the serial number of the main control board) cli showvpd / / Used to output the configuration details of the main control board included in the data storage system."

[0091] After obtaining the data storage properties of the main control board and each hard disk backplane after restart, it can be verified whether the data storage properties of the main control board and each hard disk backplane after restart are the data storage properties to be switched. If they are the data storage properties to be switched, it is determined that the data storage property switching status of the target storage subsystem is a successful status. Subsequently, the data storage value matching the data storage property to be switched can be stored in the target storage subsystem, thereby achieving the effect of data protection and energy saving.

[0092] It should be noted that during the data storage attribute switching process, the main control board can be identified in the following ways: For warm storage systems, two control boards with the same SAS address represent the main control board; For cold storage systems, you need to check the SAS addresses before and after replacing the control board. The one that changes is the new main control board.

[0093] The data storage attribute switching process provided in this embodiment is described in detail below with reference to a specific example.

[0094] For the warm data storage area (zone3): The following code can be used to switch the four hard disk backplanes of the target storage subsystem to the warm data storage attribute (that is, the parameter corresponding to the data storage attribute is 1): "sg_senddiag -p -r 10,0,0,2,4,1 / dev / sg31 sg_senddiag -p -r 10,0,0,2,4,1 / dev / sg60 sg_senddiag -p -r 10,0,0,2,4,1 / dev / sg90 sg_senddiag -p -r 10,0,0,2,4,1 / dev / sg115”; Use the following code to set the two control boards of the target storage subsystem (that is, one main control board and one standby control board, the main control board and the standby control board back up each other) as warm data storage properties: "sg_senddiag -p -r 10,0,0,2,4,1 / dev / sg2 sg_senddiag -p -r 10,0,0,2,4,1 / dev / sg61".

[0095] It should be noted that since the two control boards are mutually active and standby, in order to ensure the security and redundant backup of data storage and to prevent legacy, the two control boards can be synchronously set to warm data storage properties.

[0096] Use the following code to set the partition ID of the main control board of the target storage subsystem: "sg_senddiag -p -r 12,0,0,2,2,3 / dev / sg2".

[0097] After the configuration is completed, the management controller can shut down and restart the target storage subsystem so that the latest data storage properties can take effect in the target storage subsystem. This can be achieved through the following code: "pmitool –I lanplus –H <ipaddess>–U admin –P admin power off / / Power off operation ipmitool –I lanplus –H <ipaddess>–U admin –P admin power on / / Power on operation”.

[0098] For the cold data storage area (zone4): The following code can be used to switch the four hard disk backplanes of the target storage subsystem to cold data storage attributes (that is, the parameter corresponding to the data storage attribute is 0): "sg_senddiag -p -r 10,0,0,2,4,0 / dev / sg31 sg_senddiag -p -r 10,0,0,2,4,0 / dev / sg60 sg_senddiag -p -r 10,0,0,2,4,0 / dev / sg90 sg_senddiag -p -r 10,0,0,2,4,0 / dev / sg115”; Use the following code to set the two control boards of the target storage subsystem (that is, one main control board and one standby control board, the main control board and the standby control board back up each other) as cold data storage properties: "sg_senddiag -p -r 10,0,0,2,4,0 / dev / sg2 sg_senddiag -p -r 10,0,0,2,4,0 / dev / sg61”; It should be noted that since the two control boards are mutually active and standby, in order to ensure the security and redundant backup of data storage and to prevent legacy, the two control boards can be synchronously set to cold data storage properties.

[0099] Use the following code to set the partition ID of the main control board of the target storage subsystem: "sg_senddiag -p -r 12,0,0,2,2,4 / dev / sg2"; After the configuration is completed, the management controller can shut down and restart the target storage subsystem so that the latest data storage properties can take effect in the target storage subsystem. This can be achieved through the following code: "ipmitool –I lanplus –H <ipaddess>–U admin –P admin power off / / Power off operation ipmitool –I lanplus –H <ipaddess>–U admin –P admin power on / / Power on operation”.

[0100] In summary, the system provided in this embodiment obtains the drive device names of the main control board and the hard disk backplane through the management controller scan, generates attribute configuration instructions according to the parameter configuration range corresponding to the data storage attribute to be switched, automatically completes the data storage attribute switching, and restarts the verification after confirming that the switch is completed to ensure that the switched data storage attributes can adapt to the new data attribute switching scenario, thereby reducing the development cost required for repeated firmware development of storage space for switching of different data attributes, thereby effectively solving the problem of the need to re-configure the firmware and increase the development cost due to data attribute switching in traditional data storage systems.

[0101] In some embodiments, the data storage system further comprises a plurality of storage subsystems; The management controller is also used for: When a data storage attribute switching request is obtained, a partition identifier and a target data storage attribute are obtained by parsing the data storage attribute switching request; According to the partition identifier, locate the target storage subsystem in the plurality of storage subsystems, and obtain the current data storage attribute of the target storage subsystem according to the partition identifier; According to the target data storage attribute and the current data storage attribute, a data storage attribute switching instruction corresponding to the target storage subsystem is obtained.

[0102] It should be noted that in order to improve storage efficiency and flexibility, the data storage system can be designed with multiple storage subsystems, each storage subsystem corresponds to a storage area, and each storage area corresponds to different data storage attributes. The management controller can uniformly manage and control multiple storage subsystems.

[0103] Optionally, when any storage subsystem among multiple storage subsystems needs to switch the data storage attributes, the management controller can receive a data storage attribute switching request; the data storage attribute switching request is used to request to switch the data storage attributes of any storage subsystem among multiple storage subsystems, which can be user input entered by the user on the front-end page, or it can be initiated by the management controller under specific conditions, etc. This embodiment does not specifically limit this.

[0104] After the data storage attribute switching request is obtained, the data storage attribute switching request may be parsed to obtain the partition identifier and the target data storage attribute.

[0105] Then, the target storage subsystem for which data storage attribute switching is required in the storage subsystem may be identified according to the partition, and the current data storage attribute of the target storage subsystem may be obtained by association according to the relationship between the partition identifier and the data storage attribute.

[0106] When the current data storage attribute is inconsistent with the target data storage attribute, the target data storage attribute is configured as the data storage attribute to be switched in the data storage attribute switching instruction corresponding to the target storage subsystem, so that according to the data storage attribute switching instruction, the current data storage attribute of the target storage subsystem is switched to the data storage attribute to be switched, thereby adapting to the new data storage attribute.

[0107] The system provided in this embodiment can efficiently process data storage attribute switching requests through a management controller, accurately locate a target storage subsystem according to a partition identifier, and generate corresponding switching instructions to achieve flexible adjustment of data storage attributes.

[0108] The data storage method provided by the present invention is described below. The data storage method described below and the data storage system described above can be referenced to each other.

[0109] Figure 7 It is a flow chart of the data storage method provided by the present invention; the method is implemented based on the data storage system, wherein the structure and function of the data storage system can be specifically referred to the data storage system provided in the above embodiments, which will not be repeated here.

[0110] like Figure 7 As shown, the method includes: Step 710, according to the data storage attribute switching instruction corresponding to the target storage subsystem, the data storage attribute to be switched of the target storage subsystem is obtained, and according to the hardware connection mode corresponding to the data storage attribute to be switched, a connection mode switching instruction is sent to each hard disk backplane in the target storage subsystem; Step 720, switching the hardware connection mode between each hard disk backplane and the main control board in the target storage subsystem according to the connection mode switching instruction; Step 730, when it is determined that the hardware connection mode switch between each of the hard disk backplanes and the main control board is successful, the data storage attributes of the main control board and the data storage attributes of each of the hard disk backplanes are switched to the data storage attributes to be switched according to the parameter configuration range corresponding to the data storage attributes to be switched; the data storage attributes to be switched include warm data storage attributes or cold data storage attributes.

[0111] Optionally, after obtaining the data storage attribute switching instruction corresponding to the target storage subsystem, the main control board can parse the data storage attribute switching instruction to obtain the data storage attribute to be switched of the target storage subsystem, or parse the data storage attribute switching instruction to obtain the storage attribute identifier, so as to obtain the data storage attribute to be switched of the target storage subsystem based on the association relationship between the storage attribute identifier and the data storage attribute.

[0112] After obtaining the data storage attributes to be switched, the main control board can map and obtain the hardware connection mode corresponding to the data storage attributes to be switched based on the association between different data storage attributes and different hardware connection modes, and generate corresponding connection mode switching instructions based on the hardware connection mode corresponding to the data storage attributes to be switched, and send them to each hard disk backplane to instruct each hard disk backplane to adjust the hardware connection mode between itself and the main control board, thereby adapting to the new data storage attributes.

[0113] After each hard disk backplane obtains the connection mode switching instruction sent by the main control board, it can adjust the hardware connection mode between each hard disk backplane and the main control board according to the hardware connection method indicated in the connection mode switching instruction, so as to switch the hardware connection mode between each hard disk backplane and the main control board to the hardware connection mode corresponding to the data storage attribute to be switched.

[0114] The management controller can monitor the switching of the hardware connection mode between each hard disk backplane and the main control board in real time. When it is determined that the hardware connection mode between each hard disk backplane and the main control board is successfully switched to the hardware connection mode corresponding to the data storage attribute to be switched, it is determined that the hardware connection mode between each hard disk backplane and the main control board is successfully switched. At this time, the data storage attributes of the main control board and the hard disk backplane can be adjusted according to the parameter configuration range corresponding to the data storage attribute to be switched, so as to switch the data storage attribute of the main control board and the data storage attribute of each hard disk backplane to the data storage attribute to be switched.

[0115] In addition, the management controller can also monitor in real time whether the data storage attributes of the main control board and the data storage attributes of each hard disk backplane have been successfully switched to the data storage attributes to be switched. If it is determined that the data storage attributes to be switched have been successfully switched, it is confirmed that the data storage attributes of the target storage subsystem have been switched to the data storage attributes to be switched. Subsequently, the data storage value matching the data storage attributes to be switched can be stored in the target storage subsystem, thereby achieving the effect of data protection and energy saving.

[0116] The method provided in this embodiment, through the collaborative work of the target storage subsystem and the management controller, can dynamically and automatically adjust the hardware connection mode between the main control board and each hard disk backplane according to the data storage attribute switching instruction, and instantly switch the data storage attributes, so that the storage partition formed by a single storage subsystem can automatically adapt to different data attribute switching scenarios through simple hardware connection mode switching and data storage attribute switching, avoiding manual reconfiguration of firmware, which not only ensures efficient and energy-saving data storage, but also reduces the development cost required for repeated firmware development of storage space for switching of different data attributes, thereby effectively solving the problem of the need to reconfigure the firmware and increase the development cost due to data attribute switching in traditional data storage systems.

[0117] The method provided by the present invention is implemented based on the above-mentioned system embodiments. Please refer to the above-mentioned system embodiments for the specific process and detailed content, which will not be repeated here.

[0118] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the data storage method, which includes: obtaining the data storage attribute to be switched of the target storage subsystem according to the data storage attribute switching instruction corresponding to the target storage subsystem, and sending a connection mode switching instruction to each hard disk backplane in the target storage subsystem according to the hardware connection mode corresponding to the data storage attribute to be switched; according to the connection mode switching instruction, switching the hardware connection mode between each hard disk backplane and the main control board in the target storage subsystem; when it is determined that the hardware connection mode switching between each hard disk backplane and the main control board is successful, switching the data storage attribute of the main control board and the data storage attribute of each hard disk backplane to the data storage attribute to be switched according to the parameter configuration range corresponding to the data storage attribute to be switched.

[0119] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0120] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the data storage methods provided by the above methods, which include: according to the data storage attribute switching instruction corresponding to the target storage subsystem, obtaining the data storage attribute to be switched of the target storage subsystem, and according to the hardware connection mode corresponding to the data storage attribute to be switched, sending a connection mode switching instruction to each hard disk backplane in the target storage subsystem; according to the connection mode switching instruction, switching the hardware connection mode between each hard disk backplane and the main control board in the target storage subsystem; when it is determined that the hardware connection mode switching between each hard disk backplane and the main control board is successful, according to the parameter configuration range corresponding to the data storage attribute to be switched, switching the data storage attribute of the main control board and the data storage attribute of each hard disk backplane to the data storage attribute to be switched.

[0121] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the data storage method provided by the above-mentioned methods, the method comprising: obtaining the data storage attribute to be switched of the target storage subsystem according to the data storage attribute switching instruction corresponding to the target storage subsystem, and sending a connection mode switching instruction to each hard disk backplane in the target storage subsystem according to the hardware connection mode corresponding to the data storage attribute to be switched; switching the hardware connection mode between each hard disk backplane and the main control board in the target storage subsystem according to the connection mode switching instruction; when it is determined that the hardware connection mode switching between each hard disk backplane and the main control board is successful, switching the data storage attribute of the main control board and the data storage attribute of each hard disk backplane to the data storage attribute to be switched according to the parameter configuration range corresponding to the data storage attribute to be switched.

[0122] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0123] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0124] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.< / ipaddess> < / ipaddess> < / ipaddess> < / ipaddess>

Claims

1. A data storage system, characterized in that: include: A target storage subsystem and a management controller, wherein the target storage subsystem includes a main control board and multiple hard disk backplanes; The main control board is used to obtain the data storage attribute to be switched of the target storage subsystem according to the data storage attribute switching instruction corresponding to the target storage subsystem, and send a connection mode switching instruction to each hard disk backplane according to the hardware connection mode corresponding to the data storage attribute to be switched; Each of the hard disk backplanes is used to switch the hardware connection mode between each of the hard disk backplanes and the main control board according to the connection mode switching instruction; The management controller is used to switch the data storage attributes of the main control board and the data storage attributes of each hard disk backplane to the data storage attributes to be switched according to the parameter configuration range corresponding to the data storage attributes to be switched when it is determined that the hardware connection mode between each hard disk backplane and the main control board is switched successfully; the data storage attributes to be switched include warm data storage attributes or cold data storage attributes.

2. The data storage system according to claim 1, characterized in that: Each of the hard disk backplanes is also used for: According to the connection mode switching instruction, determine the number of hardware connections of the expansion port of the main control board corresponding to each hard disk backplane; According to the number of hardware connections, the hardware connection mode between each hard disk backplane and the main control board is switched.

3. The data storage system according to claim 2, characterized in that: Each of the hard disk backplanes is also used for: Obtaining the instruction type of the connection mode switching instruction; When it is determined that the connection mode switching instruction is a first switching instruction according to the instruction type, determining that the number of hardware connections is a first preset number; According to the first preset number, the hardware connection mode between each of the hard disk backplanes and the main control board is switched to the first connection mode; Among them, the first connection mode includes a connection mode in which each of the hard disk backplanes is connected to the first preset number of expansion ports in the main control board; the first switching instruction is issued by the main control board according to the hardware connection mode corresponding to the warm data storage attribute when it is determined that the data storage attribute to be switched is a warm data storage attribute based on the type of the data storage attribute to be switched.

4. The data storage system according to claim 3, characterized in that: Each of the hard disk backplanes is also used for: When it is determined that the connection mode switching instruction is a second switching instruction according to the instruction type, determining that the number of hardware connections is a second preset number; According to the second preset number, the hardware connection mode between each of the hard disk backplanes and the main control board is switched to a second connection mode; Among them, the second connection mode includes a connection mode in which each of the hard disk backplanes is connected to the second preset number of expansion ports in the main control board; the second switching instruction is issued by the main control board according to the hardware connection mode corresponding to the cold data storage attribute when it is determined that the data storage attribute to be switched is a cold data storage attribute based on the type of the data storage attribute to be switched; and the second preset number is greater than the first preset number.

5. The data storage system according to any one of claims 1 to 4, characterized in that: The system also includes a plurality of bus adapter ports; The first end of each bus adapter port is connected to the host end, and the second end of each bus adapter port is correspondingly connected to a third preset number of expansion ports of the main control board; The third preset number is determined according to the number of the hard disk backplanes.

6. The data storage system according to any one of claims 1 to 4, characterized in that: The management controller is also used for: Scan and obtain the drive device name of the main control board and the drive device name of each hard disk backplane; Generate an attribute configuration instruction according to the parameter configuration range corresponding to the data storage attribute to be switched, the drive device name of the main control board and the drive device name of each hard disk backplane; According to the attribute configuration instruction, the data storage attribute of the main control board and the data storage attribute of each hard disk backplane are switched to the data storage attribute to be switched; When it is determined that the main control board and each of the hard disk backplanes have completed the data storage attribute switching, the main control board and each of the hard disk backplanes are restarted and then the data storage attribute configuration is verified; When it is verified that the data storage attributes of the main control board and each of the hard disk backplanes after restart are the data storage attributes to be switched, it is determined that the data storage attribute switching state of the target storage subsystem is a success state.

7. The data storage system according to any one of claims 1 to 4, characterized in that: The data storage system further includes a plurality of storage subsystems; The management controller is also used for: When a data storage attribute switching request is obtained, a partition identifier and a target data storage attribute are obtained by parsing the data storage attribute switching request; According to the partition identifier, locate the target storage subsystem in the plurality of storage subsystems, and obtain the current data storage attribute of the target storage subsystem according to the partition identifier; According to the target data storage attribute and the current data storage attribute, a data storage attribute switching instruction corresponding to the target storage subsystem is obtained.

8. A data storage method, characterized in that: The method is applied to the data storage system according to any one of claims 1 to 7, and the method comprises: According to the data storage attribute switching instruction corresponding to the target storage subsystem, the data storage attribute to be switched of the target storage subsystem is obtained, and according to the hardware connection mode corresponding to the data storage attribute to be switched, a connection mode switching instruction is sent to each hard disk backplane in the target storage subsystem; According to the connection mode switching instruction, the hardware connection mode between each hard disk backplane and the main control board in the target storage subsystem is switched; When it is determined that the hardware connection mode switch between each hard disk backplane and the main control board is successful, the data storage attributes of the main control board and the data storage attributes of each hard disk backplane are switched to the data storage attributes to be switched according to the parameter configuration range corresponding to the data storage attributes to be switched; the data storage attributes to be switched include warm data storage attributes or cold data storage attributes.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the data storage method according to claim 8 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the data storage method according to claim 8 is implemented.

Citation Information

Patent Citations

  • Data storage device, storage system using the same, and method of operating the same

    CN112783429A

  • Fan board testing system and method

    CN115507050A

  • Multimode hard disk backboard structure, method and server

    CN115904024A

  • Hard disk backboard identification system, method and equipment and storage medium

    CN116010315A

  • Array data storage unit connecting and switching control system

    CN1641618A