A multi-path anomaly detection and repair method, device, equipment and medium

By automating the detection and repair of multipath anomalies within the Nova service on the cloud computing platform, the problem of low detection and repair efficiency in existing technologies is solved, enabling fast and accurate multipath anomaly handling and reducing labor costs.

CN115686921BActive Publication Date: 2026-05-29JINAN INSPUR DATA TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
JINAN INSPUR DATA TECH CO LTD
Filing Date
2022-11-18
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

Existing technologies for multipath anomaly detection and repair require a significant amount of time and manpower, impacting the normal operation of cloud servers, and are inefficient in terms of detection and repair.

Method used

Multi-path anomaly detection and repair are implemented within the Nova service of the cloud computing platform. The system is triggered by automated detection configuration items, obtains cloud host information, verifies mounted volume information, identifies anomalies and performs automatic repairs, and uses internal interfaces to report anomalies and provide feedback on repair results.

Benefits of technology

It achieves fully automated detection and repair of multi-path anomalies, reduces manual intervention, shortens response time, improves detection and repair efficiency, and saves human resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115686921B_ABST
    Figure CN115686921B_ABST
Patent Text Reader

Abstract

The application discloses a multi-path exception detection and repair method and device, equipment and medium, and relates to the technical field of computers, which comprises the following steps: detecting whether a configuration item for representing multi-path exception detection is triggered; if the configuration item for representing multi-path exception detection is triggered, obtaining all local cloud host information, and screening target cloud host information from the all cloud host information; determining mounting volume information corresponding to the target cloud host information, and verifying the mounting volume information; if the verification is passed, determining to-be-detected information based on the mounting volume information, and then judging whether the to-be-detected information is abnormal; if the to-be-detected information is abnormal, determining exception information, and performing a multi-path automatic repair operation according to the exception information. Through the above technical solution of the application, multi-path exception automatic detection and repair can be realized, the efficiency of multi-path exception detection and repair is improved, and the labor cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a method, apparatus, device, and medium for multipath anomaly detection and repair. Background Technology

[0002] When cloud computing platforms use SAN (Storage Area Network) storage linked by SCSI (Small Computer System Interface) links, multipathing technology is required to achieve disaster recovery and I / O (Input / Output) traffic load balancing based on multiple paths. However, while multipathing technology offers advantages, it also presents numerous anomalies, such as multipath loss, multipath failure, inconsistent WWID (similar to a network card's MAC address), and inconsistent LUN-ID. In practical applications, multipath anomalies occur frequently and can potentially render the corresponding SAN storage unusable, or even cause the cloud host to malfunction. Current methods for handling multipath anomalies mainly involve using multipath anomaly detection tools or monitoring systems to detect the anomalies, followed by manual command input or the use of multipath anomaly repair scripts. This approach requires significant additional time and manpower and is highly likely to severely impact the normal operation of the application due to multipath anomalies.

[0003] As can be seen from the above, how to achieve automatic detection and repair of multi-path anomalies, improve the efficiency of multi-path anomaly detection and repair, and reduce labor costs are problems that need to be solved in this field. Summary of the Invention

[0004] In view of this, the purpose of this invention is to provide a method, apparatus, device, and medium for multipath anomaly detection and repair, which can realize automatic detection and repair of multipath anomalies, improve the efficiency of multipath anomaly detection and repair, and reduce labor costs. The specific solution is as follows:

[0005] Firstly, this application discloses a multi-path anomaly detection and repair method, applied to a cloud computing platform, comprising:

[0006] The system checks whether the configuration item used to characterize multipath anomaly detection has been triggered. If the configuration item used to characterize multipath anomaly detection has been triggered, the system obtains all local cloud host information and filters out the target cloud host information from all the cloud host information.

[0007] The mounted volume information corresponding to the target cloud host information is determined, and the mounted volume information is verified. If the verification passes, the information to be detected is determined based on the mounted volume information, and then it is determined whether the information to be detected is abnormal.

[0008] If the information to be detected is abnormal, the abnormal information is identified, and a multi-path automatic repair operation is performed based on the abnormal information.

[0009] Optionally, obtaining all local cloud host information and filtering the target cloud host information from all the cloud host information includes:

[0010] Retrieve all cloud host information from the cloud host list in the local preset database, and determine the cloud host status based on the cloud host information;

[0011] The cloud host information with an incorrect status is deleted to obtain the target cloud host information.

[0012] Optionally, determining the mount volume information corresponding to the target cloud host information includes:

[0013] A universally unique identifier is determined based on the target cloud host information;

[0014] The mounted volume information corresponding to the universally unique identifier is filtered from the block device mapping command table of the preset database.

[0015] Optionally, the step of verifying the mounted volume information, and if the verification passes, determining the information to be detected based on the mounted volume information, includes:

[0016] Determine whether the mounted volume information in the preset storage LAN is the same as the mounted volume information;

[0017] If the mounted volume information in the preset storage LAN is the same as the mounted volume information, the verification passes. Then, the information to be tested is determined based on the mounted volume information. If the mounted volume information in the preset storage LAN is different from the mounted volume information, the verification fails. Then, the mounted volume information is deleted.

[0018] Optionally, determining the information to be detected based on the mounted volume information, and then judging whether the information to be detected is abnormal, includes:

[0019] The anomaly information to be detected is determined based on the wwid in the mounted volume information; wherein, the anomaly information to be detected includes the number of device names and the status of the device names;

[0020] Determine whether the number of device names is equal to the preset number of normal device names, and then determine whether the status of the device names is normal.

[0021] If the number of device names is not equal to the preset number of normal devices and the status of the device names is not normal, or if the number of device names is not equal to the preset number of normal devices and the status of the device names is normal, or if the number of device names is equal to the preset number of normal devices and the status of the device names is not normal, then the information to be detected is determined to be abnormal.

[0022] Optionally, the step of performing multi-path automatic repair based on the anomaly information includes:

[0023] If the number of device names is not equal to the preset number of normal ones, the logical unit number, protocol information and host information of the path are determined based on the abnormal information, and a precise disk scan and repair operation is performed based on the logical unit number of the path, the protocol information and the host information.

[0024] If the device name status is not normal, delete the disk device with the abnormal device name status, and then perform a precise disk scan and repair operation.

[0025] Optionally, after performing the multi-path automatic repair operation based on the anomaly information, the method further includes:

[0026] After the multipath automatic repair operation is completed, the process jumps to the step of determining whether the information to be detected is abnormal in order to obtain the repair result;

[0027] The local test and operation user program language service is used to send the reporting information containing the repair results to the client.

[0028] Secondly, this application discloses a multi-path anomaly detection and repair device, comprising:

[0029] The detection module is used to detect whether the configuration item for characterizing multipath anomaly detection has been triggered. If the configuration item for characterizing multipath anomaly detection has been triggered, the module obtains all local cloud host information and filters out the target cloud host information from all the cloud host information.

[0030] The verification module is used to determine the mounted volume information corresponding to the target cloud host information, and to verify the mounted volume information. If the verification passes, the information to be detected is determined based on the mounted volume information, and then it is determined whether the information to be detected is abnormal.

[0031] The multi-path automatic repair module is used to identify abnormal information if the information to be detected is abnormal, and to perform multi-path automatic repair operation based on the abnormal information.

[0032] Thirdly, this application discloses an electronic device, including:

[0033] Memory, used to store computer programs;

[0034] A processor is used to execute the computer program to implement the aforementioned multipath anomaly detection and repair method.

[0035] Fourthly, this application discloses a computer storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the steps of the aforementioned disclosed multipath anomaly detection and repair method.

[0036] As can be seen, this application provides a multipath anomaly detection and repair method, including detecting whether a configuration item for characterizing multipath anomaly detection has been triggered. If the configuration item for characterizing multipath anomaly detection has been triggered, all local cloud host information is obtained, and target cloud host information is filtered from all the cloud host information. The mounted volume information corresponding to the target cloud host information is determined, and the mounted volume information is verified. If the verification passes, the information to be detected is determined based on the mounted volume information, and then it is determined whether the information to be detected is abnormal. If the information to be detected is abnormal, the abnormal information is determined, and multipath automatic repair operation is performed based on the abnormal information. This application automatically performs multipath anomaly detection within the Nova service, obtains the mounting information of all cloud hosts and corresponding SAN storage volumes by reading database information, and then calls internal interfaces to perform multipath anomaly detection. When an anomaly is detected, the anomaly information can be reported to the monitoring platform, and the anomaly can be automatically repaired. After the repair is completed, the repair result is reported again. The entire process of detecting and repairing multipath anomalies is fully automated, eliminating the need for human intervention, effectively saving time and manpower, and significantly shortening the response time to multipath anomalies. Attached Figure Description

[0037] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0038] Figure 1 This is a flowchart of a multi-path anomaly detection and repair method disclosed in this application;

[0039] Figure 2 This is a flowchart illustrating a multipath anomaly detection and repair method disclosed in this application.

[0040] Figure 3 This is a flowchart of a multi-path anomaly detection and repair method disclosed in this application;

[0041] Figure 4 This is a flowchart illustrating a multipath anomaly detection method disclosed in this application;

[0042] Figure 5 This is a flowchart illustrating a specific process for multi-path anomaly repair disclosed in this application;

[0043] Figure 6 This is a schematic diagram of the structure of a multipath anomaly detection and repair device disclosed in this application;

[0044] Figure 7 This application provides a structural diagram of an electronic device. Detailed Implementation

[0045] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0046] When cloud computing platforms use SAN (Storage Area Network) storage linked by SCSI (Small Computer System Interface) links, multipathing technology is required to achieve disaster recovery and I / O (Input / Output) traffic load balancing based on multiple paths. However, while multipathing technology offers advantages, it also presents numerous anomalies, such as multipath loss, multipath failure, inconsistent WWID (similar to a network card's MAC address), and inconsistent LUN-ID. In practical applications, multipath anomalies occur frequently and can potentially render the corresponding SAN storage unusable, or even cause the cloud host to malfunction. Current methods for handling multipath anomalies mainly involve using multipath anomaly detection tools or monitoring systems to detect the anomalies, followed by manual command input or the use of multipath anomaly repair scripts. This approach requires significant additional time and manpower and is highly likely to severely impact the normal operation of the application due to multipath anomalies. As can be seen from the above, how to achieve automatic detection and repair of multi-path anomalies, improve the efficiency of multi-path anomaly detection and repair, and reduce labor costs are problems that need to be solved in this field.

[0047] A cloud computing platform, also known as a cloud platform, refers to a service that provides computing, networking, and storage capabilities based on hardware and software resources. OpenStack is an open-source cloud computing management platform project and one of the most widely used cloud computing platforms on the market, possessing significant commercial potential. Currently, many cloud platform service providers in China use the OpenStack architecture to develop their cloud platforms. Nova is one of the components within the OpenStack cloud computing platform, responsible for managing the lifecycle of cloud hosts, and is the core service of OpenStack.

[0048] See Figure 1 As shown in the figure, this invention discloses a multipath anomaly detection and repair method, which may specifically include:

[0049] Step S11: Detect whether the configuration item for characterizing multipath anomaly detection has been triggered. If the configuration item for characterizing multipath anomaly detection has been triggered, obtain all local cloud host information and filter out the target cloud host information from all the cloud host information.

[0050] In this embodiment, if the configuration item for characterizing multipath anomaly detection is triggered, all cloud host information is obtained from the cloud host list in the local preset database, and the cloud host status is determined based on the cloud host information. Then, the cloud host information with an incorrect cloud host status is deleted to obtain the target cloud host information.

[0051] Step S12: Determine the mounted volume information corresponding to the target cloud host information, and verify the mounted volume information. If the verification passes, determine the information to be detected based on the mounted volume information, and then determine whether the information to be detected is abnormal.

[0052] In this embodiment, a universally unique identifier is determined based on the target cloud host information. The mounted volume information corresponding to the universally unique identifier is then filtered from the block device mapping command table of the preset database, and the mounted volume information is then verified.

[0053] The specific verification process is as follows: determine whether the mounted volume information in the preset storage LAN is the same as the mounted volume information; if the mounted volume information in the preset storage LAN is the same as the mounted volume information, the verification passes, and then the information to be detected is determined based on the mounted volume information; if the mounted volume information in the preset storage LAN is different from the mounted volume information, the verification fails, and the mounted volume information is deleted.

[0054] Step S13: If the information to be detected is abnormal, the abnormal information is identified, and a multi-path automatic repair operation is performed based on the abnormal information.

[0055] In this embodiment, after the multipath automatic repair operation is completed, the process jumps to the step of determining whether the information to be detected is abnormal in order to obtain the repair result; the local test and operation user program language service is used to send the reporting information containing the repair result to the client.

[0056] This application integrates most of the functionality of multipath anomaly detection and repair tools into the Nova component. The integrated functionality primarily includes multipath loss and failure anomaly detection and repair. While the Nova service is running normally, it can execute internal periodic tasks to perform multipath anomaly detection. Upon detecting an anomaly, it first reports the anomaly, then automatically repairs the multipath anomaly based on the anomaly information, and finally reports the repair results again. Since a cloud platform cluster often has multiple Nova-compute nodes, each managing a certain number of cloud hosts, this invention also executes tasks on a per-Nova-compute service basis. Each Nova-compute service independently performs multipath anomaly detection, reporting, and repair on the mounted volumes of the cloud hosts on the current host machine.

[0057] The specific multipath anomaly detection and repair process in this application is as follows: Figure 2 As shown, the Nova component internally queries the database to obtain information on all cloud hosts on the current host machine. Cloud hosts with an "error" status are removed from the list containing all cloud host information, which includes the cloud host's UUID (Universally Unique Identifier). Then, it iterates through the cloud host list, queries the `block_device_map` table (i.e., the block device mapping command table) to obtain the corresponding mounted volume information for each cloud host, and verifies the mounted volume information. Mounted volumes not belonging to SAN storage are deleted, while those belonging to SAN storage are retained. If the detected information is abnormal, an anomaly is identified and reported to the client. Based on the anomaly, multipath automatic repair operations are performed, and finally, the multipath repair status is reported. It should be noted that the execution of the above steps (i.e., whether to perform multipath anomaly detection) is determined by configuration items in the configuration file, and the interval for executing these steps is determined by another configuration item; the default interval is 60 seconds.

[0058] In this embodiment, the system detects whether a configuration item for multipath anomaly detection has been triggered. If triggered, it acquires all local cloud host information and filters out target cloud host information from this information. It then determines the mounted volume information corresponding to the target cloud host information and verifies it. If the verification passes, it identifies the information to be detected based on the mounted volume information and determines whether this information is abnormal. If the information is abnormal, it identifies the abnormal information and performs automatic multipath repair based on it. This application automatically performs multipath anomaly detection within the Nova service by reading database information to obtain the mounting information of all cloud hosts and their corresponding SAN storage volumes, and then calls internal interfaces to perform multipath anomaly detection. When an anomaly is detected, it reports the anomaly information to the monitoring platform and automatically repairs it. After repair, it reports the repair results again. The entire multipath anomaly detection and repair process is fully automated, requiring no human intervention, effectively saving time and manpower, and significantly shortening the response time for multipath anomalies.

[0059] See Figure 3 As shown in the figure, this invention discloses a multipath anomaly detection and repair method, which may specifically include:

[0060] Step S21: Detect whether the configuration item for characterizing multipath anomaly detection has been triggered. If the configuration item for characterizing multipath anomaly detection has been triggered, obtain all local cloud host information and filter out the target cloud host information from all the cloud host information.

[0061] Step S22: Determine the mounted volume information corresponding to the target cloud host information, and verify the mounted volume information. If the verification passes, determine the abnormal information to be detected based on the wwid in the mounted volume information. The abnormal information to be detected includes the number of device names and the status of device names. Determine whether the number of device names is equal to the preset number of normal device names, and then determine whether the status of device names is normal. If the number of device names is not equal to the preset number of normal device names and the status of device names is not normal, or if the number of device names is not equal to the preset number of normal device names and the status of device names is normal, or if the number of device names is equal to the preset number of normal device names and the status of device names is not normal, then determine that the information to be detected is abnormal, and then determine whether the information to be detected is abnormal.

[0062] Step S23: If the information to be detected is abnormal, the abnormal information is identified. If the number of device names is not equal to the preset number of normal ones, the logical unit number, protocol information, and host information of the path are determined based on the abnormal information. A precise disk scan and repair operation is performed based on the logical unit number of the path, the protocol information, and the host information. If the status of the device name is not normal, the disk device with the abnormal device name status is deleted, and then the precise disk scan and repair operation is performed again.

[0063] The specific process of multipath anomaly detection in this application is as follows: Figure 4 As shown, Nova checks for anomalies in the multipaths mapped to the mounted volumes based on the mounted volume information corresponding to the cloud host. Based on the mounted volume's wwid, it queries the disk device (device_path) information corresponding to the multipaths (i.e., the anomaly information to be detected, including the number of device names and their status). Typically, one multipath corresponds to multiple disk devices. Then, it sequentially checks whether the status of each disk device is active or failed. Next, it determines whether the number of device names equals a preset number of active devices, and then whether the device name status is active. If the number of device names does not equal the preset number of active devices and the device name status is not active; or, if the number of device names does not equal the preset number of active devices and the device name status is active; or, if the number of device names equals the preset number of active devices and the device name status is not active, then the information to be detected is determined to be abnormal. It should be noted that the number of normal disks is set in the configuration file of the Cinder component through configuration options. When the Nova component mounts the volume, it reads the number of normal disk devices and writes it to the block_device_map table in the database. When checking whether the configuration option used to characterize multipath anomaly detection has been triggered, it will read this number.

[0064] The specific process for multipath anomaly repair in this application is as follows: Figure 5As shown, Nova automatically repairs each multipath sequentially based on the anomaly information. When the anomaly is a multipath loss, it performs a precise disk scan based on the multipath's LUN-ID, the protocol used, and host information. When the anomaly is a multipath failure, the failed disk device is first deleted before a precise disk scan is performed. It's worth noting that whether to automatically repair multipath anomalies is configured via a configuration file, allowing for greater flexibility to meet user needs. After repair, anomaly detection is performed again to check if the path has been restored. After all anomaly multipath repair actions are completed, the repair may succeed or fail due to physical link issues or other reasons. Nova summarizes the repair results to obtain anomaly information and then reports the repair results again through its internal pluto service. If a multipath anomaly is detected, the anomaly information is summarized and reported through Nova's pluto service. If all multipaths are detected as normal, a report of normal multipath operation is also submitted. The reporting recipients are configurable; reporting clients can include monitoring platforms, SMS, email, etc., allowing operations personnel to obtain detailed information about multipath anomalies immediately.

[0065] This application effectively shortens the time lag from the occurrence of multipath loss and failure anomalies to detection and repair, enabling more timely discovery and handling of anomalies. In practical applications, a large number of SAN storage units are often mounted on corresponding cloud hosts. Current multipath anomaly detection tools and monitoring systems require significant manpower for maintenance and monitoring. This invention truly automates the detection and repair of multipath loss and failure anomalies, saving considerable manpower. It eliminates the need for separate manpower to maintain and monitor multipath anomaly tools. Because this invention integrates multipath loss and failure anomaly detection and repair functions into the Nova component, it achieves automated detection, improving the accuracy and stability of anomaly detection. It avoids omissions or inaccuracies caused by human factors such as operator errors. Key points of this application: Integrating multipath loss, multipath failure, and repair functions into the Nova component; the Nova component performs periodic tasks for multipath detection and repair and reports anomalies through the pluto service; the cloud host obtains information about the current host cloud host and mounted volumes by querying the database, and uses this information as an entry point for multipath anomaly detection and repair.

[0066] In this embodiment, the system detects whether a configuration item for multipath anomaly detection has been triggered. If triggered, it acquires all local cloud host information and filters out target cloud host information from this information. It then determines the mounted volume information corresponding to the target cloud host information and verifies it. If the verification passes, it identifies the information to be detected based on the mounted volume information and determines whether this information is abnormal. If the information is abnormal, it identifies the abnormal information and performs automatic multipath repair based on it. This application automatically performs multipath anomaly detection within the Nova service by reading database information to obtain the mounting information of all cloud hosts and their corresponding SAN storage volumes, and then calls internal interfaces to perform multipath anomaly detection. When an anomaly is detected, it reports the anomaly information to the monitoring platform and automatically repairs it. After repair, it reports the repair results again. The entire multipath anomaly detection and repair process is fully automated, requiring no human intervention, effectively saving time and manpower, and significantly shortening the response time for multipath anomalies.

[0067] See Figure 6 As shown in the figure, an embodiment of the present invention discloses a multi-path anomaly detection and repair device, which may specifically include:

[0068] The detection module 11 is used to detect whether the configuration item for characterizing multipath anomaly detection has been triggered. If the configuration item for characterizing multipath anomaly detection has been triggered, the module obtains all local cloud host information and filters out the target cloud host information from all the cloud host information.

[0069] The verification module 12 is used to determine the mounted volume information corresponding to the target cloud host information and to verify the mounted volume information. If the verification passes, the information to be detected is determined based on the mounted volume information, and then it is determined whether the information to be detected is abnormal.

[0070] The multi-path automatic repair module 13 is used to identify abnormal information if the information to be detected is abnormal, and to perform multi-path automatic repair operation based on the abnormal information.

[0071] In this embodiment, the system detects whether a configuration item for multipath anomaly detection has been triggered. If triggered, it acquires all local cloud host information and filters out target cloud host information from this information. It then determines the mounted volume information corresponding to the target cloud host information and verifies it. If the verification passes, it identifies the information to be detected based on the mounted volume information and determines whether this information is abnormal. If the information is abnormal, it identifies the abnormal information and performs automatic multipath repair based on it. This application automatically performs multipath anomaly detection within the Nova service by reading database information to obtain the mounting information of all cloud hosts and their corresponding SAN storage volumes, and then calls internal interfaces to perform multipath anomaly detection. When an anomaly is detected, it reports the anomaly information to the monitoring platform and automatically repairs it. After repair, it reports the repair results again. The entire multipath anomaly detection and repair process is fully automated, requiring no human intervention, effectively saving time and manpower, and significantly shortening the response time for multipath anomalies.

[0072] In some specific embodiments, the detection module 11 may specifically include:

[0073] The cloud host status determination module is used to obtain all cloud host information from the cloud host list in the local preset database, and determine the cloud host status based on the cloud host information.

[0074] The target cloud host information determination module is used to delete cloud host information whose status is incorrect in order to obtain target cloud host information.

[0075] In some specific embodiments, the detection module 11 may specifically include:

[0076] A universally unique identifier determination module is used to determine a universally unique identifier based on the target cloud host information;

[0077] The mounted volume information determination module is used to filter mounted volume information corresponding to the universally unique identifier from the block device mapping command table of the preset database.

[0078] In some specific embodiments, the verification module 12 may specifically include:

[0079] The judgment module is used to determine whether the mounted volume information in the preset storage local area network is the same as the mounted volume information.

[0080] The module for determining the information to be detected is used to verify if the mounted volume information in the preset storage LAN is the same as the mounted volume information, and then determine the information to be detected based on the mounted volume information. If the mounted volume information in the preset storage LAN is different from the mounted volume information, the verification fails, and the mounted volume information is deleted.

[0081] In some specific embodiments, the verification module 12 may specifically include:

[0082] The module for determining abnormal information to be detected is used to determine the abnormal information to be detected based on the wwid in the mounted volume information; wherein, the abnormal information to be detected includes the number of device names and the status of the device names;

[0083] The judgment module is used to determine whether the number of device names is equal to the preset number of normal ones, and then to determine whether the status of the device names is normal.

[0084] The module for determining abnormal information to be detected is used to determine that the information to be detected is abnormal if the number of device names is not equal to the preset number of normal devices and the status of the device names is not normal, or if the number of device names is not equal to the preset number of normal devices and the status of the device names is normal, or if the number of device names is equal to the preset number of normal devices and the status of the device names is not normal.

[0085] In some specific embodiments, the multipath automatic repair module 13 may specifically include:

[0086] The disk scanning and repair module is used to determine the logical unit number, protocol information, and host information of the path based on the abnormal information if the number of device names is not equal to the preset number of normal ones, and to perform a precise disk scanning and repair operation based on the logical unit number of the path, the protocol information, and the host information.

[0087] The deletion module is used to delete disk devices whose device names are not in a normal state if the device name status is not normal, and then perform a precise disk scan and repair operation.

[0088] In some specific embodiments, the multipath automatic repair module 13 may specifically include:

[0089] The repair result determination module is used to jump to the step of determining whether the information to be detected is abnormal after the multi-path automatic repair operation is completed, so as to obtain the repair result;

[0090] The repair result reporting module is used to send reporting information containing the repair results to the client using the local test and operation user program language service.

[0091] Figure 7 This is a schematic diagram of an electronic device provided in an embodiment of this application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the multipath anomaly detection and repair method performed by the electronic device disclosed in any of the foregoing embodiments.

[0092] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

[0093] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored on it include operating system 221, computer program 222 and data 223, etc., and the storage method can be temporary storage or permanent storage.

[0094] The operating system 221 manages and controls the various hardware devices on the electronic device 20 and the computer program 222 to enable the processor 21 to perform calculations and processing on the data 223 in the memory 22. The operating system 221 can be Windows, Unix, Linux, etc. The computer program 222, in addition to including a computer program capable of performing the multipath anomaly detection and repair method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, may further include computer programs capable of performing other specific tasks. The data 223 may include data received by the multipath anomaly detection and repair device from external devices, as well as data collected by its own input / output interface 25.

[0095] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0096] Furthermore, this application also discloses a computer-readable storage medium storing a computer program. When the computer program is loaded and executed by a processor, it implements the steps of the multipath anomaly detection and repair method disclosed in any of the foregoing embodiments.

[0097] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0098] The above provides a detailed description of the multipath anomaly detection and repair method, apparatus, device, and storage medium provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A multi-path anomaly detection and repair method, characterized in that, Applied to cloud computing platforms, including: The system checks whether the configuration item used to characterize multipath anomaly detection has been triggered. If the configuration item used to characterize multipath anomaly detection has been triggered, the system obtains all local cloud host information and filters out the target cloud host information from all the cloud host information. The mounted volume information corresponding to the target cloud host information is determined, and the mounted volume information is verified. If the verification passes, the information to be detected is determined based on the mounted volume information, and then it is determined whether the information to be detected is abnormal. If the information to be detected is abnormal, the abnormal information is identified, and a multi-path automatic repair operation is performed based on the abnormal information. Retrieve all local cloud host information and filter out the target cloud host information from all cloud host information, including: retrieving all cloud host information from the cloud host list in the local preset database and determining the cloud host status based on the cloud host information; deleting cloud host information with incorrect cloud host status to obtain the target cloud host information; The system identifies the information to be detected based on the mounted volume information, and then determines whether the information to be detected is abnormal. This includes: identifying abnormal information to be detected based on the wwid in the mounted volume information; wherein, the abnormal information to be detected includes the number of device names and the status of device names; determining whether the number of device names is equal to the preset number of normal device names, and then determining whether the status of device names is normal; if the number of device names is not equal to the preset number of normal device names and the status of device names is not normal, or if the number of device names is not equal to the preset number of normal device names and the status of device names is normal, or if the number of device names is equal to the preset number of normal device names and the status of device names is not normal, then the information to be detected is determined to be abnormal. Based on the abnormal information, perform multi-path automatic repair operations, including: if the number of device names is not equal to the preset number of normal ones, determine the logical unit number, protocol information and host information of the path based on the abnormal information, and perform a precise disk scan repair operation based on the logical unit number, protocol information and host information of the path; if the device name status is not normal, delete the disk devices with abnormal device name status, and then perform a precise disk scan repair operation. After performing multipath automatic repair operations based on the abnormal information, the process also includes: after the multipath automatic repair operation is completed, jumping to the step of determining whether the information to be detected is abnormal in order to obtain the repair result; and using the local test and operation user program language service to send the reporting information containing the repair result to the client.

2. The multipath anomaly detection and repair method according to claim 1, characterized in that, The determination of the mount volume information corresponding to the target cloud host information includes: A universally unique identifier is determined based on the target cloud host information; The mounted volume information corresponding to the universally unique identifier is filtered from the block device mapping command table of the preset database.

3. The multipath anomaly detection and repair method according to claim 1, characterized in that, The step of verifying the mounted volume information, and if the verification passes, determining the information to be detected based on the mounted volume information, includes: Determine whether the mounted volume information in the preset storage LAN is the same as the mounted volume information; If the mounted volume information in the preset storage LAN is the same as the mounted volume information, the verification passes. Then, the information to be tested is determined based on the mounted volume information. If the mounted volume information in the preset storage LAN is different from the mounted volume information, the verification fails. Then, the mounted volume information is deleted.

4. A multi-path anomaly detection and repair device, characterized in that, include: The detection module is used to detect whether the configuration item for characterizing multipath anomaly detection has been triggered. If the configuration item for characterizing multipath anomaly detection has been triggered, the module obtains all local cloud host information and filters out the target cloud host information from all the cloud host information. The verification module is used to determine the mounted volume information corresponding to the target cloud host information, and to verify the mounted volume information. If the verification passes, the information to be detected is determined based on the mounted volume information, and then it is determined whether the information to be detected is abnormal. The multi-path automatic repair module is used to identify abnormal information if the information to be detected is abnormal, and to perform multi-path automatic repair operation based on the abnormal information. Retrieve all local cloud host information and filter out the target cloud host information from all cloud host information, including: retrieving all cloud host information from the cloud host list in the local preset database and determining the cloud host status based on the cloud host information; deleting cloud host information with incorrect cloud host status to obtain the target cloud host information; The system identifies the information to be detected based on the mounted volume information, and then determines whether the information to be detected is abnormal. This includes: identifying abnormal information to be detected based on the wwid in the mounted volume information; wherein, the abnormal information to be detected includes the number of device names and the status of device names; determining whether the number of device names is equal to the preset number of normal device names, and then determining whether the status of device names is normal; if the number of device names is not equal to the preset number of normal device names and the status of device names is not normal, or if the number of device names is not equal to the preset number of normal device names and the status of device names is normal, or if the number of device names is equal to the preset number of normal device names and the status of device names is not normal, then the information to be detected is determined to be abnormal. Based on the abnormal information, perform multi-path automatic repair operations, including: if the number of device names is not equal to the preset number of normal ones, determine the logical unit number, protocol information and host information of the path based on the abnormal information, and perform a precise disk scan repair operation based on the logical unit number, protocol information and host information of the path; if the device name status is not normal, delete the disk devices with abnormal device name status, and then perform a precise disk scan repair operation. After performing multipath automatic repair operations based on the abnormal information, the process also includes: after the multipath automatic repair operation is completed, jumping to the step of determining whether the information to be detected is abnormal in order to obtain the repair result; and using the local test and operation user program language service to send the reporting information containing the repair result to the client.

5. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the multipath anomaly detection and repair method as described in any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that, Used to store computer programs; wherein, when the computer programs are executed by a processor, they implement the multipath anomaly detection and repair method as described in any one of claims 1 to 3.