Disk cluster port information identification methods, devices and computer equipment
By generating an information page containing port link addresses and attribute information, the disk cluster ports are dynamically identified, solving the problem of low efficiency in multi-port disk cluster identification, achieving efficient adaptation and identification, and reducing the pressure on research and development and testing.
Patent Information
- Application Number
- CN202211273284.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-18
- Publication Date
- 2025-12-02
- Estimated Expiration
- 2042-10-18
AI Technical Summary
Existing technologies are ill-suited for identifying port information in multi-port disk clusters, resulting in significant manpower and material costs, and are not applicable to the product form of multi-port disk clusters.
By generating a first port information page and a second port information page, which contain port link addresses and port attribute information respectively, dynamic identification is performed using port identification information to adapt to disk clusters of different product forms.
It improves the efficiency of disk cluster port information identification, reduces manpower and material resources consumption, reduces R&D and testing pressure, and improves production debugging efficiency.
Smart Images

Figure CN115695366B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of port information identification technology, and in particular to a disk cluster port information identification method, apparatus and computer equipment. Background Technology
[0002] In the era of cloud computing and big data, massive data storage requires storage products with superior performance, larger storage capacity, faster transmission speeds, and more robust backup mechanisms. These products must meet the demands of higher and faster transmission speeds while also ensuring data integrity, reliability, and disaster recovery. This means that storage systems will become more complex. For example... Figure 2 The diagram shown illustrates the connection status between the four-controller and the ten-port disk cluster.
[0003] In existing technologies, a common method for port information identification involves physically connecting the controller to a disk cluster (Just a Bunch Of Disks, JBOD) frame via a SAS (Serial Attached SCSI) cable. The controller and disk cluster exchange information via the ESE protocol. The disk cluster fills all the port information required by the system into a standard data storage page using a pre-agreed format. When the system initiates a read operation, it only needs to read the port information from the data storage page and extract the valid information. However, this port information identification method is only suitable for single-port disk clusters and not for multi-port disk clusters. This is because a multi-port disk cluster implies multiple uplink ports, multiple downlink ports, and multiple disks. The number of multi-port disk cluster products increases exponentially with the number of combinations of these ports. Using the common disk cluster port information identification method would require adapting each disk cluster product type to the data storage page, posing a significant challenge and waste of manpower and resources.
[0004] Therefore, there is an urgent need to propose a disk cluster port information identification method, device, and computer equipment that can adapt to different product forms of disk clusters and improve the efficiency of disk cluster port information identification. Summary of the Invention
[0005] Therefore, it is necessary to provide a disk cluster port information identification method, apparatus, and computer equipment that can adapt to different product forms of disk clusters and improve the efficiency of disk cluster port information identification, in order to address the above-mentioned technical problems.
[0006] On the one hand, a method for identifying disk cluster port information is provided, wherein the disk cluster port is at least one, the method comprising:
[0007] Obtain the product form of the disk cluster, and based on the product form of the disk cluster and the preset static model of port information, generate a first port information page and a second port information page. The first port information page includes the port link address, and the second port information page includes port attribute information.
[0008] Obtain the port link address within the first port information page, and based on the port link address, obtain the port identification information of the port;
[0009] Based on the port identification information of the port, the port attribute information of the port is obtained from the second port information page to realize the port information identification of the disk cluster.
[0010] In one embodiment, obtaining the product form of the disk cluster and generating a first port information page based on the product form of the disk cluster and a preset static port information model includes: obtaining the product form of the disk cluster; generating a first initial port information page based on the product form of the disk cluster and the preset static port information model; identifying the occupancy status of the ports of the disk cluster; if the occupancy status of the ports of the disk cluster is occupied, updating the link connection address of the port to the first initial port information page; obtaining the port identification information of the port based on the link connection address of the port; writing the port identification information of the port to the first initial port information page; and generating the first port information page.
[0011] In one embodiment, generating a second port information page based on the product form of the disk cluster and a preset static model of port information includes: obtaining the product form of the disk cluster based on the preset static model of port information, and fully matching the ports of the disk cluster; obtaining the port identification information and port attribute information of the port based on the ports of the disk cluster; and generating the second port information page based on the port identification information and port attribute information of the port.
[0012] In one embodiment, obtaining port attribute information of the port from a second port information page based on the port identification information of the port includes: obtaining the port category of the port based on the port identification information of the port; if the port category is a wide port, then obtaining the port information identifier of a single port within the wide port from the second port information page based on the port information identifier of the wide port, obtaining the port attribute information of the single port from the second port information page based on the port information identifier of the single port, and identifying the port information of the wide port based on the port attribute information of the single port; if the port category is a single port, then obtaining the port attribute information of the single port from the second port information page based on the port information identifier of the single port, and identifying the port information of the single port based on the port attribute information of the single port.
[0013] In one embodiment, before obtaining the port identification information of the port based on the link connection address of the port, the method further includes: identifying whether the link connection address of the port in the first initial port information page is valid based on the first initial port information page; if the link connection address of the port is valid, then obtaining the port identification information of the port based on the link connection address of the port.
[0014] In one embodiment, when generating a first initial port information page based on the product form of the disk cluster and the preset static port information model, the method further includes: initializing the port link connection address in the first port information page to 0.
[0015] In one embodiment, identifying whether the port link connection address in the first initial port information page is valid includes: when the link connection address of the port is 0, determining that the link connection address of the port is invalid; when the link connection address of the port is not 0, determining that the link connection address of the port is valid.
[0016] On the other hand, a disk cluster port information identification device is provided, wherein there is at least one disk cluster port, and the device includes:
[0017] Acquisition unit, used to acquire the product form of disk clusters;
[0018] An information page generation unit is communicatively connected to the acquisition unit to generate a first port information page and a second port information page based on the product form of the disk cluster and a preset static model of port information. The first port information page includes a port link address, and the second port information page includes port attribute information.
[0019] The acquisition unit is further configured to acquire the port link address in the first port information page, and acquire the port information identifier of the port based on the port link address;
[0020] The acquisition unit is further configured to acquire port attribute information of the port from the second port information page based on the port identification information of the port, so as to realize the port information identification of the disk cluster.
[0021] In another aspect, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to perform the following steps:
[0022] Obtain the product form of the disk cluster, and based on the product form of the disk cluster and the preset static model of port information, generate a first port information page and a second port information page. The first port information page includes the port link address, and the second port information page includes port attribute information.
[0023] Obtain the port link address within the first port information page, and based on the port link address, obtain the port identification information of the port;
[0024] Based on the port identification information of the port, the port attribute information of the port is obtained from the second port information page to realize the port information identification of the disk cluster.
[0025] In another aspect, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0026] Obtain the product form of the disk cluster, and based on the product form of the disk cluster and the preset static model of port information, generate a first port information page and a second port information page. The first port information page includes the port link address, and the second port information page includes port attribute information.
[0027] Obtain the port link address within the first port information page, and based on the port link address, obtain the port identification information of the port;
[0028] Based on the port identification information of the port, the port attribute information of the port is obtained from the second port information page to realize the port information identification of the disk cluster.
[0029] The aforementioned disk cluster port information identification method, apparatus, and computer device include the following steps: The method involves obtaining the product form of the disk cluster; generating a first port information page and a second port information page based on the product form of the disk cluster and a preset static port information model. The first port information page includes a port link address, and the second port information page includes port attribute information. The method further involves obtaining the port link address within the first port information page; obtaining the port identification information of the port based on the port link address; and obtaining the port attribute information of the port from the second port information page based on the port identification information, thereby achieving port information identification of the disk cluster. This method is adaptable to different product forms of disk clusters and can improve the efficiency of disk cluster port information identification. Attached Figure Description
[0030] Figure 1 This is an application environment diagram of the disk cluster port information identification method in one embodiment;
[0031] Figure 2This is a schematic diagram illustrating the connection status between a four-controller and a ten-port disk cluster in the prior art.
[0032] Figure 3 This is a flowchart illustrating a disk cluster port information identification method in one embodiment;
[0033] Figure 4 This is a structural block diagram of a disk cluster port information identification device in another embodiment;
[0034] Figure 5 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0035] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0036] The disk cluster port information identification method provided in this application can be applied to, for example... Figure 1 In the application environment shown, terminal 102 communicates with server 104 via a network. Server 104 has a disk cluster installed within it. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. Server 104 can be a standalone server or a server cluster consisting of multiple servers.
[0037] In one embodiment, such as Figure 2 As shown, a method for identifying disk cluster port information is provided, which can be applied to... Figure 1Taking a terminal as an example, the process includes the following steps: First, the system identifies the product form using a disk cluster, thereby establishing and maintaining a static model of the corresponding port information. Then, a new first port information page is created to package the port information and attach the corresponding port-specific identifier (PHY_ID). The system first reads the information in the first port information page. If a hard drive is inserted into a slot of the disk cluster, or a SAS cable is inserted into a wide port, then the system assigns the port link address (SAS_attach address) of the HPY distributor corresponding to that slot or the four HPY distributors corresponding to the wide port. If no connection is made, the port link address is 0. For example, if port 1 of the multi-port disk cluster is connected to the upper-layer controller via a SAS cable, then the system allocates content for the port link addresses of the four HPY distributors corresponding to port 1 and updates the first port information page. When the system communicates with the multi-port disk cluster, if the system reads that the port link address is not 0, it obtains the PHY_ID of the wide port of port 1. Based on the PHY_ID of the wide port, the system indexes the port identifier information of the single ports included in the wide port in the second port information page. In this way, by comprehensively judging the information of the four PHYs contained in a wide port, it is determined whether the port status meets the business requirements, and the corresponding capabilities are allocated accordingly. This enables dynamic identification of port information. Regardless of the number of hard drives or wide ports equipped on the disk cluster side, as long as the disk cluster performs single-board identification and fills the first port information page with port information matching the product form, and fully configures the port attribute information of the maximum number of PHYs in the second port information page, the system will also fully configure the maximum number of ports and their corresponding port identification information. By recognizing the port identification information in the first port information page, the correct port information identifier can be obtained in the second port information page, thus achieving dynamic identification of port information. It should be understood that the port corresponding to the port identification information in the first port information page is generally a wide port, while the port corresponding to the port identification information in the second port information page is a single port; the wide port consists of four PHYs, and the single port consists of one PHY.
[0038] In one embodiment, this application provides a method for identifying disk cluster port information, wherein the disk cluster port is at least one, the method comprising:
[0039] Obtain the product form of the disk cluster, and based on the product form of the disk cluster and the preset static model of port information, generate a first port information page and a second port information page. The first port information page includes the port link address, and the second port information page includes port attribute information.
[0040] Obtain the port link address within the first port information page, and based on the port link address, obtain the port identification information of the port;
[0041] Based on the port identification information of the port, the port attribute information of the port is obtained from the second port information page to realize the port information identification of the disk cluster.
[0042] Storage system architectures are complex and scenarios are diverse. Disk clusters, as an important component of storage systems that process critical information from hard drives, require uplink ports to meet the needs of different scenarios. Uplink ports need to support variable controllers, while downlink ports need to connect to hard drives for cascading of the next level of disk clusters. Different numbers of uplink and downlink ports result in several product configurations. For example, there are different product configurations such as single downlink port and single uplink port, single uplink port and dual downlink ports, and four uplink ports and six downlink ports. If different system versions are required to adapt the disk cluster firmware for each product configuration, the entire production application process will consume a large amount of manpower and resources. Throughout the entire production and application process of disk clusters, including the R&D and debugging phase and the test production phase, the coordination between multiple firmware versions is still in its early stages during the R&D and debugging phase. This is because the system is complex, with code volumes reaching tens of millions of lines, making version adaptation quite challenging. During the test production phase, the technical staff's familiarity with the system is relatively low, often making it difficult to efficiently and accurately determine the system version compatible with the disk clusters under test when faced with numerous disk cluster ports. However, based on the aforementioned disk cluster port information identification method, there is no need to adapt to multiple system versions based on the disk cluster port status. Only a fully compatible version needs to be released, allowing multi-port disk clusters to adapt to different port conditions freely, regardless of the disk cluster's product form, without requiring secondary adaptation with the system. This significantly reduces the R&D burden and improves R&D efficiency during the R&D and debugging phase, and also improves testing and production debugging efficiency during the test production phase.
[0043] In one embodiment, obtaining the product form of the disk cluster and generating a first port information page based on the product form of the disk cluster and a preset static port information model includes: obtaining the product form of the disk cluster; generating a first initial port information page based on the product form of the disk cluster and the preset static port information model; identifying the occupancy status of the ports of the disk cluster; if the occupancy status of the ports of the disk cluster is occupied, updating the link connection address of the port to the first initial port information page; obtaining the port identification information of the port based on the link connection address of the port; writing the port identification information of the port to the first initial port information page; and generating the first port information page.
[0044] In one embodiment, generating a second port information page based on the product form of the disk cluster and a preset static model of port information includes: obtaining the product form of the disk cluster based on the preset static model of port information, and fully matching the ports of the disk cluster; obtaining the port identification information and port attribute information of the port based on the ports of the disk cluster; and generating the second port information page based on the port identification information and port attribute information of the port.
[0045] Based on the port identification information of the port, the port attribute information of the port is obtained from the second port information page, including: obtaining the port category of the port based on the port identification information of the port; if the port category is a wide port, then based on the port information identifier of the wide port, the port information identifier of a single port within the wide port is obtained from the second port information page, the port attribute information of the single port is obtained from the second port information page based on the port information identifier of the single port, and the port information of the wide port is identified based on the port attribute information of the single port; if the port category is a single port, then based on the port information identifier of the single port, the port attribute information of the single port is obtained from the second port information page, and the port information of the single port is identified based on the port attribute information of the single port.
[0046] In one embodiment, before obtaining the port identification information of the port based on the link connection address of the port, the method further includes: identifying whether the link connection address of the port in the first initial port information page is valid based on the first initial port information page; if the link connection address of the port is valid, then obtaining the port identification information of the port based on the link connection address of the port.
[0047] In one embodiment, when generating a first initial port information page based on the product form of the disk cluster and the preset static port information model, the method further includes: initializing the port link connection address in the first port information page to 0.
[0048] In one embodiment, identifying whether the port link connection address in the first initial port information page is valid includes: when the link connection address of the port is 0, determining that the link connection address of the port is invalid; when the link connection address of the port is not 0, determining that the link connection address of the port is valid.
[0049] It should be understood that, although Figure 3 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 3 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
[0050] In one embodiment, such as Figure 4 As shown, a disk cluster port information identification device is provided, wherein there is at least one disk cluster port, and includes: an acquisition unit and an information page generation unit, wherein:
[0051] Acquisition unit, used to acquire the product form of disk clusters;
[0052] An information page generation unit is communicatively connected to the acquisition unit to generate a first port information page and a second port information page based on the product form of the disk cluster and a preset static model of port information. The first port information page includes a port link address, and the second port information page includes port attribute information.
[0053] The acquisition unit is further configured to acquire the port link address in the first port information page, and acquire the port information identifier of the port based on the port link address;
[0054] The acquisition unit is further configured to acquire port attribute information of the port from the second port information page based on the port identification information of the port, so as to realize the port information identification of the disk cluster.
[0055] In one embodiment, the device further includes: an identification unit;
[0056] The information page generation unit is also used to obtain the product form of the disk cluster, and generate a first initial port information page based on the product form of the disk cluster and the preset port information static model;
[0057] The identification unit is used to identify the occupancy status of the ports of the disk cluster. If the occupancy status of the ports of the disk cluster is occupied, the link connection address of the port is updated to the first initial port information page.
[0058] The information page generation unit is further configured to obtain the port identification information of the port based on the link connection address of the port, write the port identification information of the port into the first initial port information page, and generate the first port information page.
[0059] In one embodiment, the information page generation unit is further configured to obtain the product form of the disk cluster based on the preset port information static model, and fully match the ports of the disk cluster; obtain the port identification information and port attribute information of the port based on the ports of the disk cluster; and generate the second port information page based on the port identification information and port attribute information of the port.
[0060] In one embodiment, the acquisition unit is further configured to acquire the port category of the port based on the port identification information of the port; if the port category is a wide port, then based on the port information identifier of the wide port, acquire the port information identifier of a single port within the wide port from the second port information page, acquire the port attribute information of the single port from the second port information page based on the port information identifier of the single port, and identify the port information of the wide port based on the port attribute information of the single port; if the port category is a single port, then based on the port information identifier of the single port, acquire the port attribute information of the single port from the second port information page, and identify the port information of the single port based on the port attribute information of the single port.
[0061] In one embodiment, the acquisition unit is further configured to identify whether the link connection address of the port in the first initial port information page is valid based on the first initial port information page; if the link connection address of the port is valid, then acquire the port identification information of the port based on the link connection address of the port.
[0062] In one embodiment, the apparatus further includes an initialization unit for initializing the port link connection address within the first port information page to 0.
[0063] In one embodiment, the identification unit is further configured to determine that the link connection address of the port is invalid when the link connection address of the port is 0, and to determine that the link connection address of the port is valid when the link connection address of the port is not 0.
[0064] Specific limitations regarding the disk cluster port information identification device can be found in the limitations of the disk cluster port information identification method described above, and will not be repeated here. Each module in the aforementioned disk cluster port information identification device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0065] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 5As shown, the computer device includes a processor, memory, network interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used to communicate with external terminals via a network connection. When executed by the processor, the computer program implements a disk cluster port information identification method. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.
[0066] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0067] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to perform the following steps:
[0068] Obtain the product form of the disk cluster, and based on the product form of the disk cluster and the preset static model of port information, generate a first port information page and a second port information page. The first port information page includes the port link address, and the second port information page includes port attribute information.
[0069] Obtain the port link address within the first port information page, and based on the port link address, obtain the port identification information of the port;
[0070] Based on the port identification information of the port, the port attribute information of the port is obtained from the second port information page to realize the port information identification of the disk cluster.
[0071] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0072] The product form of the disk cluster is obtained, and a first initial port information page is generated based on the product form of the disk cluster and the preset static port information model. The occupancy status of the ports of the disk cluster is identified. If the occupancy status of the ports of the disk cluster is occupied, the link connection address of the port is updated to the first initial port information page. Based on the link connection address of the port, the port identification information of the port is obtained, and the port identification information of the port is written into the first initial port information page to generate the first port information page.
[0073] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0074] Based on the preset static port information model, the product form of the disk cluster is obtained, and the ports of the disk cluster are fully configured; based on the ports of the disk cluster, the port identification information and port attribute information of the port are obtained; based on the port identification information and port attribute information of the port, the second port information page is generated.
[0075] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0076] Based on the port identification information of the port, the port category of the port is obtained; if the port category is a wide port, then based on the port information identifier of the wide port, the port information identifier of a single port within the wide port is obtained from the second port information page, and based on the port information identifier of the single port, the port attribute information of the single port is obtained from the second port information page, and based on the port attribute information of the single port, the port information of the wide port is identified; if the port category is a single port, then based on the port information identifier of the single port, the port attribute information of the single port is obtained from the second port information page, and based on the port attribute information of the single port, the port information of the single port is identified.
[0077] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0078] Based on the first initial port information page, determine whether the link connection address of the port in the first initial port information page is valid; if the link connection address of the port is valid, obtain the port identification information of the port based on the link connection address of the port.
[0079] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0080] Initialize the port link connection address in the first port information page to 0.
[0081] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0082] When the link connection address of the port is 0, the link connection address of the port is determined to be invalid; when the link connection address of the port is not 0, the link connection address of the port is determined to be valid.
[0083] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0084] Obtain the product form of the disk cluster, and based on the product form of the disk cluster and the preset static model of port information, generate a first port information page and a second port information page. The first port information page includes the port link address, and the second port information page includes port attribute information.
[0085] Obtain the port link address within the first port information page, and based on the port link address, obtain the port identification information of the port;
[0086] Based on the port identification information of the port, the port attribute information of the port is obtained from the second port information page to realize the port information identification of the disk cluster.
[0087] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0088] The product form of the disk cluster is obtained, and a first initial port information page is generated based on the product form of the disk cluster and the preset static port information model. The occupancy status of the ports of the disk cluster is identified. If the occupancy status of the ports of the disk cluster is occupied, the link connection address of the port is updated to the first initial port information page. Based on the link connection address of the port, the port identification information of the port is obtained, and the port identification information of the port is written into the first initial port information page to generate the first port information page.
[0089] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0090] Based on the preset static port information model, the product form of the disk cluster is obtained, and the ports of the disk cluster are fully configured; based on the ports of the disk cluster, the port identification information and port attribute information of the port are obtained; based on the port identification information and port attribute information of the port, the second port information page is generated.
[0091] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0092] Based on the port identification information of the port, the port category of the port is obtained; if the port category is a wide port, then based on the port information identifier of the wide port, the port information identifier of a single port within the wide port is obtained from the second port information page, and based on the port information identifier of the single port, the port attribute information of the single port is obtained from the second port information page, and based on the port attribute information of the single port, the port information of the wide port is identified; if the port category is a single port, then based on the port information identifier of the single port, the port attribute information of the single port is obtained from the second port information page, and based on the port attribute information of the single port, the port information of the single port is identified.
[0093] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0094] Based on the first initial port information page, determine whether the link connection address of the port in the first initial port information page is valid; if the link connection address of the port is valid, obtain the port identification information of the port based on the link connection address of the port.
[0095] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0096] Initialize the port link connection address in the first port information page to 0.
[0097] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0098] When the link connection address of the port is 0, the link connection address of the port is determined to be invalid; when the link connection address of the port is not 0, the link connection address of the port is determined to be valid.
[0099] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0100] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0101] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A method for identifying disk cluster port information, characterized in that, The disk cluster port is at least one, and the method includes: Obtain the product form of the disk cluster, and based on the product form of the disk cluster and the preset static model of port information, generate a first port information page and a second port information page. The first port information page includes the port link address, and the second port information page includes port attribute information. Obtain the port link address within the first port information page, and based on the port link address, obtain the port identification information of the port; Based on the port identification information of the port, the port attribute information of the port is obtained from the second port information page to realize the identification of the port information of the disk cluster; The process includes obtaining the product type of the disk cluster, and generating a first port information page based on the product type of the disk cluster and a preset static model of port information, including: Obtain the product form of the disk cluster, and generate a first initial port information page based on the product form of the disk cluster and the preset static port information model; Identify the occupancy status of the ports of the disk cluster. If the occupancy status of the ports of the disk cluster is occupied, update the link connection address of the port to the first initial port information page. Based on the link connection address of the port, obtain the port identification information of the port, write the port identification information of the port into the first initial port information page, and generate the first port information page; Based on the product form of the disk cluster and the preset static model of port information, a second port information page is generated, including: Based on the preset static model of port information, obtain the product form of the disk cluster and fully match the ports of the disk cluster; Based on the port of the disk cluster, obtain the port identification information and port attribute information of the port; Based on the port identification information and port attribute information of the port, the second port information page is generated.
2. The disk cluster port information identification method according to claim 1, characterized in that, Based on the port identifier information of the port, the port attribute information of the port is obtained from the second port information page, including: Based on the port identification information of the port, obtain the port category of the port; If the port category is a wide port, then based on the port information identifier of the wide port, the port information identifier of a single port within the wide port is obtained from the second port information page; based on the port information identifier of the single port, the port attribute information of the single port is obtained from the second port information page; and based on the port attribute information of the single port, the port information of the wide port is identified. If the port category is a single port, then based on the port information identifier of the single port, the port attribute information of the single port is obtained from the second port information page, and based on the port attribute information of the single port, the port information of the single port is identified.
3. The disk cluster port information identification method according to claim 2, characterized in that, Before obtaining the port identification information of the port based on the link connection address of the port, the method further includes: Based on the first initial port information page, identify whether the link connection address of the port in the first initial port information page is valid; If the link connection address of the port is valid, then the port identification information of the port is obtained based on the link connection address of the port.
4. The disk cluster port information identification method according to claim 3, characterized in that, When generating the first initial port information page based on the product form of the disk cluster and the preset static port information model, the method further includes: initializing the port link connection address in the first port information page to 0.
5. The disk cluster port information identification method according to claim 4, characterized in that, Identifying whether the port link connection address within the first initial port information page is valid includes: When the link connection address of the port is 0, the link connection address of the port is determined to be invalid. If the link connection address of the port is not 0, then the link connection address of the port is considered valid.
6. The disk cluster port information identification method according to any one of claims 1 to 5, characterized in that, The method further includes: generating the preset static model of port information; Generating the preset static model of port information includes: The disk cluster is dynamically configured, and the single board identifies and processes the product type of the disk cluster, wherein the product type of the disk cluster is at least one. Based on the product form of the disk cluster, the preset static model of port information is generated.
7. A disk cluster port information identification device for implementing the disk cluster port information identification method as described in any one of claims 1-6, characterized in that, The disk cluster port is at least one, and the device includes: Acquisition unit, used to acquire the product form of disk clusters; An information page generation unit is communicatively connected to the acquisition unit to generate a first port information page and a second port information page based on the product form of the disk cluster and a preset static model of port information. The first port information page includes a port link address, and the second port information page includes port attribute information. The acquisition unit is further configured to acquire the port link address in the first port information page, and acquire the port identification information of the port based on the port link address; The acquisition unit is further configured to acquire port attribute information of the port from the second port information page based on the port identification information of the port, so as to realize the port information identification of the disk cluster.
8. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Addresses assignment for adaptor interfaces
CN101788971A
Single-host multi-disk cluster communication method, device and system
CN113613347A