IDV cloud desktop fault recovery method and device, electronic equipment and storage medium

By entering fault recovery mode when the IDV cloud desktop fails, using the original image to generate a target boot disk and copy and repair the data, the problem of data loss caused by cloud desktop failure is solved, achieving rapid recovery and data reliability.

CN115454688BActive Publication Date: 2026-11-03CHINA TELECOM CLOUD TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210908291.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-29
Publication Date
2026-11-03
Estimated Expiration
2042-07-29

AI Technical Summary

Technical Problem

IDV cloud desktop is prone to blue screens or other problems in case of failure, which may prevent users from connecting normally. Furthermore, the existing technology may cause some user data to be lost when reinstalled.

Method used

When the cloud desktop fails, a desktop recovery request is sent to enter the fault recovery mode. The original image is used to generate a target boot disk, the original system disk is mounted, data is copied and repaired, and finally the cloud desktop is restored.

Benefits of technology

It avoids data loss caused by direct reinstallation, ensures the reliability of user data, and provides the function of directly accessing the original desktop data during the fault recovery process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115454688B_ABST
    Figure CN115454688B_ABST
Patent Text Reader

Abstract

The application discloses a fault recovery method and device of an IDV cloud desktop, electronic equipment and a storage medium. The method comprises the following steps: sending a desktop recovery request to a server; receiving a feedback result generated by the server based on the desktop recovery request; in the case that the feedback result indicates that the desktop recovery request is passed, establishing a connection between a cloud desktop client and the server, executing a snapshot backup, and entering a fault recovery mode; based on the fault recovery mode, copying storage data in a desktop system disk corresponding to the cloud desktop to a target data disk, and calling a repair tool to repair the desktop system disk to obtain a repair result; and in the case that the repair result is repair completion, executing a restoration operation of the cloud desktop. The application introduces a fault recovery mode, generates a new starting desktop by using an original image in the fault recovery mode, simultaneously mounts the original system disk so that a user can directly access original desktop data, avoids losing data by directly reinstalling the desktop, and ensures the reliability of user data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of network communication, and in particular to a fault recovery method, apparatus, electronic device and storage medium for IDV cloud desktop. Background Technology

[0002] Currently, IDV cloud desktops employ a single-point computing and centralized storage management approach, providing unified maintenance and management of user desktops on the server side. Users can run their own desktops offline, reducing the virtual desktop's dependence on network and storage. However, in practical applications, IDV cloud desktops virtualized via local images may experience blue screens or other failures, preventing users from connecting to the desktop normally. In such cases, it is necessary to reinstall the user's desktop using the image, which may result in the loss of some user data. Summary of the Invention

[0003] In order to solve the above-mentioned technical problems, or at least partially solve the above-mentioned technical problems, this application provides a fault recovery method, apparatus, electronic device and storage medium for IDV cloud desktop.

[0004] According to one aspect of the embodiments of this application, a fault recovery method for IDV cloud desktops is provided, including:

[0005] Send a desktop recovery request to the server, wherein the desktop recovery request is generated by the cloud desktop client in the event of a cloud desktop failure;

[0006] The server receives a feedback result generated based on the desktop recovery request. If the feedback result indicates that the desktop recovery request has passed, a connection is established between the cloud desktop client and the server. After performing a snapshot backup, the client enters the fault recovery mode.

[0007] Based on the fault recovery mode, the storage data in the desktop system disk corresponding to the cloud desktop is copied to the target data disk, and the repair tool is called to repair the desktop system disk to obtain the repair result;

[0008] If the repair result indicates that the repair is complete, perform the cloud desktop restoration operation.

[0009] Furthermore, after entering fault recovery mode, the method further includes:

[0010] Obtain the original image corresponding to the cloud desktop, generate the target boot disk using the original image, and mount the original boot disk corresponding to the cloud desktop.

[0011] Determine the priority boot information corresponding to the target boot disk;

[0012] Obtain the target file created in the target boot disk, and start a temporary desktop using the priority boot information and the target file.

[0013] Furthermore, based on the fault recovery mode, copying the storage data in the desktop system disk corresponding to the cloud desktop to the target data disk and repairing the desktop system disk includes:

[0014] Based on the temporary desktop, mount the desktop system disk and copy the stored data in the desktop system disk to the target data disk;

[0015] The repair tool was used to repair the desktop system disk, and the repair results were obtained.

[0016] Furthermore, performing the cloud desktop restore operation includes:

[0017] Read a pre-created target file, wherein the target file is a file under the storage path corresponding to the cloud desktop;

[0018] The cloud desktop is launched based on the target file, and the fault recovery mode is exited, and a connection request is sent to the server;

[0019] The system receives the connection result from the server, and if the connection result indicates a successful connection, it determines that the cloud desktop restoration was successful.

[0020] Furthermore, before entering the fault recovery mode, the method further includes:

[0021] Receive the prompt message and generate a snapshot backup instruction based on the prompt message;

[0022] According to the snapshot backup instruction, obtain the data snapshot corresponding to the stored data in the desktop system disk, and store the data snapshot.

[0023] Furthermore, the method also includes:

[0024] If the connection fails, the cloud desktop is reinstalled using the data snapshot.

[0025] Furthermore, the execution of snapshot backup includes:

[0026] Based on a preset time, monitor whether the corresponding restore operation of the cloud desktop occurs;

[0027] If no restore operation corresponding to the cloud desktop occurs within a preset time, the restore operation corresponding to the cloud desktop will be automatically executed, and resources will be released.

[0028] According to another aspect of the embodiments of this application, a fault recovery device for IDV cloud desktops is also provided, comprising:

[0029] The sending module is used to send a desktop recovery request to the server, wherein the desktop recovery request is generated by the cloud desktop client in the event of a failure;

[0030] The receiving module is used to receive feedback results generated by the server based on the desktop recovery request, and if the feedback results indicate that the desktop recovery request has passed, establish a connection between the cloud desktop client and the server, and enter the fault recovery mode.

[0031] The repair module is used to copy the stored data in the desktop system disk corresponding to the cloud desktop to the target data disk based on the fault recovery mode, and repair the desktop system disk to obtain the repair result;

[0032] The execution module is used to perform the restore operation of the cloud desktop if the repair result is that the repair is complete.

[0033] According to another aspect of the embodiments of this application, a storage medium is also provided, the storage medium including a stored program that executes the above steps when the program is run.

[0034] According to another aspect of the embodiments of this application, an electronic device is also provided, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; wherein: the memory is used to store computer programs; and the processor is used to execute the steps in the above method by running the programs stored in the memory.

[0035] This application also provides a computer program product containing instructions that, when run on a computer, cause the computer to perform the steps in the above-described method.

[0036] Compared with the prior art, the above-mentioned technical solutions provided in this application have the following advantages: When the cloud desktop connection is abnormal, the method provided in this application introduces a fault recovery mode and generates a new boot desktop using the original image in the fault recovery mode, while mounting the original system disk, so that users can directly access the original desktop data, avoid data loss due to direct reinstallation of the desktop, and ensure the reliability of user data. Attached Figure Description

[0037] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0038] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0039] Figure 1 A flowchart illustrating a fault recovery method for an IDV cloud desktop provided in this application embodiment;

[0040] Figure 2 A block diagram of a fault recovery device for an IDV cloud desktop provided in an embodiment of this application;

[0041] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0042] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. The illustrative embodiments of this application and their descriptions are used to explain this application and do not constitute an improper limitation of this application. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0043] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another similar entity or operation, 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.

[0044] This application provides a fault recovery method, apparatus, electronic device, and storage medium for IDV cloud desktops. The method provided by this invention can be applied to any electronic device as needed, such as servers, terminals, etc., without specific limitations, and will be referred to as electronic device below for ease of description.

[0045] According to one aspect of the embodiments of this application, a method embodiment of an IDV cloud desktop fault recovery method is provided. Figure 1 A flowchart illustrating a fault recovery method for an IDV cloud desktop provided in this application embodiment is shown below. Figure 1 As shown, the method includes:

[0046] Step S11: Send a desktop recovery request to the server. The desktop recovery request is generated by the cloud desktop client in the event of a failure.

[0047] The method provided in this application is applied to a cloud desktop client. The cloud desktop client periodically checks the running status of the cloud desktop. For example, the running status may include: the connection status between the cloud desktop and the server, and whether the server to which the cloud desktop is connected is faulty. If the connection status between the cloud desktop and the server is "unable to connect," or if the server to which the cloud desktop is connected temporarily crashes, causing the cloud desktop to malfunction, then it is determined that the cloud desktop client is currently faulty. At this time, the cloud desktop client will automatically generate a desktop recovery request and send it to the server, so that the server can restore the desktop for the cloud desktop client based on the received desktop recovery request.

[0048] In this embodiment of the application, before entering the fault recovery mode, the method further includes the following steps A1-A2:

[0049] Step A1: Receive the prompt message and generate a snapshot backup instruction based on the prompt message.

[0050] Step A2: Obtain the data snapshot corresponding to the stored data in the desktop system disk according to the snapshot backup command, and store the data snapshot.

[0051] In this embodiment, the cloud desktop client automatically triggers a prompt mechanism when generating a desktop recovery request. At this time, the cloud desktop client obtains the prompt information and generates a backup instruction based on it. The prompt information is used to prompt for a snapshot backup. Subsequently, the cloud desktop client obtains and stores a data snapshot corresponding to the stored data on the desktop system disk based on the snapshot backup instruction.

[0052] It should be noted that after generating the prompt message, the system checks whether a confirmation message based on the prompt message has been received within a preset time. If a confirmation message is received, it confirms that the user has received the prompt message. At this point, a backup instruction is generated based on the confirmation message, and a data snapshot corresponding to the stored data on the desktop system disk is obtained and stored according to the snapshot backup instruction. If no confirmation message is received within the preset time, a backup instruction is automatically generated upon reaching the preset time, and then a data snapshot corresponding to the stored data on the desktop system disk is obtained and stored according to the snapshot backup instruction.

[0053] Step S12: The receiving server generates a feedback result based on the desktop recovery request. If the feedback result indicates that the desktop recovery request has passed, a connection is established between the cloud desktop client and the server, and a snapshot backup is performed before entering the fault recovery mode.

[0054] In this embodiment, after receiving the feedback result generated by the server based on the desktop recovery request, the cloud desktop client parses the feedback result. If the feedback result indicates that the desktop recovery request has passed, a connection is established between the cloud desktop client and the server, and a snapshot backup is performed before entering the fault recovery mode.

[0055] It should be noted that the specific process of establishing a connection can be as follows: the cloud desktop client sends a connection request to the server. After receiving the connection request, the server extracts the identity information corresponding to the cloud desktop client from the connection request, authenticates the cloud desktop client based on the identity information, and if the authentication is successful, the server sends a connection success message to the cloud desktop client.

[0056] The method provided in this application automatically prompts the user to perform a snapshot backup before entering fault recovery mode. If no confirmation is received from the user within a preset time, a snapshot backup of the stored data on the desktop system disk is automatically performed. This ensures that no data loss occurs during the subsequent desktop restoration process.

[0057] In this embodiment of the application, after entering the fault recovery mode, the method further includes the following steps B1-B3:

[0058] Step B1: Obtain the original image corresponding to the cloud desktop, use the original image to generate the target boot disk, and mount the original boot disk corresponding to the cloud desktop.

[0059] Step B2: Determine the priority boot information corresponding to the target boot disk.

[0060] Step B3: Obtain the target file created in the target boot disk, and start the temporary desktop using the priority boot information and the target file.

[0061] In this embodiment, after entering fault recovery mode, a fault recovery operation is performed. Specifically, the original image corresponding to the cloud desktop is obtained from the system, and a target boot disk is generated using the original image. The target boot disk can be understood as a new boot disk. After generating the target boot disk, the priority boot information corresponding to the target boot disk is automatically set. At the same time, the original boot disk of the system is mounted as a new data disk.

[0062] In this embodiment of the application, a new boot disk (i.e., the target boot disk) is generated, an XML-formatted target file is created in the new boot disk, and then a temporary desktop is launched through the target file.

[0063] Step S13: Based on the fault recovery mode, copy the storage data in the desktop system disk corresponding to the cloud desktop to the target data disk, and call the repair tool to repair the desktop system disk to obtain the repair result;

[0064] In this embodiment of the application, based on the fault recovery mode, the storage data in the desktop system disk corresponding to the cloud desktop is copied to the target data disk, and the desktop system disk is repaired, including the following steps C1-C2:

[0065] Step C1: Based on the temporary desktop, mount the desktop system disk and copy the storage data in the desktop system disk to the target data disk.

[0066] Step C2: Use the repair tool to repair the desktop system disk and obtain the repair results.

[0067] In this embodiment, a temporary desktop is used to mount the original desktop system disk, and the stored data on the desktop system disk is copied to the target data disk. This ensures that data corruption or loss will not occur during subsequent repair of the desktop system disk. Then, a repair tool is called to repair the desktop system disk, obtaining the repair result. The repair tool called can be a repair tool installed using a PE (Preinstallation Environment) method.

[0068] Step S14: If the repair result is "repair complete", perform the cloud desktop restore operation.

[0069] In this embodiment of the application, performing a cloud desktop restore operation includes the following steps D1-D3:

[0070] Step D1: Read the pre-created target file, where the target file is a file under the storage path corresponding to the cloud desktop.

[0071] Step D2: Start the cloud desktop based on the target file, exit the fault recovery mode, and send a connection request to the server.

[0072] Step D3: Receive the connection result from the server. If the connection result is successful, confirm that the cloud desktop restoration was successful.

[0073] In this embodiment, before performing the restore operation, the original XML format file under the corresponding storage path of the cloud desktop is backed up, and a new XML format file is created under the same storage path. This new XML format file is then designated as the target file. Therefore, during the restore operation, the target file can be directly read. Finally, the target file starts the cloud desktop and exits the fault recovery mode.

[0074] In this embodiment, after exiting the fault recovery mode, a connection request is generated based on the file content corresponding to the target file, and the connection request is sent to the server. Upon receiving the connection request, the server verifies the file content carried in the connection request. If the field in the file content used to indicate the start of the cloud desktop is correct, a connection result is returned, indicating a successful connection. If the field in the file content used to indicate the start of the cloud desktop is incorrect, a connection result is also returned, indicating a connection failure. The cloud desktop client receives the connection result returned by the server, and if the connection result is successful, it determines that the cloud desktop restoration was successful.

[0075] In this embodiment, the method further includes: reinstalling the cloud desktop using a data snapshot if the connection fails. It should be noted that, in the case of connection failure, a data snapshot obtained by backing up the original XML file is directly acquired, and the cloud desktop is reinstalled using the data snapshot. After confirming that the cloud desktop is installed, the server is reconnected to ensure successful cloud desktop restoration.

[0076] In this embodiment of the application, after entering the fault recovery mode, the method further includes the following steps E1-E2:

[0077] Step E1: Listen for the occurrence of a cloud desktop restore operation based on a preset time.

[0078] Step E2: If no restore operation for the cloud desktop occurs within a preset time, automatically execute the restore operation for the cloud desktop and release resources.

[0079] In this embodiment, after entering fault recovery mode, the client automatically monitors whether a desktop restore operation is performed within a preset time. If no restore operation corresponding to the cloud desktop occurs within the preset time, the client automatically performs the restore operation corresponding to the cloud desktop according to the pre-configured desktop process and releases resources.

[0080] The method provided in this application introduces a fault recovery mode when the cloud desktop connection is abnormal. In the fault recovery mode, a new boot desktop is generated using the original image, and the original system disk is mounted. This allows users to directly access the original desktop data, avoiding data loss when reinstalling the desktop and ensuring the reliability of user data.

[0081] Figure 2 This is a block diagram of a fault recovery device for an IDV cloud desktop provided in an embodiment of this application. This device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Figure 2 As shown, the device includes:

[0082] The sending module 21 is used to send a desktop recovery request to the server. The desktop recovery request is generated by the cloud desktop client in the event of a failure.

[0083] The receiving module 22 is used to receive the feedback result generated by the server based on the desktop recovery request. If the feedback result indicates that the desktop recovery request has passed, a connection is established between the cloud desktop client and the server, and after performing a snapshot backup, the client enters the fault recovery mode.

[0084] Repair module 23 is used to copy the storage data in the desktop system disk corresponding to the cloud desktop to the target data disk based on the fault recovery mode, and call the repair tool to repair the desktop system disk to obtain the repair result.

[0085] Execution module 24 is used to perform the cloud desktop restore operation when the repair result is that the repair is complete.

[0086] In this embodiment of the application, the cloud desktop fault recovery device further includes: a processing module, used to obtain the original image corresponding to the cloud desktop, generate a target boot disk using the original image, and mount the original boot disk corresponding to the cloud desktop; determine the priority boot information corresponding to the target boot disk; obtain the target file created in the target boot disk, and start the temporary desktop through the priority boot information and the target file.

[0087] In this embodiment, the repair module 23 is used to mount the desktop system disk based on the temporary desktop, copy the stored data in the desktop system disk to the target data disk, and call the repair tool to repair the desktop system disk to obtain the repair result.

[0088] In this embodiment of the application, the execution module 24 is used to read the pre-backed target file, wherein the target file is a file under the storage path corresponding to the cloud desktop; start the cloud desktop based on the target file and exit the fault recovery mode, and send a connection request to the server; receive the connection result fed back by the server, and determine that the cloud desktop restoration is successful if the connection result is successful.

[0089] In this embodiment of the application, the cloud desktop fault recovery device further includes: a backup module, which receives a prompt message and generates a snapshot backup instruction based on the prompt message; obtains a data snapshot corresponding to the stored data in the desktop system disk according to the snapshot backup instruction, and stores the data snapshot.

[0090] In this embodiment of the application, the cloud desktop fault recovery device further includes: an installation module, which reinstalls the cloud desktop using a data snapshot when the connection result is a connection failure.

[0091] In this embodiment of the application, the cloud desktop fault recovery device further includes: a monitoring module, which monitors whether a restore operation corresponding to the cloud desktop occurs based on a preset time; if no restore operation corresponding to the cloud desktop occurs within the preset time, it automatically executes the restore operation corresponding to the cloud desktop and releases resources.

[0092] This application also provides an electronic device, such as... Figure 3 As shown, the electronic device may include: a processor 1501, a communication interface 1502, a memory 1503, and a communication bus 1504, wherein the processor 1501, the communication interface 1502, and the memory 1503 communicate with each other through the communication bus 1504.

[0093] Memory 1503 is used to store computer programs;

[0094] When the processor 1501 executes the computer program stored in the memory 1503, it implements the steps of the above embodiments.

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

[0096] The communication interface is used for communication between the aforementioned terminal and other devices.

[0097] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.

[0098] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0099] In another embodiment provided in this application, a computer-readable storage medium is also provided, which stores instructions that, when executed on a computer, cause the computer to perform the following cloud desktop fault recovery method, the method comprising:

[0100] Send a desktop recovery request to the server, wherein the desktop recovery request is generated by the cloud desktop client in the event of a cloud desktop failure;

[0101] The server receives a feedback result generated based on the desktop recovery request. If the feedback result indicates that the desktop recovery request has passed, a connection is established between the cloud desktop client and the server. After performing a snapshot backup, the client enters the fault recovery mode.

[0102] Based on the fault recovery mode, the storage data in the desktop system disk corresponding to the cloud desktop is copied to the target data disk, and the repair tool is called to repair the desktop system disk to obtain the repair result;

[0103] If the repair result indicates that the repair is complete, perform the cloud desktop restoration operation.

[0104] Furthermore, after entering fault recovery mode, the method further includes:

[0105] Obtain the original image corresponding to the cloud desktop, generate the target boot disk using the original image, and mount the original boot disk corresponding to the cloud desktop.

[0106] Determine the priority boot information corresponding to the target boot disk;

[0107] Obtain the target file created in the target boot disk, and start a temporary desktop using the priority boot information and the target file.

[0108] Furthermore, based on the fault recovery mode, copying the storage data in the desktop system disk corresponding to the cloud desktop to the target data disk and repairing the desktop system disk includes:

[0109] Based on the temporary desktop, mount the desktop system disk and copy the stored data in the desktop system disk to the target data disk;

[0110] The repair tool was used to repair the desktop system disk, and the repair results were obtained.

[0111] Furthermore, performing the cloud desktop restore operation includes:

[0112] Read a pre-created target file, wherein the target file is a file under the storage path corresponding to the cloud desktop;

[0113] The cloud desktop is launched based on the target file, and the fault recovery mode is exited, and a connection request is sent to the server;

[0114] The system receives the connection result from the server, and if the connection result indicates a successful connection, it determines that the cloud desktop restoration was successful.

[0115] Furthermore, before entering the fault recovery mode, the method further includes:

[0116] Receive the prompt message and generate a snapshot backup instruction based on the prompt message;

[0117] According to the snapshot backup instruction, obtain the data snapshot corresponding to the stored data in the desktop system disk, and store the data snapshot.

[0118] Furthermore, the method also includes:

[0119] If the connection fails, the cloud desktop is reinstalled using the data snapshot.

[0120] Furthermore, after entering fault recovery mode, the method further includes:

[0121] Based on a preset time, monitor whether the corresponding restore operation of the cloud desktop occurs;

[0122] If no restore operation corresponding to the cloud desktop occurs within a preset time, the restore operation corresponding to the cloud desktop will be automatically executed, and resources will be released.

[0123] In another embodiment provided in this application, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute any of the cloud desktop fault recovery methods described in the above embodiments.

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

[0125] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application are included within the scope of protection of this application.

[0126] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A fault recovery method for IDV cloud desktops, characterized in that, include: Send a desktop recovery request to the server, wherein the desktop recovery request is generated by the cloud desktop client in the event of a cloud desktop failure; The server receives a feedback result generated based on the desktop recovery request. If the feedback result indicates that the desktop recovery request has passed, a connection is established between the cloud desktop client and the server. After performing a snapshot backup, the client enters the fault recovery mode. Based on the fault recovery mode, the storage data in the desktop system disk corresponding to the cloud desktop is copied to the target data disk, and the repair tool is called to repair the desktop system disk to obtain the repair result; If the repair result is that the repair is complete, perform the cloud desktop restore operation; After entering the fault recovery mode, the method further includes: obtaining the original image corresponding to the cloud desktop, generating a target boot disk using the original image, and mounting the original boot disk corresponding to the cloud desktop; determining the priority boot information corresponding to the target boot disk; obtaining the target file created in the target boot disk, and starting a temporary desktop using the priority boot information and the target file; The step of copying the stored data in the desktop system disk corresponding to the cloud desktop to the target data disk based on the fault recovery mode, and repairing the desktop system disk, includes: mounting the desktop system disk based on the temporary desktop, copying the stored data in the desktop system disk to the target data disk; calling the repair tool to repair the desktop system disk, and obtaining the repair result; Before entering the fault recovery mode, the method further includes: receiving a prompt message and generating a snapshot backup instruction based on the prompt message; obtaining a data snapshot corresponding to the stored data in the desktop system disk according to the snapshot backup instruction, and storing the data snapshot; After generating the prompt message, it checks whether a confirmation message based on the prompt message is received within a preset time. If the confirmation message is received, the backup instruction is generated based on the confirmation message. If the confirmation message is not received within the preset time, the backup instruction is automatically generated when the preset time is reached.

2. The method according to claim 1, characterized in that, The process of restoring the cloud desktop includes: Read a pre-created target file, wherein the target file is a file under the storage path corresponding to the cloud desktop; The cloud desktop is launched based on the target file, and the fault recovery mode is exited, and a connection request is sent to the server; The system receives the connection result from the server, and if the connection result indicates a successful connection, it determines that the cloud desktop restoration was successful.

3. The method according to claim 2, characterized in that, The method further includes: If the connection fails, the cloud desktop is reinstalled using the data snapshot.

4. The method according to claim 1, characterized in that, After entering fault recovery mode, the method further includes: Based on a preset time, monitor whether the corresponding restore operation of the cloud desktop occurs; If no restore operation corresponding to the cloud desktop occurs within a preset time, the restore operation corresponding to the cloud desktop will be automatically executed, and resources will be released.

5. A fault recovery device for IDV cloud desktops, characterized in that, include: The sending module is used to send a desktop recovery request to the server, wherein the desktop recovery request is generated by the cloud desktop client in the event of a cloud desktop failure; The receiving module is used to receive feedback results generated by the server based on the desktop recovery request, and if the feedback results indicate that the desktop recovery request has passed, establish a connection between the cloud desktop client and the server, and enter the fault recovery mode. The repair module is used to copy the stored data in the desktop system disk corresponding to the cloud desktop to the target data disk based on the fault recovery mode, and repair the desktop system disk to obtain the repair result; An execution module is used to perform the restore operation of the cloud desktop if the repair result is that the repair is complete. The device further includes: a processing module, configured to acquire the original image corresponding to the cloud desktop, generate a target boot disk using the original image, and mount the original boot disk corresponding to the cloud desktop; determine the priority boot information corresponding to the target boot disk; acquire the target file created in the target boot disk, and start a temporary desktop using the priority boot information and the target file; The repair module is specifically used to mount the desktop system disk based on the temporary desktop, copy the stored data in the desktop system disk to the target data disk, and call the repair tool to repair the desktop system disk to obtain the repair result. The device further includes: a backup module, used to receive a prompt message and generate a snapshot backup instruction based on the prompt message; obtain a data snapshot corresponding to the stored data in the desktop system disk according to the snapshot backup instruction, and store the data snapshot; After generating the prompt message, it checks whether a confirmation message based on the prompt message is received within a preset time. If the confirmation message is received, the backup instruction is generated based on the confirmation message. If the confirmation message is not received within the preset time, the backup instruction is automatically generated when the preset time is reached.

6. A storage medium, characterized in that, The storage medium includes a stored program, wherein the program, when executed, performs the method steps of any one of claims 1 to 4.

7. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, communication interface, and memory communicate with each other through the communication bus; wherein: Memory, used to store computer programs; A processor for executing the method steps of any one of claims 1 to 4 by running a program stored in memory.

Citation Information

Patent Citations

  • Method and device for quickly recovering non-restored desktop fault under desktop virtualization architecture

    CN112631830A