Diskless disaster recovery method and device
The DHCP and TFTP services are started by monitoring and selecting terminal devices through blockchain network management services, and using PXE to boot diskless loading, solving the problem of unloading when the VOI desktop system is damaged, and the normal loading of the system and the improvement of user experience is achieved.
Patent Information
- Application Number
- CN202411426055.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-12
- Publication Date
- 2025-02-21
AI Technical Summary
When the virtual operating system infrastructure (VOI) desktop system is damaged, it cannot enter the desktop, resulting in the terminal device being unable to enter the available state, seriously affecting user use.
Monitor whether the DHCP and TFTP services are running normally through the target server's blockchain network management service. Select the target terminal device to start these services, and when the VOI desktop starts, boot diskless loading through PXE to ensure that the system can load normally.
It realizes normal loading when the VOI desktop system is damaged, improves user experience, and reduces the dependence between terminal devices and servers through the decentralized cloud computing service system.
Smart Images

Figure CN119493603A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing, and in particular to a diskless disaster recovery method and device. Background Art
[0002] Currently, based on the server side, a virtual operating system infrastructure (VOI) desktop is usually deployed to manage terminal devices, and the VOI desktop system is started by using the terminal devices.
[0003] However, when the VOI desktop system is damaged, it is impossible to enter the desktop, and the current device cannot be put into a usable state, which seriously affects user use. Summary of the invention
[0004] The embodiment of the present disclosure provides a diskless disaster recovery method and device, which can enable the VOI desktop system to be loaded normally when it is damaged. The technical solution is as follows:
[0005] According to a first aspect of an embodiment of the present disclosure, a diskless disaster recovery method is provided, the method comprising: monitoring whether a dynamic host configuration protocol (DHCP) service and a trivial file transfer protocol (TFTP) service are running normally through a blockchain network management service of a target server; when the DHCP service or the TFTP service runs abnormally, selecting a target terminal device from a plurality of terminal devices through the blockchain network management service; starting the DHCP service and the TFTP service through the target terminal device, the DHCP service being unique within a target area; when a virtual operating system infrastructure VOI desktop of the target terminal device fails to start, starting the VOI desktop through a preboot execute environment (PXE).
[0006] Specifically, through the blockchain network management service on each node, in the blockchain network, each node performs network monitoring in the target area, that is, monitors whether the DHCP service and TFTP service in the target area are running normally, thereby ensuring that there are normally running DHCP services and TFTP services in the target area. Among them, the above-mentioned blockchain network management service is started on the target server side by default.
[0007] Start the DHCP service and TFTP service through the selected target terminal device, and ensure that there is only one DHCP service in the target area. After the new terminal device is started, the blockchain network management service will automatically add the target terminal device to the target area.
[0008] Based on the above solution, not only a decentralized cloud computing service system is provided, which realizes the decentralization of the server side through the blockchain network management service to avoid the dependence of the terminal device on the server side, but also a desktop disaster recovery solution is provided. Through PXE boot diskless loading, when the VOI desktop system of the terminal device is damaged, the system can be loaded normally, thereby improving the user experience.
[0009] In some embodiments, starting the VOI desktop via PXE includes: guiding the target terminal device into the PXE stage via an intelligent platform management interface (IPMI) tool; obtaining a file for system startup via a DHCP server; loading the file for system startup into memory, mounting and starting the VOI desktop system.
[0010] In some embodiments, obtaining the file for system startup through the DHCP server includes: sending request information through broadcasting; verifying a legitimate simple file transfer protocol TFTP server in the target area through the blockchain network management service based on the request information; receiving feedback information from the blockchain network management service, the feedback information including a reasonable Internet Protocol IP, PXE startup file and the address of the TFTP server; obtaining the file for system startup through the target terminal device based on the PXE startup file and the TFTP server.
[0011] Specifically, when the target terminal device fails to start the VOI desktop system, the IPMI tool can be used to guide the target terminal device into the PXE stage; then, the request information is sent by broadcasting. After the DHCP server receives the request information from the target terminal device, the blockchain network management service verifies the legitimate TFTP server in the target area; then, feedback information is sent to the target terminal device through the blockchain network management service, and the feedback information includes a reasonable Internet protocol (IP), PXE startup file and the address of the TFTP server; then; the target terminal device that enters the PXE stage obtains the file for system startup (i.e., the file required for system startup) according to the PXE startup file and the TFTP server; finally, after obtaining the above files, they are loaded into the memory, and the VOI desktop system is mounted at the same time, and finally the VOI desktop system is started.
[0012] In some embodiments, selecting a target terminal device from a plurality of terminal devices through the blockchain network management service includes: selecting the target terminal device from the plurality of terminal devices through the blockchain network management service within the target area.
[0013] Specifically, if there is an abnormality in the operation of the DHCP service or the TFTP service, the blockchain network management service can conduct an election in the target area and select a terminal device from multiple terminal devices as the target terminal device.
[0014] In some embodiments, the method further includes: initializing a device including the multiple terminal devices and the target server; and starting the blockchain network management service.
[0015] Specifically, the initial deployment of the target server and multiple terminal devices can be prepared, including pre-installing DHCP service, TFTP service, blockchain network management service, VOI desktop system and diskless boot system, and adding IPMI tools for multiple terminal devices. After that, the blockchain network management service is enabled. Furthermore, multiple terminal devices are all in the target area.
[0016] According to a second aspect of an embodiment of the present disclosure, a diskless disaster recovery device is provided, including: a monitoring module, used to monitor whether the DHCP service and the TFTP service are running normally through the blockchain network management service of the target server; a selection module, used to select a target terminal device from multiple terminal devices through the blockchain network management service when the DHCP service or the TFTP service runs abnormally; a first startup module, used to start the DHCP service and the TFTP service through the target terminal device, the DHCP service is unique in the target area; a second startup module, used to start the VOI desktop through PXE when the VOI desktop of the target terminal device fails to start.
[0017] In some embodiments, the second startup module includes: a boot submodule, used to boot the target terminal device into the PXE stage through the IPMI tool; a first acquisition submodule, used to obtain the file for system startup through the DHCP server; a startup submodule, used to load the file for system startup into the memory, mount and start the VOI desktop system.
[0018] In some embodiments, the first acquisition submodule includes: a sending submodule, used to send request information by broadcasting; a verification submodule, used to verify the legitimate simple file transfer protocol TFTP server in the target area through the blockchain network management service according to the request information; a receiving submodule, used to receive feedback information from the blockchain network management service, and the feedback information includes a reasonable Internet Protocol IP, PXE startup file and the address of the TFTP server; a second acquisition submodule, used to obtain the file for system startup according to the PXE startup file and the TFTP server through the target terminal device.
[0019] In some embodiments, the selection module is specifically used to: select the target terminal device from the multiple terminal devices within the target area through the blockchain network management service.
[0020] In some embodiments, the diskless disaster recovery device also includes: an initialization module, used to initialize the device, the device includes the multiple terminal devices and the target server; and an activation module, used to activate the blockchain network management service.
[0021] According to a third aspect of an embodiment of the present disclosure, a diskless disaster recovery device is provided. The diskless disaster recovery processing device includes a processor and a memory. The memory stores at least one computer instruction. The instruction is loaded and executed by the processor to implement the steps performed in the diskless disaster recovery method described in the first aspect and any embodiment of the first aspect.
[0022] Based on the above equipment, not only a decentralized cloud computing service system is provided, which realizes the decentralization of the server side through the blockchain network management service to avoid the dependence of the terminal device on the server side, but also a desktop disaster recovery solution is provided. Through PXE boot diskless loading, when the VOI desktop system of the terminal device is damaged, the system can be loaded normally, thereby improving the user experience.
[0023] According to a fourth aspect of an embodiment of the present disclosure, a computer program storage medium is provided, characterized in that the computer program storage medium has program instructions, and when the program instructions are executed by a processor, the processor executes the method described in the first aspect.
[0024] According to a fifth aspect of an embodiment of the present disclosure, a chip system is provided, characterized in that the chip system includes at least one processor, and when a program instruction is executed in the at least one processor, the at least one processor executes the method described in the first aspect.
[0025] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0027] Figure 1 is a schematic diagram of a diskless disaster recovery method 100 provided in an embodiment of the present disclosure;
[0028] Figure 2 is a flowchart of a desktop system startup method 200 provided by the disclosed embodiment of the present invention;
[0029] Figure 3 is a structural diagram of a diskless disaster recovery device 300 provided in an embodiment of the present disclosure;
[0030] Figure 4 is a structural diagram of a diskless disaster recovery device 400 provided in an embodiment of the present disclosure;
[0031] Figure 5 is another structural diagram of a diskless disaster recovery device 400 provided in an embodiment of the present disclosure;
[0032] Figure 6 is another structural diagram of a diskless disaster recovery device 400 provided in an embodiment of the present disclosure;
[0033] Figure 7 It is another structural diagram of a diskless disaster recovery device 400 provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0034] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0035] Currently, based on the server side, the management of terminal devices usually deploys VOI desktops and starts the VOI desktop system by utilizing the terminal devices.
[0036] However, when the VOI desktop system is damaged, it is impossible to enter the desktop, and the current device cannot be put into a usable state, which seriously affects user use.
[0037] In view of this, the present disclosure provides a diskless disaster recovery method, which can improve the above problems and enhance user experience.
[0038] It should be understood that in the following embodiments, as an example, a cloud computing server, a terminal device, a VOI desktop system, and a diskless boot system may be included.
[0039] The present disclosure provides a diskless disaster recovery method 100. Figure 1 As shown, the diskless disaster recovery method includes the following steps:
[0040] S101, monitor whether the DHCP service and TFTP service in the target area are running normally through the blockchain network management service of the target server.
[0041] Specifically, through the blockchain network management service on each node, in the blockchain network, each node performs network monitoring in the target area, that is, monitors whether the DHCP service and TFTP service in the target area are running normally, thereby ensuring that there are normally running DHCP services and TFTP services in the target area. Among them, the above-mentioned blockchain network management service is started on the target server side by default.
[0042] In a possible embodiment, the target server is a cloud computing server.
[0043] S102, when the DHCP service or the TFTP service runs abnormally, a target terminal device is selected from multiple terminal devices through the blockchain network management service.
[0044] Specifically, a target terminal device can be selected from multiple terminal devices within the target area through the blockchain network management service.
[0045] For example, if there is an abnormality in the operation of the DHCP service or the TFTP service, the blockchain network management service can conduct an election in the target area and select a terminal device from multiple terminal devices as the target terminal device. Furthermore, the multiple terminal devices are all in the target area.
[0046] S103, starting the DHCP service and the TFTP service through the target terminal device.
[0047] The DHCP service is unique in the target area.
[0048] Specifically, the DHCP service and TFTP service are started by the selected target terminal device, and it is ensured that there is only one DHCP service in the target area. After the newly added terminal device is started, the blockchain network management service will automatically add the target terminal device to the target area.
[0049] S104, when the VOI desktop of the target terminal device fails to start, start the VOI desktop through PXE.
[0050] Specifically, starting the VOI desktop through PXE includes:
[0051] Use the IPMI tool to guide the target terminal device into the PXE stage;
[0052] Obtain the file used for system startup through the DHCP server;
[0053] Load the files used for system startup into the memory, mount and start the VOI desktop system.
[0054] Furthermore, in the above solution, obtaining the file for system startup through the DHCP server includes:
[0055] Send request information by broadcasting;
[0056] Based on the request information, verify the legitimate TFTP server in the target area through the blockchain network management service;
[0057] Receive feedback from the blockchain network management service, including the address of the appropriate Internet Protocol IP, PXE boot file, and TFTP server;
[0058] Obtain the file used for system startup through the target terminal device based on the PXE startup file and the TFTP server.
[0059] Specifically, when the target terminal device fails to start the VOI desktop system, the IPMI tool can be used to guide the target terminal device into the PXE stage; then, the request information is sent by broadcasting. After the DHCP server receives the request information from the target terminal device, the blockchain network management service verifies the legitimate TFTP server in the target area; then, feedback information is sent to the target terminal device through the blockchain network management service, and the feedback information includes a reasonable IP, PXE startup file and the address of the TFTP server; then; the target terminal device that enters the PXE stage obtains the file for system startup (i.e., the file required for system startup) according to the PXE startup file and the TFTP server; finally, after obtaining the above files, they are loaded into the memory, and the VOI desktop system is mounted at the same time, and the VOI desktop system is finally started.
[0060] It should be understood that in the above scheme, if the request information fails to be sent by broadcasting, for example, all DHCP services in the target area are abnormal, then log out directly; only when there is a normally operating DHCP service, the step of verifying the legitimate TFTP server in the target area by the blockchain network management service in the above scheme will be executed.
[0061] Optionally, the method 100 may further include:
[0062] Initialize the device; start the blockchain network management service.
[0063] The devices include multiple terminal devices and a target server.
[0064] Specifically, before step S110, the method may also include preparing the initial deployment of the target server and multiple terminal devices, including pre-installing DHCP service, TFTP service, blockchain network management service, VOI desktop system and diskless boot system, and adding IPMI tools for multiple terminal devices. After that, the blockchain network management service is enabled. Furthermore, multiple terminal devices are all within the target area.
[0065] It should be understood that in another possible solution, when the target terminal device successfully starts the VOI desktop, it can directly enter the VOI desktop system.
[0066] Figure 2 2 is a flowchart of a desktop system startup method 200 provided by the present disclosure embodiment.
[0067] Based on the above solution, not only a decentralized cloud computing service system is provided, which realizes the decentralization of the server side through the blockchain network management service to avoid the dependence of the terminal device on the server side, but also a desktop disaster recovery solution is provided. Through PXE boot diskless loading, when the VOI desktop system of the terminal device is damaged, the system can be loaded normally, thereby improving the user experience.
[0068] Based on the above Figure 1 The diskless disaster recovery method described in the corresponding embodiment is as follows: an embodiment of the device of the present disclosure, which can be used to execute the embodiment of the method of the present disclosure.
[0069] The present disclosure provides a diskless disaster recovery device, such as Figure 3 The diskless disaster recovery device 300 includes a memory 301 and a processor 302 .
[0070] The memory 301 is used to store programs.
[0071] When the program is executed in the processor 302, the processor 302 is used to execute the above-mentioned diskless disaster recovery method.
[0072] Processor 303 is used to: monitor whether the DHCP service and the TFTP service are running normally through the blockchain network management service of the target server; when the DHCP service or the TFTP service runs abnormally, select the target terminal device from multiple terminal devices through the blockchain network management service; start the DHCP service and the TFTP service through the target terminal device, and the DHCP service is unique in the target area; when the VOI desktop of the target terminal device fails to start, start the VOI desktop through PXE.
[0073] Optionally, the processor 303 is specifically used to: guide the target terminal device to enter the PXE stage through the IPMI tool; obtain the file for system startup through the DHCP server; load the file for system startup into the memory, mount and start the VOI desktop system.
[0074] Optionally, the processor 303 is specifically used to: send request information by broadcasting; verify the legitimate simple file transfer protocol TFTP server in the target area through the blockchain network management service according to the request information; receive feedback information from the blockchain network management service, the feedback information includes a reasonable Internet Protocol IP, PXE boot file and the address of the TFTP server; obtain the file for system startup according to the PXE boot file and the TFTP server through the target terminal device.
[0075] Optionally, the processor 303 is specifically used to: select a target terminal device from multiple terminal devices in the target area through the blockchain network management service.
[0076] Optionally, the processor 303 is also used to: initialize the device, start the blockchain network management service, the device includes multiple terminal devices and a target server, and the multiple terminal devices include the target terminal device.
[0077] Based on the above equipment, not only a decentralized cloud computing service system is provided, which realizes the decentralization of the server side through the blockchain network management service to avoid the dependence of the terminal device on the server side, but also a desktop disaster recovery solution is provided. Through PXE boot diskless loading, when the VOI desktop system of the terminal device is damaged, the system can be loaded normally, thereby improving the user experience.
[0078] Based on the above Figure 1 The diskless disaster recovery method described in the corresponding embodiment is as follows: an embodiment of the device of the present disclosure, which can be used to execute the embodiment of the method of the present disclosure.
[0079] Based on the above Figure 1 In accordance with the diskless disaster recovery method described in the embodiment, the present disclosure also provides a diskless disaster recovery device 400, such as Figure 4 shown.
[0080] The diskless disaster recovery device 400 includes: a monitoring module 410, which is used to monitor whether the DHCP service and the TFTP service are running normally through the blockchain network management service of the target server; a selection module 420, which is used to select a target terminal device from multiple terminal devices through the blockchain network management service when the DHCP service or the TFTP service runs abnormally; a first startup module 430, which is used to start the DHCP service and the TFTP service through the target terminal device, and the DHCP service is unique in the target area; a second startup module 440, which is used to start the VOI desktop through PXE when the VOI desktop startup of the target terminal device fails.
[0081] Alternatively, if Figure 5 As shown, the second startup module 440 includes: a boot submodule 4401, used to boot the target terminal device into the PXE stage through the IPMI tool; a first acquisition submodule 4402, used to obtain the file for system startup through the DHCP server; a startup submodule 4403, used to load the file for system startup into the memory, mount and start the VOI desktop system.
[0082] Alternatively, if Figure 6 As shown, the first acquisition submodule 4402 includes: a sending submodule 44021, which is used to send request information by broadcasting; a verification submodule 44022, which is used to verify the legal simple file transfer protocol TFTP server in the target area through the blockchain network management service according to the request information; a receiving submodule 44023, which is used to receive feedback information from the blockchain network management service, and the feedback information includes a reasonable Internet Protocol IP, PXE boot file and the address of the TFTP server; a second acquisition submodule 44024, which is used to obtain the file for system startup according to the PXE boot file and the TFTP server through the target terminal device.
[0083] Optionally, the selection module 420 is specifically used to: select a target terminal device from multiple terminal devices in a target area through a blockchain network management service.
[0084] Alternatively, if Figure 7 As shown, the diskless disaster recovery device 400 also includes: an initialization module 450, which is used to initialize the device, and the device includes multiple terminal devices and a target server; an activation module 460, which is used to activate the blockchain network management service.
[0085] Based on the above Figure 1In accordance with the diskless disaster recovery method described in the embodiment, the embodiment of the present disclosure further provides a computer-readable storage medium, for example, a non-temporary computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device. The storage medium stores computer instructions for executing the above Figure 1 The diskless disaster recovery method described in the corresponding embodiment will not be described in detail here.
[0086] Based on the above Figure 1 Corresponding to the diskless disaster recovery method described in the embodiment, the embodiment of the present disclosure also provides a chip system, the chip system includes at least one processor, when the program instruction is executed in the at least one processor, the at least one processor executes the above Figure 1 The diskless disaster recovery method described in the corresponding embodiment will not be described in detail here.
[0087] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0088] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A diskless disaster recovery method, characterized in that: include: Monitor whether the Dynamic Host Configuration Protocol DHCP service and the Trivial File Transfer Protocol TFTP service are running normally through the blockchain network management service of the target server; When the DHCP service or the TFTP service runs abnormally, a target terminal device is selected from multiple terminal devices through the blockchain network management service; Starting the DHCP service and the TFTP service through the target terminal device, wherein the DHCP service is unique in the target area; When the virtual operating system infrastructure VOI desktop of the target terminal device fails to start, the VOI desktop is started through the pre-boot execution environment PXE.
2. The method according to claim 1, characterized in that The starting the VOI desktop through PXE includes: Guide the target terminal device to enter the PXE stage through the intelligent platform management interface IPMI tool; Obtain the file used for system startup through the DHCP server; The file for system startup is loaded into the memory, and the VOI desktop system is mounted and started.
3. The method according to claim 2, characterized in that The step of obtaining a file for system startup through a DHCP server includes: Send request information by broadcasting; According to the request information, verify the legitimate simple file transfer protocol TFTP server in the target area through the blockchain network management service; Receive feedback information from the blockchain network management service, the feedback information including a reasonable Internet Protocol IP, a PXE boot file, and the address of the TFTP server; The target terminal device obtains a file for system startup according to the PXE startup file and the TFTP server.
4. The method according to claim 1, characterized in that: The selecting a target terminal device from a plurality of terminal devices through the blockchain network management service includes: The target terminal device is selected from the multiple terminal devices in the target area through the blockchain network management service.
5. The method according to claim 1, characterized in that The method further comprises: Initializing a device, the device comprising the plurality of terminal devices and the target server, the plurality of terminal devices including the target terminal device; Enable the blockchain network management service.
6. A diskless disaster recovery device, characterized in that: including memory and processor; The memory is used to store programs; When the program is executed in the processor, the processor is configured to: Monitor whether the DHCP service and TFTP service are running normally through the blockchain network management service of the target server; When the DHCP service or the TFTP service runs abnormally, a target terminal device is selected from multiple terminal devices through the blockchain network management service; Starting the DHCP service and the TFTP service through the target terminal device, wherein the DHCP service is unique in the target area; When the VOI desktop of the target terminal device fails to start, the VOI desktop is started through PXE.
7. The device according to claim 6, characterized in that The processor is specifically used for: Guide the target terminal device to enter the PXE stage through the IPMI tool; Obtain the file used for system startup through the DHCP server; The file for system startup is loaded into the memory, and the VOI desktop system is mounted and started.
8. The device according to claim 7, characterized in that The processor is specifically used for: Send request information by broadcasting; According to the request information, verify the legitimate simple file transfer protocol TFTP server in the target area through the blockchain network management service; Receive feedback information from the blockchain network management service, the feedback information including a reasonable Internet Protocol IP, a PXE boot file, and the address of the TFTP server; The target terminal device obtains a file for system startup according to the PXE startup file and the TFTP server.
9. The device according to claim 6, characterized in that The processor is specifically used for: The target terminal device is selected from the multiple terminal devices in the target area through the blockchain network management service.
10. A computer-readable storage medium, characterized in that: The computer program storage medium has program instructions, and when the program instructions are executed by a processor, the processor is caused to execute the method according to any one of claims 1 to 5.