A method for configuring the ID of a PAX module in a JBOF and related components
By monitoring the cable connection status of the USP and Fabric ports in JBOF and configuring the unique ID of the PAX module based on the preset relationship, it solves the complexity and error problems of ID configuration in the existing technology and achieves the reliability and stability of the cascade storage structure. sex.
Patent Information
- Application Number
- CN202210904981.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-29
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-07-29
AI Technical Summary
In the existing technology, the ID configuration of the PAX module in JBOF is complex and cumbersome, and it is easy to cause ID configuration errors due to human errors, affecting the reliability of the cascade topology storage structure.
By monitoring the cable connection status of the USP port and the Fabric port, based on the preset connection status-ID correspondence relationship, the processor is used to configure the unique ID of the PAX module, without the need to set additional multi-digit DIP switches to achieve ID configuration.
It simplifies the ID configuration process of the PAX module, improves the reliability and accuracy of the configuration, and ensures the stable operation of the cascade topology storage structure.
Smart Images

Figure CN115061639B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of storage technology, and in particular to an ID configuration method of a PAX module in a JBOF and related components. Background Art
[0002] At present, in order to achieve storage system expansion and ensure that the storage capacity after expansion is sufficient, JBOF (Just A Bound of Flash, hard disk expansion cabinet) is usually cascaded to form a cascade topology storage structure. Fabric cascading is a new connection method to achieve the above cascading.
[0003] In the prior art, in order to realize the above-mentioned Fabric cascading mode, the ID configuration of the PAX module in the JBOF requires the additional installation of a multi-position dial switch. Specifically, the JBOF shell is disassembled, and the multi-position dial switch and the wiring of the PAX module are added therein, so that the operator can configure the ID of the PAX module by turning the multi-position dial switch externally. However, this method is too complicated and cumbersome, and the manual operation method has the problem of the PAX module receiving an incorrect ID due to the dial not being in place and human operation errors in actual applications, which in turn leads to the situation that its ID configuration is wrong, affecting the reliable operation of the entire cascade topology storage structure. Summary of the invention
[0004] The purpose of the present invention is to provide an ID configuration method and related components of a PAX module in a JBOF, which does not require an additional multi-position DIP switch. The PAX module ID can be configured based on the cable connection status through hardware routing and software control logic. The implementation method is simple and reliable, ensuring the reliable operation of the entire cascade topology storage structure.
[0005] In order to solve the above technical problems, the present invention provides an ID configuration method for a PAX module in a JBOF, which is applied to a processor in a JBOF, wherein a first input end of the processor is connected to a USP port in the JBOF, a second input end is connected to a Fabric port in the JBOF, and an output end is connected to a PAX module in the JBOF. The ID configuration method for a PAX module in a JBOF comprises:
[0006] respectively monitoring the cable connection status at the USP port and the Fabric port;
[0007] Determine the unique ID of the PAX module based on the connection status of each cable and the preset connection status-ID correspondence;
[0008] The ID of the PAX module is configured to be the unique ID.
[0009] Preferably, monitoring the cable connection status at the USP port includes:
[0010] Determine whether the first input end thereof receives a first presence identification signal, wherein the first presence identification signal indicates that the JBOF is connected to a storage controller;
[0011] If so, determine that the cable connection status at the USP port is connected.
[0012] Preferably, monitoring the cable connection status at the Fabric port includes:
[0013] Determine whether the second input end thereof receives a second presence identification signal, where the second presence identification signal indicates that the JBOF is connected to other cascade modules;
[0014] If so, determine that the cable connection status at the Fabric port is connected.
[0015] Preferably, the first output terminal of the processor is specifically connected to the first GPIO pin of the PAX module, and the second output terminal of the processor is specifically connected to the second GPIO pin of the PAX module;
[0016] Configuring the ID of the PAX module to be the unique ID includes:
[0017] Based on the unique ID and the preset ID representation-signal identification correspondence, corresponding configuration identification signals are sent to the first GPIO pin and the second GPIO pin respectively, so that the PAX module updates its own ID to the unique ID according to the received configuration identification signal and runs the configuration file corresponding to the unique ID.
[0018] Preferably, the processor is a CPLD.
[0019] Preferably, determining the unique ID of the PAX module based on the cable connection status and the preset connection status-ID correspondence includes:
[0020] Determine whether the cable connection status at the USP port is connected;
[0021] If so, it is determined that the ID of the PAX module is a preset first unique ID, wherein the preset first unique ID indicates that the JBOF is at the first level of a cascade topology storage structure.
[0022] Preferably, when determining that the cable connection state at the USP port is not connected, the method includes:
[0023] Determine whether the cable connection status at the Fabric port is connected;
[0024] If so, it is determined that the ID of the PAX module is a preset second unique ID, wherein the preset second unique ID indicates that the JBOF is at the second level of the cascade topology storage structure.
[0025] In order to solve the above technical problems, the present invention further provides an ID configuration system for a PAX module in a JBOF, which is applied to a processor in a JBOF, wherein a first input end of the processor is connected to a USP port in the JBOF, a second input end is connected to a Fabric port in the JBOF, and an output end is connected to a PAX module in the JBOF. The ID configuration system for a PAX module in the JBOF comprises:
[0026] A first monitoring unit, used to monitor the cable connection status at the USP port and the Fabric port respectively;
[0027] A unique ID determination unit, configured to determine a unique ID of the PAX module based on the connection status of each cable and a preset connection status-ID correspondence relationship;
[0028] A configuration unit, configured to configure the ID of the PAX module to be the unique ID.
[0029] In order to solve the above technical problems, the present invention also provides an ID configuration device for a PAX module in a JBOF, comprising:
[0030] Memory for storing computer programs;
[0031] The processor is used to execute the steps of the ID configuration method of the PAX module in the JBOF as described above.
[0032] In order to solve the above technical problems, the present invention further provides a computer-readable storage medium, comprising:
[0033] The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the method for configuring the ID of the PAX module in the JBOF as described above are implemented.
[0034] The present application provides an ID configuration method and related components of a PAX module in a JBOF, wherein a processor is connected to a USP port and a Fabric port in a JBOF respectively, and the cable connection status at the USP port and the Fabric port is monitored respectively, and a preset connection status-ID correspondence is pre-set, and then the unique ID of the PAX module can be determined based on each cable connection status and the preset connection status-ID correspondence, and then the ID of the PAX module is configured to the unique ID. Compared with the prior art, the solution in the present application does not require the additional setting of a multi-bit DIP switch, and the PAX module ID can be configured based on the cable connection status through hardware routing and software control logic, and the implementation method is simple and reliable, ensuring the reliable operation of the entire cascade topology storage structure. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the prior art and the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0036] Figure 1 A flowchart of a method for configuring an ID of a PAX module in a JBOF provided by the present invention;
[0037] Figure 2 A schematic diagram of a cascade topology storage structure provided by the present invention;
[0038] Figure 3 A schematic diagram of the internal structure of a JBOF provided by the present invention;
[0039] Figure 4 A schematic diagram of the structure of an ID configuration system for a PAX module in a JBOF provided by the present invention;
[0040] Figure 5 The present invention provides a schematic structural diagram of an ID configuration device for a PAX module in a JBOF. DETAILED DESCRIPTION
[0041] The core of the present invention is to provide an ID configuration method and related components of a PAX module in a JBOF, which does not require an additional multi-position DIP switch. The PAX module ID can be configured based on the cable connection status through hardware routing and software control logic. The implementation method is simple and reliable, ensuring the reliable operation of the entire cascade topology storage structure.
[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments 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.
[0043] Please refer to Figure 1 , Figure 1 The present invention provides a flow chart of a method for configuring an ID of a PAX module in a JBOF.
[0044] In this embodiment, considering that in the prior art, storage systems usually connect JBOFs in order to achieve capacity expansion, and in order to expand to a larger storage capacity, that is, to ensure that the storage capacity after expansion is sufficient, JBOFs are usually cascaded to form a cascade topology storage structure. The Fabric cascading method is a new connection method for realizing the above cascading. In this cascading method, there is no need to configure the Upstream / Downstream Port (upstream / downstream node) type, and each JBOF only needs to be configured as the Fabric cascading mode.
[0045] When implementing the above-mentioned Fabric cascading method, for the ID configuration of the PAX module in the JBOF, it is necessary to disassemble the JBOF shell and add a multi-position dial switch and the wiring of the PAX module therein, so that the operator can configure the ID of the PAX module externally by toggling the multi-position dial switch. However, this method is too complicated and cumbersome, and the manual operation method has the problem of incorrectly receiving the ID of the PAX module due to the dialing failure and human operation errors in actual applications, which leads to the situation that its ID configuration is wrong. In order to solve the above technical problems, the present application provides an ID configuration method for the PAX module in JBOF, which simply and reliably implements the ID configuration of the PAX module, thereby ensuring the reliable operation of the entire cascade topology storage structure.
[0046] The ID configuration method of the PAX module in the JBOF is applied to the processor in the JBOF, wherein the first input end of the processor is connected to the USP port in the JBOF, the second input end is connected to the Fabric port in the JBOF, and the output end is connected to the PAX module in the JBOF. The ID configuration method of the PAX module in the JBOF includes:
[0047] S11: monitor the cable connection status at the USP port and the Fabric port respectively;
[0048] Specifically, the JBOF here includes but is not limited to a HDD (Hard Disk Drive) type JBOF, or an SSD (Solid State Disk) type JBOF; the JBOF includes a processor, a USP port for connecting a first external device such as a storage controller, a Fabric port for connecting a second external device such as other JBOFs, and a PAX module. When the USP port and the Fabric port are connected to an external device, the cable connection status will change. Due to the addition of the above-mentioned hardware routing, the processor can monitor the cable connection status.
[0049] It should be noted that the processor here includes but is not limited to CPLD (Complex Programmable Logic Device).
[0050] S12: Determine the unique ID of the PAX module based on the connection status of each cable and the preset connection status-ID correspondence relationship;
[0051] It should be noted that the preset connection status-ID correspondence is pre-stored, so the unique ID of the PAX module can be determined; in addition, since it is in a Fabric cascade mode, the ID of the PAX module in each JBOF should be different. Therefore, based on step S12, the unique ID of the current JBOF can be determined and it will not be repeated with the PAX modules in other JBOFs.
[0052] It should also be noted that the PAX module here is essentially a PCIE (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard) switching chip, which is a chip used to configure the functional mode of PCIE. More specifically, it can be understood as the abbreviation of a series of chips from Microchip, such as PM42100 is one of the chip models.
[0053] S13: Configure the ID of the PAX module to be a unique ID.
[0054] It is understandable that, in step S13, the ID of the PAX module is configured as the unique ID, so that the PAX module can run the configuration file corresponding to the unique ID to implement the corresponding function. The specific content of the configuration file is not particularly limited here, and can be set according to actual needs.
[0055] In summary, the present application provides a method for configuring the ID of a PAX module in a JBOF, where the processor is connected to the USP port and the Fabric port in the JBOF respectively, and the cable connection status at the USP port and the Fabric port is monitored respectively, and a preset connection status-ID correspondence is pre-set, and then the unique ID of the PAX module can be determined based on each cable connection status and the preset connection status-ID correspondence, and then the ID of the PAX module is configured to the unique ID. Compared with the prior art, the solution in the present application does not require the additional setting of a multi-bit DIP switch, and the PAX module ID can be configured based on the cable connection status through hardware routing and software control logic, and the implementation method is simple and reliable, ensuring the reliable operation of the entire cascade topology storage structure.
[0056] Based on the above embodiments:
[0057] As a preferred embodiment, monitoring the cable connection status at the USP port includes:
[0058] Determine whether the first input terminal thereof receives a first presence identification signal, where the first presence identification signal indicates that the JBOF is connected to the storage controller;
[0059] If yes, make sure the cable connection status at the USP port is connected.
[0060] In this embodiment, a method for determining the cable connection status at the USP port is provided. Specifically, the USP port is a port for connecting to a storage controller. When no storage controller is connected to the port, the first input end of the processor will receive a first not-in-place identification signal indicating that the USP port of the JBOF is not connected to any device. It can be understood that when the USP port is not connected to any device, a high-level signal can be fed back, that is, the first not-in-place identification signal is a high-level signal, thereby enabling the processor to determine that the cable connection status at the USP port is not connected.
[0061] When the first input end of the processor receives the first in-place identification signal indicating that the JBOF is connected to the storage controller, it can be understood that, specifically, the USP port can feedback a level signal opposite to the first out-of-place identification signal, such as a low-level signal, because it is connected to the storage controller, that is, the first in-place identification signal is a low-level signal, thereby enabling the processor to determine that the cable connection status at the USP port is connected.
[0062] It can be seen that, through the setting of the above execution logic, the cable connection status at the USP port can be determined simply and reliably, providing a basis for the subsequent determination of the unique ID of the PAX module.
[0063] As a preferred embodiment, monitoring the cable connection status at the Fabric port includes:
[0064] Determine whether the second input terminal thereof receives a second presence identification signal, where the second presence identification signal indicates that the JBOF is connected to other cascade modules;
[0065] If yes, make sure the cable connection status at the Fabric port is connected.
[0066] In this embodiment, a method for determining the cable connection status at the Fabric port is provided. Specifically, the Fabric port is a port for connecting to the Fabric ports in other cascading modules (that is, the Fabric ports in other JBOFs). When no other JBOFs are connected to the port, the second input end of the processor will receive a second not-in-place identification signal indicating that the Fabric port of the JBOF is not connected to any device. It can be understood that when the Fabric port is not connected to any device, a high-level signal can be fed back, that is, the second not-in-place identification signal is a high-level signal, thereby enabling the processor to determine that the cable connection status at the Fabric port is not connected.
[0067] When the second input end of the processor receives a second presence identification signal indicating that the JBOF is connected to other JBOFs, it can be understood that, specifically, the Fabric port can feedback a level signal opposite to the second absence identification signal, such as a low level signal, due to being connected to other JBOFs, that is, the second presence identification signal is a low level signal, thereby enabling the processor to determine that the cable connection status at the Fabric port is connected.
[0068] It can be seen that, through the setting of the above execution logic, the cable connection status at the Fabric port can be determined simply and reliably, providing a basis for the subsequent determination of the unique ID of the PAX module.
[0069] As a preferred embodiment, the first output end of the processor is specifically connected to the first GPIO pin of the PAX module, and the second output end of the processor is specifically connected to the second GPIO pin of the PAX module;
[0070] Configure the PAX module ID to be a unique ID, including:
[0071] Based on the unique ID and the preset ID representation-signal identification correspondence, the corresponding configuration identification signal is sent to the first GPIO pin and the second GPIO pin respectively, so that the PAX module updates its own ID to the unique ID according to the received configuration identification signal and runs the configuration file corresponding to the unique ID.
[0072] In this embodiment, a method of configuring the PAX module as the unique ID is provided. Considering that the cascade topology storage structure currently used generally includes two levels, please refer to Figure 2 , Figure 2 A structural schematic diagram of a cascade topology storage structure provided by the present invention. It should be noted that, taking the processor as CPLD as an example, it can be seen that the USP port of the JBOF at the first level of the cascade topology storage structure will be connected to the storage controller and the Fabric port in the JBOF is connected to the Fabric port of the JBOF at the second level, and the USP port of the JBOF at the second level is in an unconnected state. The PAX module may specifically include the first GPIO pin and the second GPIO pin mentioned above. The connection method is as described above and will not be repeated here.
[0073] Therefore, controlling the configuration identification signal sent to the first GPIO pin and the second GPIO pin can realize the configuration of the unique ID of the PAX module. Specifically, based on the unique ID and the preset ID representation-signal identification correspondence, the corresponding configuration identification signal is sent to the first GPIO pin and the second GPIO pin respectively. The PAX module can update its own ID to a unique ID according to the received configuration identification signal, and after updating to the unique ID, it can run the configuration file corresponding to the unique ID to realize the corresponding function. The specific content of the configuration file is not particularly limited here, and it can be set according to actual needs. It can be seen that the configuration of the unique ID of the PAX module can be simply and reliably realized in the above manner.
[0074] As a preferred embodiment, the processor is a CPLD.
[0075] In this embodiment, considering that CPLD has the advantages of fast processing speed, simple programming and good confidentiality, the processor in this application can be CPLD. It should be noted that the specific model of the CPLD is not limited here.
[0076] Of course, the processor here may also be other types of processors such as MCU (Microcontroller Unit), which is not particularly limited here.
[0077] As a preferred embodiment, determining the unique ID of the PAX module based on the connection status of each cable and the preset connection status-ID correspondence includes:
[0078] Determine whether the cable connection status at the USP port is connected;
[0079] If so, it is determined that the ID of the PAX module is a preset first unique ID, wherein the preset first unique ID indicates that the JBOF is at the first level of the cascade topology storage structure.
[0080] In this embodiment, a specific implementation method for determining the unique ID of the PAX module is given. Specifically, it has been explained in the above embodiment that when the cable connection status at the USP port of the JBOF is connected, at this time, no matter what the cable connection status of the Fabric port of the JBOF is, it means that the current JBOF is in the first level of the cascade topology storage structure, so it can be determined that the ID of the PAX module in the current JBOF is the preset first unique ID, such as determining that the preset first unique ID is 0, and then based on the preset first unique ID and the preset ID representation-signal identification correspondence relationship, the corresponding configuration identification signal is sent to the first GPIO pin and the second GPIO pin in the PAX module respectively, corresponding to the above example, such as sending a low level to both the first GPIO pin and the second GPIO pin to indicate that the ID of the PAX module is configured to be 0.
[0081] Please see first Figure 3 , Figure 3 The present invention provides a schematic diagram of the internal structure of a JBOF, wherein the processor is a CPLD as an example, and the first GPIO pin is represented as GPIOx, and the second GPIO pin is represented as GPIOy, and the first input terminal connected to the processor at the USP port is represented as Present1, and the second input terminal connected to the processor at the Fabric port is represented as Present2. Based on this representation, combined with the description in the above embodiment, the possible situations when determining the preset first unique ID of the PAX module in this embodiment are described in Table 1.
[0082] Table 1
[0083] Present1 Present2 GPIO GPIOx PAX module ID (binary representation) 0 0 0 0 00 0 1 0 0 00
[0084] It should be noted that, in Table 1, 0 represents a low level and corresponds to Present1, indicating that the USP port is currently connected to a storage controller, and 1 represents a high level and corresponds to Present2, indicating that the Fabric port is currently connected to other JBOFs.
[0085] As shown in Table 1, when the connection cable status at the USP port of the JBOF is connected, no matter whether other JBOFs are connected to the Fabric port, the ID of the PAX module in the JBOF is configured as the preset first unique ID, wherein the preset first unique ID described in Table 1 is 0 (corresponding to 00 in binary). It can be seen that the configuration of the preset first unique ID of the PAX module can be simply and reliably implemented in the above manner, thereby ensuring the working reliability of the entire cascade topology storage structure.
[0086] As a preferred embodiment, when determining that the cable connection state at the USP port is not connected, the method includes:
[0087] Determine whether the cable connection status at the Fabric port is connected;
[0088] If so, it is determined that the ID of the PAX module is a preset second unique ID, wherein the preset second unique ID indicates that the JBOF is at the second level of the cascade topology storage structure.
[0089] In this embodiment, an implementation method for specifically determining the preset second unique ID of the PAX module is provided. Specifically, it has been explained in the above embodiment that when the cable connection status at the USP port of the JBOF is not connected, and the cable connection status at the Fabric port is connected, it means that the current JBOF is in the second level of the cascade topology storage structure. Therefore, it can be determined that the ID of the PAX module in the current JBOF is the preset second unique ID. For example, the preset second unique ID is determined to be 1 to distinguish it from the preset first unique ID. Then, based on the preset second unique ID and the preset ID representation-signal identification correspondence, the corresponding configuration identification signal is sent to the first GPIO pin and the second GPIO pin in the PAX module respectively. Corresponding to the above example, a high level is sent to the first GPIO pin and a low level is sent to the second GPIO pin to indicate that the ID of the PAX module is configured as the preset second unique ID, i.e., 1. Please first refer to Figure 3 In the above embodiment, for Figure 3 Based on the description of , combined with the situations in the above embodiments, possible situations when the preset second unique ID of the PAX module in this embodiment is determined are described in Table 2.
[0090] Table 2
[0091] Present1 Present2 GPIO GPIOx PAX module ID (binary representation) 1 0 0 1 01 1 1 Na Na Na
[0092] It should be noted that the 0 in Table 2 represents a low level and corresponds to Present2, indicating that other JBOFs are currently connected to the Fabric port. The 1 represents a high level and corresponds to Present2, indicating that other JBOFs are currently not connected to the Fabric port. The 1 corresponds to Present1, indicating that no storage controller is currently connected to the USP port. Na can be understood as being suspended or not needing to send the configuration identification signal.
[0093] It can be seen from Table 2 that, based on the fact that the connection cable status at the USP port of the JBOF is not connected, when other JBOFs are connected to the Fabric port, the ID of the PAX module in the JBOF is configured as a preset second unique ID, wherein the preset second unique ID described in Table 2 is 1 (corresponding to 01 in binary); when no other JBOFs are connected to the Fabric port, it means that the JBOF is not enabled at present, and there is no need to configure the ID of the PAX module.
[0094] It should also be noted that the values of the preset first unique ID and the preset second unique ID should be different to ensure the implementation of the basic working logic of the Fabric cascade mode. It can be seen that the ID configuration of the PAX module can be simply and reliably implemented through the above method, ensuring the working reliability of the entire cascade topology storage structure.
[0095] Please refer to Figure 3 , Figure 3 A schematic diagram of the structure of an ID configuration system for a PAX module in a JBOF provided by the present invention.
[0096] The ID configuration system of the PAX module in the JBOF is applied to the processor in the JBOF, wherein the first input end of the processor is connected to the USP port in the JBOF, the second input end is connected to the Fabric port in the JBOF, and the output end is connected to the PAX module in the JBOF. The ID configuration system of the PAX module in the JBOF includes:
[0097] The first monitoring unit 21 is used to monitor the cable connection status at the USP port and the Fabric port respectively;
[0098] A unique ID determination unit 22, configured to determine a unique ID of the PAX module based on the connection status of each cable and a preset connection status-ID correspondence relationship;
[0099] The configuration unit 23 is used to configure the ID of the PAX module to be a unique ID.
[0100] For the introduction of the ID configuration system of the PAX module in the JBOF provided by the present invention, please refer to the embodiment of the ID configuration method of the PAX module in the JBOF, which will not be described again here.
[0101] As a preferred embodiment, the first monitoring unit 21 specifically includes a first monitoring subunit and a second monitoring subunit;
[0102] The first monitoring subunit includes:
[0103] a first judging unit, configured to judge whether the first input end thereof receives a first presence identification signal, the first presence identification signal indicating that the JBOF is connected to the storage controller; if so, triggering a first determining unit;
[0104] The first determining unit is configured to determine that the cable connection status at the USP port is connected.
[0105] As a preferred embodiment, the second monitoring subunit includes:
[0106] A second judging unit is configured to judge whether the second input end thereof receives a second presence identification signal, wherein the second presence identification signal indicates that the JBOF is connected to other cascade modules; if so, triggering a second determining unit;
[0107] The second determining unit is configured to determine that the cable connection state at the Fabric port is connected.
[0108] As a preferred embodiment, the first output end of the processor is specifically connected to the first GPIO pin of the PAX module, and the second output end of the processor is specifically connected to the second GPIO pin of the PAX module;
[0109] The configuration unit 23 specifically includes:
[0110] The configuration identification signal output unit is used to send corresponding configuration identification signals to the first GPIO pin and the second GPIO pin respectively based on the unique ID and the preset ID representation-signal identification correspondence relationship, so that the PAX module updates its own ID to the unique ID according to the received configuration identification signal and runs the configuration file corresponding to the unique ID.
[0111] As a preferred embodiment, the processor is a CPLD.
[0112] As a preferred embodiment, the unique ID determination unit 22 specifically includes:
[0113] A third judging unit is configured to judge whether the cable connection status at the USP port is connected; if so, a third determining unit is triggered;
[0114] The third determining unit is configured to determine that the ID of the PAX module is a preset first unique ID, wherein the preset first unique ID indicates that the JBOF is at the first level of a cascade topology storage structure.
[0115] As a preferred embodiment, the unique ID determination unit 22 further includes:
[0116] a fourth judgment unit, configured to judge whether the cable connection state at the Fabric port is connected when the third judgment unit determines that the cable connection state at the USP port is not connected; if so, trigger the fourth determination unit;
[0117] The fourth determining unit is configured to determine that the ID of the PAX module is a preset second unique ID, wherein the preset second unique ID indicates that the JBOF is at the second level of the cascade topology storage structure.
[0118] Please refer to Figure 4 , Figure 4 The present invention provides a schematic structural diagram of an ID configuration device for a PAX module in a JBOF.
[0119] The ID configuration device of the PAX module in the JBOF includes:
[0120] A memory 31, used for storing computer programs;
[0121] The processor 32 is used to execute the steps of the method for configuring the ID of the PAX module in the JBOF as described above.
[0122] For the introduction of the ID configuration device of the PAX module in the JBOF provided by the present invention, please refer to the embodiment of the ID configuration method of the PAX module in the JBOF, which will not be described in detail here.
[0123] The present invention also provides a computer-readable storage medium, comprising:
[0124] The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the method for configuring the ID of the PAX module in the JBOF as described above are implemented.
[0125] For an introduction to the computer-readable storage medium provided in the present invention, please refer to the embodiment of the ID configuration method of the PAX module in the above-mentioned JBOF, which will not be repeated here.
[0126] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. Relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes other elements that are not clearly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or equipment including the elements.
[0127] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0128] Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for configuring the ID of a PAX module in a JBOF, characterized in that: A processor applied to a JBOF, wherein a first input end of the processor is connected to a USP port in the JBOF, a second input end is connected to a Fabric port in the JBOF, and an output end is connected to a PAX module in the JBOF. The ID configuration method of the PAX module in the JBOF includes: respectively monitoring the cable connection status at the USP port and the Fabric port; Determine the unique ID of the PAX module based on the connection status of each cable and the preset connection status-ID correspondence; Configure the ID of the PAX module to be the unique ID; Monitoring the cable connection status at the USP port, including: Determine whether the first input end thereof receives a first presence identification signal, wherein the first presence identification signal indicates that the JBOF is connected to a storage controller; If so, determine that the cable connection status at the USP port is connected.
2. The ID configuration method of the PAX module in the JBOF according to claim 1, characterized in that: Monitor the cable connection status at the Fabric port, including: Determine whether the second input end thereof receives a second presence identification signal, where the second presence identification signal indicates that the JBOF is connected to other cascade modules; If so, determine that the cable connection status at the Fabric port is connected.
3. The ID configuration method of the PAX module in the JBOF according to claim 1, characterized in that: The first output terminal of the processor is specifically connected to the first GPIO pin of the PAX module, and the second output terminal of the processor is specifically connected to the second GPIO pin of the PAX module; Configuring the ID of the PAX module to be the unique ID includes: Based on the unique ID and the preset ID representation-signal identification correspondence, corresponding configuration identification signals are sent to the first GPIO pin and the second GPIO pin respectively, so that the PAX module updates its own ID to the unique ID according to the received configuration identification signal and runs the configuration file corresponding to the unique ID.
4. The ID configuration method of the PAX module in the JBOF according to claim 1, characterized in that: The processor is CPLD.
5. The ID configuration method of the PAX module in the JBOF according to any one of claims 1 to 4, characterized in that: Determining the unique ID of the PAX module based on the cable connection status and the preset connection status-ID correspondence includes: Determine whether the cable connection status at the USP port is connected; If so, it is determined that the ID of the PAX module is a preset first unique ID, wherein the preset first unique ID indicates that the JBOF is at the first level of a cascade topology storage structure.
6. The ID configuration method of the PAX module in the JBOF according to claim 5, characterized in that: When determining that the cable connection state at the USP port is not connected, including: Determine whether the cable connection status at the Fabric port is connected; If so, it is determined that the ID of the PAX module is a preset second unique ID, wherein the preset second unique ID indicates that the JBOF is at the second level of the cascade topology storage structure.
7. An ID configuration system for a PAX module in a JBOF, characterized in that: A processor applied to a JBOF, wherein a first input end of the processor is connected to a USP port in the JBOF, a second input end is connected to a Fabric port in the JBOF, and an output end is connected to a PAX module in the JBOF. The ID configuration system of the PAX module in the JBOF includes: A first monitoring unit, used to monitor the cable connection status at the USP port and the Fabric port respectively; A unique ID determination unit, configured to determine a unique ID of the PAX module based on the connection status of each cable and a preset connection status-ID correspondence relationship; A configuration unit, configured to configure the ID of the PAX module to be the unique ID; Monitoring the cable connection status at the USP port, including: Determine whether the first input end thereof receives a first presence identification signal, wherein the first presence identification signal indicates that the JBOF is connected to a storage controller; If so, determine that the cable connection status at the USP port is connected.
8. An ID configuration device for a PAX module in a JBOF, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the steps of the method for configuring the ID of a PAX module in a JBOF according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: include: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for configuring the ID of the PAX module in the JBOF according to any one of claims 1 to 6 are implemented.
