WO2017215502A1 - Cloud-desktop disaster recovery method, client, server, cloud-desktop disaster recovery system, and storage medium - Google Patents

Cloud-desktop disaster recovery method, client, server, cloud-desktop disaster recovery system, and storage medium Download PDF

Info

Publication number
WO2017215502A1
WO2017215502A1 PCT/CN2017/087463 CN2017087463W WO2017215502A1 WO 2017215502 A1 WO2017215502 A1 WO 2017215502A1 CN 2017087463 W CN2017087463 W CN 2017087463W WO 2017215502 A1 WO2017215502 A1 WO 2017215502A1
Authority
WO
WIPO (PCT)
Prior art keywords
cloud desktop
server
client
image file
cloud
Prior art date
Application number
PCT/CN2017/087463
Other languages
French (fr)
Chinese (zh)
Inventor
邱海军
沈松
宋伊漠
李锴
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017215502A1 publication Critical patent/WO2017215502A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/131Protocols for games, networked simulations or virtual reality

Definitions

  • the present disclosure relates to the field of cloud computing technologies, and in particular, to a cloud desktop disaster recovery method, a client, a server, a cloud desktop disaster recovery system, and a storage medium.
  • Virtual cloud desktops use the computing resources of remote servers as much as possible in the case of weakening user terminals.
  • the virtual cloud desktop requires the server side to supply core resources such as memory, storage, and CPU, and is supported by an excellent network architecture.
  • the virtual cloud surface technology can realize the separation of the desktop (including the system, the application, the data) and the device, and the management of the desktop is completely centralized to the server, thereby realizing the centralized management of the desktop system and greatly reducing the workload of the operation and maintenance.
  • the data security of the terminal is guaranteed, and the user can realize personal desktop access anytime and anywhere. Therefore, compared with traditional desktop management, the virtual cloud desktop not only has the advantages of convenient deployment, unified operation and maintenance management, high information security, but also benefits terminal energy saving, lower terminal cost, and remote office.
  • the disaster recovery solution for the virtual cloud desktop storage generally sets the standby resources on the server side.
  • a backup storage device is usually set on the server side, and the backup storage device is the same as the primary storage device. It is also configured to store the user's virtual cloud desktop resources.
  • the cloud server host fails to use the primary storage device, the cloud server can continue to provide virtual cloud desktop services to the user by using the cloud desktop resources on the standby storage device.
  • the related art in order to avoid the failure caused by the network interruption between the terminal device and the server side, the related art generally also sets a special backup on the server side. If the network port is faulty, you can switch to the backup network port. The backup network port takes over the active network port.
  • the cost requirement of the disaster recovery solution by setting up the backup storage device is relatively high.
  • few device manufacturers set up the backup storage on the service side device.
  • Equipment if deployed by the cloud desktop service provider itself, will cost a lot of money.
  • an alternate storage device is set on the cloud server side, there are still other problems.
  • the primary storage device fails, the usage of the backup storage device is relatively low, most of the time.
  • the backup storage device is in an idle or even unmanaged state. Therefore, when the primary storage device has a problem, it is difficult to ensure that the backup storage device is in a normal state.
  • the cloud desktop disaster recovery method, the client, the server, the cloud desktop disaster recovery system, and the storage medium mainly provide a cloud desktop disaster recovery that does not need to depend on the standby resources on the server side.
  • the solution is to solve the problem that the DR solution in the related technology depends on the backup resources on the server side and the disaster recovery effect is poor and the solution is unreasonable.
  • the embodiment of the present disclosure provides a cloud desktop disaster recovery method, including:
  • the server invokes the cloud desktop image file stored in the terminal to provide the cloud desktop service to the user.
  • the embodiment of the present disclosure further provides a cloud desktop disaster recovery method, including:
  • the client invokes the cloud desktop image file stored in the terminal to provide the cloud desktop service to the user.
  • the embodiment of the present disclosure further provides a client, including:
  • the local calling module is set to invoke the cloud desktop image file stored in the terminal to provide the cloud desktop service to the user when the preset condition is met.
  • the embodiment of the present disclosure further provides a server, including:
  • the remote calling module is configured to invoke a cloud desktop image file stored in the terminal to provide a cloud desktop service to the user when the preset condition is met.
  • the embodiment of the present disclosure further provides a cloud desktop disaster recovery system, including a server and a client as described above; or a client and a server as described above.
  • the embodiment of the present disclosure further provides a storage medium having stored therein computer executable instructions, the computer executable instructions being configured to perform the cloud desktop disaster tolerance method of any of the foregoing.
  • the cloud desktop disaster recovery method, the client, the server, the cloud desktop disaster recovery system, and the storage medium provided by the embodiments of the present disclosure pre-store the cloud desktop image file in the terminal, and when the preset condition is met, the storage is invoked.
  • the cloud desktop image of the terminal provides the user with a cloud desktop service.
  • the cloud desktop disaster recovery method, the client, the server, the cloud desktop disaster recovery system, and the storage medium provided by the embodiments of the present disclosure not only make the disaster recovery for the cloud desktop service depend on the standby resources set by the server, such as the backup storage device. Or the backup network port, etc., and because the cloud desktop image file is stored on the client side, the client can be used normally regardless of the failure of the server storage device or the network interruption between the server and the client.
  • the service provided by the cloud desktop image file of the terminal storage enhances the reliability of the disaster recovery solution and improves the disaster recovery effect and user experience.
  • FIG. 1 is a flowchart of a cloud desktop disaster recovery method according to Embodiment 1 of the present disclosure
  • FIG. 2 is a flowchart of providing a cloud desktop service by a cloud desktop image file stored by a client in a terminal according to Embodiment 1 of the present disclosure
  • FIG. 3 is a flowchart of a cloud desktop disaster recovery method according to Embodiment 2 of the present disclosure
  • FIG. 4 is a flowchart of providing a cloud desktop service by using a cloud desktop image file stored by a server end calling terminal in the second embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of a client according to Embodiment 3 of the present disclosure.
  • FIG. 6 is another schematic structural diagram of a client according to Embodiment 3 of the present disclosure.
  • FIG. 7 is a schematic structural diagram of a client according to Embodiment 4 of the present disclosure.
  • FIG. 8 is a schematic structural diagram of a server provided by Embodiment 4 of the present disclosure.
  • FIG. 9 is a schematic structural diagram of a cloud desktop disaster recovery system according to Embodiment 4 of the present disclosure.
  • FIG. 10 is another schematic structural diagram of a client according to Embodiment 4 of the present disclosure.
  • FIG. 11 is still another schematic structural diagram of a client according to Embodiment 3 of the present disclosure.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • the present embodiment proposes a cloud desktop capacity. Disaster method.
  • the client invokes the cloud desktop image file stored in the terminal to provide the cloud desktop service to the user.
  • the preset condition in this embodiment may be at least one of the following two types, and of course, two conditions may be simultaneously satisfied:
  • the network connection between the server and the client is interrupted.
  • the cloud server host cannot be mounted to the storage device on the server side. That is, the cloud server cannot obtain the cloud desktop resources required by the client from the server side.
  • the preset condition should include other faults, such as a power outage at the server end.
  • the client can cache the cloud desktop image file from the server when the cloud desktop service provided by the server can be used normally. To the terminal. See Figure 1:
  • the client extracts the required cloud desktop image file from the server and stores it in the terminal.
  • the server usually includes a cloud server host and a storage device.
  • a cloud desktop system there may be multiple clients. Therefore, the cloud desktop image file of multiple clients should be stored on the storage device. This requires high storage space on the server.
  • the storage device may be a RAID (Redundant Arrays of Independent Disks) or a MAID (massive array of idle disks) composed of RAID.
  • the cloud desktop image file of each client exists in the form of a separate file on the storage device of the server.
  • the format can be VHD (Virtual Hard Disk format) format.
  • the storage device on the server can be divided into a primary storage device and a backup storage device.
  • the primary storage device is in a working state to provide a cloud desktop service.
  • the cloud server host is mounted on the active storage device, and the virtual machine processes the related mirror data of the client in the active storage device and continuously uses the network provided by the operator.
  • the related image and the user operation information are presented to the client in the form of a window.
  • the client must use the cloud desktop service to meet at least two conditions: First, the cloud server host can be mounted to the primary storage device, that is, the cloud server host and the primary storage device. There can be no broken links between them. On the other hand, service The network between the terminal and the client must be kept clear, and the network interruption cannot occur.
  • the network interruption includes the network interruption caused by the failure of the server network port and the failure caused by the problem of the network itself provided by the operator.
  • the client can still use the cloud desktop image file in the case of a network fault between the client and the server. Therefore, in this embodiment, when the server provides the cloud desktop service normally.
  • the cloud desktop image file required by the client in the server can be extracted and cached in the terminal.
  • the terminal is required to reserve a certain space for storing the cloud desktop image file that it needs.
  • this requirement is not very difficult for the client, because in terms of various terminals, there are usually dozens or even hundreds of GB of storage space in an idle state. Therefore, in this embodiment, the cloud desktop image file is cached to the client, and the idle resource is effectively utilized, thereby improving the resource utilization of the client device, and avoiding the capital consumption necessary for setting the standby resource on the server.
  • the cloud desktop disaster recovery method provided in this embodiment implements optimal configuration of resources.
  • the cloud desktop image file before the cloud desktop image file is cached, the cloud desktop image file needs to be occupied by the cloud desktop image file.
  • the priority of the process of caching the cloud desktop image file may also be set to secondary, that is, the cache process is regarded as a secondary process, and the current operation of the user needs to occupy network bandwidth or be used locally.
  • the user's current operation task is prioritized.
  • the cloud desktop image file can continue to be cached when there is remaining bandwidth or disk read/write capability.
  • the cached result can be notified to at least one of the server or the client. Preferably, the cached result is simultaneously notified to the client and the server.
  • the client invokes the cloud desktop image file stored in the terminal to provide the cloud desktop service to the user.
  • FIG. 2 is a flow chart of the client calling the cloud desktop image file stored in the terminal to provide the cloud desktop service to the user:
  • S202 The client processes the format of the cloud desktop image file.
  • the client can process the cloud desktop image file cached to the terminal when the cloud desktop image file is just cached, or when the cloud desktop image file stored by the terminal is used.
  • the process may be performed. After the cloud desktop image file cache is completed, this can reduce the user's waiting time and improve the user experience.
  • the processing of the cloud desktop image file is mainly the process of recompiling the image file. Since the storage device on the server before the cloud desktop image file is in the VHD format, it needs to be used as the operating system, so it must be formatted. Process, re-encode, so that the client device can recognize that it is the operating system.
  • the client modifies system boot information.
  • the client device needs to be enabled with different operating systems. Therefore, you need to modify the system boot information of the terminal device, that is, you need to modify the MBR (Master Boot Record) of the original operating system. Information, this modification will take effect after the device is restarted. Understandably, it is possible that the user does not currently need to use the cloud desktop image file very much, so even if the client cannot currently use the cloud desktop service provided by the server in the normal way, it does not matter, so in this case, The user may not need to enable the cloud desktop image stored by the terminal, but prefers to wait for the network to be normal or the cloud server host and the storage device to resume normal.
  • MBR Master Boot Record
  • a prompt message is sent to the user to ask whether the user wants to use the cloud desktop image file cached by the local machine.
  • the MBR and other related information is modified.
  • the user's instructions enable the cloud desktop image file of the terminal cache at any time, that is, the user inputs a specific instruction when needed, and then the system boot program is modified, which greatly improves the user's autonomy.
  • S206 The client loads the processed cloud desktop image file according to the modified system boot information, and obtains a cloud desktop system for providing a cloud desktop service for the user.
  • the client device restarts. After the restart, the terminal device is booted into the system corresponding to the cloud desktop image file. At this time, the user can use the service provided by the cloud desktop image file again, but at this time the service provider is no longer the server, but the client itself. And in this case, almost no server involvement is required.
  • the cloud desktop disaster recovery method provided by the embodiment of the present disclosure can store the cloud desktop image file required by the client on the client, so that the client can be based on the cloud desktop stored in the terminal when the network is faulty or the server is faulty.
  • the image file provides the cloud desktop service for users, which enhances the reliability of the disaster recovery solution and improves the disaster recovery effect and user experience.
  • the cloud desktop disaster recovery method of the embodiment is more user-friendly and conforms to the user, before the cloud desktop image cache and the cloud desktop image file of the terminal storage are enabled, and the user's current needs and wishes are fully considered. Willingness.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the client when the storage fault occurs on the server, the client continues to provide the cloud desktop service by enabling the cloud desktop image file stored in the terminal, and the client cannot use the server to provide the storage terminal due to the storage disconnection.
  • the cloud desktop disaster recovery method provided in this embodiment can provide another solution. Please refer to FIG. 3:
  • the cloud desktop image file required by the client is extracted from the server and stored in the terminal.
  • the server invokes a cloud desktop image file stored in the terminal to provide a cloud desktop service for the user.
  • the cloud server host cannot obtain the cloud desktop image file required by the client from the storage device of the server at this time, since the network connection between the server and the client is still intact, the cloud server host can hang through the network. It is loaded on the cloud desktop image file stored on the client and continues to provide cloud desktop services to users.
  • the process in which the server invokes the cloud desktop image file stored in the terminal to provide the user with the cloud desktop service is as shown in FIG. 4:
  • the server host is mounted to a storage directory of the terminal storage cloud desktop image file.
  • the server host mentioned here is the cloud server host.
  • Mounting refers to attaching a device to an existing directory. Then, the device can access the directory to access the device where the directory is located.
  • the cloud server host is connected to the storage cloud desktop image file in the storage directory of the storage cloud desktop image file, and then accesses the storage cloud desktop image file storage device. The device obtains the cloud desktop image file.
  • S404 The host of the server calls the cloud desktop image file to continue to provide the cloud desktop service to the user.
  • the requirement of the network may be slightly higher in the solution of the embodiment, because not only the user can be guaranteed at this time.
  • the cloud desktop service provided by the server is normally used, and the server can also smoothly obtain the cloud desktop image file from the terminal through the network.
  • this solution has the advantages that the solution of the first embodiment does not have.
  • the user in the user experience, in this embodiment, the user hardly perceives when using the cloud desktop service on the client side.
  • the cloud desktop image file comes from the terminal. Because the cloud desktop service is still the server at this time, and the client only needs to accept the service, and does not need further processing.
  • the storage device equivalent to the terminal acts as the “standby storage device” of the server, and for the client, whether the cloud desktop image file provides the server's primary storage device or the backup storage device has no effect. of. Therefore, the cloud desktop disaster recovery solution provided by this embodiment is more beneficial to the user experience.
  • the cloud desktop image file stored by the client terminal is used at this time, this is only a temporary process. After the cloud server host of the server and the storage device resume normal connection, the cloud server host will continue to use the server storage device. Cloud desktop image file. Therefore, in order to re-establish the record of the modification of the cloud desktop image file by the user when the cloud service host is connected to the local storage device again, a recording and modification mechanism is also provided in this embodiment. That is, when the cloud server host uses the cloud desktop image file stored by the client to provide the cloud desktop service to the client, the client changes the cloud desktop image file.
  • the previously recorded client-side modification of the cloud desktop image file is synchronized to the server. It can be understood that if the previous fault is only because the cloud server host cannot connect to its storage device, and the storage device itself is not faulty, the cloud desktop image file saved on it is still intact, then only the synchronization can be modified. Record, that is, the client's modification data to the cloud desktop image file, and if the previous failure is due to the server's storage device being broken, the cloud desktop image file stored on it is damaged, then the synchronization modification data mentioned here is not only The client only needs to modify the data of the cloud desktop image file in the process.
  • the data of all the cloud desktop image files stored in the terminal may be synchronized to the server, including using the terminal cloud desktop image file.
  • the cloud desktop service has modified data for the file and raw data of the previously cached cloud desktop image file. It should be understood that the purpose of the synchronization process is to make the server consistent with the cloud desktop image file corresponding to the client saved by the client.
  • the modification of the cloud desktop image file by the client may be preferentially synchronized to the server.
  • This process is the opposite of the client-cached cloud desktop image file.
  • the client caches the cloud desktop image file
  • the cache is used as the secondary process
  • the synchronization process is used as the main process, which can preferentially enjoy the network bandwidth and disk read.
  • Write resources such as functions.
  • this priority principle may affect the user experience. Therefore, in this embodiment, it is possible to prioritize the synchronization of data. Ask the user. If the user agrees, the data of the client will be synchronized first. Otherwise, other processes will be allowed to occupy bandwidth and disk read and write, and data synchronization will be performed until there are remaining resources.
  • the flow of S306 and S308 is also applicable in the first embodiment.
  • the system when it is known that the server can normally provide the cloud desktop service, the system can be switched in the system currently started by the client device, and the system boot program can be restored to the original desktop image stored by the client using the terminal.
  • the previous version of the file the MBR information is modified to the original MBR.
  • make the relevant system boot information compatible with the original that is, compatible with the original terminal operating system information in the relevant MBR information.
  • the user can refer to the relevant boot of the original operating system after restarting, and enter the original operating system normally. After entering the original operating system, the user can choose to log in to the login interface of the original virtual cloud desktop.
  • the user After entering the original operating system, the user can enter the login interface of the virtual cloud desktop and enter the username and password of the virtual cloud desktop system for authentication. After the authentication is passed, the system determines that the cloud desktop image file cached by the client has data. Modify the record. At this time, the user can be prompted to synchronize the modified data about the cloud desktop image file to the server according to the user's selection. During the synchronization process, the system can prompt the user that data is currently being processed. After the synchronization is complete, the user can successfully log in to the server to perform normal operations in the cloud desktop system provided by the normal mode.
  • the cloud desktop disaster recovery method provided in this embodiment is mainly directed to a storage accident in the server.
  • the cloud server host on the server cannot obtain the cloud desktop image file from the terminal to provide the cloud desktop service to the user, the cloud server host can By mounting to the terminal, the cloud desktop image file stored by the terminal is used to continue to provide the cloud desktop service to the user, and the solution can improve the user experience because the user is hardly perceived to change.
  • the client when the client uses the cloud desktop image file stored by the terminal, the client can record the modification of the image file, and the server can provide the cloud desktop normally.
  • the client's modification of the cloud desktop image file is synchronized to the server, so that the image file data in the server is consistent with the image file in the client, so that the user is in the normal situation or in the normal situation.
  • the same cloud desktop image file can be used after a network accident or a storage accident, minimizing the loss and inconvenience caused by the transition before and after the accident.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • the client 50 includes a local calling module 502.
  • the local calling module 502 is configured to invoke a cloud desktop image file stored in the terminal to provide a cloud to the user when the preset condition is met.
  • Desktop service is configured to invoke a cloud desktop image file stored in the terminal to provide a cloud to the user when the preset condition is met.
  • the cloud desktop image file is cached to the terminal.
  • the cloud desktop image file stored in the terminal is used to provide the cloud desktop to the user. service.
  • the server usually includes a cloud server host and a storage device.
  • a cloud desktop disaster recovery system there may be multiple clients 50. Therefore, the cloud desktop image file of multiple clients 50 should be stored on the storage device, which requires high storage space on the server.
  • the storage device may be a RAID (Redundant Arrays of Independent Disks) or a MAID (massive array of idle disks) composed of RAID.
  • the cloud desktop image file of each client 50 exists in the form of a separate file on the storage device of the server.
  • the format may be a VHD (Virtual Hard Disk Format) format.
  • the storage device on the server can be divided into a primary storage device and a backup storage device.
  • the primary storage device is in a working state to provide a cloud desktop service.
  • the cloud server host is mounted to the primary storage device, and the virtual mirror process is used to invoke the related image data of the client 50 in the storage device and continuously use the carrier.
  • the provided network presents relevant images and user operational information to the client 50 in the form of a window.
  • the client 50 can normally use the cloud desktop service to meet at least two conditions: First, the cloud server host can be mounted on the primary storage device, That is to say, there is no possibility of a broken link between the cloud server host and the primary storage device. On the other hand, the network between the server and the client 50 must be kept clear, and no network interruption can occur.
  • the network interruption includes network interruption caused by the failure of the server network port and problems caused by the network itself provided by the operator. failure.
  • the client End 50 also includes a first cache module 504.
  • the first cache module 504 may extract the cloud desktop image file required by the client in the server and cache the file to the terminal.
  • the cloud desktop image file requires a certain storage space
  • a certain space is reserved in the terminal for storing the required cloud desktop image file.
  • the cloud desktop image file is cached to the client 50, and the idle resource is effectively utilized, thereby improving the resource utilization of the client device, and avoiding the capital consumption necessary for setting the standby resource on the server.
  • the cloud desktop disaster recovery system provided in this embodiment implements optimal configuration of resources.
  • the first cache module 504 may be used in this embodiment.
  • the priority of the process of caching the cloud desktop image file is set to secondary. That is, the cache process is used as the secondary process.
  • the priority is given.
  • the first cache module 504 can continue to cache the cloud desktop image file. After the cache task ends, the first cache module 504 can notify the cache result to at least one of the server or the client 50. Preferably, the cached result is simultaneously notified to the client 50 and the server.
  • the local calling module 502 calls the cloud desktop image stored in the terminal.
  • the file provides the user with a cloud desktop service.
  • the preset condition in this embodiment may be at least one of the following two types, and of course, two conditions may be simultaneously satisfied:
  • the network connection between the server and the client 50 is interrupted.
  • the cloud server host cannot be mounted to the storage device on the server side. That is, the cloud server cannot obtain the cloud desktop resources required by the client 50 from the server side.
  • the cloud desktop disaster recovery system in this embodiment proposes such a solution:
  • the local calling module 502 first performs format processing on the cached cloud desktop image file. This process can be done when the cloud desktop image file is just cached, or when the user needs to use the cloud desktop image file stored by the terminal. In this embodiment, in order to immediately switch to the cloud desktop image file stored by the terminal when the user cannot use the cloud desktop service provided by the server in the normal manner, without affecting the normal operation of the user, the local calling module 502 may The processing flow setting is completed after the cloud desktop image file cache is completed, which can reduce the user's waiting time and improve the user experience.
  • the processing of the cloud desktop image file by the local calling module 502 is mainly a process of recompiling the image file. Since the storage device on the server side of the cloud desktop image file is in the VHD format, and now needs to be used as an operating system, it is necessary to use it. It is formatted and re-encoded so that the client device can recognize that it is an operating system.
  • the local invocation module 502 also modifies the system boot information.
  • the client device needs to be enabled with different operating systems. Therefore, you need to modify the system boot information of the terminal device, that is, you need to modify the MBR (Master Boot Record) of the original operating system. Information, this modification will take effect after the device is restarted.
  • MBR Master Boot Record
  • the user does not currently need to use the cloud desktop image file very much, so even if the client 50 cannot currently use the cloud desktop service provided by the server in the normal way, it does not matter, so in this case, Under the user, the user may not need to enable the cloud desktop image stored by the terminal. It is more willing to wait for the network to be normal or the cloud server host and storage device to return to normal.
  • the client 50 may send a prompt message to the user to use the cloud desktop image file cached by the local machine after the network connection is interrupted or the storage is broken, and the system boot information is modified.
  • the MBR and other related information is modified.
  • the local calling module 502 can also enable the cloud desktop image file cached by the client 50 terminal according to the user's instruction, that is, the user inputs a specific instruction when needed, and then The system boot program is modified, which greatly improves the user's autonomy.
  • the local calling module 502 loads the processed cloud desktop image file according to the modified system boot information, and obtains a cloud desktop system for providing a cloud desktop service for the user.
  • the terminal device restarts. After the restart, the terminal device is booted into the system corresponding to the cloud desktop image file.
  • the user can use the service provided by the cloud desktop image file again, but at this time the service provider is no longer the server, but the client 50 itself. And in this case, almost no server involvement is required.
  • the client 50 may be disposed on various types of terminal devices, such as a PC, a tablet, a phone, etc., wherein the first cache module 504 in the client 50 may be configured by a processor and a communication unit of the terminal. Together with the memory, the processor controls the communication unit to obtain the cloud desktop image file from the server and then stores it in the memory.
  • the local calling module 502 can be implemented by an output interface of the memory, and the local calling module 502 can also be implemented by a processor.
  • the processor of the terminal reads from the memory through the output interface of the memory.
  • the cloud desktop image file is processed and loaded by the cloud desktop image file to obtain the cloud desktop system, and the cloud desktop service is continuously provided for the user.
  • the embodiment further provides a cloud desktop disaster recovery system, which includes a server and at least one client 50.
  • the client 50 and the cloud desktop disaster recovery system provided by the embodiments of the present disclosure can store the cloud desktop image file required by the client in the terminal, so that the client 50 can be stored according to the terminal when the network is faulty or the server is faulty.
  • Cloud desktop image file provides users with cloud desktop The service enhances the reliability of the disaster recovery system and improves the disaster tolerance effect and user experience.
  • the client 50 takes into account the current needs and wishes of the user before performing the cloud desktop image caching and the cloud desktop image file of the terminal, so that the cloud desktop disaster recovery system of the embodiment is more human. In line with the wishes of users.
  • Embodiment 4 is a diagrammatic representation of Embodiment 4:
  • This embodiment provides a server and a client that are different from the embodiment.
  • the client caches the cloud desktop image file that the user needs in the terminal.
  • the cloud desktop image file is stored on the service side, the cloud desktop image file stored in the terminal can be used to continue to provide services for the user.
  • FIG. 7 is a schematic structural diagram of a client provided in this embodiment
  • FIG. 7 is a schematic structural diagram of a server provided in this embodiment:
  • the client 70 includes a second cache module 702, and the server 80 includes a remote call module 802.
  • the second cache module 702 is configured to: when the user can normally use the cloud desktop service provided by the server, extract the cloud desktop image file required by the client from the server and store the file in the terminal.
  • the client 70 does not include the local calling module, but the remote calling module 802 is set in the server 80.
  • the remote calling module 802 calls the cloud desktop image file stored in the terminal to provide the cloud desktop service for the client.
  • the cloud server host cannot obtain the cloud desktop image file required by the client 70 from the storage device of the server 80 at this time, since the network connection between the server 80 and the client 70 is still intact, the cloud server is still available.
  • the host can be mounted to the storage directory of the cloud desktop image file stored on the client 70 through the network, and the cloud desktop service is continuously provided to the user.
  • the remote calling module 802 controls the server host to mount to the device in the terminal that stores the cloud desktop image file.
  • Server host mentioned here It is the cloud server host. Mounting refers to attaching a device to an existing directory. Then, the device can access the directory to access the device where the directory is located.
  • the cloud server host is connected to the storage cloud desktop image file in the storage directory of the storage cloud desktop image file, and then accesses the storage cloud desktop image file storage device. The device obtains the cloud desktop image file.
  • the remote invocation module 802 then controls the server host to continue to provide the cloud desktop service to the user by calling the cloud desktop image file through the network.
  • the cloud desktop disaster recovery system 9 includes the server 80 and at least one client 70 provided in this embodiment.
  • the requirement for the network may be slightly higher than that of the cloud desktop image file of the terminal in the third embodiment.
  • the server 80 can smoothly obtain the cloud desktop image file from the client 70 through the network.
  • the cloud desktop disaster recovery system 9 provided in this embodiment has the advantages that the cloud desktop disaster recovery system provided by the third embodiment does not have.
  • the cloud desktop service is used by the client, the cloud desktop image file is hardly perceived to come from the terminal. Because the cloud desktop service is still the server 80 at this time, and the client 70 only needs to accept the service, and does not need further processing.
  • the storage device corresponding to the terminal acts as the "alternate storage device" of the server 80, and for the client 70, whether the cloud desktop image file is provided is the primary storage device of the server 80 or the backup storage. The device has no effect. Therefore, the cloud desktop disaster recovery system 9 provided in this embodiment is more advantageous to the user experience.
  • the client 70 includes a second recording module 704 and a second synchronization module 706 in addition to the second cache module 702, and the second record.
  • the module 704 is configured to save the modification record of the cloud desktop image file of the client when the cloud desktop service file is provided by the cloud desktop image file stored in the calling terminal.
  • the second synchronization module 706 is configured to synchronize the previously saved modification record to the server 80 when the storage link of the server 80 returns to normal.
  • the cloud desktop image file stored in the terminal is used at this time, this is only a temporary process. After the cloud server host of the server 80 and the storage device resume normal connection, the cloud server host will continue to use the server 80 for storage. Cloud desktop image file on the device. Therefore, in order to re-connect the cloud service host to the storage device of the terminal, the previous record of the modification of the cloud desktop image file is continued. Therefore, in this embodiment, the second recording module 704 uses the client on the cloud server host. When the cloud desktop image file stored on the end provides the cloud desktop service for the client, the user's modification of the cloud desktop image file is recorded.
  • the second synchronization module 706 can only synchronize the modification data of the cloud desktop image file by the client, and if the previous failure is due to the storage device of the server being broken, the cloud desktop image file stored thereon is damaged, then the second synchronization module 706 synchronously modifies the data.
  • the time is not only the modification data of the cloud desktop image file by the client in the process. In this case, the second synchronization module 706 may need to synchronize the data of all the cloud desktop image files stored in the terminal to the server. 80.
  • the second synchronization module 706 synchronizes the data with the purpose of making the server consistent with the cloud desktop image file corresponding to the client saved by the client.
  • the second synchronization module 706 can preferentially mirror the cloud desktop of the client 70.
  • the modification of the file is synchronized to the server 80.
  • This process is the opposite of the client 70 cache cloud desktop image file.
  • the cache is regarded as a secondary process, and the synchronization process is used as the main process, which can preferentially enjoy the network bandwidth and the disk. Resources such as read and write functions.
  • the priority principle may affect the user experience.
  • the second synchronization module 706 may first query the user before prioritizing the data, if the user If you agree, the client's data will be synchronized first. Otherwise, other processes will be allowed to occupy bandwidth and disk read and write, and data synchronization will be performed when there are remaining resources.
  • the client 70 can be disposed on various types of terminal devices, such as a PC, a tablet, a phone, etc., wherein the second cache module 702 in the client 70 can be shared by the processor and the memory of the terminal.
  • the processor obtains the cloud desktop image file from the server, and then stores it in the memory.
  • the server 80 in this embodiment is mainly implemented by a server, wherein the remote calling module 802 can be implemented by a processor of the server.
  • the processor of the server passes through the output interface of the memory.
  • the cloud desktop image file is read in the memory of the device, and the cloud desktop service is provided to the end user through the network.
  • the client 50 in the third embodiment can also implement the modification record of the image file and the effect of synchronizing the modification to the server.
  • the client 50 includes a local invocation module 502, a first caching module 504, a first recording module 506, and a first synchronization module 508.
  • the server can normally provide the cloud desktop service
  • the system can be switched in the system currently started by the client device, and the system boot program can be restored to the client 50 or the client 70 using the terminal.
  • the version of the original desktop image file that was stored is changed to the original MBR.
  • make the relevant system boot information compatible with the original that is, compatible with the original terminal operating system information in the relevant MBR information.
  • the user can refer to the relevant boot of the original operating system after restarting, and enter the original operating system normally. After entering the original operating system, the user can choose to log in to the login interface of the original virtual cloud desktop.
  • the user After entering the original operating system, the user can enter the login interface of the virtual cloud desktop and enter the username and password of the virtual cloud desktop system for authentication. After the authentication is passed, the first synchronization module 508 or the second synchronization module 706 determines the client.
  • the cloud desktop image file cached by the terminal 50 or the client 70 has a data modification record.
  • the first synchronization module 508 or the second synchronization module 706 may prompt the user to synchronize the modification data about the cloud desktop image file to the server according to the user's selection.
  • the first synchronization module 508 or the second synchronization module 706 can prompt the user that data is currently being processed. After the synchronization is complete, the user can successfully log in to the server to perform normal operations in the cloud desktop system provided by the normal mode.
  • the second recording module 704 of the client 70 in the embodiment and the first recording module 506 of the client 50 in the third embodiment may be implemented by the terminal device processor, and the functions of the first synchronization module 508 and the second synchronization module 706 It can be implemented by a processor and a communication unit in the terminal.
  • the cloud desktop disaster recovery system provided in this embodiment is mainly for the storage incident of the server 80.
  • the cloud server host of the server 80 cannot obtain the cloud desktop image file from the terminal to provide the cloud desktop service for the user, the cloud The server host can continue to provide the cloud desktop service to the user by using the cloud desktop image file stored in the terminal, and the solution can improve the user experience because the user hardly perceives the change.
  • the client when the client uses the cloud desktop image file stored by the terminal, the client can modify the image file.
  • the server can provide the cloud desktop service normally, the client pair is used.
  • the modification of the cloud desktop image file is synchronized to the server, so that the image file data in the server is consistent with the image file in the client, so that the user can use it under normal circumstances or after a network accident or a storage accident. Go to the same cloud desktop image file to minimize the loss and inconvenience caused by the transition before and after the accident.
  • Embodiment 5 is a diagrammatic representation of Embodiment 5:
  • Embodiments of the present disclosure also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the storage medium is further arranged to store program code for performing the following steps:
  • the cloud desktop image file is invoked through the network to continue providing the cloud desktop service to the user.
  • the storage medium is further arranged to store program code for performing the following steps:
  • the client invokes the cloud desktop image file stored in the terminal to provide the cloud desktop service to the user.
  • the storage medium is further arranged to store program code for performing the following steps:
  • the client extracts the required cloud desktop image file from the server and stores it locally.
  • the storage medium is further arranged to store program code for performing the following steps:
  • the client performs format processing on the cloud desktop image file.
  • the client loads the processed cloud desktop image file according to the modified system boot information, and obtains a cloud desktop system for providing a cloud desktop service for the user.
  • the storage medium is further arranged to store program code for performing the following steps:
  • the client synchronizes the modification record to the server.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • the processor executes the method steps described in the foregoing embodiments according to the stored program code in the storage medium.
  • modules or steps of the above embodiments of the present disclosure may be implemented by a general computing device, which may be concentrated on a single computing device or distributed among multiple computing devices.
  • they may be implemented by program code executable by the computing device, such that they may be stored in a storage medium (ROM/RAM, disk, optical disk) by a computing device, and in some
  • the steps shown or described may be performed in an order different from that herein, or they may be separately fabricated into individual integrated circuit modules, or a plurality of the modules or steps may be implemented as a single integrated circuit module. Therefore, the present disclosure is not limited to any specific combination of hardware and software.
  • the cloud desktop image file is stored in the terminal in advance, and when the preset condition is met, the cloud desktop service is provided to the user by calling the cloud desktop image stored in the terminal.
  • the cloud desktop disaster recovery method, the client, the server, the cloud desktop disaster recovery system, and the storage medium provided by the embodiments of the present disclosure not only make the disaster recovery for the cloud desktop service depend on the standby resources set by the server, such as the backup storage device. Or the backup network port, etc., and because the cloud desktop image file is stored on the client side, the client can be used normally regardless of the failure of the server storage device or the network interruption between the server and the client.
  • the service provided by the cloud desktop image file of the terminal storage enhances the reliability of the disaster recovery solution and improves the disaster recovery effect and user experience.

Abstract

The embodiments of the present disclosure provide a cloud-desktop disaster recovery method, client, server, cloud-desktop disaster recovery system, and storage medium; pre-storing on a terminal an image file of the cloud desktop; when preset conditions are satisfied, providing a cloud-desktop service to a user by means of invoking the cloud-desktop image stored on the terminal. The cloud-desktop disaster recovery solution provided by the embodiments of the present disclosure is such that not only is it unnecessary for the cloud-desktop service to rely on a backup resource on a server, but since the cloud-desktop image file is stored on the client side, it is possible to ensure that the client may use normally the service provided on the basis of the cloud-desktop image file stored on the terminal, regardless of whether there is a failure on the server storage device or a network disruption between the server and the client; in comparison with related disaster recovery solutions, the present solution has enhanced reliability and improved disaster recovery performance and user experience.

Description

云桌面容灾方法、客户端、服务端、云桌面容灾系统及存储介质Cloud desktop disaster recovery method, client, server, cloud desktop disaster recovery system, and storage medium 技术领域Technical field
本公开涉及云计算技术领域,尤其涉及一种云桌面容灾方法、客户端、服务端、云桌面容灾系统及存储介质。The present disclosure relates to the field of cloud computing technologies, and in particular, to a cloud desktop disaster recovery method, a client, a server, a cloud desktop disaster recovery system, and a storage medium.
背景技术Background technique
随着云计算技术的不断发展,虚拟云桌面在各个行业的应用越来越广泛,虚拟云桌面是在弱化用户终端的情况下,尽可能地利用远端服务器的计算资源,以视窗方式呈现给用户,并实现综合管理的一种虚拟云计算技术。虚拟云桌面需要服务器侧供给内存、存储、CPU等核心资源,同时以优秀的网络架构作为支撑。With the continuous development of cloud computing technology, virtual cloud desktops are more and more widely used in various industries. Virtual cloud desktops use the computing resources of remote servers as much as possible in the case of weakening user terminals. A virtual cloud computing technology for users and integrated management. The virtual cloud desktop requires the server side to supply core resources such as memory, storage, and CPU, and is supported by an excellent network architecture.
通过虚拟云面技术可实现桌面(包括系统、应用、数据)和设备的分离,使桌面的管理完全集中到服务器,从而实现桌面系统的集中管理,极大的降低运维的工作量。同时终端的数据安全得到了保障,并且用户能够实现随时随地进行个人桌面访问。因此,和传统桌面管理相比,虚拟云桌面不仅具备部署使用方便、运维管理统一高效、信息安全度高等优点,而且有利于终端节能、降低终端成本、实现远端办公等。The virtual cloud surface technology can realize the separation of the desktop (including the system, the application, the data) and the device, and the management of the desktop is completely centralized to the server, thereby realizing the centralized management of the desktop system and greatly reducing the workload of the operation and maintenance. At the same time, the data security of the terminal is guaranteed, and the user can realize personal desktop access anytime and anywhere. Therefore, compared with traditional desktop management, the virtual cloud desktop not only has the advantages of convenient deployment, unified operation and maintenance management, high information security, but also benefits terminal energy saving, lower terminal cost, and remote office.
但正是由于虚拟云桌面业务对服务器资源的依赖,所以当云服务器出现存储资源异常、网络中断等情形时,就会造成用户侧无法使用其虚拟云桌面的情况。目前,针对虚拟云桌面存储容灾方案一般都是在服务器侧设置备用资源。例如,为了防止因为云服务器侧的存储设备无法使用或者云服务器主机与主用存储设备无法连接而造成的故障,通常会在服务器侧设置一个备用存储设备,和主用存储设备一样,备用存储设备也设置为存储用户的虚拟云桌面资源,当云服务器主机无法正常使用主用存储设备时,可以连接到备用存储设备上,利用备用存储设备上的云桌面资源继续为用户提供虚拟云桌面业务。同样地,为了避免因终端设备与服务器侧之间因网络中断而造成的故障,相关技术中一般也会在服务器侧设置专门的备用 网口,一旦主用网口出现问题,则可以切换至备用网口上,由备用网口接替主用网口进行工作。However, due to the dependence of the virtual cloud desktop service on the server resources, when the cloud server has abnormal storage resources and network interruption, the user side cannot use the virtual cloud desktop. At present, the disaster recovery solution for the virtual cloud desktop storage generally sets the standby resources on the server side. For example, in order to prevent the failure of the storage device on the cloud server side or the failure of the cloud server host to connect to the primary storage device, a backup storage device is usually set on the server side, and the backup storage device is the same as the primary storage device. It is also configured to store the user's virtual cloud desktop resources. When the cloud server host fails to use the primary storage device, the cloud server can continue to provide virtual cloud desktop services to the user by using the cloud desktop resources on the standby storage device. Similarly, in order to avoid the failure caused by the network interruption between the terminal device and the server side, the related art generally also sets a special backup on the server side. If the network port is faulty, you can switch to the backup network port. The backup network port takes over the active network port.
不难看出,相关技术中的容灾方案存在众多缺陷,例如,通过设置备用存储设备的容灾方案对成本的要求本身就比较高,通常极少有设备厂家会在服务侧设备上设置备用存储设备,如果由云桌面服务提供商自己部署备用存储设备又会花费较高的资金成本。另外,即使是在云服务器侧设置了备用存储设备,也还是会存在其他问题,例如,由于主用存储设备出现故障的情况毕竟比较少,所以备用存储设备的使用几率也比较低,大多数时候,备用存储设备都处于闲置、甚至无人管理的情况中,所以当主用存储设备出现问题的时候,很难保证备用存储设备就一定是处于正常状态的。对于网络故障的容灾方案,也同样存在问题:本领域技术人员都应当知道,在因为网络故障而导致用户无法使用虚拟云桌面资源的时候,不一定就是因为服务器侧的网口出现故障而引起的,也很有可能是因为运营商提供的网络本身就存在问题,所以在这种情况下,即使在服务器侧设置再多的网口也是无济于事的。It is not difficult to see that there are many defects in the disaster recovery solution in the related technologies. For example, the cost requirement of the disaster recovery solution by setting up the backup storage device is relatively high. Usually, few device manufacturers set up the backup storage on the service side device. Equipment, if deployed by the cloud desktop service provider itself, will cost a lot of money. In addition, even if an alternate storage device is set on the cloud server side, there are still other problems. For example, since the primary storage device fails, the usage of the backup storage device is relatively low, most of the time. The backup storage device is in an idle or even unmanaged state. Therefore, when the primary storage device has a problem, it is difficult to ensure that the backup storage device is in a normal state. For the disaster recovery solution of the network fault, there is also a problem: those skilled in the art should know that when the user cannot use the virtual cloud desktop resource due to the network failure, it is not necessarily caused by the failure of the network port on the server side. It is also very likely that the network provided by the operator itself has problems, so in this case, even if there are more network ports on the server side, it will not help.
综上,相关技术中针对虚拟云桌面的容灾方案存在很多的不合理或者不完整,所以导致相关容灾方案的容灾效果不好,为了用户能够更加放心的使用虚拟云桌面业务,现在亟需提供一种合理的容灾方案。In summary, there are many unreasonable or incomplete disaster recovery solutions for virtual cloud desktops in related technologies. As a result, the disaster recovery effect of related disaster recovery solutions is not good. In order to enable users to use virtual cloud desktop services more confidently, now 亟A reasonable disaster recovery plan is needed.
发明内容Summary of the invention
本公开实施例提供的云桌面容灾方法、客户端、服务端、云桌面容灾系统及存储介质,主要解决的技术问题是提供一种不需要依赖服务端侧的备用资源的云桌面容灾方案,用以解决相关技术中容灾方案依赖服务端侧的备用资源而导致的容灾效果不佳,方案不合理的问题。The cloud desktop disaster recovery method, the client, the server, the cloud desktop disaster recovery system, and the storage medium provided by the embodiments of the present disclosure mainly provide a cloud desktop disaster recovery that does not need to depend on the standby resources on the server side. The solution is to solve the problem that the DR solution in the related technology depends on the backup resources on the server side and the disaster recovery effect is poor and the solution is unreasonable.
为解决上述技术问题,本公开实施例提供一种云桌面容灾方法,包括:To solve the above technical problem, the embodiment of the present disclosure provides a cloud desktop disaster recovery method, including:
在满足预设条件时,服务端调用存储在终端的云桌面镜像文件为用户提供云桌面服务。 When the preset condition is met, the server invokes the cloud desktop image file stored in the terminal to provide the cloud desktop service to the user.
本公开实施例还提供一种云桌面容灾方法,包括:The embodiment of the present disclosure further provides a cloud desktop disaster recovery method, including:
在满足预设条件时,客户端调用存储在终端的云桌面镜像文件为用户提供云桌面服务。When the preset condition is met, the client invokes the cloud desktop image file stored in the terminal to provide the cloud desktop service to the user.
本公开实施例还提供一种客户端,包括:The embodiment of the present disclosure further provides a client, including:
本地调用模块,设置为在满足预设条件时,调用存储在终端的云桌面镜像文件为用户提供云桌面服务。The local calling module is set to invoke the cloud desktop image file stored in the terminal to provide the cloud desktop service to the user when the preset condition is met.
本公开实施例还提供一种服务端,包括:The embodiment of the present disclosure further provides a server, including:
远端调用模块,设置为在满足预设条件时,调用存储在终端的云桌面镜像文件为用户提供云桌面服务。The remote calling module is configured to invoke a cloud desktop image file stored in the terminal to provide a cloud desktop service to the user when the preset condition is met.
本公开实施例还提供一种云桌面容灾系统,包括服务端和如上所述的客户端;或,包括客户端和如上所述的服务端。The embodiment of the present disclosure further provides a cloud desktop disaster recovery system, including a server and a client as described above; or a client and a server as described above.
本公开实施例还提供一种存储介质,所述存储介质中存储有计算机可执行指令,所述计算机可执行指令设置为执行前述的任一项的云桌面容灾方法。The embodiment of the present disclosure further provides a storage medium having stored therein computer executable instructions, the computer executable instructions being configured to perform the cloud desktop disaster tolerance method of any of the foregoing.
本公开实施例提供的云桌面容灾方法、客户端、服务端、云桌面容灾系统以及存储介质,预先将云桌面镜像文件并存储在终端中,当满足预设条件的时候,通过调用存储在终端的云桌面镜像为用户提供云桌面服务。本公开实施例提供的云桌面容灾方法、客户端、服务端、云桌面容灾系统以及存储介质不仅使得针对云桌面服务的容灾不需要依赖于服务端设置的备用资源,如备用存储设备或备用网口等,而且由于云桌面镜像文件存储在客户端侧,所以无论是在服务端存储设备出现故障或者是服务端与客户端之间出现网络中断的情况,都能保证客户端正常使用基于终端存储的云桌面镜像文件所提供的服务,与相关的容灾方案相比,增强了容灾方案的可靠性,提高了容灾效果和用户体验。The cloud desktop disaster recovery method, the client, the server, the cloud desktop disaster recovery system, and the storage medium provided by the embodiments of the present disclosure pre-store the cloud desktop image file in the terminal, and when the preset condition is met, the storage is invoked. The cloud desktop image of the terminal provides the user with a cloud desktop service. The cloud desktop disaster recovery method, the client, the server, the cloud desktop disaster recovery system, and the storage medium provided by the embodiments of the present disclosure not only make the disaster recovery for the cloud desktop service depend on the standby resources set by the server, such as the backup storage device. Or the backup network port, etc., and because the cloud desktop image file is stored on the client side, the client can be used normally regardless of the failure of the server storage device or the network interruption between the server and the client. Compared with the related disaster recovery solution, the service provided by the cloud desktop image file of the terminal storage enhances the reliability of the disaster recovery solution and improves the disaster recovery effect and user experience.
附图说明DRAWINGS
图1为本公开实施例一提供的云桌面容灾方法的一种流程图; FIG. 1 is a flowchart of a cloud desktop disaster recovery method according to Embodiment 1 of the present disclosure;
图2为本公开实施例一中客户端调用终端存储的云桌面镜像文件提供云桌面服务的一种流程图;2 is a flowchart of providing a cloud desktop service by a cloud desktop image file stored by a client in a terminal according to Embodiment 1 of the present disclosure;
图3为本公开实施例二提供的云桌面容灾方法的一种流程图;FIG. 3 is a flowchart of a cloud desktop disaster recovery method according to Embodiment 2 of the present disclosure;
图4为本公开实施例二中服务端端调用终端存储的云桌面镜像文件提供云桌面服务的一种流程图;4 is a flowchart of providing a cloud desktop service by using a cloud desktop image file stored by a server end calling terminal in the second embodiment of the present disclosure;
图5为本公开实施例三提供的客户端的一种结构示意图;FIG. 5 is a schematic structural diagram of a client according to Embodiment 3 of the present disclosure;
图6为本公开实施例三提供的客户端的另一种结构示意图;FIG. 6 is another schematic structural diagram of a client according to Embodiment 3 of the present disclosure;
图7为本公开实施例四提供的客户端的一种结构示意图;FIG. 7 is a schematic structural diagram of a client according to Embodiment 4 of the present disclosure;
图8为本公开实施例四提供的服务端的一种结构示意图;FIG. 8 is a schematic structural diagram of a server provided by Embodiment 4 of the present disclosure;
图9为本公开实施例四提供的云桌面容灾系统的一种结构示意图;FIG. 9 is a schematic structural diagram of a cloud desktop disaster recovery system according to Embodiment 4 of the present disclosure;
图10为本公开实施例四提供的客户端的另一种结构示意图;FIG. 10 is another schematic structural diagram of a client according to Embodiment 4 of the present disclosure;
图11为本公开实施例三提供的客户端的又一种结构示意图。FIG. 11 is still another schematic structural diagram of a client according to Embodiment 3 of the present disclosure.
具体实施方式detailed description
下面通过可选实施方式结合附图对本公开实施例作详细说明。The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
实施例一:Embodiment 1:
由于相关技术中的容灾方案依赖于服务端侧的备用资源,所以存在因为容灾方案不合理而导致的容灾效果不好的技术问题,为了这个问题,本实施例提出一种云桌面容灾方法。Because the disaster recovery solution in the related art relies on the backup resource on the server side, there is a technical problem that the disaster tolerance effect is not good due to the unreasonable disaster recovery solution. For this problem, the present embodiment proposes a cloud desktop capacity. Disaster method.
在满足预设条件时,客户端调用存储在终端的云桌面镜像文件为用户提供云桌面服务。When the preset condition is met, the client invokes the cloud desktop image file stored in the terminal to provide the cloud desktop service to the user.
事实上,满足预设条件的情况就是客户端无法享受服务端通过正常方式提供的云桌面业务了。本实施例所说的预设条件可以是以下两个种的至少一个,当然也可以两个条件同时满足:In fact, the situation that meets the preset conditions is that the client cannot enjoy the cloud desktop service provided by the server in the normal way. The preset condition in this embodiment may be at least one of the following two types, and of course, two conditions may be simultaneously satisfied:
第一、服务端与客户端之间的网络连接中断。 First, the network connection between the server and the client is interrupted.
第二、云服务器主机无法挂载到服务端侧的存储设备上。也即云服务器无法从服务端侧获取到客户端需要的云桌面资源。Second, the cloud server host cannot be mounted to the storage device on the server side. That is, the cloud server cannot obtain the cloud desktop resources required by the client from the server side.
可以理解的是,预设条件除了包括服务端与客户端之间出现网络故障或者是服务端侧出现存储故障以外,还应当包括其他故障,例如服务端出现断电等状况。It can be understood that, in addition to the network failure between the server and the client or the storage failure on the server side, the preset condition should include other faults, such as a power outage at the server end.
本领域技术人员可以理解的是,云桌面镜像文件应当预先存储到终端当中,在本实施例中,客户端可以在能够正常使用服务端提供的云桌面服务时将云桌面镜像文件从服务端缓存至终端。请参见图1:It can be understood by those skilled in the art that the cloud desktop image file should be pre-stored in the terminal. In this embodiment, the client can cache the cloud desktop image file from the server when the cloud desktop service provided by the server can be used normally. To the terminal. See Figure 1:
S102、当能正常使用服务端提供的云桌面服务时,客户端从服务端中提取其需要的云桌面镜像文件并存储在终端中。S102. When the cloud desktop service provided by the server is used normally, the client extracts the required cloud desktop image file from the server and stores it in the terminal.
服务端通常包括云服务器主机和存储设备。在一个云桌面系统当中,可能会存在多个客户端,所以存储设备上应当会存储多个客户端的云桌面镜像文件,这对于服务端的存储空间要求较高。在本实施例中,存储设备可以是RAID(Redundant Arrays of Independent Disks,磁盘阵列)或者由RAID组成的MAID(massive array of idle disks,大规模非活动磁盘阵列)。各个客户端的云桌面镜像文件在服务端的存储设备上都是以单独的文件的形式存在的,其格式可以是VHD(Virtual Hard Disk format,微软虚拟磁盘文件)格式。The server usually includes a cloud server host and a storage device. In a cloud desktop system, there may be multiple clients. Therefore, the cloud desktop image file of multiple clients should be stored on the storage device. This requires high storage space on the server. In this embodiment, the storage device may be a RAID (Redundant Arrays of Independent Disks) or a MAID (massive array of idle disks) composed of RAID. The cloud desktop image file of each client exists in the form of a separate file on the storage device of the server. The format can be VHD (Virtual Hard Disk format) format.
服务端的存储设备可以分为主用存储设备和备用存储设备,在大多数情况下,都是主用存储设备处于工作状态来提供云桌面服务。在服务端为客户端提供云桌面服务的时候,云服务器主机挂载到主用存储设备下,通过虚拟进程调用主用存储设备中该客户端的相关镜像数据并持续不断地利用运营商提供的网络将相关图像以及用户操作信息以视窗的形式呈现给客户端。The storage device on the server can be divided into a primary storage device and a backup storage device. In most cases, the primary storage device is in a working state to provide a cloud desktop service. When the server provides the cloud desktop service to the client, the cloud server host is mounted on the active storage device, and the virtual machine processes the related mirror data of the client in the active storage device and continuously uses the network provided by the operator. The related image and the user operation information are presented to the client in the form of a window.
从上述过程中可以看出,客户端正常使用云桌面业务至少需要满足这样两个条件:首先,云服务器主机能够挂载到主用存储设备上,也就是说,云服务器主机与主用存储设备之间不能出现断链的情况。另一方面,服务 端与客户端之间的网络必须保持畅通,不能出现网络中断的情况,网络中断包括因为服务端网口故障引起的网络中断和由于运营商提供的网络本身的问题所引起的故障。As can be seen from the above process, the client must use the cloud desktop service to meet at least two conditions: First, the cloud server host can be mounted to the primary storage device, that is, the cloud server host and the primary storage device. There can be no broken links between them. On the other hand, service The network between the terminal and the client must be kept clear, and the network interruption cannot occur. The network interruption includes the network interruption caused by the failure of the server network port and the failure caused by the problem of the network itself provided by the operator.
为了保证服务端出现存储故障或者是客户端与服务端之间出现网络故障的时候,客户端还依然能够使用云桌面镜像文件,所以本实施例中,当服务端正常提供的云桌面业务的时候,可以将服务端中该客户端需要的云桌面镜像文件提取出来,并缓存到终端中。The client can still use the cloud desktop image file in the case of a network fault between the client and the server. Therefore, in this embodiment, when the server provides the cloud desktop service normally. The cloud desktop image file required by the client in the server can be extracted and cached in the terminal.
可以理解的是,由于缓存云桌面镜像文件需要一定的存储空间,所以,在本实施例中,要求终端预留一定的空间用于存储其需要的云桌面镜像文件。但对于客户端来说这个要求并不是很难,因为就相关的各种终端而言,一般都会有几十甚至上百GB的存储空间处于闲置状态。所以,本实施例中将云桌面镜像文件缓存至客户端,有效地利用了闲置资源,从而提高了客户端设备的资源利用率,同时又避免了在服务端设置备用资源所必须的资金消耗,从这两方面来说,本实施例提供的云桌面容灾方法实现了对资源的优化配置。It can be understood that, because the cached cloud desktop image file requires a certain storage space, in this embodiment, the terminal is required to reserve a certain space for storing the cloud desktop image file that it needs. However, this requirement is not very difficult for the client, because in terms of various terminals, there are usually dozens or even hundreds of GB of storage space in an idle state. Therefore, in this embodiment, the cloud desktop image file is cached to the client, and the idle resource is effectively utilized, thereby improving the resource utilization of the client device, and avoiding the capital consumption necessary for setting the standby resource on the server. The cloud desktop disaster recovery method provided in this embodiment implements optimal configuration of resources.
由于缓存云桌面镜像文件的时候需要占用网络带宽和客户端本地的读写端口,为了不影响客户端正常使用服务端提供的云桌面服务,本实施例中,在缓存云桌面镜像文件之前还可以先判断判断客户端是否具备空闲资源,当是时,才进行云桌面镜像文件的缓存。在本实施例中,也可以将缓存云桌面镜像文件的进程的优先级设置为次级,也就是说,将该缓存进程作为次要进程,当用户当前的操作需要占用网络带宽或者使用到本地磁盘的读写能力时,则优先执行用户当前的操作任务。当有剩余带宽或磁盘读写能力时,方可继续缓存云桌面镜像文件。当缓存任务结束之后,可以将缓存结果通报给服务端或客户端中的至少一个,较好的做法是将缓存结果同时告知客户端与服务端。In the embodiment, before the cloud desktop image file is cached, the cloud desktop image file needs to be occupied by the cloud desktop image file. First determine whether the client has idle resources, and when it is, cache the cloud desktop image file. In this embodiment, the priority of the process of caching the cloud desktop image file may also be set to secondary, that is, the cache process is regarded as a secondary process, and the current operation of the user needs to occupy network bandwidth or be used locally. When the disk is read or written, the user's current operation task is prioritized. The cloud desktop image file can continue to be cached when there is remaining bandwidth or disk read/write capability. After the cache task ends, the cached result can be notified to at least one of the server or the client. Preferably, the cached result is simultaneously notified to the client and the server.
S104、在满足预设条件时,客户端调用存储在终端的云桌面镜像文件为用户提供云桌面服务。 S104. When the preset condition is met, the client invokes the cloud desktop image file stored in the terminal to provide the cloud desktop service to the user.
针对客户端无法使用到服务端通过正常方式提供的云桌面业务的问题,在本实施例提出这样的解决方案:即调用终端中存储的云桌面镜像文件为用户提供云桌面服务。请参考图2,图2是客户端调用存储在终端的云桌面镜像文件为用户提供云桌面服务的一种流程图:For the problem that the client cannot use the cloud desktop service provided by the server in the normal manner, the solution is to provide the cloud desktop service file for the user by calling the cloud desktop image file stored in the terminal. Please refer to FIG. 2. FIG. 2 is a flow chart of the client calling the cloud desktop image file stored in the terminal to provide the cloud desktop service to the user:
S202、客户端对云桌面镜像文件进行格式处理。S202: The client processes the format of the cloud desktop image file.
客户端对缓存到终端的云桌面镜像文件进行处理可以是在云桌面镜像文件刚缓存结束的时候,当然也可以是在需要使用终端存储的云桌面镜像文件的时候。在本实施例中,为了让客户端在无法使用服务端通过正常方式提供的云桌面业务时,能够立即切换至终端存储的云桌面镜像文件,而不影响用户的正常工作,可以将该处理流程设置在云桌面镜像文件缓存完成之后,这样能够减少用户的等待时间,提高用户体验。The client can process the cloud desktop image file cached to the terminal when the cloud desktop image file is just cached, or when the cloud desktop image file stored by the terminal is used. In this embodiment, in order to enable the client to switch to the cloud desktop image file stored in the terminal without using the cloud desktop service provided by the server in the normal manner, without affecting the normal work of the user, the process may be performed. After the cloud desktop image file cache is completed, this can reduce the user's waiting time and improve the user experience.
对云桌面镜像文件的处理主要就是对镜像文件进行再编译的过程,由于云桌面镜像文件之前在服务端的存储设备是VHD的格式,而现在需要将其作为操作系统使用,所以必须对其进行格式处理,重新编码,让客户端设备可以识别出其是操作系统。The processing of the cloud desktop image file is mainly the process of recompiling the image file. Since the storage device on the server before the cloud desktop image file is in the VHD format, it needs to be used as the operating system, so it must be formatted. Process, re-encode, so that the client device can recognize that it is the operating system.
S204、客户端修改系统引导信息。S204. The client modifies system boot information.
由于在这种情况下,客户端设备需要启用之前不同的操作系统,所以需要对终端设备的系统引导信息进行修改,即需要修改原有操作系统的MBR(Master Boot Record,硬盘主引导记录)等信息,该修改会在设备重启之后生效。可以理解的是,有可能用户当前并不是十分需要使用云桌面镜像文件,所以即使客户端当前不能使用服务端通过正常方式向其提供的云桌面服务也没什么关系,所以,在这种情况下,用户可能不需要启用终端存储的云桌面镜像,而更愿意等待网络正常或者云服务器主机与存储设备自行恢复正常。故,为了充分维护用户的意愿,可以在网络连接中断或存储断链之后、修改系统引导信息之前,向用户发出提示信息,询问用户是否要使用本机缓存下来的云桌面镜像文件。当用户选择是的时候,才修改MBR等相关信息。在本实施例一种较好的示例当中,还可以根据用 户的指令随时启用终端缓存的云桌面镜像文件,即用户在需要的时候输入特定的指令,这时候再对系统引导程序进行修改,这种方式在很大程度上提高了用户的自主性。In this case, the client device needs to be enabled with different operating systems. Therefore, you need to modify the system boot information of the terminal device, that is, you need to modify the MBR (Master Boot Record) of the original operating system. Information, this modification will take effect after the device is restarted. Understandably, it is possible that the user does not currently need to use the cloud desktop image file very much, so even if the client cannot currently use the cloud desktop service provided by the server in the normal way, it does not matter, so in this case, The user may not need to enable the cloud desktop image stored by the terminal, but prefers to wait for the network to be normal or the cloud server host and the storage device to resume normal. Therefore, in order to fully maintain the user's will, after the network connection is interrupted or the storage is broken, and the system boot information is modified, a prompt message is sent to the user to ask whether the user wants to use the cloud desktop image file cached by the local machine. When the user chooses yes, the MBR and other related information is modified. In a better example of this embodiment, it can also be used according to The user's instructions enable the cloud desktop image file of the terminal cache at any time, that is, the user inputs a specific instruction when needed, and then the system boot program is modified, which greatly improves the user's autonomy.
S206、客户端根据修改后的系统引导信息加载处理后的云桌面镜像文件,得到用于为用户提供云桌面服务的云桌面系统。S206: The client loads the processed cloud desktop image file according to the modified system boot information, and obtains a cloud desktop system for providing a cloud desktop service for the user.
修改系统引导信息之后,客户端设备会进行重启,重启之后引导终端设备进入云桌面镜像文件所对应的系统中。这时,用户就又可以使用云桌面镜像文件提供的服务了,只是这时候服务的提供者不再是服务端,而是客户端本身了。而且在这种情况下几乎不需要服务端的参与。After the system boot information is modified, the client device restarts. After the restart, the terminal device is booted into the system corresponding to the cloud desktop image file. At this time, the user can use the service provided by the cloud desktop image file again, but at this time the service provider is no longer the server, but the client itself. And in this case, almost no server involvement is required.
本公开实施例提供的云桌面容灾方法,通过将客户端需要的云桌面镜像文件并存储在客户端,使客户端可以在网络故障或者服务端存储故障的时候能够根据终端中存储的云桌面镜像文件为用户提供云桌面服务,增强了容灾方案的可靠性,提高了容灾效果和用户体验。而且,本实施例在进行云桌面镜像缓存和启用终端存储的云桌面镜像文件之前,都充分考虑了用户当前的需求和意愿,所以使得本实施例的云桌面容灾方法更人性化,符合用户意愿。The cloud desktop disaster recovery method provided by the embodiment of the present disclosure can store the cloud desktop image file required by the client on the client, so that the client can be based on the cloud desktop stored in the terminal when the network is faulty or the server is faulty. The image file provides the cloud desktop service for users, which enhances the reliability of the disaster recovery solution and improves the disaster recovery effect and user experience. Moreover, in this embodiment, the cloud desktop disaster recovery method of the embodiment is more user-friendly and conforms to the user, before the cloud desktop image cache and the cloud desktop image file of the terminal storage are enabled, and the user's current needs and wishes are fully considered. Willingness.
实施例二:Embodiment 2:
在实施例一中,当服务端出现存储故障的时候,客户端通过启用终端存储的云桌面镜像文件继续提供云桌面服务,针对因服务端出现存储断链而导致客户端无法使用服务端正常提供的云桌面服务的情况,本实施例提供的云桌面容灾方法能够给出另一种解决方案,请参考图3:In the first embodiment, when the storage fault occurs on the server, the client continues to provide the cloud desktop service by enabling the cloud desktop image file stored in the terminal, and the client cannot use the server to provide the storage terminal due to the storage disconnection. In the case of the cloud desktop service, the cloud desktop disaster recovery method provided in this embodiment can provide another solution. Please refer to FIG. 3:
S302、当客户端能正常使用服务端提供的云桌面服务时,从服务端中提取客户端需要的云桌面镜像文件并存储在终端中。S302. When the client can use the cloud desktop service provided by the server, the cloud desktop image file required by the client is extracted from the server and stored in the terminal.
本实施例中缓存云桌面镜像文件的过程可以参照实施例一中的过程,这里不再赘述。For the process of caching the cloud desktop image file in this embodiment, refer to the process in the first embodiment, and details are not described herein again.
S304、服务端调用存储在终端中的云桌面镜像文件为用户提供云桌面服务。 S304. The server invokes a cloud desktop image file stored in the terminal to provide a cloud desktop service for the user.
虽然此时云服务器主机无法从服务端的存储设备上获取到客户端所需要的云桌面镜像文件,但是由于现在服务端与客户端之间的网络连接依然完好,所以,云服务器主机能够通过网络挂载到客户端存储的云桌面镜像文件上,继续向用户提供云桌面服务。服务端调用存储在终端中的云桌面镜像文件为用户提供云桌面服务的流程如图4所示:Although the cloud server host cannot obtain the cloud desktop image file required by the client from the storage device of the server at this time, since the network connection between the server and the client is still intact, the cloud server host can hang through the network. It is loaded on the cloud desktop image file stored on the client and continues to provide cloud desktop services to users. The process in which the server invokes the cloud desktop image file stored in the terminal to provide the user with the cloud desktop service is as shown in FIG. 4:
S402、服务器主机挂载到终端存储云桌面镜像文件的存储目录下。S402: The server host is mounted to a storage directory of the terminal storage cloud desktop image file.
这里所说的服务器主机即为云服务器主机。挂载是指将一个设备挂接到一个已存在的目录上。然后该设备可以访问该目录来访问目录所在的设备,在本实施例中,云服务器主机就是通过挂接在终端的存储云桌面镜像文件的存储目录下,然后通过访问存储云桌面镜像文件的存储设备获取到云桌面镜像文件。The server host mentioned here is the cloud server host. Mounting refers to attaching a device to an existing directory. Then, the device can access the directory to access the device where the directory is located. In this embodiment, the cloud server host is connected to the storage cloud desktop image file in the storage directory of the storage cloud desktop image file, and then accesses the storage cloud desktop image file storage device. The device obtains the cloud desktop image file.
S404、服务器的主机通过网络调用云桌面镜像文件向用户继续提供云桌面服务。S404: The host of the server calls the cloud desktop image file to continue to provide the cloud desktop service to the user.
相较于实施例一中由客户端加载存储在终端的云桌面镜像文件的方案而言,在本实施例的方案中,对网络的要求可能会稍微高一些,因为此时不仅要保证用户能够正常使用服务端提供的云桌面服务,而且还要保证服务端能够通过网络从终端顺利地获取到云桌面镜像文件。Compared with the solution of loading the cloud desktop image file stored in the terminal by the client in the first embodiment, the requirement of the network may be slightly higher in the solution of the embodiment, because not only the user can be guaranteed at this time. The cloud desktop service provided by the server is normally used, and the server can also smoothly obtain the cloud desktop image file from the terminal through the network.
从另一方面来说,这个方案又具备实施例一的方案所不具备的优点,比如,从用户体验来说,本实施例中,用户在客户端使用云桌面服务的时候,几乎不会感知到该云桌面镜像文件来自终端。因为此时提供云桌面服务的依然是服务端,而客户端只需要接受这种服务就可以了,并不需要做进一步的处理。在这种情况下,相当于是终端的存储设备作为了服务端的“备用存储设备”,而对于客户端而言,提供云桌面镜像文件的是服务端的主用存储设备还是备用存储设备是没有任何影响的。因此,本实施例所提供的云桌面容灾方案更有利于用户的体验。On the other hand, this solution has the advantages that the solution of the first embodiment does not have. For example, in the user experience, in this embodiment, the user hardly perceives when using the cloud desktop service on the client side. The cloud desktop image file comes from the terminal. Because the cloud desktop service is still the server at this time, and the client only needs to accept the service, and does not need further processing. In this case, the storage device equivalent to the terminal acts as the “standby storage device” of the server, and for the client, whether the cloud desktop image file provides the server's primary storage device or the backup storage device has no effect. of. Therefore, the cloud desktop disaster recovery solution provided by this embodiment is more beneficial to the user experience.
S306、在调用存储在终端的云桌面镜像文件提供云桌面服务时,保存客户端对云桌面镜像文件的修改记录。 S306. When the cloud desktop service file stored in the terminal is used to provide the cloud desktop service, save the modification record of the cloud desktop image file by the client.
虽然此时使用的是客户端终端存储的云桌面镜像文件,但这只是一个暂时的过程,当服务端的云服务器主机与存储设备恢复正常的连接之后,云服务器主机还是会继续使用服务端存储设备上的云桌面镜像文件。因此,为了当云服务主机再次连接到其本地的存储设备上的时候,用户之前对云桌面镜像文件所做的修改记录继续存在,所以,在本实施例中还提供一种记录修改的机制,即在云服务器主机使用客户端存储的云桌面镜像文件为客户端提供云桌面服务的时候,就记录客户端对云桌面镜像文件的修改。Although the cloud desktop image file stored by the client terminal is used at this time, this is only a temporary process. After the cloud server host of the server and the storage device resume normal connection, the cloud server host will continue to use the server storage device. Cloud desktop image file. Therefore, in order to re-establish the record of the modification of the cloud desktop image file by the user when the cloud service host is connected to the local storage device again, a recording and modification mechanism is also provided in this embodiment. That is, when the cloud server host uses the cloud desktop image file stored by the client to provide the cloud desktop service to the client, the client changes the cloud desktop image file.
S308、当用户可再次正常使用云桌面业务时,将修改记录同步至服务端。S308. When the user can use the cloud desktop service normally, the modification record is synchronized to the server.
当服务端的存储链接恢复正常的时候,将之前记录的客户端对云桌面镜像文件的修改同步至服务端。可以理解的是,如果之前的故障只是由于云服务器主机无法连接到其存储设备上,而存储设备本身也并没有故障,保存在其上的云桌面镜像文件也依然完好无损,那么可以仅同步修改记录,即客户端对云桌面镜像文件的修改数据,而如果之前的故障是由于服务端的存储设备坏了,其上存储的云桌面镜像文件遭受到了损害,那么这里所说的同步修改数据就不仅仅是客户端在该过程中对云桌面镜像文件的修改数据了,这时候,可能需要将终端中所存储的所有的云桌面镜像文件的数据都同步到服务端包括使用终端云桌面镜像文件提供云桌面服务期间其对该文件的修改数据和之前缓存的云桌面镜像文件的原始数据。应当明白的是,该同步过程的目的在于使服务端与客户端所保存的该客户端对应的云桌面镜像文件一致。When the storage link of the server is restored to normal, the previously recorded client-side modification of the cloud desktop image file is synchronized to the server. It can be understood that if the previous fault is only because the cloud server host cannot connect to its storage device, and the storage device itself is not faulty, the cloud desktop image file saved on it is still intact, then only the synchronization can be modified. Record, that is, the client's modification data to the cloud desktop image file, and if the previous failure is due to the server's storage device being broken, the cloud desktop image file stored on it is damaged, then the synchronization modification data mentioned here is not only The client only needs to modify the data of the cloud desktop image file in the process. In this case, the data of all the cloud desktop image files stored in the terminal may be synchronized to the server, including using the terminal cloud desktop image file. The cloud desktop service has modified data for the file and raw data of the previously cached cloud desktop image file. It should be understood that the purpose of the synchronization process is to make the server consistent with the cloud desktop image file corresponding to the client saved by the client.
在本实施例中,当服务端的存储链接回复正常时,为了让用户尽早享受服务端通过正常方式所提供的云桌面服务,可以优先将客户端对云桌面镜像文件的修改同步至服务端。这个过程和客户端缓存云桌面镜像文件的相反,在客户端缓存云桌面镜像文件的时候是将缓存作为次要进程,而这里同步过程则被作为主要进程,能够优先享有网络带宽和磁盘的读写功能等资源。当然,如果用户当前正在处理比较重要的事情,这种优先原则可能会影响到用户体验,所以,在本实施例中,可以在优先同步数据之前先 向用户进行询问,如果用户同意,则优先将客户端的数据进行同步,否则,优先让其他进程占用带宽和磁盘读写,等到有剩余资源的时候才进行数据同步。In this embodiment, when the storage link of the server is back to normal, in order to allow the user to enjoy the cloud desktop service provided by the server in the normal manner as soon as possible, the modification of the cloud desktop image file by the client may be preferentially synchronized to the server. This process is the opposite of the client-cached cloud desktop image file. When the client caches the cloud desktop image file, the cache is used as the secondary process, and the synchronization process is used as the main process, which can preferentially enjoy the network bandwidth and disk read. Write resources such as functions. Of course, if the user is currently dealing with more important things, this priority principle may affect the user experience. Therefore, in this embodiment, it is possible to prioritize the synchronization of data. Ask the user. If the user agrees, the data of the client will be synchronized first. Otherwise, other processes will be allowed to occupy bandwidth and disk read and write, and data synchronization will be performed until there are remaining resources.
可以理解的是,S306和S308的流程在实施例一中也同样适用。在实施例一中,当得知服务端能够正常提供云桌面服务的时候,可以在客户端设备当前启动的系统中进行系统切换,可以将系统引导程序恢复到客户端使用终端存储的原桌面镜像文件之前的版本,即将MBR信息修改成原有的MBR。或者让相关的系统引导信息兼容原始的,即在相关的MBR信息中兼容原有终端操作系统信息,这时候用户可以在重启后引用原有操作系统的相关引导,并正常进入原有的操作系统,进入原有操作系统后用户可以选择登陆原有虚拟云桌面的登陆界面。It can be understood that the flow of S306 and S308 is also applicable in the first embodiment. In the first embodiment, when it is known that the server can normally provide the cloud desktop service, the system can be switched in the system currently started by the client device, and the system boot program can be restored to the original desktop image stored by the client using the terminal. The previous version of the file, the MBR information is modified to the original MBR. Or make the relevant system boot information compatible with the original, that is, compatible with the original terminal operating system information in the relevant MBR information. At this time, the user can refer to the relevant boot of the original operating system after restarting, and enter the original operating system normally. After entering the original operating system, the user can choose to log in to the login interface of the original virtual cloud desktop.
在进入到原有操作系统后,用户可以进入虚拟云桌面的登陆界面,输入虚拟云桌面系统的用户名密码进行鉴权,鉴权通过后,系统判断客户端缓存的云桌面镜像文件有过数据修改记录。这个时候可以提示用户,根据用户的选择将关于云桌面镜像文件的修改数据同步至服务端。在同步的过程中,系统可以提示用户当前正在进行数据。当同步完成后,用户成功登录可以到服务端通过正常方式提供的云桌面系统中进行正常的操作。After entering the original operating system, the user can enter the login interface of the virtual cloud desktop and enter the username and password of the virtual cloud desktop system for authentication. After the authentication is passed, the system determines that the cloud desktop image file cached by the client has data. Modify the record. At this time, the user can be prompted to synchronize the modified data about the cloud desktop image file to the server according to the user's selection. During the synchronization process, the system can prompt the user that data is currently being processed. After the synchronization is complete, the user can successfully log in to the server to perform normal operations in the cloud desktop system provided by the normal mode.
毫无疑义的是,在用户再次使用云桌面服务的时候,又可以利用空余磁盘读写能力以及网络带宽将客户端对服务端的云桌面镜像文件所进行的修改同步到终端,以应对下一次网络中断或者是存储断链事故。Undoubtedly, when users use the cloud desktop service again, they can use the free disk read and write capabilities and network bandwidth to synchronize the modifications made by the client to the server's cloud desktop image file to the terminal to deal with the next network. Interrupt or storage chain breakage.
本实施例提供的云桌面容灾方法,主要针对服务端出现存储事故的情况,在服务端的云服务器主机无法从终端获取到云桌面镜像文件从而为用户提供云桌面服务的时候,云服务器主机可以通过挂载到终端,利用终端存储的云桌面镜像文件继续为用户提供云桌面服务,而且该方案由于几乎不会使用户感知到变化,所以能够提高用户体验。The cloud desktop disaster recovery method provided in this embodiment is mainly directed to a storage accident in the server. When the cloud server host on the server cannot obtain the cloud desktop image file from the terminal to provide the cloud desktop service to the user, the cloud server host can By mounting to the terminal, the cloud desktop image file stored by the terminal is used to continue to provide the cloud desktop service to the user, and the solution can improve the user experience because the user is hardly perceived to change.
在本实施例和实施例一中,能够在客户端使用终端存储的云桌面镜像文件的时候记录客户端对镜像文件的修改,当服务端能够正常提供云桌面 服务的时候,会将客户端对云桌面镜像文件的修改同步至服务端,使服务端中的镜像文件数据与客户端中的镜像文件保持一致,从而使用户无论是在正常情况下,还是在网络事故或存储事故之后都能使用到相同的云桌面镜像文件,尽量减少了事故前后的转变给用户带来的损失与不便。In this embodiment and the first embodiment, when the client uses the cloud desktop image file stored by the terminal, the client can record the modification of the image file, and the server can provide the cloud desktop normally. When the service is used, the client's modification of the cloud desktop image file is synchronized to the server, so that the image file data in the server is consistent with the image file in the client, so that the user is in the normal situation or in the normal situation. The same cloud desktop image file can be used after a network accident or a storage accident, minimizing the loss and inconvenience caused by the transition before and after the accident.
实施例三:Embodiment 3:
本实施例提供一种客户端,请参考图5,该客户端50包括本地调用模块502,本地调用模块502设置为在满足预设条件时,调用存储在终端的云桌面镜像文件为用户提供云桌面服务。This embodiment provides a client. Referring to FIG. 5, the client 50 includes a local calling module 502. The local calling module 502 is configured to invoke a cloud desktop image file stored in the terminal to provide a cloud to the user when the preset condition is met. Desktop service.
用于在服务端能够正常提供云桌面服务的时候将其需要的云桌面镜像文件缓存至终端,当服务端无法正常提供云桌面服务的时候,调用终端存储的云桌面镜像文件为用户提供云桌面服务。When the cloud desktop service is enabled on the server, the cloud desktop image file is cached to the terminal. When the server cannot provide the cloud desktop service, the cloud desktop image file stored in the terminal is used to provide the cloud desktop to the user. service.
服务端通常包括云服务器主机和存储设备。在一个云桌面容灾系统当中,可能会存在多个客户端50,所以存储设备上应当会存储多个客户端50的云桌面镜像文件,这对于服务端的存储空间要求较高。在本实施例中,存储设备可以是RAID(Redundant Arrays of Independent Disks,磁盘阵列)或者由RAID组成的MAID(massive array of idle disks,大规模非活动磁盘阵列)。各个客户端50的云桌面镜像文件在服务端的存储设备上都是以单独的文件的形式存在的,其格式可以是VHD(Virtual Hard Disk format,微软虚拟磁盘文件)格式。The server usually includes a cloud server host and a storage device. In a cloud desktop disaster recovery system, there may be multiple clients 50. Therefore, the cloud desktop image file of multiple clients 50 should be stored on the storage device, which requires high storage space on the server. In this embodiment, the storage device may be a RAID (Redundant Arrays of Independent Disks) or a MAID (massive array of idle disks) composed of RAID. The cloud desktop image file of each client 50 exists in the form of a separate file on the storage device of the server. The format may be a VHD (Virtual Hard Disk Format) format.
服务端的存储设备可以分为主用存储设备和备用存储设备,在大多数情况下,都是主用存储设备处于工作状态来提供云桌面服务。在服务端为客户端50提供云桌面服务的时候,云服务器主机挂载到主用存储设备下,通过虚拟进程调用住用存储设备中该客户端50的相关镜像数据并持续不断地利用运营商提供的网络将相关图像以及用户操作信息以视窗的形式呈现给客户端50。The storage device on the server can be divided into a primary storage device and a backup storage device. In most cases, the primary storage device is in a working state to provide a cloud desktop service. When the server provides the cloud desktop service to the client 50, the cloud server host is mounted to the primary storage device, and the virtual mirror process is used to invoke the related image data of the client 50 in the storage device and continuously use the carrier. The provided network presents relevant images and user operational information to the client 50 in the form of a window.
从上述过程中可以看出,客户端50能正常使用云桌面业务至少需要满足这样两个条件:首先,云服务器主机能够挂载到主用存储设备上,也 就是说,云服务器主机与主用存储设备之间不能出现断链的情况。另一方面,服务端与客户端50之间的网络必须保持畅通,不能出现网络中断的情况,网络中断包括因为服务端网口故障引起的网络中断和由于运营商提供的网络本身的问题所引起的故障。As can be seen from the above process, the client 50 can normally use the cloud desktop service to meet at least two conditions: First, the cloud server host can be mounted on the primary storage device, That is to say, there is no possibility of a broken link between the cloud server host and the primary storage device. On the other hand, the network between the server and the client 50 must be kept clear, and no network interruption can occur. The network interruption includes network interruption caused by the failure of the server network port and problems caused by the network itself provided by the operator. failure.
如图6所示,为了保证服务端出现存储故障或者是客户端50与服务端之间出现网络故障的时候,用户还依然能够使用云桌面镜像文件,所以本实施例的一种示例当中,客户端50还包括第一缓存模块504。当服务端正常提供的云桌面业务的时候,第一缓存模块504可以将服务端中该客户端需要的云桌面镜像文件提取出来,并缓存到终端。As shown in FIG. 6, in order to ensure that a storage failure occurs on the server or a network failure occurs between the client 50 and the server, the user can still use the cloud desktop image file. Therefore, in an example of the embodiment, the client End 50 also includes a first cache module 504. When the cloud desktop service is normally provided by the server, the first cache module 504 may extract the cloud desktop image file required by the client in the server and cache the file to the terminal.
可以理解的是,由于缓存云桌面镜像文件需要一定的存储空间,所以,在本实施例中,要求终端中预留一定的空间用于存储其需要的云桌面镜像文件。对于客户端50来说这个要求并不是很难,因为就相关的各种终端而言,一般都会有几十甚至上百GB的存储空间处于闲置状态。所以,本实施例中将云桌面镜像文件缓存至客户端50,有效地利用了闲置资源,从而提高了客户端设备的资源利用率,同时又避免了在服务端设置备用资源所必须的资金消耗,从这两方面来说,本实施例提供的云桌面容灾系统实现了对资源的优化配置。It can be understood that, because the cached cloud desktop image file requires a certain storage space, in this embodiment, a certain space is reserved in the terminal for storing the required cloud desktop image file. For the client 50, this requirement is not very difficult, because in terms of various terminals, there are generally dozens or even hundreds of GB of storage space in an idle state. Therefore, in this embodiment, the cloud desktop image file is cached to the client 50, and the idle resource is effectively utilized, thereby improving the resource utilization of the client device, and avoiding the capital consumption necessary for setting the standby resource on the server. In the above two aspects, the cloud desktop disaster recovery system provided in this embodiment implements optimal configuration of resources.
缓存云桌面镜像文件的时候需要占用网络带宽和客户端50本地的读写端口,为了不影响用户正常使用服务端提供的云桌面服务,所以,在本实施例中,可以将第一缓存模块504缓存云桌面镜像文件的进程的优先级设置为次级,也就是说,将该缓存进程作为次要进程,当用户当前的操作需要占用网络带宽或者使用到本地磁盘的读写能力时,则优先执行用户当前的操作任务。当有剩余带宽或磁盘读写能力时,第一缓存模块504方可继续缓存云桌面镜像文件。当缓存任务结束之后,第一缓存模块504可以将缓存结果通报给服务端或客户端50中的至少一个,较好的做法是将缓存结果同时告知客户端50与服务端。When the cloud desktop image file is cached, the network bandwidth and the local read/write port of the client 50 are required. In order to prevent the user from using the cloud desktop service provided by the server, the first cache module 504 may be used in this embodiment. The priority of the process of caching the cloud desktop image file is set to secondary. That is, the cache process is used as the secondary process. When the user's current operation needs to occupy network bandwidth or use the read/write capability of the local disk, the priority is given. Perform the user's current operational tasks. When there is remaining bandwidth or disk read/write capability, the first cache module 504 can continue to cache the cloud desktop image file. After the cache task ends, the first cache module 504 can notify the cache result to at least one of the server or the client 50. Preferably, the cached result is simultaneously notified to the client 50 and the server.
在满足预设条件时,本地调用模块502调用存储在终端的云桌面镜像 文件向用户提供云桌面服务。When the preset condition is met, the local calling module 502 calls the cloud desktop image stored in the terminal. The file provides the user with a cloud desktop service.
事实上,满足预设条件的情况就是客户端50无法享受服务端通过正常方式提供的云桌面业务了。本实施例所说的预设条件可以是以下两个种的至少一个,当然也可以两个条件同时满足:In fact, the situation that meets the preset conditions is that the client 50 cannot enjoy the cloud desktop service provided by the server through the normal manner. The preset condition in this embodiment may be at least one of the following two types, and of course, two conditions may be simultaneously satisfied:
第一、服务端与客户端50之间的网络连接中断。First, the network connection between the server and the client 50 is interrupted.
第二、云服务器主机无法挂载到服务端侧的存储设备上。也即云服务器无法从服务端侧获取到客户端50需要的云桌面资源。Second, the cloud server host cannot be mounted to the storage device on the server side. That is, the cloud server cannot obtain the cloud desktop resources required by the client 50 from the server side.
针对客户端50无法使用到服务端通过正常方式提供的云桌面业务的问题,在本实施例中的云桌面容灾系统提出这样的解决方案:For the problem that the client 50 cannot use the cloud desktop service provided by the server in the normal manner, the cloud desktop disaster recovery system in this embodiment proposes such a solution:
本地调用模块502首先对缓存过来的云桌面镜像文件进行格式处理。这个处理过程可以是在云桌面镜像文件刚缓存结束的时候,当然也可以是在用户需要使用终端存储的云桌面镜像文件的时候。在本实施例中,为了在用户无法使用服务端通过正常方式提供的云桌面业务时,能够立即切换至终端存储的云桌面镜像文件,而不影响用户的正常工作,本地调用模块502可以将该处理流程设置在云桌面镜像文件缓存完成之后,这样能够减少用户的等待时间,提高用户体验。The local calling module 502 first performs format processing on the cached cloud desktop image file. This process can be done when the cloud desktop image file is just cached, or when the user needs to use the cloud desktop image file stored by the terminal. In this embodiment, in order to immediately switch to the cloud desktop image file stored by the terminal when the user cannot use the cloud desktop service provided by the server in the normal manner, without affecting the normal operation of the user, the local calling module 502 may The processing flow setting is completed after the cloud desktop image file cache is completed, which can reduce the user's waiting time and improve the user experience.
本地调用模块502对云桌面镜像文件的处理主要就是对镜像文件进行再编译的过程,由于云桌面镜像文件之前在服务端的存储设备是VHD的格式,而现在需要将其作为操作系统使用,所以必须对其进行格式处理,重新编码,让客户端设备可以识别出其是操作系统。The processing of the cloud desktop image file by the local calling module 502 is mainly a process of recompiling the image file. Since the storage device on the server side of the cloud desktop image file is in the VHD format, and now needs to be used as an operating system, it is necessary to use it. It is formatted and re-encoded so that the client device can recognize that it is an operating system.
本地调用模块502还要修改系统引导信息。由于在这种情况下,客户端设备需要启用之前不同的操作系统,所以需要对终端设备的系统引导信息进行修改,即需要修改原有操作系统的MBR(Master Boot Record,硬盘主引导记录)等信息,该修改会在设备重启之后生效。可以理解的是,有可能用户当前并不是十分需要使用云桌面镜像文件,所以,即使客户端50当前不能使用服务端通过正常方式向其提供的云桌面服务也没什么关系,所以,在这种情况下,用户可能不需要启用终端存储的云桌面镜像, 而更愿意等待网络正常或者云服务器主机与存储设备自行恢复正常。故,为了充分维护用户的意愿,客户端50可以在网络连接中断或存储断链之后、修改系统引导信息之前,向用户发出提示信息,询问用户是否要使用本机缓存下来的云桌面镜像文件。当用户选择是的时候,才修改MBR等相关信息。在本实施例一种较好的示例当中,本地调用模块502还可以根据用户的指令随时启用客户端50终端缓存的云桌面镜像文件,即用户在需要的时候输入特定的指令,这时候再对系统引导程序进行修改,这中方式在很大程度上提高了用户的自主性。The local invocation module 502 also modifies the system boot information. In this case, the client device needs to be enabled with different operating systems. Therefore, you need to modify the system boot information of the terminal device, that is, you need to modify the MBR (Master Boot Record) of the original operating system. Information, this modification will take effect after the device is restarted. It can be understood that it is possible that the user does not currently need to use the cloud desktop image file very much, so even if the client 50 cannot currently use the cloud desktop service provided by the server in the normal way, it does not matter, so in this case, Under the user, the user may not need to enable the cloud desktop image stored by the terminal. It is more willing to wait for the network to be normal or the cloud server host and storage device to return to normal. Therefore, in order to fully maintain the user's will, the client 50 may send a prompt message to the user to use the cloud desktop image file cached by the local machine after the network connection is interrupted or the storage is broken, and the system boot information is modified. When the user chooses yes, the MBR and other related information is modified. In a preferred example of the embodiment, the local calling module 502 can also enable the cloud desktop image file cached by the client 50 terminal according to the user's instruction, that is, the user inputs a specific instruction when needed, and then The system boot program is modified, which greatly improves the user's autonomy.
本地调用模块502根据修改后的系统引导信息加载处理后的云桌面镜像文件,得到,得到用于为用户提供云桌面服务的云桌面系统。修改系统引导信息之后,终端设备会进行重启,重启之后引导终端设备进入云桌面镜像文件所对应的系统中。这时,用户就又可以使用云桌面镜像文件提供的服务了,只是这时候服务的提供者不再是服务端,而是客户端50本身了。而且在这种情况下几乎不需要服务端的参与。The local calling module 502 loads the processed cloud desktop image file according to the modified system boot information, and obtains a cloud desktop system for providing a cloud desktop service for the user. After the system boot information is modified, the terminal device restarts. After the restart, the terminal device is booted into the system corresponding to the cloud desktop image file. At this time, the user can use the service provided by the cloud desktop image file again, but at this time the service provider is no longer the server, but the client 50 itself. And in this case, almost no server involvement is required.
在本实施例中,客户端50可以设置在各种类型的终端设备上,例如,PC、平板电脑、电话等,其中客户端50中的第一缓存模块504可以由终端的处理器、通信单元和存储器共同实现,由处理器控制通信单元从服务端获取到云桌面镜像文件,然后存储到存储器中。本地调用模块502可以由存储器的输出接口来实现,而本地调用模块502也可以通过处理器来实现,当出现网络故障或者存储故障的时候,终端的处理器通过存储器的输出接口从存储器中读取云桌面镜像文件,并对云桌面镜像文件进行处理与加载,得到云桌面系统,继续为用户提供云桌面服务。In this embodiment, the client 50 may be disposed on various types of terminal devices, such as a PC, a tablet, a phone, etc., wherein the first cache module 504 in the client 50 may be configured by a processor and a communication unit of the terminal. Together with the memory, the processor controls the communication unit to obtain the cloud desktop image file from the server and then stores it in the memory. The local calling module 502 can be implemented by an output interface of the memory, and the local calling module 502 can also be implemented by a processor. When a network failure or a storage failure occurs, the processor of the terminal reads from the memory through the output interface of the memory. The cloud desktop image file is processed and loaded by the cloud desktop image file to obtain the cloud desktop system, and the cloud desktop service is continuously provided for the user.
本实施例还提供一种云桌面容灾系统,该系统包括服务端和至少一个上述客户端50。The embodiment further provides a cloud desktop disaster recovery system, which includes a server and at least one client 50.
本公开实施例提供的客户端50和云桌面容灾系统,通过将其需要的云桌面镜像文件并存储在终端,使客户端50可以在网络故障或者服务端存储故障的时候能够根据终端存储的云桌面镜像文件为用户提供云桌面 服务,增强了容灾系统的可靠性,提高了容灾效果和用户体验。而且,本实施例中客户端50在进行云桌面镜像缓存和启用终端存储的云桌面镜像文件之前,都充分考虑了用户当前的需求和意愿,所以使得本实施例的云桌面容灾系统更人性化,符合用户意愿。The client 50 and the cloud desktop disaster recovery system provided by the embodiments of the present disclosure can store the cloud desktop image file required by the client in the terminal, so that the client 50 can be stored according to the terminal when the network is faulty or the server is faulty. Cloud desktop image file provides users with cloud desktop The service enhances the reliability of the disaster recovery system and improves the disaster tolerance effect and user experience. Moreover, in the embodiment, the client 50 takes into account the current needs and wishes of the user before performing the cloud desktop image caching and the cloud desktop image file of the terminal, so that the cloud desktop disaster recovery system of the embodiment is more human. In line with the wishes of users.
实施例四:Embodiment 4:
本实施例提供一种服务端和一个与实施例三种不同的客户端,在用户可以正常使用云桌面服务的时候,客户端将用户需要的云桌面镜像文件缓存在终端,当服务端无法通过服务侧存储的云桌面镜像文件为用户正常提供云桌面服务的时候,其可以调用终端中存储的云桌面镜像文件继续为用户提供服务。This embodiment provides a server and a client that are different from the embodiment. When the user can use the cloud desktop service normally, the client caches the cloud desktop image file that the user needs in the terminal. When the cloud desktop image file is stored on the service side, the cloud desktop image file stored in the terminal can be used to continue to provide services for the user.
请参考图7和图8,图7是本实施例中提供的客户端的一种结构示意图,图7是本实施例提供的服务端的一种结构示意图:Please refer to FIG. 7 and FIG. 8. FIG. 7 is a schematic structural diagram of a client provided in this embodiment, and FIG. 7 is a schematic structural diagram of a server provided in this embodiment:
客户端70包括第二缓存模块702,服务端80包括远端调用模块802。The client 70 includes a second cache module 702, and the server 80 includes a remote call module 802.
第二缓存模块702设置为当用户能正常使用服务端提供的云桌面服务时,从服务端中提取客户端需要的云桌面镜像文件并存储在终端中。The second cache module 702 is configured to: when the user can normally use the cloud desktop service provided by the server, extract the cloud desktop image file required by the client from the server and store the file in the terminal.
本实施例中第二缓存模块702缓存云桌面镜像文件的过程可以参照实施例三中第一缓存模块缓存镜像文件的过程,这里不再赘述。For the process of caching the cloud desktop image file in the second cache module 702 in this embodiment, refer to the process of caching the image file by the first cache module in the third embodiment, and details are not described herein again.
和实施例三中不同的是,本实施例中客户端70中不包含本地调用模块,而是在服务端80中设置了远端调用模块802。当服务端80中的云服务器主机无法获取到终端存储的云桌面镜像文件的时候,远端调用模块802调用存储在终端中的云桌面镜像文件为该客户端提供云桌面服务。Different from the third embodiment, in the embodiment, the client 70 does not include the local calling module, but the remote calling module 802 is set in the server 80. When the cloud server host in the server 80 cannot obtain the cloud desktop image file stored in the terminal, the remote calling module 802 calls the cloud desktop image file stored in the terminal to provide the cloud desktop service for the client.
虽然此时云服务器主机无法从服务端80的存储设备上获取到客户端70所需要的云桌面镜像文件,但是由于现在服务端80与客户端70之间的网络连接依然完好,所以,云服务器主机能够通过网络挂载到客户端70存储的云桌面镜像文件的存储目录下,继续向用户提供云桌面服务。Although the cloud server host cannot obtain the cloud desktop image file required by the client 70 from the storage device of the server 80 at this time, since the network connection between the server 80 and the client 70 is still intact, the cloud server is still available. The host can be mounted to the storage directory of the cloud desktop image file stored on the client 70 through the network, and the cloud desktop service is continuously provided to the user.
当服务端80中出现存储事故的时候,远端调用模块802控制服务器主机挂载到终端中存储云桌面镜像文件的设备上。这里所说的服务器主机 即为云服务器主机。挂载是指将一个设备挂接到一个已存在的目录上。然后该设备可以访问该目录来访问目录所在的设备,在本实施例中,云服务器主机就是通过挂接在终端的存储云桌面镜像文件的存储目录下,然后通过访问存储云桌面镜像文件的存储设备获取到云桌面镜像文件。When a storage incident occurs in the server 80, the remote calling module 802 controls the server host to mount to the device in the terminal that stores the cloud desktop image file. Server host mentioned here It is the cloud server host. Mounting refers to attaching a device to an existing directory. Then, the device can access the directory to access the device where the directory is located. In this embodiment, the cloud server host is connected to the storage cloud desktop image file in the storage directory of the storage cloud desktop image file, and then accesses the storage cloud desktop image file storage device. The device obtains the cloud desktop image file.
然后远端调用模块802控制服务器主机通过网络调用云桌面镜像文件向用户继续提供云桌面服务。The remote invocation module 802 then controls the server host to continue to provide the cloud desktop service to the user by calling the cloud desktop image file through the network.
本实施例还提供一种云桌面容灾系统,请参考图9,云桌面容灾系统9当中包括本实施例提供的服务端80和至少一个客户端70。相较于实施例三中由客户端自身加载终端的云桌面镜像文件的方案而言,在本实施例的云桌面容灾系统9中,对网络的要求可能会稍微高一些,因为此时不仅要保证客户端70能够正常使用服务端80提供的云桌面服务,而且还要保证服务端80能够从客户端70通过网络顺利地获取到云桌面镜像文件。This embodiment further provides a cloud desktop disaster recovery system. Referring to FIG. 9 , the cloud desktop disaster recovery system 9 includes the server 80 and at least one client 70 provided in this embodiment. In the cloud desktop disaster recovery system 9 of the embodiment, the requirement for the network may be slightly higher than that of the cloud desktop image file of the terminal in the third embodiment. To ensure that the client 70 can normally use the cloud desktop service provided by the server 80, it is also ensured that the server 80 can smoothly obtain the cloud desktop image file from the client 70 through the network.
从另一方面来说,本实施例提供的云桌面容灾系统9又具备实施例三提供的云桌面容灾系统所不具备的优点,比如,从用户体验来说,本实施例中,用户通过客户端使用云桌面服务的时候,几乎不会感知到该云桌面镜像文件来自终端。因为此时提供云桌面服务的依然是服务端80,而客户端70只需要接受这种服务就可以了,并不需要做进一步的处理。在这种情况下,相当于是终端的存储设备作为了服务端80的“备用存储设备”,而对于客户端70而言,提供云桌面镜像文件的是服务端80的主用存储设备还是备用存储设备是没有任何影响的。因此,本实施例所提供的云桌面容灾系统9更有利于用户的体验。On the other hand, the cloud desktop disaster recovery system 9 provided in this embodiment has the advantages that the cloud desktop disaster recovery system provided by the third embodiment does not have. For example, in the user experience, in this embodiment, the user When the cloud desktop service is used by the client, the cloud desktop image file is hardly perceived to come from the terminal. Because the cloud desktop service is still the server 80 at this time, and the client 70 only needs to accept the service, and does not need further processing. In this case, the storage device corresponding to the terminal acts as the "alternate storage device" of the server 80, and for the client 70, whether the cloud desktop image file is provided is the primary storage device of the server 80 or the backup storage. The device has no effect. Therefore, the cloud desktop disaster recovery system 9 provided in this embodiment is more advantageous to the user experience.
在本实施例中的另一种较好的示例当中,如图10所示,客户端70除了包括第二缓存模块702以外,还包括第二记录模块704和第二同步模块706,第二记录模块704设置为在调用终端中存储的云桌面镜像文件提供云桌面服务时,保存客户端对云桌面镜像文件的修改记录。第二同步模块706设置为当服务端80的存储链接恢复正常的时候,将之前保存的修改记录同步至服务端80。 In another preferred example in this embodiment, as shown in FIG. 10, the client 70 includes a second recording module 704 and a second synchronization module 706 in addition to the second cache module 702, and the second record. The module 704 is configured to save the modification record of the cloud desktop image file of the client when the cloud desktop service file is provided by the cloud desktop image file stored in the calling terminal. The second synchronization module 706 is configured to synchronize the previously saved modification record to the server 80 when the storage link of the server 80 returns to normal.
虽然此时使用的是终端存储的云桌面镜像文件,但这只是一个暂时的过程,当服务端80的云服务器主机与存储设备恢复正常的连接之后,云服务器主机还是会继续使用服务端80存储设备上的云桌面镜像文件。因此,为了当云服务主机再次连接到终端的存储设备上的时候,用户之前对云桌面镜像文件所做的修改记录继续存在,所以,本实施例中第二记录模块704在云服务器主机使用客户端存储的云桌面镜像文件为客户端提供云桌面服务的时候,就会记录用户对云桌面镜像文件的修改。Although the cloud desktop image file stored in the terminal is used at this time, this is only a temporary process. After the cloud server host of the server 80 and the storage device resume normal connection, the cloud server host will continue to use the server 80 for storage. Cloud desktop image file on the device. Therefore, in order to re-connect the cloud service host to the storage device of the terminal, the previous record of the modification of the cloud desktop image file is continued. Therefore, in this embodiment, the second recording module 704 uses the client on the cloud server host. When the cloud desktop image file stored on the end provides the cloud desktop service for the client, the user's modification of the cloud desktop image file is recorded.
可以理解的是,如果之前的故障只是由于云服务器主机无法连接到其存储设备上,而存储设备本身也并没有故障,保存在其上的云桌面镜像文件也依然完好无损,那么第二同步模块706可以仅同步客户端对云桌面镜像文件的修改数据,而如果之前的故障是由于服务端的存储设备坏了,其上存储的云桌面镜像文件遭受到了损害,那么第二同步模块706同步修改数据时就不仅仅是客户端在该过程中对云桌面镜像文件的修改数据了,这时候,第二同步模块706可能需要将终端中所存储的所有的云桌面镜像文件的数据都同步到服务端80,包括使用终端云桌面镜像文件提供云桌面服务期间其对该文件的修改数据和之前缓存的云桌面镜像文件的原始数据。应当明白的是,第二同步模块706同步数据的目的在于使服务端与客户端所保存的该客户端对应的云桌面镜像文件一致。It can be understood that if the previous fault is only because the cloud server host cannot connect to its storage device, and the storage device itself is not faulty, the cloud desktop image file saved thereon is still intact, then the second synchronization module is still intact. 706 can only synchronize the modification data of the cloud desktop image file by the client, and if the previous failure is due to the storage device of the server being broken, the cloud desktop image file stored thereon is damaged, then the second synchronization module 706 synchronously modifies the data. The time is not only the modification data of the cloud desktop image file by the client in the process. In this case, the second synchronization module 706 may need to synchronize the data of all the cloud desktop image files stored in the terminal to the server. 80. The use of the terminal cloud desktop image file to provide the modified data of the file and the original data of the previously cached cloud desktop image file during the cloud desktop service. It should be understood that the second synchronization module 706 synchronizes the data with the purpose of making the server consistent with the cloud desktop image file corresponding to the client saved by the client.
在本实施例中,当服务端的存储链接回复正常时,为了让客户端70尽早享受服务端80通过正常方式所提供的云桌面服务,第二同步模块706可以优先将客户端70对云桌面镜像文件的修改同步至服务端80。这个过程和客户端70缓存云桌面镜像文件的相反,在客户端70缓存云桌面镜像文件的时候是将缓存作为次要进程,而这里同步过程则被作为主要进程,能够优先享有网络带宽和磁盘的读写功能等资源。当然,如果用户当前正在处理比较重要的事情,这种优先原则可能会影响到用户体验,所以,在本实施例中,第二同步模块706可以在优先同步数据之前先向用户进行询问,如果用户同意,则优先将客户端的数据进行同步,否则,优先让其他进程占用带宽和磁盘读写,等到有剩余资源的时候才进行数据同步。 In this embodiment, when the storage link of the server is returned to the normal state, in order to allow the client 70 to enjoy the cloud desktop service provided by the server 80 in the normal manner as soon as possible, the second synchronization module 706 can preferentially mirror the cloud desktop of the client 70. The modification of the file is synchronized to the server 80. This process is the opposite of the client 70 cache cloud desktop image file. When the client 70 caches the cloud desktop image file, the cache is regarded as a secondary process, and the synchronization process is used as the main process, which can preferentially enjoy the network bandwidth and the disk. Resources such as read and write functions. Of course, if the user is currently processing a more important thing, the priority principle may affect the user experience. Therefore, in this embodiment, the second synchronization module 706 may first query the user before prioritizing the data, if the user If you agree, the client's data will be synchronized first. Otherwise, other processes will be allowed to occupy bandwidth and disk read and write, and data synchronization will be performed when there are remaining resources.
在本实施例中,客户端70可以设置在各种类型的终端设备上,例如,PC、平板电脑、电话等,其中客户端70中的第二缓存模块702可以由终端的处理器和存储器共同实现,由处理器从服务端获取到云桌面镜像文件,然后存储到存储器中。In this embodiment, the client 70 can be disposed on various types of terminal devices, such as a PC, a tablet, a phone, etc., wherein the second cache module 702 in the client 70 can be shared by the processor and the memory of the terminal. Implementation, the processor obtains the cloud desktop image file from the server, and then stores it in the memory.
本实施例中的服务端80主要由服务器来实现,其中远端调用模块802可以由服务器的处理器来实现,当出现网络故障或者存储故障的时候,服务器的处理器通过存储器的输出接口从中终端设备的存储器中读取云桌面镜像文件,并对云桌面镜像文件并通过网络向终端用户提供云桌面服务。The server 80 in this embodiment is mainly implemented by a server, wherein the remote calling module 802 can be implemented by a processor of the server. When a network failure or a storage failure occurs, the processor of the server passes through the output interface of the memory. The cloud desktop image file is read in the memory of the device, and the cloud desktop service is provided to the end user through the network.
可以理解的是,实施例三中的客户端50也可以同样可以实现对镜像文件的修改记录和将修改同步至服务端的效果。如图11所示,客户端50包括本地调用模块502、第一缓存模块504、第一记录模块506和第一同步模块508。在实施例三中,当得知服务端能够正常提供云桌面服务的时候,可以在客户端设备当前启动的系统中进行系统切换,可以将系统引导程序恢复到客户端50或客户端70使用终端存储的原桌面镜像文件之前的版本,即将MBR信息修改成原有的MBR。或者让相关的系统引导信息兼容原始的,即在相关的MBR信息中兼容原有终端操作系统信息,这时候用户可以在重启后引用原有操作系统的相关引导,并正常进入原有的操作系统,进入原有操作系统后用户可以选择登陆原有虚拟云桌面的登陆界面。It can be understood that the client 50 in the third embodiment can also implement the modification record of the image file and the effect of synchronizing the modification to the server. As shown in FIG. 11, the client 50 includes a local invocation module 502, a first caching module 504, a first recording module 506, and a first synchronization module 508. In the third embodiment, when it is known that the server can normally provide the cloud desktop service, the system can be switched in the system currently started by the client device, and the system boot program can be restored to the client 50 or the client 70 using the terminal. The version of the original desktop image file that was stored is changed to the original MBR. Or make the relevant system boot information compatible with the original, that is, compatible with the original terminal operating system information in the relevant MBR information. At this time, the user can refer to the relevant boot of the original operating system after restarting, and enter the original operating system normally. After entering the original operating system, the user can choose to log in to the login interface of the original virtual cloud desktop.
在进入到原有操作系统后,用户可以进入虚拟云桌面的登录界面,输入虚拟云桌面系统的用户名密码进行鉴权,鉴权通过后,第一同步模块508或第二同步模块706判断客户端50或客户端70缓存的云桌面镜像文件有过数据修改记录。这个时候第一同步模块508或第二同步模块706可以提示用户,根据用户的选择将关于云桌面镜像文件的修改数据同步至服务端。在同步的过程中,第一同步模块508或第二同步模块706可以提示用户当前正在进行数据。当同步完成后,用户成功登录可以到服务端通过正常方式提供的云桌面系统中进行正常的操作。After entering the original operating system, the user can enter the login interface of the virtual cloud desktop and enter the username and password of the virtual cloud desktop system for authentication. After the authentication is passed, the first synchronization module 508 or the second synchronization module 706 determines the client. The cloud desktop image file cached by the terminal 50 or the client 70 has a data modification record. At this time, the first synchronization module 508 or the second synchronization module 706 may prompt the user to synchronize the modification data about the cloud desktop image file to the server according to the user's selection. During the synchronization process, the first synchronization module 508 or the second synchronization module 706 can prompt the user that data is currently being processed. After the synchronization is complete, the user can successfully log in to the server to perform normal operations in the cloud desktop system provided by the normal mode.
毫无疑义的是,在用户再次正常使用云桌面服务的时候,又可以利用 空余磁盘读写能力以及网络带宽将客户端50或客户端70对服务端的云桌面镜像文件所进行的修改同步到终端,以应对下一次网络中断或者是存储断链事故。There is no doubt that when users use the cloud desktop service again, they can use it again. The free disk read and write capability and the network bandwidth synchronize the modification made by the client 50 or the client 70 to the server's cloud desktop image file to the terminal to cope with the next network interruption or storage disconnection accident.
本实施例中的客户端70的第二记录模块704以及实施例三中客户端50的第一记录模块506可以由终端设备处理器来实现,第一同步模块508和第二同步模块706的功能可以由终端中的处理器和通信单元来实现。The second recording module 704 of the client 70 in the embodiment and the first recording module 506 of the client 50 in the third embodiment may be implemented by the terminal device processor, and the functions of the first synchronization module 508 and the second synchronization module 706 It can be implemented by a processor and a communication unit in the terminal.
本实施例提供的云桌面容灾系统,主要针对服务端80出现存储事故的情况,在服务端80的云服务器主机无法从终端获取到云桌面镜像文件从而为用户提供云桌面服务的时候,云服务器主机可以通过挂载到终端,利用终端存储的云桌面镜像文件继续为用户提供云桌面服务,而且该方案由于几乎不会使用户感知到变化,所以能够提高用户体验。The cloud desktop disaster recovery system provided in this embodiment is mainly for the storage incident of the server 80. When the cloud server host of the server 80 cannot obtain the cloud desktop image file from the terminal to provide the cloud desktop service for the user, the cloud The server host can continue to provide the cloud desktop service to the user by using the cloud desktop image file stored in the terminal, and the solution can improve the user experience because the user hardly perceives the change.
在本实施例和实施例三中,能够在客户端使用终端存储的云桌面镜像文件的时候记录客户端对镜像文件的修改,当服务端能够正常提供云桌面服务的时候,会将客户端对云桌面镜像文件的修改同步至服务端,使服务端中的镜像文件数据与客户端中的镜像文件保持一致,从而使用户无论是在正常情况下,还是在网络事故或存储事故之后都能使用到相同的云桌面镜像文件,尽量减少了事故前后的转变给用户带来的损失与不便。In this embodiment and the third embodiment, when the client uses the cloud desktop image file stored by the terminal, the client can modify the image file. When the server can provide the cloud desktop service normally, the client pair is used. The modification of the cloud desktop image file is synchronized to the server, so that the image file data in the server is consistent with the image file in the client, so that the user can use it under normal circumstances or after a network accident or a storage accident. Go to the same cloud desktop image file to minimize the loss and inconvenience caused by the transition before and after the accident.
实施例五:Embodiment 5:
本公开的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present disclosure also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,在满足预设条件时,服务端调用存储在终端的云桌面镜像文件为用户提供云桌面服务。S1: When the preset condition is met, the server invokes the cloud desktop image file stored in the terminal to provide the cloud desktop service to the user.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:Optionally, the storage medium is further arranged to store program code for performing the following steps:
S1,控制所述服务器主机挂载到所述终端所述云桌面镜像文件的存储目录下;S1, controlling the server host to be mounted to a storage directory of the cloud desktop image file of the terminal;
S2,通过网络调用所述云桌面镜像文件向用户继续提供云桌面服务。 S2. The cloud desktop image file is invoked through the network to continue providing the cloud desktop service to the user.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:Optionally, the storage medium is further arranged to store program code for performing the following steps:
S1,在满足预设条件时,客户端调用存储在终端的云桌面镜像文件为用户提供云桌面服务。S1. When the preset condition is met, the client invokes the cloud desktop image file stored in the terminal to provide the cloud desktop service to the user.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:Optionally, the storage medium is further arranged to store program code for performing the following steps:
S1,在能正常使用服务端提供的云桌面服务时,所述客户端从所述服务端中提取需要的云桌面镜像文件并存储在所述终端本地。S1. When the cloud desktop service provided by the server is used normally, the client extracts the required cloud desktop image file from the server and stores it locally.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:Optionally, the storage medium is further arranged to store program code for performing the following steps:
S1,所述客户端对所述云桌面镜像文件进行格式处理;S1, the client performs format processing on the cloud desktop image file.
S2,所述客户端修改系统引导信息;S2, the client modifies system boot information;
S3,所述客户端根据修改后的系统引导信息加载处理后的所述云桌面镜像文件,得到用于为用户提供云桌面服务的云桌面系统。S3, the client loads the processed cloud desktop image file according to the modified system boot information, and obtains a cloud desktop system for providing a cloud desktop service for the user.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:Optionally, the storage medium is further arranged to store program code for performing the following steps:
S1,在调用存储在终端的所述云桌面镜像文件为用户提供云桌面服务时,所述客户端保存对所述云桌面镜像文件的修改记录;S1, when the cloud desktop image file stored in the terminal is used to provide a cloud desktop service to the user, the client saves the modification record of the cloud desktop image file;
S2,当能再次正常使用云桌面业务时,所述客户端将所述修改记录同步至所述服务端。S2. When the cloud desktop service can be used normally again, the client synchronizes the modification record to the server.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述实施例记载的方法步骤。Optionally, in this embodiment, the processor executes the method steps described in the foregoing embodiments according to the stored program code in the storage medium.
可选地,本实施例中的示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。 For example, the examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述本公开实施例的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储介质(ROM/RAM、磁碟、光盘)中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。所以,本公开不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the modules or steps of the above embodiments of the present disclosure may be implemented by a general computing device, which may be concentrated on a single computing device or distributed among multiple computing devices. On the network, optionally, they may be implemented by program code executable by the computing device, such that they may be stored in a storage medium (ROM/RAM, disk, optical disk) by a computing device, and in some In this case, the steps shown or described may be performed in an order different from that herein, or they may be separately fabricated into individual integrated circuit modules, or a plurality of the modules or steps may be implemented as a single integrated circuit module. Therefore, the present disclosure is not limited to any specific combination of hardware and software.
以上内容是结合可选实施方式对本公开实施例所作的详细说明,不能认定本公开的实施只局限于这些说明。对于本公开所属技术领域的普通技术人员来说,在不脱离本公开构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本公开的保护范围。The above is a detailed description of the embodiments of the present disclosure in connection with the alternative embodiments, and the implementation of the present disclosure is not limited to the description. It is to be understood by those skilled in the art that the present invention may be construed as being limited to the scope of the present disclosure.
工业实用性Industrial applicability
本公开实施例中,预先将云桌面镜像文件并存储在终端中,当满足预设条件的时候,通过调用存储在终端的云桌面镜像为用户提供云桌面服务。本公开实施例提供的云桌面容灾方法、客户端、服务端、云桌面容灾系统以及存储介质不仅使得针对云桌面服务的容灾不需要依赖于服务端设置的备用资源,如备用存储设备或备用网口等,而且由于云桌面镜像文件存储在客户端侧,所以无论是在服务端存储设备出现故障或者是服务端与客户端之间出现网络中断的情况,都能保证客户端正常使用基于终端存储的云桌面镜像文件所提供的服务,与相关的容灾方案相比,增强了容灾方案的可靠性,提高了容灾效果和用户体验。 In the embodiment of the present disclosure, the cloud desktop image file is stored in the terminal in advance, and when the preset condition is met, the cloud desktop service is provided to the user by calling the cloud desktop image stored in the terminal. The cloud desktop disaster recovery method, the client, the server, the cloud desktop disaster recovery system, and the storage medium provided by the embodiments of the present disclosure not only make the disaster recovery for the cloud desktop service depend on the standby resources set by the server, such as the backup storage device. Or the backup network port, etc., and because the cloud desktop image file is stored on the client side, the client can be used normally regardless of the failure of the server storage device or the network interruption between the server and the client. Compared with the related disaster recovery solution, the service provided by the cloud desktop image file of the terminal storage enhances the reliability of the disaster recovery solution and improves the disaster recovery effect and user experience.

Claims (12)

  1. 一种云桌面容灾方法,包括:A cloud desktop disaster recovery method includes:
    在满足预设条件时,服务端调用存储在终端的云桌面镜像文件为用户提供云桌面服务。When the preset condition is met, the server invokes the cloud desktop image file stored in the terminal to provide the cloud desktop service to the user.
  2. 如权利要求1所述的云桌面容灾方法,其中,当至少满足以下预设条件时,所述服务端调用存储在终端的所述云桌面镜像文件为用户提供云桌面服务包括:The cloud desktop disaster recovery method according to claim 1, wherein the server invokes the cloud desktop image file stored in the terminal to provide a cloud desktop service to the user, including the following:
    服务器主机无法从所述服务端本地的存储设备上获取到所述客户端需要的云桌面资源。The server host cannot obtain the cloud desktop resources required by the client from the storage device local to the server.
  3. 如权利要求1或2所述的云桌面容灾方法,其中,所述服务端调用存储在终端的所述云桌面镜像文件为用户提供云桌面服务包括:The cloud desktop disaster recovery method according to claim 1 or 2, wherein the server calls the cloud desktop image file stored in the terminal to provide a cloud desktop service for the user, including:
    控制所述服务器主机挂载到所述终端所述云桌面镜像文件的存储目录下;Controlling that the server host is mounted to a storage directory of the cloud desktop image file of the terminal;
    通过网络调用所述云桌面镜像文件向用户继续提供云桌面服务。The cloud desktop image file is invoked through the network to continue to provide the cloud desktop service to the user.
  4. 一种云桌面容灾方法,包括:A cloud desktop disaster recovery method includes:
    在满足预设条件时,客户端调用存储在终端的云桌面镜像文件为用户提供云桌面服务。When the preset condition is met, the client invokes the cloud desktop image file stored in the terminal to provide the cloud desktop service to the user.
  5. 如权利要求4所述的云桌面容灾方法,其中,所述客户端调用存储在终端的云桌面镜像文件为用户提供云桌面服务之前还包括:The cloud desktop disaster recovery method according to claim 4, wherein the client further includes: before the cloud desktop image file stored in the terminal provides the cloud desktop service to the user:
    在能正常使用服务端提供的云桌面服务时,所述客户端从所述服务端中提取需要的云桌面镜像文件并存储在所述终端本地。When the cloud desktop service provided by the server is normally used, the client extracts the required cloud desktop image file from the server and stores it locally.
  6. 如权利要求4所述的云桌面容灾方法,其中,当至少满足以下预设条件中的一个时,所述客户端调用存储在终端的所述云桌面镜像文件为用 户提供云桌面服务:The cloud desktop disaster recovery method according to claim 4, wherein the client invokes the cloud desktop image file stored in the terminal when at least one of the following preset conditions is met Provide cloud desktop services:
    所述客户端与所述服务端之间的网络连接中断;The network connection between the client and the server is interrupted;
    所述服务端侧的服务器主机无法从所述服务端侧的存储设备上获取到需要的云桌面资源。The server host on the server side cannot obtain the required cloud desktop resource from the storage device on the server side.
  7. 如权利要求4-6任一项所述的云桌面容灾方法,其中,所述客户端调用存储在终端的所述云桌面镜像文件为用户提供云桌面服务包括:The cloud desktop disaster recovery method according to any one of claims 4-6, wherein the client invoking the cloud desktop image file stored in the terminal to provide a cloud desktop service to the user includes:
    所述客户端对所述云桌面镜像文件进行格式处理;The client performs format processing on the cloud desktop image file;
    所述客户端修改系统引导信息;The client modifies system boot information;
    所述客户端根据修改后的系统引导信息加载处理后的所述云桌面镜像文件,得到用于为用户提供云桌面服务的云桌面系统。The client loads the processed cloud desktop image file according to the modified system boot information to obtain a cloud desktop system for providing a cloud desktop service for the user.
  8. 如权利要求4-6任一项所述的云桌面容灾方法,其中,还包括:The cloud desktop disaster recovery method according to any one of claims 4-6, further comprising:
    在调用存储在终端的所述云桌面镜像文件为用户提供云桌面服务时,所述客户端保存对所述云桌面镜像文件的修改记录;The client saves the modification record of the cloud desktop image file when the cloud desktop service file is provided to the user by using the cloud desktop image file stored in the terminal;
    当能再次正常使用云桌面业务时,所述客户端将所述修改记录同步至所述服务端。When the cloud desktop service can be used normally again, the client synchronizes the modification record to the server.
  9. 一种客户端,包括:A client that includes:
    本地调用模块,设置为在满足预设条件时,调用存储在终端的云桌面镜像文件为用户提供云桌面服务。The local calling module is set to invoke the cloud desktop image file stored in the terminal to provide the cloud desktop service to the user when the preset condition is met.
  10. 一种服务端,包括:A server that includes:
    远端调用模块,设置为在满足预设条件时,调用存储在终端的云桌面镜像文件为用户提供云桌面服务。 The remote calling module is configured to invoke a cloud desktop image file stored in the terminal to provide a cloud desktop service to the user when the preset condition is met.
  11. 一种云桌面容灾系统,包括服务端和如权利要求9所述的客户端;或,包括客户端和如权利要求10所述的服务端。A cloud desktop disaster recovery system, comprising a server and a client according to claim 9; or comprising a client and the server according to claim 10.
  12. 一种存储介质,所述存储介质包括存储的程序,其中,所述程序运行时执行上述权利要求1至3或4至8任一项中所述的方法。 A storage medium comprising a stored program, wherein the program is executed to perform the method of any one of the preceding claims 1 to 3 or 4 to 8.
PCT/CN2017/087463 2016-06-17 2017-06-07 Cloud-desktop disaster recovery method, client, server, cloud-desktop disaster recovery system, and storage medium WO2017215502A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610439102.2A CN107517192A (en) 2016-06-17 2016-06-17 Cloud desktop disaster recovery method, client, service end and cloud desktop disaster tolerance system
CN201610439102.2 2016-06-17

Publications (1)

Publication Number Publication Date
WO2017215502A1 true WO2017215502A1 (en) 2017-12-21

Family

ID=60663195

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/087463 WO2017215502A1 (en) 2016-06-17 2017-06-07 Cloud-desktop disaster recovery method, client, server, cloud-desktop disaster recovery system, and storage medium

Country Status (2)

Country Link
CN (1) CN107517192A (en)
WO (1) WO2017215502A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110990124A (en) * 2019-12-10 2020-04-10 北京京东尚科信息技术有限公司 Cloud host recovery method and device
CN114253651A (en) * 2021-12-29 2022-03-29 南京机敏软件科技有限公司 Remote operation and maintenance method for cloud desktop client, storage medium and processor

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107995318A (en) * 2018-01-04 2018-05-04 西安雷风电子科技有限公司 A kind of high-availability system of network cloud disk
CN110808943B (en) * 2018-08-06 2022-04-29 中兴通讯股份有限公司 Client connection emergency management method, client and computer readable storage medium
CN110928624A (en) * 2019-11-15 2020-03-27 联思智云(北京)科技有限公司 Cloud desktop calling method and device for user terminal and terminal
CN111031098B (en) * 2019-11-20 2022-04-26 西安雷风电子科技有限公司 VDI cloud desktop emergency maintenance system and method
CN112486608A (en) * 2020-11-25 2021-03-12 北京和信创天科技股份有限公司 Cloud desktop hard disk and network dual-standby implementation method
CN114257585A (en) * 2021-12-22 2022-03-29 天翼云科技有限公司 Network access method, device, equipment and medium
CN116841660A (en) * 2022-03-23 2023-10-03 中兴通讯股份有限公司 Data transmission method, cloud desktop virtual machine, cloud terminal and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593227A (en) * 2013-11-08 2014-02-19 何钦淋 Method for running tabletop virtual system on client side and client side
CN103747095A (en) * 2014-01-21 2014-04-23 上海江南长兴重工有限责任公司 Virtual desktop system and method
US20140188982A1 (en) * 2012-12-29 2014-07-03 Futurewei Technologies, Inc. Virtual Desktop Infrastructure (VDI) Login Acceleration
CN104158833A (en) * 2013-05-14 2014-11-19 上海国富光启云计算科技有限公司 Method for constructing intelligent desktop system
US20150304433A1 (en) * 2014-04-18 2015-10-22 Vmware, Inc. Gesture based switching of virtual desktop clients

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218248B (en) * 2013-03-25 2016-12-28 华为技术有限公司 The update method of a kind of virtual machine image, server and desktop cloud system
CN104580399B (en) * 2014-12-19 2018-04-27 华南理工大学 A kind of cloud desktop implementation method based on OpenStack and Spice

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140188982A1 (en) * 2012-12-29 2014-07-03 Futurewei Technologies, Inc. Virtual Desktop Infrastructure (VDI) Login Acceleration
CN104158833A (en) * 2013-05-14 2014-11-19 上海国富光启云计算科技有限公司 Method for constructing intelligent desktop system
CN103593227A (en) * 2013-11-08 2014-02-19 何钦淋 Method for running tabletop virtual system on client side and client side
CN103747095A (en) * 2014-01-21 2014-04-23 上海江南长兴重工有限责任公司 Virtual desktop system and method
US20150304433A1 (en) * 2014-04-18 2015-10-22 Vmware, Inc. Gesture based switching of virtual desktop clients

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110990124A (en) * 2019-12-10 2020-04-10 北京京东尚科信息技术有限公司 Cloud host recovery method and device
CN110990124B (en) * 2019-12-10 2024-04-12 北京京东尚科信息技术有限公司 Cloud host recovery method and device
CN114253651A (en) * 2021-12-29 2022-03-29 南京机敏软件科技有限公司 Remote operation and maintenance method for cloud desktop client, storage medium and processor

Also Published As

Publication number Publication date
CN107517192A (en) 2017-12-26

Similar Documents

Publication Publication Date Title
WO2017215502A1 (en) Cloud-desktop disaster recovery method, client, server, cloud-desktop disaster recovery system, and storage medium
US20190238636A1 (en) Systems and methods for synchronizing microservice data stores
US20190235979A1 (en) Systems and methods for performing computing cluster node switchover
EP2816467B1 (en) Method and device for checkpoint and restart of container state
US20200042410A1 (en) Role designation in a high availability node
KR101868489B1 (en) Management of computing sessions
JP6182265B2 (en) Managing computing sessions
KR101840222B1 (en) Management of computing sessions
KR20180135124A (en) Management of computing sessions
US9448615B2 (en) Managing power savings in a high availability system at a redundant component level of granularity
CN111338854A (en) Kubernetes cluster-based method and system for quickly recovering data
CN111130835A (en) Data center dual-active system, switching method, device, equipment and medium
WO2020001354A1 (en) Master/standby container system switch
US11403319B2 (en) High-availability network device database synchronization
WO2012097588A1 (en) Data storage method, apparatus and system
CN109254876A (en) The management method and device of database in cloud computing system
CN115878384A (en) Distributed cluster based on backup disaster recovery system and construction method
JP2009223368A (en) Cluster control apparatus, control system, control method, and control program
US8982902B1 (en) Backup server architecture in a VoIP system
CN115766405B (en) Fault processing method, device, equipment and storage medium
CN101145955A (en) Hot backup method, network management and network management system of network management software
CN113609232B (en) Data management method, data management system, and computer-readable storage medium
JP6822706B1 (en) Cluster system, server equipment, takeover method, and program
CN107783855B (en) Fault self-healing control device and method for virtual network element
JP2003298624A (en) Communication path securing method in service control application execution program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17812613

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17812613

Country of ref document: EP

Kind code of ref document: A1