Host management method and device, communication equipment and storage medium
Through automated host management methods, multicast information and dual-control storage cluster technology are used to solve the problems of low efficiency and low accuracy of host management in the existing technology, efficient and secure management of the storage system is achieved, and manual intervention is reduced need.
Patent Information
- Application Number
- CN202411154409.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2044-08-21
AI Technical Summary
The existing host management methods rely on manual acquisition of host status and manual configuration, resulting in low efficiency and low accuracy, and the inability to effectively manage storage systems, increasing the risk of data leakage and the security challenges of storage systems.
Determine the list of hosts in the dual-control storage cluster through the switch or host, and automatically store the target host to the access control list, ensuring that only authorized hosts can access storage resources, use multicast information to monitor and classify host status, and reduce manual intervention .
It improves the efficiency and accuracy of host management, reduces manual errors, enhances the security and reliability of the storage system, adapts to different deployment scenarios and network structures, and improves operational convenience and versatility.
Smart Images

Figure CN119248181A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of host management technology, and in particular to a host management method, device, communication equipment and storage medium. Background Art
[0002] Although the openness of the storage system facilitates host access, it also poses a potential threat to data security. In the absence of an effective control mechanism, all hosts can access the storage resources on the storage system, which not only increases the risk of data leakage, but also poses a challenge to the overall security of the storage system. Therefore, it is necessary to manage the hosts efficiently and intelligently.
[0003] The existing methods for managing hosts mainly rely on manually obtaining the status of the hosts, manually configuring, managing and maintaining the hosts. This process is not only time-consuming, but also because the hosts cannot be accurately obtained manually, which results in users being unable to obtain access resources on the storage system through the hosts. Therefore, the existing methods for managing hosts have the problems of low efficiency and low accuracy. Summary of the invention
[0004] In view of this, the present invention aims to propose a host management method, apparatus, device and storage medium to solve the problem of low efficiency and low accuracy of host management 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 includes 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 in advance, 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, determine a target candidate host from the candidate host list, and store the target candidate host in an access control list, to obtain 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 predetermining the candidate host list of the first controller and the candidate host list of the second controller by using 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, determine 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 to obtain the candidate host list of the first controller and the 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 the parsed multicast information;
[0015] 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.
[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, it is determined that the host is online;
[0019] Storing the multicast information of the host in a list of candidate hosts, and obtaining an updated list of candidate hosts 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 of the controllers; 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-control 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 list of candidate hosts, and obtaining updated lists of candidate hosts corresponding to the controllers;
[0025] If the dual-control 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, 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:
[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 host to be selected 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 host to be selected is an offline host.
[0031] According to a second aspect of the present invention, a host management method is provided, characterized in that it is applied to a host and 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 multicast information of the host to the switch or the dual-control storage cluster according to the preset time;
[0036] The switch is used to store the multicast information of the host into a host table, and send the host table to the dual-control storage cluster; the dual-control 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, 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, the classification result of the target candidate host is obtained, 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] Installing 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, wherein the dual-controller storage cluster includes a first controller and a second controller, and the host management device includes:
[0043] A candidate host list determination module, used to determine 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, 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 is used to determine a target candidate host from the candidate host list for any controller, 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, 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, used 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 used to determine the target host according to the classification result of the target candidate host, wherein the target host is used to access the storage resources in the dual-controller storage cluster.
[0047] Optionally, the module for determining the list of hosts to be selected includes:
[0048] A host table acquisition submodule, used to acquire the host table corresponding to each controller through the 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 used to determine a number of candidate hosts and multicast information of the candidate hosts from the host table corresponding to the controller for any of the controllers, and store the number of candidate hosts and multicast information of the candidate hosts in the candidate host list to obtain the candidate host list of the first controller and the candidate host list of the second controller; or
[0050] A multicast information acquisition submodule, used for acquiring the multicast information of the host through the host for any of the controllers;
[0051] A multicast information parsing submodule, used to parse the multicast information of the host to obtain the parsed multicast information;
[0052] The second candidate host list determination submodule is used 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.
[0053] Optionally, the device comprises:
[0054] A first multicast information acquisition module, used for acquiring the multicast information of the host through the switch at 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, used for storing the multicast information of the host into a list of candidate hosts, and obtaining an updated list of candidate hosts corresponding to each of the controllers;
[0057] A first host offline determination module, configured to determine that the host is offline if the multicast information sent by the host is not received by the switch within the preset time;
[0058] A first multicast information deletion module is used 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, configured to acquire the multicast information of the host through the host according to the preset time for any of the controllers;
[0060] A second host online determination module, configured to determine that the host is online if the dual-control 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-control storage cluster does not receive the multicast information sent by the host within the preset time;
[0063] The second multicast information deleting module is used 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 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;
[0067] The offline host determination module is used 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, there is provided a host management device, which is applied to a host, and the host management device comprises:
[0069] An operating system acquisition module is used to obtain the current operating system;
[0070] A software environment installation module, used 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, used to send the multicast information of the host to the switch or the dual-control storage cluster according to a preset time;
[0073] The switch is used to store the multicast information of the host into a host table, and send the host table to the dual-control storage cluster; the dual-control 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, 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, the classification result of the target candidate host is obtained, 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, used to install the driver according to the current operating system;
[0076] A command tool installation submodule, used to install the command tool according to the current operating system when the driver is installed;
[0077] A multicast tool installation submodule, used 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 has been installed.
[0079] According to another aspect of the present invention, there is also 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 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, wherein the dual-controller storage cluster includes a first controller and a second controller, wherein a candidate host list of the first controller and a 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, 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; 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, thereby obtaining a classification result of the target candidate hosts; and 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. The present invention automatically determines the target candidate host from the candidate host list through the dual-control storage cluster, and stores it in the access control list, ensuring that only the hosts in the access control list can access the storage resources in the dual-control storage cluster, realizing the management of the host, and this process avoids the inaccuracy of manually obtaining the host status, and also reduces the time-consuming manual configuration, and improves the efficiency and accuracy of host management. The present invention determines the candidate host list through two ways, namely, a switch or a host, and 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, reduces the need for manual intervention, and improves the convenience and efficiency of operation. In addition, the present invention classifies the target candidate host through the dual-control storage cluster, and obtains the classification result of the target candidate host, so that the user can intuitively select the target host according to the classification result of the target candidate host, which can not only improve the user experience, but also improve 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 according to 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 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 drawings required for use in the embodiments or the description of the prior art are briefly introduced below.
[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 a 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 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 It is a schematic diagram of a communication device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0095] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order 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 scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.
[0096] Reference Figure 1 , shows one of the step flow charts of the 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, and 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 embodiments of the present invention, Figure 2 As shown, the host management system includes a host, a switch, and a dual-controller storage cluster. The dual-controller storage cluster and the host can be connected via a switch, and the dual-controller storage cluster and the host can also be directly connected.
[0099] 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. If the dual-control storage cluster is directly connected to the host, the dual-control 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 a number of candidate hosts and multicast information of the candidate hosts.
[0100] Step 102, 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, wherein 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.
[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 the multicast information of the target candidate host 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 the embodiment of the present invention, the dual-control storage cluster can select a target host according to the target candidate host classification result in response to the user's host selection instruction. After determining the target host, the user can use the target host to access the storage resources in the dual-control storage cluster.
[0108] The present invention automatically determines the target candidate host from the candidate host list through the dual-control storage cluster, and stores it in the access control list, ensuring that only the hosts in the access control list can access the storage resources in the dual-control storage cluster, realizing the management of the host, and this process avoids the inaccuracy of manually obtaining the host status, and also reduces the time-consuming manual configuration, and improves the efficiency and accuracy of host management. The present invention determines the candidate host list through two ways, namely, a switch or a host, and 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, reduces the need for manual intervention, and improves the convenience and efficiency of operation. In addition, the present invention classifies the target candidate host through the dual-control storage cluster, and obtains the classification result of the target candidate host, so that the user can intuitively select the target host according to the classification result of the target candidate host, which can not only improve the user experience, but also improve the security and reliability of accessing storage resources through the target host.
[0109] Furthermore, in the embodiment of the present invention, step 101 may also include the following steps:
[0110] The host tables corresponding to the controllers are obtained through the switches, wherein the host tables include a number of hosts and multicast information of the hosts.
[0111] For any controller, a number of candidate hosts and multicast information of the candidate hosts are determined from the host table corresponding to the controller, and the number of candidate hosts and multicast information of the candidate hosts are stored in the 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] The multicast information of the host is parsed 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. When the host table corresponding to each controller is obtained, 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-control storage cluster is directly connected to the host, the dual-control 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. Specifically, for any controller, the dual-control storage cluster can directly obtain the host's multicast information through the host. After obtaining the host's multicast information, the host's multicast information is parsed to obtain the parsed multicast information. The host and the parsed multicast information corresponding to the host are stored in the candidate host list, and then the candidate host list corresponding to each controller can be obtained, that is, the candidate host list of the first controller and the candidate host list of the second controller.
[0117] The present invention determines the list of hosts to be selected by using 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 list of hosts to be selected. In addition, the present invention automatically determines the list of hosts to be selected by using the dual-control storage side, which reduces the need for manual intervention and improves the convenience and efficiency of operation.
[0118] Furthermore, in the embodiment of the present invention, the following steps may be 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 at 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 the 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, the multicast information of the host is obtained 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 is determined that the host is online.
[0126] The multicast information of the host is stored in the candidate host list, and the 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 is determined 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 online and offline information of the host through the switch, then the specific implementation process of updating the list of candidates according to the online and offline information of the host 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 list of candidates, so that the updated list of candidates 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 in the list of candidates are deleted, so that the updated list of candidates corresponding to each controller can be obtained.
[0131] If the dual-control storage cluster is directly connected to the host, the host will send the host's multicast information to the dual-control storage cluster at a preset time. If the dual-control storage cluster can receive the multicast information sent by the host at 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, so that 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 at 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, so that the updated candidate host list corresponding to each controller can be obtained.
[0132] The present invention monitors the online and offline information of the host in real time and regularly updates the list of hosts to be selected according to the online and offline information of the host, which can not only avoid host management errors caused by changes in the online and offline information of the host, but also release storage space in the list of hosts to be selected, thereby avoiding waste of storage space in the list of hosts to be selected.
[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, it is determined that the target host to be selected is 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, the dual-control storage cluster can classify the target candidate host according to the access control list of the first controller and the access control list of the second controller, and the specific implementation process of obtaining the classification result of the target candidate host is as follows: if the target candidate host exists in the access control list of the first controller and the access control list of the second controller at the same time, 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, and the target candidate host is determined to be a standard host. If the target candidate host only exists 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 be used to obtain storage resources, and the target candidate host is determined to be a degraded host. If the target candidate host only exists 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 be used to obtain storage resources, and 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 according to the target candidate host classification results, which can not only improve the user experience, but also improve 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, it is determined that the candidate host is a downgraded candidate host.
[0142] It should be noted that, in an embodiment of the present invention, when the dual-control 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-control 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-control 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 both the candidate host list of the first controller and the candidate host list of the second controller, 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 the user can intuitively select the candidate hosts according to the candidate host classification results and add the candidate hosts to the access control list, which can not only improve the user experience, but also improve 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, obtaining 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, sending the host's multicast information to the switch or the dual-control 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-control storage cluster, and the dual-control 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, 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, 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 the 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 the 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. Among them, the specific implementation process of obtaining the multicast information of the host is: 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 the multicast information of the host, it stores the multicast information of the host in the host table, and 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 being able to obtain 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 the multicast information of the target candidate host 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] When the target candidate host classification result is obtained, the dual-control storage cluster responds to the user's host selection instruction and selects a target host according to the target candidate host classification result. After the target host is determined, the user can use the target host to access storage resources in the dual-control storage cluster.
[0159] The present invention automatically installs the software environment of the host through the current operating system of the host, which can avoid relying on manual installation of the software environment, and significantly improves the efficiency and accuracy of software environment installation. In addition, the present invention automatically determines the target candidate host from the candidate host list through the dual-control storage cluster, and stores it in the 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.
[0160] Furthermore, if Figure 5FIG. 4 is a flowchart of another host management method according to 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 of installing the software environment of the host according to the current operating system is as follows: install the ROCE-related driver according to the current operating system of the host, and the ROCE-related driver can be a verbs driver. When the driver installation is completed, install the command tool according to the current operating system of the host, and the command tool can be the nvmecli command. When the command tool installation is completed, install the multicast tool according to the current operating system. When the multicast tool installation is completed, install the multipath tool according to the current operating system.
[0167] The present invention automatically installs drivers, command tools, multicast tools and multipath tools through the operating system of the host, thereby ensuring the compatibility of the software environment with the operating system and avoiding system instability or performance degradation caused by compatibility issues. In addition, the present invention installs the software environment of the host through the operating system of the host, so that the status of the host can be better managed and monitored, and the changes of the host can be responded to in time, thereby ensuring the reliability and stability of the host management.
[0168] According to an embodiment of the present invention, a host management device is also 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 device 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 used to determine 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, 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] The access control list determination module 602 is used to determine the target candidate host from the candidate host list for any controller, 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, 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 used 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 the target candidate host classification result;
[0172] The target host determination module 604 is used to determine the target host according to the classification result of the target candidate host, wherein the target host is used to access the storage resources in the dual-controller storage cluster.
[0173] Optionally, the module for determining the list of hosts to be selected includes:
[0174] A host table acquisition submodule is used to acquire 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] The first candidate host list determination submodule is used to determine a number of candidate hosts and multicast information of the candidate hosts from the host table corresponding to the controller for any controller, and store the number of candidate hosts and multicast information of the candidate hosts in the candidate host list to obtain the candidate host list of the first controller and the 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 to obtain the parsed multicast information;
[0178] The second candidate host list determination submodule is used 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, used for acquiring the multicast information of the host through the switch at a preset time for any controller;
[0181] A first host online determination module, configured to determine that the host is online if multicast information sent by the host is received through the switch at 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 the host is offline if the switch does not receive multicast information sent by the host within a preset time;
[0184] A first multicast information deletion module is used 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] A second multicast information acquisition module is used to obtain the multicast information of the host through the host according to a preset time for any controller;
[0186] A second host online determination module, configured to determine that the host is online if the dual-control storage cluster receives multicast information sent by the host within a preset time;
[0187] 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 controller;
[0188] A second host offline determination module, configured to determine that the host is offline if the dual-control storage cluster does not receive multicast information sent by the host within a preset time;
[0189] The second multicast information deleting module is used to delete the multicast information of the host in the candidate host list to 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 used 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 device 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] The multicast information acquisition module 703 is used 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 multicast information of the host to the switch or the dual-control storage cluster according to the preset time;
[0199] Among them, the switch is used to store the multicast information of the host in the host table, and send the host table to the dual-control storage cluster, the dual-control 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, 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, obtain the classification result of the target candidate host, and determine the target host 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 when the command tool is installed.
[0204] The multipath tool installation submodule is used to install the multipath tool according to the current operating system when 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 used to execute the program stored in the memory 803, and implements the following steps:
[0208] Predetermine the candidate host list of the first controller and the candidate host list of the second controller through the switch or the host in advance, 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 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, 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;
[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 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.
[0212] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0213] The communication interface is used for communication between the above terminal and other devices.
[0214] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned 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, 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. When the computer-readable storage medium is executed on a computer, the computer executes the host management method described in any one of the above embodiments.
[0217] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part 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, the process or function described in the embodiment of the present invention is generated in whole or in part. 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 a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. 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 hard disk Sol logo State Disk (SSD)), etc.
[0218] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0219] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial 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 protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope 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, and 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 in advance, 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, determine a target candidate host from the candidate host list, and store the target candidate host in an access control list, to obtain 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 predetermining the candidate host list of the first controller and the candidate host list of the second controller by using a switch or a host comprises: 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, determine 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 to obtain the candidate host list of the first controller and the 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 the parsed multicast information; 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.
3. The method according to claim 1, characterized in that After 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, 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, it is determined that the host is online; Storing the multicast information of the host in a list of candidate hosts, and obtaining an updated list of candidate hosts 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 of the controllers; or For any of the controllers, obtaining the multicast information of the host through the host according to the preset time; If the dual-control 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 list of candidate hosts, and obtaining updated lists of candidate hosts corresponding to the controllers; If the dual-control 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, characterized in that 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 host to be selected 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 host to be selected is an offline host.
5. A host management method, characterized in that: Applied to a host, the method comprises: 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 multicast information of the host to the switch or the dual-control storage cluster according to the preset time; The switch is used to store the multicast information of the host into a host table, and send the host table to the dual-control storage cluster; the dual-control 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, 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, the classification result of the target candidate host is obtained, 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: Installing 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, used to determine 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, 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 is used to determine a target candidate host from the candidate host list for any controller, 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, 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, used 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 used to determine the target host according to the classification result of the target candidate host, wherein the target host is used to access the storage resources in the dual-controller storage cluster.
8. A host management device, characterized in that: Applied to a host, the host management device comprises: An operating system acquisition module is used to obtain the current operating system; A software environment installation module, used 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, used to send the multicast information of the host to the switch or the dual-control storage cluster according to a preset time; The switch is used to store the multicast information of the host into a host table, and send the host table to the dual-control storage cluster; the dual-control 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, 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, the classification result of the target candidate host is obtained, 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
Data processing method and device, storage medium and electronic equipment
CN116048800A
Translating device adapter having a common command set for interfacing multiple types of redundant storage devices to a host processor
US20040225775A1
Data Path Virtualization
US20220027051A1
