Virtual machine disk input and output error detection processing method, device, system and equipment, storage medium and program product

By deploying the disk input and output event system module in a cloud computing environment, receiving the disk event information of the virtual machine and sending it to the cloud console, the problem of virtual machine disk input and output error detection and processing is solved, rapid detection and automated processing is achieved, and the reliability and stability of the virtual machine are improved.

CN119621242APending Publication Date: 2025-03-14CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411728346.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

In a cloud computing environment, it is difficult to detect and process the input and output errors of virtual machine disks, which affects the performance of virtual machine and may lead to data loss or system crash.

Method used

The disk input and output event system module receives disk event information sent by the virtual machine, and deploys it on the cluster node in the form of a service daemon, registers the application programming interface of the virtualization management software, sends disk event information to the cloud console, and executes the corresponding error processing process.

Benefits of technology

It realizes rapid detection and automated processing of virtual machine disk input and output errors, improves the reliability and stability of virtual machines, and reduces the risks of manual intervention and data loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119621242A_ABST
    Figure CN119621242A_ABST
Patent Text Reader

Abstract

The invention relates to a virtual machine disk input and output error detection processing method, device and system, computer equipment, a computer readable storage medium and a computer program product, and relates to the technical field of cloud computing and virtualization. The virtual machine disk input and output error detection and processing efficiency can be improved. The method comprises the steps that disk event information sent by a virtual machine of a cluster node through an application programming interface of virtualization management software is received through a disk input and output event system module; the disk input and output event system module is deployed on a cluster node in a service daemon mode; the disk input and output event system module registers an application programming interface of virtualization management software; the disk event information comprises event information of a virtualized disk of a virtual machine of the cluster node; the disk event information is sent to a console of the cloud through a disk input and output event system module; and the console is used for executing a corresponding error processing flow according to the disk event information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of cloud computing and virtualization, and in particular to a method, apparatus, system, computer equipment, computer-readable storage medium, and computer program product for detecting and processing virtual machine disk input and output errors. Background Art

[0002] With the rapid development of cloud computing technology, more and more companies choose to deploy their businesses in the cloud.

[0003] In cloud-native applications, Kubernetes (k8s) provides a complete set of application programming interfaces for automating the deployment, expansion, and management of application containers, greatly simplifying the operation and maintenance of containerized applications.

[0004] As a more traditional cloud computing resource, virtual machines (VMs) still have irreplaceable advantages in specific scenarios. For example, some complex enterprise applications or loads that require specific hardware support may be difficult to containerize directly. To this end, KubeVirt (a Kubernetes-based virtualization solution) extends Kubernetes' capabilities to enable it to manage the lifecycle of virtual machines, just like managing containers.

[0005] Although KubeVirt provides the ability to manage virtual machines in a Kubernetes cluster, disk input and output (IO) errors are still an inevitable problem during the operation of virtual machines. Disk IO errors may affect the performance of virtual machines and even cause data loss or system crashes.

[0006] The current virtual machine disk input and output error detection and processing method relies on traditional monitoring tools, which makes it difficult to quickly detect and process virtual machine disk input and output errors. Summary of the invention

[0007] Based on this, it is necessary to provide a virtual machine disk input and output error detection and processing method, device, system, computer equipment, computer readable storage medium and computer program product to address the above technical problems.

[0008] In a first aspect, the present application provides a method for detecting and processing a virtual machine disk input and output error, comprising:

[0009] Receiving disk event information sent by the virtual machine of the cluster node through the application programming interface of the virtualization management software through the disk input and output event system module; the disk input and output event system module is deployed on the cluster node in the form of a service daemon process; the disk input and output event system module registers the application programming interface of the virtualization management software; the disk event information includes event information of the virtualized disk of the virtual machine of the cluster node;

[0010] The disk event information is sent to a console in the cloud through the disk input and output event system module; the console is used to execute a corresponding error handling process according to the disk event information.

[0011] In one of the embodiments, sending the disk event information to the cloud console through the disk input and output event system module includes: the disk input and output event system module writes the disk event information into the event defined by the custom resources of the virtual machine instance of the cluster node; and sending the disk event information to the cloud console through the event mechanism defined by the custom resources of the virtual machine instance of the cluster node.

[0012] In one of the embodiments, the method further includes: creating the virtual machine through a virtualization extension component deployed in a cluster; and using the disk of the cluster node in the virtual machine as a virtualized disk of the virtual machine.

[0013] In one of the embodiments, the console is further used to display the location information of the corresponding virtual machine and virtualized disk according to the disk event information.

[0014] In one embodiment, the cluster node includes a k8s cluster node.

[0015] In a second aspect, the present application also provides a virtual machine disk input and output error detection and processing device, comprising:

[0016] The first sending processing module is used to receive disk event information sent by the virtual machine of the cluster node through the application programming interface of the virtualization management software through the disk input and output event system module; the disk input and output event system module is deployed on the cluster node in the form of a service daemon process; the disk input and output event system module registers the application programming interface of the virtualization management software; the disk event information includes event information of the virtualized disk of the virtual machine of the cluster node;

[0017] The second sending processing module is used to send the disk event information to the cloud console through the disk input and output event system module; the console is used to execute the corresponding error handling process according to the disk event information.

[0018] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0019] The disk event information sent by the virtual machine of the cluster node through the application programming interface of the virtualization management software is received through the disk input and output event system module; the disk input and output event system module is deployed on the cluster node in the form of a service daemon process; the disk input and output event system module registers the application programming interface of the virtualization management software; the disk event information includes the event information of the virtualized disk of the virtual machine of the cluster node; the disk event information is sent to the console in the cloud through the disk input and output event system module; the console is used to execute the corresponding error handling process according to the disk event information.

[0020] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0021] The disk event information sent by the virtual machine of the cluster node through the application programming interface of the virtualization management software is received through the disk input and output event system module; the disk input and output event system module is deployed on the cluster node in the form of a service daemon process; the disk input and output event system module registers the application programming interface of the virtualization management software; the disk event information includes the event information of the virtualized disk of the virtual machine of the cluster node; the disk event information is sent to the console in the cloud through the disk input and output event system module; the console is used to execute the corresponding error handling process according to the disk event information.

[0022] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0023] The disk event information sent by the virtual machine of the cluster node through the application programming interface of the virtualization management software is received through the disk input and output event system module; the disk input and output event system module is deployed on the cluster node in the form of a service daemon process; the disk input and output event system module registers the application programming interface of the virtualization management software; the disk event information includes the event information of the virtualized disk of the virtual machine of the cluster node; the disk event information is sent to the console in the cloud through the disk input and output event system module; the console is used to execute the corresponding error handling process according to the disk event information.

[0024] In a sixth aspect, the present application further provides a cluster system, the system comprising: a cluster node and a cloud console in communication connection; wherein the cluster node is used to execute the above-mentioned virtual machine disk input and output error detection and processing method.

[0025] The above-mentioned virtual machine disk input and output error detection and processing method, device, system, computer equipment, computer-readable storage medium and computer program product receive disk event information sent by the virtual machine of the cluster node through the application programming interface of the virtualization management software through the disk input and output event system module; the disk input and output event system module is deployed on the cluster node in the form of a service daemon process; the disk input and output event system module registers the application programming interface of the virtualization management software; the disk event information includes the event information of the virtualized disk of the virtual machine of the cluster node; the disk event information is sent to the cloud console through the disk input and output event system module; the console is used to execute the corresponding error handling process according to the disk event information. The scheme can monitor the disk input and output operation in real time at each cluster node using the application programming interface of the virtualization management software, can generate disk event information when the virtual machine disk input and output error is detected, and then based on the event-driven characteristics of the cluster, the disk event information is reported to the cloud console at the cluster node, and the cloud console can set the error handling process, and automatically execute the corresponding error handling process according to the disk event information, thereby improving the detection and processing efficiency of the virtual machine disk input and output error. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0027] Figure 1 A diagram of an application environment of a method for detecting and processing a virtual machine disk input and output error in an embodiment;

[0028] Figure 2 A schematic diagram of a flow chart of a method for detecting and processing a virtual machine disk input and output error in one embodiment;

[0029] Figure 3 A processing flow chart of a method for detecting and processing a virtual machine disk input and output error in one embodiment;

[0030] Figure 4 A processing flow chart of a method for detecting and processing a virtual machine disk input and output error in another embodiment;

[0031] Figure 5 It is a structural block diagram of a virtual machine disk input and output error detection and processing device in one embodiment;

[0032] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0034] Introduction to terms involved in this application:

[0035] Kubernetes (k8s): An open source container orchestration system for automating the deployment, scaling, and management of application containers.

[0036] KubeVirt: A virtualization extension component, a Kubernetes virtualization extension that uses the Kubernetes API (application programming interface) to manage the life cycle of virtual machines.

[0037] Virtual Machine (VM): A system in which software emulates a physical computer and can run an operating system and application programs.

[0038] IO Errors: Errors that may occur during input / output (IO) operations. These errors may be caused by hardware failure, driver problems, or file system corruption.

[0039] Libvirt: Virtualization management software, an open source API (application programming interface) library for interacting with virtualization technologies (such as KVM, Xen) and managing virtual machines.

[0040] Event mechanism: A feature in Kubernetes that is used to notify users of status changes that occur in the cluster, such as node failures and Pod restarts.

[0041] Disk IO error detection: refers to monitoring and identifying errors in disk input and output operations during the operation of the virtual machine.

[0042] The virtual machine disk input and output error detection and processing method provided in the embodiment of the present application can be executed by a server, which can be a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The server can communicate with the terminal through the network. The terminal can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. Head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc.

[0043] like Figure 1 As shown, a k8s cluster can deploy the virtualization extension component KubeVirt, and a virtual machine VM definition can be created through the virtualization extension component KubeVirt. The virtual machine VM can use the disk DISK of the edge k8sworker working node of each k8s cluster as the virtualized disk of the virtual machine. The virtual machine disk input and output error detection and processing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown.

[0044] In an exemplary embodiment, Figure 2 As shown, a method for detecting and processing virtual machine disk input and output errors is provided, which can be applied to Figure 1 The edge k8s worker node and other cluster nodes in the method may include the following steps:

[0045] Step S201: receiving disk event information sent by a virtual machine of a cluster node through an application programming interface of virtualization management software through a disk input / output event system module.

[0046] In this step, a disk input and output event system (DiskIOEventSystem) module can be implemented. This disk input and output event system (DiskIOEventSystem) module registers the application programming interface (Libvirt API) of the virtualization management software and receives and sends disk event information such as IO error events and IO error causes, including event information of the virtualized disks of the virtual machines of the cluster nodes.

[0047] The disk input and output event system (DiskIOEventSystem) is deployed on the cluster nodes as a service daemon DaemonSet, which can be included on each edge k8s worker node. It can receive events sent to it by all virtual machines on the node through the application programming interface (Libvirt API) of the virtualization management software.

[0048] Among them, through the application programming interface (Libvirt API) of virtualization management software such as:

[0049] virtConnectDomainEventIOErrorCallback;

[0050] virtConnectDomainEventIOErrorReasonCallback;

[0051] The IO Error event of the virtualized disk can be registered by a third-party component to receive notification.

[0052] Specifically, the disk input and output event system module (DiskIOEventSystem) run by each edge k8s worker node can receive disk event information sent by the virtual machine of the edge k8s worker node (corresponding cluster node) through the application programming interface (Libvirt API) of the virtualization management software, which may include disk event information such as disk IO errors and error causes.

[0053] Step S202: Send the disk event information to the cloud console through the disk input and output event system module. The console is used to execute the corresponding error handling process according to the disk event information.

[0054] Combination Figure 3 , through the DiskIOEventSystem module, the disk event information (which may include disk IO error information, error causes, etc.) is sent to the cloud console (WEB console). The cloud console can be used by Web console administrators to manage virtual machine operations. The cloud console (WEB console) can customize the automated error handling process (error handling strategy), for example, it can automatically execute the corresponding error handling process based on the disk event information based on predefined rules, such as restarting the virtual machine or isolating the faulty disk, etc., which can reduce manual intervention.

[0055] The virtual machine disk input and output error detection and processing method of this embodiment receives the disk event information sent by the virtual machine of the cluster node through the application programming interface of the virtualization management software through the disk input and output event system module; the disk input and output event system module is deployed on the cluster node in the form of a service daemon process; the disk input and output event system module registers the application programming interface of the virtualization management software; the disk event information includes the event information of the virtualized disk of the virtual machine of the cluster node; the disk event information is sent to the cloud console through the disk input and output event system module; the console is used to execute the corresponding error processing process according to the disk event information. This scheme can monitor the disk input and output operation in real time at each cluster node using the application programming interface of the virtualization management software, and can generate disk event information when the virtual machine disk input and output error is detected, and then based on the event-driven characteristics of the cluster, the disk event information is reported to the cloud console at the cluster node, and the cloud console can set the error processing process, and automatically execute the corresponding error processing process according to the disk event information, thereby improving the detection and processing efficiency of the virtual machine disk input and output errors.

[0056] In an exemplary embodiment, sending the disk event information to the cloud console through the disk input and output event system module in step S202 may include:

[0057] The disk input and output event system module writes the disk event information into the event defined by the custom resource of the virtual machine instance of the cluster node; and sends the disk event information to the cloud console through the event mechanism defined by the custom resource of the virtual machine instance of the cluster node.

[0058] In this embodiment, combined with Figure 4 , the application programming interface (Libvirt API) of the virtualization management software can register and subscribe to the detected disk event information (DISK IO Error) through the disk input and output event system (DiskIOEventSystem) module and receive the disk event information in real time. The disk input and output event system (DiskIOEventSystem) module can write the received disk event information into the event of the virtual machine instance custom resource definition (VMI CRD) of the edge k8s worker working node, and send the disk event information to the cloud console through the event mechanism of the virtual machine instance custom resource definition (VMI CRD) of the edge k8s worker working node. Through this event mechanism, external high-availability operations can also be triggered, such as restarting the virtual machine, triggering the cloud alarm mechanism and other external workflows.

[0059] In an exemplary embodiment, the method may further include: creating a virtual machine through a virtualization extension component deployed in a cluster, and using a disk of a cluster node as a virtualized disk of the virtual machine.

[0060] In this embodiment, Figure 1 As shown, the virtualization extension component KubeVirt can be used in the k8s cluster to provide virtual machines. A k8s cluster can deploy the virtualization extension component KubeVirt. Virtual machines can be created through the virtualization extension component KubeVirt deployed in the k8s cluster. The virtual machines can use the physical disk DISK of the edge k8s worker node of each k8s cluster as the virtualized disk of the virtual machine. The physical disk DISK of the edge k8s worker node can be virtualized and mounted to the virtual machine for use as a system disk and data disk.

[0061] In an exemplary embodiment, the console may also be used to display location information of the corresponding virtual machine and virtualized disk according to the disk event information.

[0062] In this embodiment, Figure 3 As shown, the cloud console can also be used to display the location information of the virtual machine and virtualized disk corresponding to the disk event information based on the disk event information containing the cluster's disk input and output error events and their error causes. This allows Web console administrators to view the cluster's disk input and output error events and their error causes, and locate specific virtual machines and virtualized disks, which can be used to quickly locate and troubleshoot errors.

[0063] In an exemplary embodiment, the cluster node includes a k8s cluster node. The k8s cluster node may include an edge k8s worker node of the k8s cluster.

[0064] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0065] Based on the same inventive concept, the embodiment of the present application also provides a virtual machine disk input and output error detection and processing device for implementing the virtual machine disk input and output error detection and processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more virtual machine disk input and output error detection and processing device embodiments provided below can refer to the limitations of the virtual machine disk input and output error detection and processing method above, and will not be repeated here.

[0066] In one embodiment, a cluster system is provided, the system comprising: a cluster node and a cloud console connected in communication. The cluster node can be used to execute the virtual machine disk input and output error detection processing method of the above embodiment. Figure 3 As shown, the cluster node may include an edge k8s worker node of the k8s cluster.

[0067] On the whole, this application can detect and report virtual machine disk input and output errors through the Kubernetes event mechanism and the application programming interface (LibvirtAPI) of the virtualization management software when managing virtual machines using the virtualization extension component KubeVirt in a Kubernetes cluster environment. It can make full use of the event-driven characteristics of Kubernetes and combine the management capabilities of the virtualization extension component KubeVirt for virtual machines to achieve rapid and automated detection and processing of virtual machine disk input and output errors.

[0068] This application can monitor the input and output status of virtual machine disks in real time, so that when input and output errors occur, they can be detected and responded to immediately, and predefined processing processes can be automatically triggered to reduce manual intervention. By using the event mechanism of Kubernetes and the virtual machine management capabilities of the virtualization extension component KubeVirt, seamless integration with cloud native environments can be achieved. By quickly detecting and processing input and output errors, virtual machine failures caused by disk problems can be reduced, and the reliability and stability of the entire system can be improved. When input and output errors are detected, it is helpful to take timely measures to protect data, prevent data loss or damage, and ensure that appropriate security measures are taken during event processing and automated response to prevent potential security risks. Through centralized management and automated response, input and output error events from all nodes in the cluster can be received, processed and responded to, improving the efficiency of the operation and maintenance team in handling disk input and output errors, allowing administrators to customize the functions of automated response strategies according to specific needs, and improving the flexibility and adaptability of the system. It can adapt to Kubernetes clusters of different sizes, meet the needs of small-scale development environments to large-scale production environments, and ensure compatibility with different storage solutions, including local storage, network attached storage (NAS) and storage area networks (SAN).

[0069] In an exemplary embodiment, Figure 5 As shown, a virtual machine disk input and output error detection and processing device is provided, and the device 500 may include:

[0070] The first sending processing module 501 is used to receive disk event information sent by the virtual machine of the cluster node through the application programming interface of the virtualization management software through the disk input and output event system module; the disk input and output event system module is deployed on the cluster node in the form of a service daemon process; the disk input and output event system module registers the application programming interface of the virtualization management software; the disk event information includes event information of the virtualized disk of the virtual machine of the cluster node;

[0071] The second sending processing module 502 is used to send the disk event information to the cloud console through the disk input and output event system module; the console is used to execute the corresponding error handling process according to the disk event information.

[0072] In an exemplary embodiment, the second sending processing module 502 is used to write the disk event information into the event defined by the custom resources of the virtual machine instance of the cluster node by the disk input and output event system module; and send the disk event information to the cloud console through the event mechanism defined by the custom resources of the virtual machine instance of the cluster node.

[0073] In an exemplary embodiment, the device 500 may further include: a creation processing module, configured to create the virtual machine through a virtualization extension component deployed in a cluster; and use the disk of the cluster node as the virtualized disk of the virtual machine in the virtual machine.

[0074] In an exemplary embodiment, the console is further used to display the location information of the corresponding virtual machine and virtualized disk according to the disk event information.

[0075] In an exemplary embodiment, the cluster node includes a k8s cluster node.

[0076] Each module in the above-mentioned virtual machine disk input and output error detection and processing device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0077] In an exemplary embodiment, a computer device is provided. The computer device may be a server and may be used as a cluster node. The internal structure diagram thereof may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as disk event information. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a virtual machine disk input and output error detection and processing method is implemented.

[0078] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0079] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0080] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0081] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0082] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0083] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0084] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0085] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for detecting and processing a virtual machine disk input and output error, characterized in that: The method comprises: Receiving disk event information sent by the virtual machine of the cluster node through the application programming interface of the virtualization management software through the disk input and output event system module; the disk input and output event system module is deployed on the cluster node in the form of a service daemon process; the disk input and output event system module registers the application programming interface of the virtualization management software; the disk event information includes event information of the virtualized disk of the virtual machine of the cluster node; The disk event information is sent to a console in the cloud through the disk input and output event system module; the console is used to execute a corresponding error handling process according to the disk event information.

2. The method according to claim 1, characterized in that The sending of the disk event information to a cloud console through the disk input and output event system module includes: The disk input and output event system module writes the disk event information into an event defined by a custom resource of a virtual machine instance of the cluster node; The disk event information is sent to the cloud console through the event mechanism defined by the custom resource of the virtual machine instance of the cluster node.

3. The method according to claim 1, characterized in that: The method further comprises: Creating the virtual machine through a virtualization extension component deployed in a cluster; The virtual machine uses the disk of the cluster node as a virtualized disk of the virtual machine.

4. The method according to claim 1, characterized in that The console is further used to display the location information of the corresponding virtual machine and virtualized disk according to the disk event information.

5. The method according to any one of claims 1 to 4, characterized in that The cluster nodes include k8s cluster nodes.

6. A virtual machine disk input and output error detection and processing device, characterized in that: The device comprises: The first sending processing module is used to receive disk event information sent by the virtual machine of the cluster node through the application programming interface of the virtualization management software through the disk input and output event system module; the disk input and output event system module is deployed on the cluster node in the form of a service daemon process; the disk input and output event system module registers the application programming interface of the virtualization management software; the disk event information includes event information of the virtualized disk of the virtual machine of the cluster node; The second sending processing module is used to send the disk event information to the cloud console through the disk input and output event system module; the console is used to execute the corresponding error handling process according to the disk event information.

7. A cluster system, characterized in that: The system comprises: a cluster node and a cloud console that are communicatively connected; wherein the cluster node is used to execute the virtual machine disk input and output error detection and processing method according to any one of claims 1 to 5.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.