Host management method, device, communication equipment and storage medium

By automatically managing the candidate host list and access control list in a dual-controller storage cluster, the problem of low manual management efficiency is solved, efficient and accurate host management and storage resource access are achieved, and security and reliability are improved.

CN119248181BActive Publication Date: 2025-09-23INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411154409.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2025-09-23
Estimated Expiration
2044-08-21

AI Technical Summary

Technical Problem

In the existing technology, relying on manual acquisition of host status for management results in low host management efficiency and low accuracy. The openness of the storage system increases the risk of data leakage, affecting the overall security of the storage system.

Method used

Determine the candidate host list for the dual-controller storage cluster through switches or hosts, and classify the target candidate hosts according to the access control list. Automatically manage host access to storage resources, reduce manual intervention, and improve management efficiency and accuracy.

Benefits of technology

It achieves automation and high efficiency of host management, ensures that only hosts in the access control list can access storage resources, improves management accuracy and security, adapts to different deployment scenarios and network structures, and reduces the time spent on manual configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248181B_ABST
    Figure CN119248181B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a host management method, apparatus, communication equipment, and storage medium. The method includes: determining a candidate host list of a first controller and a candidate host list of a second controller through a switch or a host; for any controller, determining a target candidate host from the candidate host list, and storing the target candidate host in an access control list, thereby obtaining the access control list of the first controller and the access control list of the second controller; classifying the target candidate host according to the access control list of the first controller and the access control list of the second controller, thereby obtaining a classification result of the target candidate host; and determining the target host according to the classification result of the target candidate host. The present invention automatically determines the target candidate host from the candidate host list through a dual-controller storage cluster and stores it in the access control list, thereby ensuring that only hosts in the access control list can access storage resources, thereby improving the efficiency and accuracy of host management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of host management, and in particular to a host management method, device, communication equipment and storage medium. Background Art

[0002] While the openness of storage systems facilitates host access, it also poses a potential threat to data security. Without effective control mechanisms, all hosts can access storage resources on the storage system, increasing the risk of data leakage and posing a challenge to the overall security of the storage system. Therefore, efficient and intelligent host management is essential.

[0003] Existing methods for managing hosts primarily rely on manual acquisition of host status, configuration, management, and maintenance. This process is not only time-consuming, but also inaccurately captures host status, leading to users being unable to access storage system resources through the host. Consequently, existing methods for managing hosts suffer from low efficiency and accuracy. Summary of the Invention

[0004] In view of this, the present invention aims to propose a host management method, device, equipment and storage medium to solve the problem of low host management efficiency and low accuracy caused by relying on manual acquisition of host status, manual configuration, management and maintenance of the host.

[0005] According to a first aspect of the present invention, a host management method is provided, characterized in that it is applied to a dual-controller storage cluster, the dual-controller storage cluster including a first controller and a second controller, and the method includes:

[0006] Predetermining a candidate host list of the first controller and a candidate host list of the second controller through a switch or a host, wherein the candidate host list of the first controller and the candidate host list of the second controller both include a plurality of candidate hosts and multicast information of the plurality of candidate hosts;

[0007] For any controller, determining a target candidate host from the candidate host list, and storing the target candidate host in an access control list, thereby obtaining an access control list of the first controller and an access control list of the second controller, wherein the access control list of the first controller and the access control list of the second controller both include a plurality of target candidate hosts and multicast information of the plurality of target candidate hosts;

[0008] Classifying the target candidate host according to the access control list of the first controller and the access control list of the second controller to obtain a classification result of the target candidate host;

[0009] A target host is determined according to the classification result of the target candidate host, wherein the target host is used to access storage resources in the dual-controller storage cluster.

[0010] Optionally, the step of pre-determining the candidate host list of the first controller and the candidate host list of the second controller through a switch or a host includes:

[0011] Obtaining a host table corresponding to each controller through a switch, wherein the host table includes a plurality of hosts and multicast information of the plurality of hosts;

[0012] For any of the controllers, determining a number of candidate hosts and multicast information of the candidate hosts from the host table corresponding to the controller, and storing the number of candidate hosts and multicast information of the candidate hosts in a candidate host list, thereby obtaining a candidate host list of the first controller and a candidate host list of the second controller; or,

[0013] For any of the controllers, obtaining the multicast information of the host through the host;

[0014] Parsing the multicast information of the host to obtain parsed multicast information;

[0015] The host and the multicast information parsed by the host are stored in a candidate host list, and a candidate host list of the first controller and a candidate host list of the second controller are obtained.

[0016] Optionally, after the step of pre-determining the candidate host list of the first controller and the candidate host list of the second controller through a switch or a host, the method includes:

[0017] For any controller, obtain the host's multicast information through the switch according to the preset time;

[0018] If the multicast information sent by the host is received by the switch at the preset time, determining that the host is online;

[0019] Storing the multicast information of the host in a candidate host list, and obtaining an updated candidate host list corresponding to each of the controllers;

[0020] If the multicast information sent by the host is not received by the switch within the preset time, determining that the host is offline;

[0021] Deleting the multicast information of the host in the candidate host list to obtain an updated candidate host list corresponding to each controller; or

[0022] For any of the controllers, obtaining the multicast information of the host through the host according to the preset time;

[0023] If the dual-controller storage cluster receives the multicast information sent by the host at the preset time, determining that the host is online;

[0024] Storing the multicast information of the host in the candidate host list, and obtaining an updated candidate host list corresponding to each of the controllers;

[0025] If the dual-controller storage cluster does not receive the multicast information sent by the host within the preset time, determining that the host is offline;

[0026] The multicast information of the host in the candidate host list is deleted to obtain an updated candidate host list corresponding to each of the controllers.

[0027] Optionally, classifying the target candidate host according to the access control list of the first controller and the access control list of the second controller to obtain a target candidate host classification result includes:

[0028] If the target host to be selected is in the access control list of the first controller and the access control list of the second controller, determining that the target host to be selected is a standard host;

[0029] If the target candidate host is in the access control list of the first controller or the access control list of the second controller, determining that the target candidate host is a downgraded host;

[0030] If the target candidate host is not in the access control list of the first controller and the access control list of the second controller, it is determined that the target candidate host is an offline host.

[0031] According to a second aspect of the present invention, a host management method is provided, characterized in that, when applied to a host, the method comprises:

[0032] Get the current operating system;

[0033] Installing the software environment of the host according to the current operating system;

[0034] When the software environment of the host is installed, obtaining multicast information of the host, wherein the multicast information of the host includes an Internet Protocol address of the host port and a namespace qualifier name of the host;

[0035] Sending the host's multicast information to the switch or dual-control storage cluster according to a preset time;

[0036] The switch is used to store the multicast information of the host in a host table and send the host table to the dual-controller storage cluster. The dual-controller storage cluster is used to determine the candidate host list of the first controller and the candidate host list of the second controller through the switch or the host. For any controller, the target candidate host is determined from the candidate host list, and the target candidate host is stored in the access control list to obtain the access control list of the first controller and the access control list of the second controller. The target candidate host is classified according to the access control list of the first controller and the access control list of the second controller to obtain the classification result of the target candidate host, and the target host is determined according to the classification result of the target candidate host.

[0037] Optionally, installing the software environment of the host according to the current operating system includes:

[0038] Install the driver according to the current operating system;

[0039] When the driver is installed, the command tool is installed according to the current operating system;

[0040] When the command tool is installed, installing the multicast tool according to the current operating system;

[0041] When the multicast tool is installed, the multipath tool is installed according to the current operating system.

[0042] According to a third aspect of the present invention, a host management device is provided, which is applied to a dual-controller storage cluster. The dual-controller storage cluster includes a first controller and a second controller. The host management device includes:

[0043] a candidate host list determination module, configured to determine in advance a candidate host list of the first controller and a candidate host list of the second controller through a switch or a host, wherein the candidate host list of the first controller and the candidate host list of the second controller both include a plurality of candidate hosts and multicast information of the plurality of candidate hosts;

[0044] an access control list determination module, configured to determine, for any controller, a target candidate host from the candidate host list, and store the target candidate host in an access control list, thereby obtaining an access control list of the first controller and an access control list of the second controller, wherein the access control list of the first controller and the access control list of the second controller both include a plurality of target candidate hosts and multicast information of the plurality of target candidate hosts;

[0045] a target candidate host classification module, configured to classify the target candidate host according to the access control list of the first controller and the access control list of the second controller to obtain a target candidate host classification result;

[0046] The target host determination module is configured to determine a target host according to the classification result of the target candidate hosts, wherein the target host is used to access storage resources in the dual-controller storage cluster.

[0047] Optionally, the module for determining the host list to be selected includes:

[0048] A host table acquisition submodule, configured to acquire a host table corresponding to each controller through a switch, wherein the host table includes a plurality of hosts and multicast information of the plurality of hosts;

[0049] A first candidate host list determination submodule is configured to determine, for any of the controllers, a number of candidate hosts and multicast information of the candidate hosts from the host table corresponding to the controller, and store the number of candidate hosts and multicast information of the candidate hosts in a candidate host list, thereby obtaining a candidate host list of the first controller and a candidate host list of the second controller; or

[0050] A multicast information acquisition submodule, configured to acquire the multicast information of any of the controllers through the host;

[0051] a multicast information parsing submodule, configured to parse the multicast information of the host to obtain the parsed multicast information;

[0052] The second candidate host list determination submodule is configured to store the host and the multicast information parsed by the host into a candidate host list, and obtain the candidate host list of the first controller and the candidate host list of the second controller.

[0053] Optionally, the device comprises:

[0054] A first multicast information acquisition module is used to obtain the multicast information of the host through the switch according to a preset time for any controller;

[0055] A first host online determination module, configured to determine that the host is online if the multicast information sent by the host is received by the switch at the preset time;

[0056] A first multicast information adding module is used to store the multicast information of the host into the candidate host list, and obtain an updated candidate host list corresponding to each of the controllers;

[0057] A first host offline determination module, configured to determine that the host is offline if the switch does not receive the multicast information sent by the host within the preset time;

[0058] A first multicast information deletion module is configured to delete the multicast information of the host in the candidate host list to obtain an updated candidate host list corresponding to each of the controllers; or

[0059] A second multicast information acquisition module is configured to acquire, for any of the controllers, the multicast information of the host through the host according to the preset time;

[0060] A second host online determination module, configured to determine that the host is online if the dual-controller storage cluster receives multicast information sent by the host at the preset time;

[0061] A second multicast information adding module is used to store the multicast information of the host into the candidate host list, and obtain an updated candidate host list corresponding to each of the controllers;

[0062] A second host offline determination module, configured to determine that the host is offline if the dual-controller storage cluster does not receive the multicast information sent by the host within the preset time;

[0063] The second multicast information deleting module is configured to delete the multicast information of the host in the candidate host list to obtain an updated candidate host list corresponding to each of the controllers.

[0064] Optionally, the target candidate host classification module includes:

[0065] a standard host determination module, configured to determine that the target candidate host is a standard host if the target candidate host is in the access control list of the first controller and the access control list of the second controller;

[0066] a downgraded host determining module, configured to determine that the target candidate host is a downgraded host if the target candidate host is in the access control list of the first controller or the access control list of the second controller;

[0067] The offline host determination module is configured to determine that the target candidate host is an offline host if the target candidate host is not in the access control list of the first controller and the access control list of the second controller.

[0068] According to a third aspect of the present invention, a host management device is provided, which is applied to a host, and the host management device includes:

[0069] Operating system acquisition module, used to obtain the current operating system;

[0070] A software environment installation module, configured to install the software environment of the host according to the current operating system;

[0071] a multicast information acquisition module, configured to acquire the multicast information of the host when the software environment of the host is installed, wherein the multicast information of the host includes the Internet Protocol address of the host port and the namespace qualifier name of the host;

[0072] A multicast information sending module is used to send the multicast information of the host to the switch or dual-control storage cluster according to a preset time;

[0073] The switch is used to store the multicast information of the host in a host table and send the host table to the dual-controller storage cluster. The dual-controller storage cluster is used to determine the candidate host list of the first controller and the candidate host list of the second controller through the switch or the host. For any controller, the target candidate host is determined from the candidate host list, and the target candidate host is stored in the access control list to obtain the access control list of the first controller and the access control list of the second controller. The target candidate host is classified according to the access control list of the first controller and the access control list of the second controller to obtain the classification result of the target candidate host, and the target host is determined according to the classification result of the target candidate host.

[0074] Optionally, the software environment installation module includes:

[0075] A driver installation submodule, configured to install the driver according to the current operating system;

[0076] A command tool installation submodule, configured to install the command tool according to the current operating system when the driver is installed;

[0077] a multicast tool installation submodule, configured to install the multicast tool according to the current operating system when the command tool has been installed;

[0078] The multipath tool installation submodule is used to install the multipath tool according to the current operating system when the multicast tool is installed.

[0079] According to yet another aspect of the present invention, there is further provided an electronic device, comprising:

[0080] processor;

[0081] a memory for storing instructions executable by the processor;

[0082] The processor is configured to execute the instructions to implement the host management method as described in the first aspect above, or to implement the host management method as described in the second aspect above.

[0083] According to another aspect of the present invention, a readable storage medium is also provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the host management method described in the first aspect above are implemented, or the steps of the host management method described in the second aspect above are implemented.

[0084] A host management method provided by an embodiment of the present invention is applied to a dual-controller storage cluster, which includes a first controller and a second controller. The candidate host list of the first controller and the candidate host list of the second controller are determined in advance through a switch or a host, wherein the candidate host list of the first controller and the candidate host list of the second controller both include a plurality of candidate hosts and multicast information of the plurality of candidate hosts; for any controller, a target candidate host is determined from the candidate host list, and the target candidate host is stored in an access control list to obtain the access control list of the first controller and the access control list of the second controller, wherein the access control list of the first controller and the access control list of the second controller both include a plurality of target candidate hosts and multicast information of the plurality of target candidate hosts; the target candidate hosts are classified according to the access control list of the first controller and the access control list of the second controller to obtain a classification result of the target candidate hosts; the target host is determined according to the classification result of the target candidate host, wherein the target host is used to access storage resources in the dual-controller storage cluster. The present invention automatically determines the target candidate host from the candidate host list through a dual-control storage cluster and stores it in an access control list, ensuring that only the hosts in the access control list can access the storage resources in the dual-control storage cluster, thereby realizing the management of the host. This process avoids the inaccuracy of manually obtaining the host status, and also reduces the time-consuming manual configuration, thereby improving the efficiency and accuracy of host management. The present invention determines the candidate host list through two methods, namely, a switch or a host, which can adapt to different deployment scenarios and network structures, and improves the versatility, scalability and flexibility of determining the candidate host list. The present invention automatically determines the candidate host list through the dual-control storage side, reducing the need for manual intervention and improving the convenience and efficiency of operation. In addition, the present invention classifies the target candidate host through the dual-control storage cluster to obtain the target candidate host classification result, so that the user can intuitively select the target host according to the target candidate host classification result, which not only improves the user experience, but also improves the security and reliability of accessing storage resources through the target host.

[0085] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are specifically listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0086] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for describing the embodiments or the prior art.

[0087] Figure 1 One of the step flow charts of a host management method provided by an embodiment of the present invention;

[0088] Figure 2 is a schematic diagram of a host management system provided by an embodiment of the present invention;

[0089] Figure 3 This is the second step flow chart of a host management method provided by an embodiment of the present invention;

[0090] Figure 4 One of the step flow charts of another host management method provided by an embodiment of the present invention;

[0091] Figure 5 A second flowchart of another host management method provided by an embodiment of the present invention;

[0092] Figure 6 This is a device block diagram of a host management device provided by an embodiment of the present invention;

[0093] Figure 7 is a device block diagram of another host management device provided by an embodiment of the present invention;

[0094] Figure 8 This is a schematic diagram of a communication device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0095] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, each embodiment of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be understood by those skilled in the art that in each embodiment of the present invention, many technical details are provided to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in this application can be implemented. The division of the following embodiments is for convenience of description and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined with each other and referenced to each other under the premise that there is no contradiction.

[0096] Reference Figure 1 , shows one of the steps of a flow chart of a host management method provided by an embodiment of the present invention, which is applied to a dual-controller storage cluster. The dual-controller storage cluster includes a first controller and a second controller. The method may include:

[0097] Step 101: Predetermine a candidate host list of a first controller and a candidate host list of a second controller through a switch or a host, wherein the candidate host list of the first controller and the candidate host list of the second controller both include a plurality of candidate hosts and multicast information of the plurality of candidate hosts.

[0098] It should be noted that, in the embodiment of the present invention, Figure 2 As shown, the host management system includes hosts, switches, and a dual-controller storage cluster. The dual-controller storage cluster and hosts can be connected via switches, or directly to each other.

[0099] If the dual-controller storage cluster and the host are connected via a switch, the dual-controller storage cluster can determine the candidate host list of the first controller and the candidate host list of the second controller through the switch. If the dual-controller storage cluster and the host are directly connected, the dual-controller storage cluster can directly determine the candidate host list of the first controller and the candidate host list of the second controller through the host. The candidate host list of the first controller and the candidate host list of the second controller both include multiple candidate hosts and multicast information about multiple candidate hosts.

[0100] Step 102: For any controller, determine the target host to be selected from the list of hosts to be selected, and store the target host to the access control list to obtain the access control list of the first controller and the access control list of the second controller, wherein the access control list of the first controller and the access control list of the second controller both include several target hosts to be selected and multicast information of several target hosts to be selected.

[0101] It should be noted that in the embodiment of the present invention, the dual-control storage cluster provides a GUI (Graphical User Interface) to facilitate users to add candidate hosts in the candidate host list to the access control list through the graphical user interface. The candidate hosts added to the access control list are the target candidate hosts.

[0102] Specifically, for any controller, the dual-control storage cluster responds to the user's instruction to add a candidate host, obtains the candidate host list corresponding to the controller, selects the target candidate host from the candidate host list, and adds the target candidate host to the access control list, thereby obtaining the access control lists corresponding to the controllers, that is, the access control list of the first controller and the access control list of the second controller. When the target candidate host is added to the access control list, the multicast information of the target candidate host is also added to the access control list. Therefore, the access control list of the first controller and the access control list of the second controller both include several target candidate hosts and multicast information of several target candidate hosts. It should be noted that the target candidate host in the access control list can be used to normally access the storage resources in the dual-control storage cluster.

[0103] Among them, after adding the target candidate host to the access control list, the dual-controller storage cluster needs to delete the target candidate host and its multicast information in the candidate host list corresponding to the controller to ensure that the target candidate host can be accessed normally when it automatically reconnects after an unexpected disconnection.

[0104] Step 103 : Classify the target host to be selected according to the access control list of the first controller and the access control list of the second controller to obtain a classification result of the target host to be selected.

[0105] It should be noted that in an embodiment of the present invention, when the access control list of the first controller and the access control list of the second controller are obtained, the target candidate host is classified according to the access control list of the first controller and the access control list of the second controller to obtain the target candidate host classification result.

[0106] Step 104 : Determine a target host according to the classification result of the target candidate hosts, wherein the target host is used to access storage resources in the dual-controller storage cluster.

[0107] It should be noted that in this embodiment of the present invention, the dual-controller storage cluster can select a target host based on the target candidate host classification results in response to the user's host selection instruction. After determining the target host, the user can use the target host to access storage resources in the dual-controller storage cluster.

[0108] The present invention automatically determines the target candidate host from the candidate host list through a dual-control storage cluster and stores it in an access control list, ensuring that only the hosts in the access control list can access the storage resources in the dual-control storage cluster, thereby realizing the management of the host. This process avoids the inaccuracy of manually obtaining the host status, and also reduces the time-consuming manual configuration, thereby improving the efficiency and accuracy of host management. The present invention determines the candidate host list through two methods, namely, a switch or a host, which can adapt to different deployment scenarios and network structures, and improves the versatility, scalability and flexibility of determining the candidate host list. The present invention automatically determines the candidate host list through the dual-control storage side, reducing the need for manual intervention and improving the convenience and efficiency of operation. In addition, the present invention classifies the target candidate host through the dual-control storage cluster to obtain the target candidate host classification result, so that the user can intuitively select the target host according to the target candidate host classification result, which not only improves the user experience, but also improves the security and reliability of accessing storage resources through the target host.

[0109] Furthermore, in this embodiment of the present invention, step 101 may further include the following steps:

[0110] The host table corresponding to each controller is obtained through the switch, wherein the host table includes a plurality of hosts and multicast information of the plurality of hosts.

[0111] For any controller, determine a number of candidate hosts and their multicast information from the host table corresponding to the controller, and store the number of candidate hosts and their multicast information in a candidate host list to obtain the candidate host list of the first controller and the candidate host list of the second controller. Or,

[0112] For any controller, obtain the host's multicast information through the host.

[0113] Parse the multicast information of the host to obtain the parsed multicast information.

[0114] The host and the multicast information parsed by the host are stored in a candidate host list, and the candidate host list of the first controller and the candidate host list of the second controller are obtained.

[0115] It should be noted that, in an embodiment of the present invention, if the dual-control storage cluster is connected to the host through a switch, the dual-control storage cluster can determine the candidate host list of the first controller and the candidate host list of the second controller through the switch. Specifically, the host table corresponding to each controller is obtained through the switch, that is, the host table of the first controller and the host table of the second controller, wherein the host table includes a number of hosts and multicast information of the number of hosts. In the case of obtaining the host table corresponding to each controller, for any controller, the dual-control storage cluster selects a number of hosts and multicast information of the number of hosts from the host table corresponding to the controller, and the selected host is the candidate host, and the selected number of candidate hosts and the multicast information of the number of candidate hosts are stored in the candidate host list, thereby obtaining the candidate host list corresponding to each controller, that is, the candidate host list of the first controller and the candidate host list of the second controller.

[0116] If the dual-controller storage cluster is directly connected to the host, the dual-controller storage cluster can directly determine the candidate host list for the first controller and the candidate host list for the second controller through the host. Specifically, for any controller, the dual-controller storage cluster can directly obtain the host's multicast information through the host. After obtaining the host's multicast information, it parses the host's multicast information to obtain the parsed multicast information. The host and the parsed multicast information corresponding to the host are stored in the candidate host list. This allows the candidate host list corresponding to each controller to be obtained, namely the candidate host list for the first controller and the candidate host list for the second controller.

[0117] The present invention determines the candidate host list through either a switch or a host, adapting to different deployment scenarios and network structures, thereby improving the versatility, scalability, and flexibility of determining the candidate host list. Furthermore, the present invention automatically determines the candidate host list through the dual-control storage side, reducing the need for manual intervention and improving operational convenience and efficiency.

[0118] Furthermore, in the embodiment of the present invention, the following steps may be further included after step 101:

[0119] For any controller, the multicast information of the host is obtained through the switch according to the preset time.

[0120] If the switch receives the multicast information sent by the host within the preset time, it is determined that the host is online.

[0121] The multicast information of the host is stored in the candidate host list, and an updated candidate host list corresponding to each controller is obtained.

[0122] If the switch does not receive the multicast information sent by the host within the preset time, it is determined that the host is offline.

[0123] Delete the multicast information of the host in the candidate host list to obtain the updated candidate host list corresponding to each controller. Or,

[0124] For any controller, obtain the host's multicast information through the host according to the preset time.

[0125] If the dual-controller storage cluster receives the multicast information sent by the host within the preset time, it determines that the host is online.

[0126] The multicast information of the host is stored in the candidate host list, and an updated candidate host list corresponding to each controller is obtained.

[0127] If the dual-controller storage cluster does not receive the multicast information sent by the host within the preset time, it determines that the host is offline.

[0128] The multicast information of the host in the candidate host list is deleted to obtain an updated candidate host list corresponding to each controller.

[0129] It should be noted that, in the embodiment of the present invention, when the list of hosts to be selected corresponding to each controller is determined, the list of hosts to be selected needs to be updated on time according to the online and offline information of the hosts.

[0130] Among them, if the dual-control storage cluster obtains the host's online and offline information through the switch, then the specific implementation process of updating the candidate host list based on the host's online and offline information is as follows: If the dual-control storage cluster and the host are connected through the switch, the host will send the host's multicast information to the switch according to the preset time. If the dual-control storage cluster can receive the multicast information sent by the host through the switch according to the preset time, it is determined that the host is online, and the host and the host's multicast information are stored in the candidate host list, and then the updated candidate host list corresponding to each controller can be obtained. If the dual-control storage cluster cannot receive the multicast information sent by the host through the switch according to the preset time, it is determined that the host is offline, and the host and the host's multicast information are deleted from the candidate host list, and then the updated candidate host list corresponding to each controller can be obtained.

[0131] If the dual-controller storage cluster is directly connected to the host, the host will periodically send its multicast information to the dual-controller storage cluster at a preset time. If the dual-controller storage cluster is able to receive the multicast information sent by the host at the preset time, the host is determined to be online and the host and its multicast information are stored in the candidate host list, thereby obtaining an updated candidate host list corresponding to each controller. If the dual-controller storage cluster is unable to receive the multicast information sent by the host at the preset time, the host is determined to be offline and the host and its multicast information are deleted from the candidate host list, thereby obtaining an updated candidate host list corresponding to each controller.

[0132] The present invention monitors the online and offline information of the host in real time and updates the list of candidate hosts regularly according to the online and offline information of the host. This not only avoids host management errors caused by changes in the online and offline information of the host, but also frees up storage space in the list of candidate hosts, thereby avoiding waste of storage space in the list of candidate hosts.

[0133] Furthermore, if Figure 3 FIG. 2 shows a second flowchart of the host management method provided by an embodiment of the present invention. In the embodiment of the present invention, step 103 may further include the following steps:

[0134] Step 301: If the target host to be selected is in the access control list of the first controller and the access control list of the second controller, the target host to be selected is determined to be a standard host.

[0135] Step 302: If the target candidate host is in the access control list of the first controller or the access control list of the second controller, determine that the target candidate host is a downgraded host.

[0136] Step 303: If the target candidate host is not in the access control list of the first controller and the access control list of the second controller, it is determined that the target candidate host is an offline host.

[0137] It should be noted that, in an embodiment of the present invention, a dual-controller storage cluster can classify target candidate hosts based on the access control list of the first controller and the access control list of the second controller. The specific implementation process for obtaining the target candidate host classification result is as follows: if the target candidate host exists in both the access control list of the first controller and the access control list of the second controller, it means that both data links of the first controller and the second controller can control the target candidate host to obtain storage resources. If one controller fails, the other controller can still control the target candidate host to obtain storage resources. The target candidate host is determined to be a standard host. If the target candidate host exists only in the access control list of the first controller, it means that only the data link of the first controller can control the target candidate host to obtain storage resources. If the first controller fails, the target candidate host cannot obtain storage resources through the target candidate host. The target candidate host is determined to be a degraded host. If the target candidate host exists only in the access control list of the second controller, it means that only the data link of the second controller can control the target candidate host to obtain storage resources. If the second controller fails, the target candidate host cannot obtain storage resources through the target candidate host. The target candidate host is determined to be a degraded host. If the target candidate host does not exist in the access control list of the first controller or the access control list of the second controller, the target candidate host is determined to be an offline host, and storage resources in the dual-controller storage cluster cannot be obtained through the target candidate host.

[0138] The present invention classifies target candidate hosts through a dual-control storage cluster to obtain target candidate host classification results, so that users can intuitively and targetedly select target hosts based on the target candidate host classification results, which not only improves the user experience, but also improves the security and reliability of accessing storage resources through the target host.

[0139] Furthermore, in the embodiment of the present invention, after step 101, the method may further include the following steps:

[0140] If the host to be selected is in the host to be selected list of the first controller and the host to be selected list of the second controller, the host to be selected is determined to be a standard host to be selected.

[0141] If the candidate host is in the candidate host list of the first controller or the candidate host list of the second controller, the candidate host is determined to be a downgraded candidate host.

[0142] It should be noted that, in an embodiment of the present invention, when the dual-controller storage cluster determines the candidate host list of the first controller and the candidate host list of the second controller through a switch or a host, the dual-controller storage cluster can classify the candidate hosts according to the candidate host list of the first controller and the candidate host list of the second controller to obtain the candidate host classification result.

[0143] Among them, the dual-controller storage cluster can classify the candidates according to the candidate host list of the first controller and the candidate host list of the second controller, and the specific implementation process of obtaining the candidate host classification result is: if the candidate host exists in the candidate host list of the first controller and the candidate host list of the second controller at the same time, it means that both the data links of the first controller and the second controller can control the candidate host, and the candidate host is determined to be a standard candidate host. If the candidate host only exists in the candidate host list of the first controller, it means that only the data link of the first controller can control the candidate host, and the candidate host is determined to be a downgraded candidate host. If the candidate host only exists in the candidate host list of the second controller, it means that only the data link of the second controller can control the candidate host, and the candidate host is determined to be a downgraded candidate host.

[0144] The present invention classifies the candidate hosts through a dual-control storage cluster to obtain the candidate host classification results, so that users can intuitively select the candidate hosts according to the candidate host classification results and add the candidate hosts to the access control list, which not only improves the user experience, but also improves the reliability and convenience of host management.

[0145] Reference Figure 4 , shows one of the step flow charts of another host management method provided by an embodiment of the present invention, which is applied to a host. The method may include:

[0146] Step 401: Get the current operating system.

[0147] Step 402: Install the software environment of the host according to the current operating system.

[0148] It should be noted that, in the embodiment of the present invention, the installation of the software environment of the host in the prior art needs to rely on manual installation, which leads to the problem of low efficiency of software environment installation.

[0149] In order to solve the problem of low efficiency in software environment installation, this technical solution needs to obtain the current operating system of the host in advance and automatically install the software environment of the host through the current operating system.

[0150] Step 403: When the software environment of the host is installed, the multicast information of the host is obtained, wherein the multicast information of the host includes the Internet Protocol address of the host port and the namespace qualifier name of the host.

[0151] Step 404: Send the host's multicast information to the switch or the dual-controller storage cluster at a preset time; wherein the switch is used to store the host's multicast information in a host table and send the host table to the dual-controller storage cluster; the dual-controller storage cluster is used to determine the candidate host list of the first controller and the candidate host list of the second controller through the switch or the host; for any controller, determine the target candidate host from the candidate host list, and store the target candidate host in the access control list to obtain the access control list of the first controller and the access control list of the second controller; classify the target candidate host according to the access control list of the first controller and the access control list of the second controller to obtain the classification result of the target candidate host; and determine the target host according to the classification result of the target candidate host.

[0152] It should be noted that, in an embodiment of the present invention, when the software environment of the host is installed, the multicast information of the host is obtained, and the multicast information of the host is sent to the switch or the dual-control storage cluster through the multicast tool at a preset time. The multicast information of the host includes the Internet Protocol address of the host port and the namespace qualifier name of the host. The specific implementation process of obtaining the multicast information of the host is as follows: for the host, configure the Internet Protocol address of the host port. When the Internet Protocol address of the host port is configured, the namespace qualifier name of the host is obtained through the command tool. The Internet Protocol address of the host port and the namespace qualifier name of the host constitute the multicast information of the host.

[0153] It should be noted that if the host reconfigures the Internet Protocol address of the host port, the Internet Protocol address of the host port in the multicast information is updated to obtain updated multicast information, and the updated multicast information is sent to the switch or dual-controller storage cluster.

[0154] When the switch receives multicast information from the host, it stores the multicast information in the host table. The dual-controller storage cluster can subscribe to the host table from the switch.

[0155] The dual-control storage cluster can determine the candidate host list of the first controller and the candidate host list of the second controller through a switch or a host. For any controller, the dual-control storage cluster responds to the user's candidate host addition instruction, obtains the candidate host list corresponding to the controller, selects the target candidate host from the candidate host list, and adds the target candidate host to the access control list, thereby obtaining the access control lists corresponding to the controllers, that is, the access control list of the first controller and the access control list of the second controller. When adding the target candidate host to the access control list, the multicast information of the target candidate host is also added to the access control list. Therefore, the access control list of the first controller and the access control list of the second controller both include several target candidate hosts and multicast information of several target candidate hosts. It should be noted that the target candidate host in the access control list can be used to normally access the storage resources in the dual-control storage cluster.

[0156] Among them, after adding the target candidate host to the access control list, the dual-controller storage cluster needs to delete the target candidate host and its multicast information in the candidate host list corresponding to the controller to ensure that the target candidate host can be accessed normally when it automatically reconnects after an unexpected disconnection.

[0157] When the dual-controller storage cluster obtains the access control list of the first controller and the access control list of the second controller, the dual-controller storage cluster classifies the target candidate host according to the access control list of the first controller and the access control list of the second controller to obtain a target candidate host classification result.

[0158] After obtaining the target candidate host classification result, the dual-controller storage cluster responds to the user's host selection instruction and selects a target host based on the target candidate host classification result. After determining the target host, the user can use the target host to access storage resources in the dual-controller storage cluster.

[0159] The present invention automatically installs the host's software environment through the host's current operating system, eliminating the need for manual installation of the software environment and significantly improving the efficiency and accuracy of software environment installation. Furthermore, the present invention automatically determines the target host from the candidate host list through the dual-control storage cluster and stores it in the access control list, ensuring that only hosts in the access control list can access the storage resources in the dual-control storage cluster, thereby achieving host management. This process avoids the inaccuracy of manually obtaining host status, reduces the time-consuming manual configuration, and improves the efficiency and accuracy of host management.

[0160] Furthermore, if Figure 5FIG. 4 shows a second flowchart of another host management method provided by an embodiment of the present invention. In the embodiment of the present invention, step 402 may further include the following steps:

[0161] Step 501: Install the driver according to the current operating system.

[0162] Step 502: When the driver is installed, the command tool is installed according to the current operating system.

[0163] Step 503: When the command tool is installed, the multicast tool is installed according to the current operating system.

[0164] Step 504: When the multicast tool is installed, the multipath tool is installed according to the current operating system.

[0165] It should be noted that, in the embodiment of the present invention, the host is a ROCE-NVME host.

[0166] The specific implementation process for installing the host software environment based on the current operating system is as follows: Install the ROCE-related drivers, which can be verbosity drivers, based on the host's current operating system. After the driver installation is complete, install the command tool, which can be the nvmecli command, based on the host's current operating system. After the command tool installation is complete, install the multicast tool based on the current operating system. After the multicast tool installation is complete, install the multipath tool based on the current operating system.

[0167] The present invention automatically installs drivers, command tools, multicast tools, and multipath tools through the host's operating system, ensuring compatibility between the software environment and the operating system and avoiding system instability or performance degradation caused by compatibility issues. Furthermore, the present invention installs the host's software environment through the host's operating system, enabling better management and monitoring of the host's status, timely response to host changes, and ensuring the reliability and stability of host management.

[0168] According to an embodiment of the present invention, a host management device is provided for use in a dual-controller storage cluster. The dual-controller storage cluster includes a first controller and a second controller. Figure 6 , Figure 6 1 is a block diagram of a host management device provided by an embodiment of the present invention, the host management device comprising:

[0169] A candidate host list determination module 601 is configured to determine, in advance, a candidate host list of the first controller and a candidate host list of the second controller through a switch or a host, wherein the candidate host list of the first controller and the candidate host list of the second controller both include a plurality of candidate hosts and multicast information of the plurality of candidate hosts;

[0170] An access control list determination module 602 is configured to determine, for any controller, a target candidate host from the candidate host list, and store the target candidate host in an access control list, thereby obtaining an access control list of the first controller and an access control list of the second controller, wherein the access control list of the first controller and the access control list of the second controller both include a plurality of target candidate hosts and multicast information of the plurality of target candidate hosts;

[0171] The target candidate host classification module 603 is configured to classify the target candidate host according to the access control list of the first controller and the access control list of the second controller to obtain a target candidate host classification result;

[0172] The target host determination module 604 is configured to determine a target host according to the target candidate host classification result, wherein the target host is used to access storage resources in the dual-controller storage cluster.

[0173] Optionally, the module for determining the host list to be selected includes:

[0174] The host table acquisition submodule is used to obtain the host table corresponding to each controller through the switch, wherein the host table includes a number of hosts and multicast information of the hosts;

[0175] A first candidate host list determination submodule is configured to determine, for any controller, a number of candidate hosts and multicast information of the candidate hosts from a host table corresponding to the controller, and store the number of candidate hosts and multicast information of the candidate hosts in a candidate host list, thereby obtaining a candidate host list of the first controller and a candidate host list of the second controller; or

[0176] The multicast information acquisition submodule is used to obtain the multicast information of the host through the host for any controller;

[0177] The multicast information parsing submodule is used to parse the multicast information of the host and obtain the parsed multicast information;

[0178] The second candidate host list determination submodule is configured to store the host and the multicast information parsed by the host into the candidate host list, and obtain the candidate host list of the first controller and the candidate host list of the second controller.

[0179] Optionally, the device comprises:

[0180] A first multicast information acquisition module is used to obtain the multicast information of the host through the switch according to a preset time for any controller;

[0181] A first host online determination module, configured to determine that a host is online if a multicast message sent by the host is received by the switch within a preset time;

[0182] A first multicast information adding module is used to store the multicast information of the host into the candidate host list, and obtain an updated candidate host list corresponding to each controller;

[0183] A first host offline determination module, configured to determine that a host is offline if the switch does not receive multicast information sent by the host within a preset time;

[0184] The first multicast information deletion module is configured to delete the multicast information of the host in the candidate host list to obtain an updated candidate host list corresponding to each controller; or

[0185] The second multicast information acquisition module is used to obtain the multicast information of the host through the host according to the preset time for any controller;

[0186] A second host online determination module is configured to determine that a host is online if the dual-controller storage cluster receives multicast information sent by the host within a preset time;

[0187] The second multicast information adding module is used to store the multicast information of the host into the candidate host list, and obtain an updated candidate host list corresponding to each controller;

[0188] A second host offline determination module is configured to determine that a host is offline if the dual-controller storage cluster does not receive multicast information sent by the host within a preset time;

[0189] The second multicast information deleting module is configured to delete the multicast information of the host in the candidate host list, and obtain an updated candidate host list corresponding to each controller.

[0190] Optionally, the target candidate host classification module includes:

[0191] a standard host determination module, configured to determine that the target candidate host is a standard host if the target candidate host is in the access control list of the first controller and the access control list of the second controller;

[0192] a downgraded host determination module, configured to determine that the target candidate host is a downgraded host if the target candidate host is in the access control list of the first controller or the access control list of the second controller;

[0193] The offline host determination module is configured to determine that the target candidate host is an offline host if the target candidate host is not in the access control list of the first controller and the access control list of the second controller.

[0194] According to an embodiment of the present invention, another host management device is provided, which is applied to a host. Figure 7 , Figure 7 1 is a block diagram of another host management device provided by an embodiment of the present invention, the host management device comprising:

[0195] The operating system acquisition module 701 is used to acquire the current operating system;

[0196] The software environment installation module 702 is used to install the software environment of the host according to the current operating system;

[0197] A multicast information acquisition module 703 is configured to acquire the multicast information of the host when the software environment of the host is installed, wherein the multicast information of the host includes the Internet Protocol address of the host port and the namespace qualifier name of the host;

[0198] The multicast information sending module 704 is used to send the host's multicast information to the switch or the dual-controller storage cluster according to the preset time;

[0199] Among them, the switch is used to store the host's multicast information in the host table and send the host table to the dual-controller storage cluster. The dual-controller storage cluster is used to determine the candidate host list of the first controller and the candidate host list of the second controller through the switch or the host. For any controller, the target candidate host is determined from the candidate host list, and the target candidate host is stored in the access control list to obtain the access control list of the first controller and the access control list of the second controller. The target candidate host is classified according to the access control list of the first controller and the access control list of the second controller to obtain the classification result of the target candidate host, and the target host is determined according to the classification result of the target candidate host.

[0200] Optionally, the software environment installation module includes:

[0201] The driver installation submodule is used to install the driver according to the current operating system;

[0202] The command tool installation submodule is used to install the command tool according to the current operating system after the driver is installed;

[0203] The multicast tool installation submodule is used to install the multicast tool according to the current operating system after the command tool is installed.

[0204] The multipath tool installation submodule is used to install the multipath tool according to the current operating system after the multicast tool is installed.

[0205] The embodiment of the present invention further provides an electronic device, such as Figure 8 As shown, it includes a processor 801, a communication interface 802, a memory 803 and a communication bus 804, wherein the processor 801, the communication interface 802, and the memory 803 communicate with each other through the communication bus 804.

[0206] Memory 803, used for storing computer programs;

[0207] The processor 801 is configured to execute the program stored in the memory 803, and implement the following steps:

[0208] Predetermining a candidate host list of the first controller and a candidate host list of the second controller through a switch or a host, wherein the candidate host list of the first controller and the candidate host list of the second controller both include a plurality of candidate hosts and multicast information of the plurality of candidate hosts;

[0209] For any controller, determine a target candidate host from the candidate host list, and store the target candidate host in an access control list, thereby obtaining an access control list of the first controller and an access control list of the second controller, wherein the access control list of the first controller and the access control list of the second controller both include the target candidate hosts and multicast information of the target candidate hosts;

[0210] Classify the target candidate host according to the access control list of the first controller and the access control list of the second controller to obtain a classification result of the target candidate host;

[0211] A target host is determined based on the target candidate host classification result, wherein the target host is used to access storage resources in the dual-controller storage cluster.

[0212] The communication bus mentioned in the terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is used in the figure, but this does not mean that there is only one bus or only one type of bus.

[0213] The communication interface is used for communication between the above terminal and other devices.

[0214] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage. Alternatively, the memory may be at least one storage device located away from the processor.

[0215] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.

[0216] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium stores instructions that, when executed on a computer, enable the computer to execute the host management method described in any one of the above embodiments.

[0217] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).

[0218] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.

[0219] Each embodiment in this specification is described in a related manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiment is generally similar to the method embodiment, so the description is relatively simple. For related parts, refer to the description of the method embodiment.

[0220] The above description is only a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention are included in the scope of protection of the present invention.

Claims

1. A host management method, characterized in that: Applied to a dual-controller storage cluster, the dual-controller storage cluster includes a first controller and a second controller, the method includes: Predetermining a candidate host list of the first controller and a candidate host list of the second controller through a switch or a host, wherein the candidate host list of the first controller and the candidate host list of the second controller both include a plurality of candidate hosts and multicast information of the plurality of candidate hosts; For any controller, determining a target candidate host from the candidate host list, and storing the target candidate host in an access control list, thereby obtaining an access control list of the first controller and an access control list of the second controller, wherein the access control list of the first controller and the access control list of the second controller both include a plurality of target candidate hosts and multicast information of the plurality of target candidate hosts; Classifying the target candidate host according to the access control list of the first controller and the access control list of the second controller to obtain a classification result of the target candidate host; A target host is determined according to the classification result of the target candidate host, wherein the target host is used to access storage resources in the dual-controller storage cluster.

2. The method according to claim 1, characterized in that The step of determining the candidate host list of the first controller and the candidate host list of the second controller in advance through a switch or a host includes: Obtaining a host table corresponding to each controller through a switch, wherein the host table includes a plurality of hosts and multicast information of the plurality of hosts; For any of the controllers, determining a number of candidate hosts and multicast information of the candidate hosts from the host table corresponding to the controller, and storing the number of candidate hosts and multicast information of the candidate hosts in a candidate host list, thereby obtaining a candidate host list of the first controller and a candidate host list of the second controller; or, For any of the controllers, obtaining the multicast information of the host through the host; Parsing the multicast information of the host to obtain parsed multicast information; The host and the multicast information parsed by the host are stored in a candidate host list, and a candidate host list of the first controller and a candidate host list of the second controller are obtained.

3. The method according to claim 1, characterized in that After the step of pre-determining the candidate host list of the first controller and the candidate host list of the second controller through a switch or a host, the method includes: For any controller, obtain the host's multicast information through the switch according to the preset time; If the multicast information sent by the host is received by the switch at the preset time, determining that the host is online; Storing the multicast information of the host in a candidate host list, and obtaining an updated candidate host list corresponding to each of the controllers; If the multicast information sent by the host is not received by the switch within the preset time, determining that the host is offline; Deleting the multicast information of the host in the candidate host list to obtain an updated candidate host list corresponding to each controller; or For any of the controllers, obtaining the multicast information of the host through the host according to the preset time; If the dual-controller storage cluster receives the multicast information sent by the host at the preset time, determining that the host is online; Storing the multicast information of the host in the candidate host list, and obtaining an updated candidate host list corresponding to each of the controllers; If the dual-controller storage cluster does not receive the multicast information sent by the host within the preset time, determining that the host is offline; The multicast information of the host in the candidate host list is deleted to obtain an updated candidate host list corresponding to each of the controllers.

4. The method according to claim 1, wherein The classifying the target candidate host according to the access control list of the first controller and the access control list of the second controller to obtain the target candidate host classification result includes: If the target host to be selected is in the access control list of the first controller and the access control list of the second controller, determining that the target host to be selected is a standard host; If the target candidate host is in the access control list of the first controller or the access control list of the second controller, determining that the target candidate host is a downgraded host; If the target candidate host is not in the access control list of the first controller and the access control list of the second controller, it is determined that the target candidate host is an offline host.

5. A host management method, characterized in that: Applied to a host, the method includes: Get the current operating system; Installing the software environment of the host according to the current operating system; When the software environment of the host is installed, obtaining multicast information of the host, wherein the multicast information of the host includes an Internet Protocol address of the host port and a namespace qualifier name of the host; Sending the host's multicast information to the switch or dual-control storage cluster according to a preset time; The switch is used to store the multicast information of the host in a host table and send the host table to the dual-controller storage cluster. The dual-controller storage cluster is used to determine the candidate host list of the first controller and the candidate host list of the second controller through the switch or the host. For any controller, the target candidate host is determined from the candidate host list, and the target candidate host is stored in the access control list to obtain the access control list of the first controller and the access control list of the second controller. The target candidate host is classified according to the access control list of the first controller and the access control list of the second controller to obtain the classification result of the target candidate host, and the target host is determined according to the classification result of the target candidate host.

6. The method according to claim 5, characterized in that The installing the software environment of the host according to the current operating system includes: Install the driver according to the current operating system; When the driver is installed, the command tool is installed according to the current operating system; When the command tool is installed, installing the multicast tool according to the current operating system; When the multicast tool is installed, the multipath tool is installed according to the current operating system.

7. A host management device, characterized in that: Applied to a dual-controller storage cluster, the dual-controller storage cluster includes a first controller and a second controller, and the host management device includes: a candidate host list determination module, configured to determine in advance a candidate host list of the first controller and a candidate host list of the second controller through a switch or a host, wherein the candidate host list of the first controller and the candidate host list of the second controller both include a plurality of candidate hosts and multicast information of the plurality of candidate hosts; an access control list determination module, configured to determine, for any controller, a target candidate host from the candidate host list, and store the target candidate host in an access control list, thereby obtaining an access control list of the first controller and an access control list of the second controller, wherein the access control list of the first controller and the access control list of the second controller both include a plurality of target candidate hosts and multicast information of the plurality of target candidate hosts; a target candidate host classification module, configured to classify the target candidate host according to the access control list of the first controller and the access control list of the second controller to obtain a target candidate host classification result; The target host determination module is configured to determine a target host according to the classification result of the target candidate hosts, wherein the target host is used to access storage resources in the dual-controller storage cluster.

8. A host management device, characterized in that: Applied to a host, the host management device includes: Operating system acquisition module, used to obtain the current operating system; A software environment installation module, configured to install the software environment of the host according to the current operating system; a multicast information acquisition module, configured to acquire the multicast information of the host when the software environment of the host is installed, wherein the multicast information of the host includes the Internet Protocol address of the host port and the namespace qualifier name of the host; A multicast information sending module is used to send the multicast information of the host to the switch or dual-control storage cluster according to a preset time; The switch is used to store the multicast information of the host in a host table and send the host table to the dual-controller storage cluster. The dual-controller storage cluster is used to determine the candidate host list of the first controller and the candidate host list of the second controller through the switch or the host. For any controller, the target candidate host is determined from the candidate host list, and the target candidate host is stored in the access control list to obtain the access control list of the first controller and the access control list of the second controller. The target candidate host is classified according to the access control list of the first controller and the access control list of the second controller to obtain the classification result of the target candidate host, and the target host is determined according to the classification result of the target candidate host.

9. An electronic device, characterized in that: include: a memory for storing processor-executable instructions; The processor is configured to execute the instructions to implement the host management method according to any one of claims 1 to 4, or to implement the host management method according to any one of claims 5 to 6.

10. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the host management method according to any one of claims 1 to 4 is implemented, or the host management method according to any one of claims 5 to 6 is implemented.

Citation Information

Patent Citations

  • Configuration information generation method and device of storage product and readable storage medium

    CN112463438A

  • Method, device and equipment for creating cloud host by cloud management platform and readable medium

    CN113419847A