System recovery method and device for remote equipment, equipment and medium
By remotely sending WOL signals and data copying technology, it solves the problem in the existing technology that equipment recovery requires manual intervention and can only be restored in the shutdown state. It realizes automatic recovery and efficient recovery in any equipment state, and improves the system's reliability. Flexibility and reliability.
Patent Information
- Application Number
- CN202410723482.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing network equipment recovery methods require manual intervention and can only be restored when the equipment is turned off. It cannot respond quickly and automatically recover when it is running, resulting in low fault handling efficiency and high cost.
By remotely sending WOL signals, the system recovery controller is activated, the device status is detected, and the data is copied from the backup data storage area to the system data storage area when the device is not running. After completing the data integrity verification, the device is started to realize the device recovery in any state. automatic recovery.
It achieves rapid recovery without manual intervention when equipment fails, improves the flexibility and efficiency of system recovery, and enhances system reliability through data integrity verification.
Smart Images

Figure CN118733339A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to computer technology, in particular to a remote device system recovery method, device, equipment and medium. Background Art
[0002] In the context of the Internet of Things (IoT) and remote management, network devices may encounter various failures, such as software crashes, hardware failures, or system failures. Existing methods for restoring network devices usually require manual intervention, meaning that technicians must personally visit the device site to troubleshoot and restore the system. This approach is not only time-consuming but also costly, especially when the devices are widely distributed or located in remote areas.
[0003] In addition, existing network equipment recovery methods usually rely on the device being in a powered-off state to receive the WOL (Wake-on-LAN) signal and start up. This limits the ability to recover when a failure occurs while the device is in operation. For example, if a device suddenly crashes during operation, technicians may not be able to arrive at the site in time, resulting in data loss or system damage.
[0004] Therefore, there is an urgent need for a method that can receive WOL signals and perform system recovery when the device is in any state (including shutdown, normal operation, standby, suspension, failure, etc.) to achieve remote startup of the device and automatically perform recovery operations when the device is in a crashed or inoperable state. Summary of the invention
[0005] In view of the above-mentioned shortcomings of the prior art, the purpose of the present disclosure is to provide a system recovery method, apparatus, device and medium for a remote device to solve the problems in the related art.
[0006] A first aspect of the present disclosure provides a system recovery method for a remote device, which is applied to a target device, and includes: receiving a WOL signal from a control device; activating a system recovery controller to prepare for system recovery in response to the received WOL signal; detecting whether the current system is in a running state; when it is detected that the system is not in a running state, retrieving backup data from a backup data storage area, and copying the backup data to a system data storage area; after the copy operation is completed, starting the system of the target device.
[0007] In an embodiment of the first aspect, it also includes: if it is detected that the system is in a running state, executing a system shutdown program to stop the current operation of the system; after the system stops running, executing the same system recovery steps as the previous embodiment.
[0008] In an embodiment of the first aspect, after the data copy operation is completed, it also includes: performing data integrity verification on the backup data copied to the system data storage area to confirm the consistency of the copied data with the backup data; if the data integrity verification is successful, continuing to start the system of the target device; if the data integrity verification fails, recording corresponding error diagnostic information, and activating an error handler to perform error correction or recovery attempts.
[0009] In an embodiment of the first aspect, the data integrity verification includes: comparing each data bit of the data copied to the system data storage area with the backup data one by one; detecting whether there is a data bit error or damage, and recording the detected error information; if no data bit error is found, confirming that the data integrity verification is successful; if a data bit error is found, the data integrity verification fails.
[0010] In an embodiment of the first aspect, the network data packet of the WOL signal includes a data structure of 106 to 108 bytes; the first 6 bytes of the data structure are a fixed hexadecimal value 0xFF; the middle 96 bytes of the data structure are the media access control address of the target device repeated 16 times continuously; the end of the data structure either includes 4 to 6 bytes of password data, or does not include password data.
[0011] In an embodiment of the first aspect, it also includes: providing feedback information to the control device based on the system recovery result of the target device; if the system recovery operation of the target device is successful, sending a system recovery success message to the control device; if the system recovery operation of the target device fails, sending a diagnostic message containing the cause of failure to the control device.
[0012] A second aspect of the present disclosure discloses a system recovery method for a remote device, which is applied to a control device, comprising: sending a WOL signal to a target device to trigger the target device to respond to the WOL signal and perform a system recovery operation; receiving feedback information sent by the target device to perform a next step operation according to the system recovery result of the target device.
[0013] In an embodiment of the second aspect, the next operation includes one or more combinations of resending a WOL signal, starting a backup recovery program, and notifying a maintenance personnel.
[0014] The third aspect of the present disclosure discloses a system recovery device for a remote device, which is arranged in a target device, and includes: a first receiving module, used to receive a WOL signal from a control device; an activation module, used to activate a system recovery controller in response to the received WOL signal to prepare for system recovery; a detection module, used to detect whether the current system is in a running state; a copy module, used to retrieve backup data from a backup data storage area and copy the backup data to a system data storage area when it is detected that the system is not in a running state; and an execution module, used to start the system of the target device after the copy operation is completed.
[0015] The fourth aspect of the present disclosure discloses a system recovery device for a remote device, which is arranged in a control device, and includes: a sending module, used to send a WOL signal to a target device to trigger the target device to respond to the WOL signal and perform a system recovery operation; a second receiving module, used to receive feedback information sent by the target device to perform a next step operation according to the system recovery result of the target device.
[0016] A fifth aspect of the present disclosure discloses a remote device for executing the method described in any one of the first aspects, comprising a system data storage area, a backup data storage area and a system recovery controller; the system data storage area and the backup data storage area are located on the same storage medium and are divided into two different areas by a logical address space; or the system data storage area and the backup data storage area are located on different storage media; the system recovery controller is used to read data from the backup data storage area and copy the read data to the system data storage area.
[0017] The sixth aspect of the present disclosure discloses an electronic device, comprising: a processor and a memory; wherein the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory, so that the electronic device executes the system recovery method of the remote device as described in any one of the first aspect, or the system recovery method of the remote device as described in any one of the second aspect.
[0018] The seventh aspect of the present disclosure discloses a computer-readable storage medium having a computer program stored thereon, which, when executed by an electronic device, implements the system recovery method for a remote device as described in any one of the first aspect or the system recovery method for a remote device as described in any one of the second aspect.
[0019] As described above, the system recovery method, device, equipment and medium of the remote device disclosed in the present invention realizes remote wake-up and system recovery of network devices by remotely sending WOL signals, so that when a device fails, it can quickly respond and automatically perform recovery operations without manual intervention. This solution can not only perform recovery when the device is turned off, but also execute the system recovery process when the device is in operation, greatly improving the flexibility and efficiency of system recovery. In addition, a data integrity verification process is set to improve the reliability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 A flowchart of a system recovery method for a remote device in an embodiment of the present disclosure is shown.
[0021] Figure 2 A schematic flow chart showing a method for restoring a system of a remote device in another embodiment of the present disclosure.
[0022] Figure 3 A module schematic diagram showing a system recovery device for a remote device in an embodiment of the present disclosure.
[0023] Figure 4 A module schematic diagram showing a system recovery apparatus for a remote device in another embodiment of the present disclosure.
[0024] Figure 5a A schematic diagram showing system recovery of a remote device in an embodiment of the present disclosure.
[0025] Figure 5b A schematic diagram showing system recovery of a remote device in another embodiment of the present disclosure.
[0026] Figure 6 A schematic diagram of the circuit structure of an electronic device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0027] The following is an explanation of the embodiments of the present disclosure by specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the information disclosed by the present disclosure. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in the present disclosure can also be modified or changed in various ways according to different viewpoints and application modules without departing from the spirit of the present disclosure. It should be noted that the embodiments in the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0028] Although not defined differently, all terms, including technical and scientific terms used herein, have the same meaning as those generally understood by those skilled in the art to which the present disclosure belongs. Terms defined in commonly used dictionaries are additionally interpreted as having meanings consistent with relevant technical literature and the message of the present disclosure, and shall not be overly interpreted as ideal or very formal meanings unless defined.
[0029] The technical solutions in the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0030] like Figure 1 As shown, a flow chart of a system recovery method for a remote device in an embodiment of the first aspect of the present disclosure is shown. The method is applied to a target device and includes steps S11-S15.
[0031] Step S11: receiving a WOL signal from a control device.
[0032] Specifically, WOL (Wake-on-LAN) technology provides a mechanism that enables devices that have entered a sleep or shutdown state to receive specific network commands through a local area network device, thereby being awakened from the sleep or shutdown state and then switched to the power-on state. This technology is implemented by sending a network data packet containing a specific data structure. In the implementation of WOL, this special network data packet contains key information for waking up the target device. Usually, the first 6 bytes of this data packet are a fixed hexadecimal value of 0xFF, the middle 96 bytes are the MAC address of the target device, repeated 16 times, and the end can contain 4 to 6 bytes of password data, which is to increase security.
[0033] The control device (such as a network management server, PC or other device) generates a WOL signal containing a specific data structure, and then sends the WOL signal through the network to the local area network (LAN) where the target device is located. The WOL signal is usually sent through Ethernet, but it can also be sent through other network protocols. After the network interface card of the target device receives this signal, it checks the first 6 bytes of the data packet to confirm whether it is a WOL signal.
[0034] Step S12: In response to the received WOL signal, activate the system recovery controller to prepare for system recovery.
[0035] Specifically, after confirming receipt of the WOL signal, the target device sends a signal through the GPIO interface to notify the system recovery controller. After receiving the GPIO signal, the system recovery controller immediately starts preparing to perform the system recovery operation.
[0036] Step S13: Detect whether the current system is in operation.
[0037] Step S14: when it is detected that the system is not in operation, the backup data is retrieved from the backup data storage area, and the backup data is copied to the system data storage area.
[0038] Specifically, the system recovery controller periodically checks the current system status. The check can be performed in a variety of ways, such as through the system management interface (SMI), the system status register (SSR), or the status query function provided by the operating system. The purpose of the detection is to determine whether the system is in a running state and whether a system recovery operation needs to be performed.
[0039] When the system recovery controller detects that the system is not in operation, it starts the recovery process. First, the system recovery controller confirms whether there is valid backup data in the backup data storage area. If there is valid backup data, the system recovery controller retrieves the data from the backup data storage area, and the retrieved backup data is copied to the system data storage area. In addition, the data replication process may be synchronous or asynchronous, depending on the system design and performance requirements. The replication process can also use hardware accelerators, such as Raid controllers or dedicated replication chips, to improve efficiency. During the replication process, the system recovery controller monitors the replication progress to ensure data integrity and consistency.
[0040] In some implementations, if it is detected that the system is in operation, a system shutdown procedure is executed to stop the current operation of the system; after the system stops running, the same system recovery steps as above are executed.
[0041] Specifically, if the system recovery controller detects that the system is running, it will execute the system shutdown procedure. The system shutdown procedure may include saving the current state, closing all processes, saving the system configuration, etc. After shutting down the system, the system recovery controller will execute the same recovery process as when the system is not running, including retrieving the backup data from the backup data storage area and copying it to the system data storage area.
[0042] Step S15: After the copy operation is completed, start the system of the target device.
[0043] In order to ensure the security and reliability of system data, in some embodiments, after the data copy operation is completed, a step of performing data integrity verification is also included. The purpose of this step is to confirm the consistency of the backup data copied to the system data storage area with the original backup data to prevent system instability or data loss caused by errors in the data copy process.
[0044] In more detail, the verification process involves a bit-by-bit comparison of the data copied to the system data storage area with each data bit of the original backup data, with the goal of ensuring that the copied data is completely consistent with the original backup data and has no errors or corruption. In principle, the system recovery controller extracts the copied data from the system data storage area, and at the same time, the controller extracts the corresponding backup data from the original backup data storage area. The controller compares the copied data with the original backup data bit by bit. The comparison process starts with the smallest unit of data, the bit, and compares each bit of data one by one. The comparator compares the bits in the two data streams one by one to ensure that they are completely consistent. During the comparison process, if two data bits are found to be inconsistent, the comparator will immediately detect the error. The controller will record the bit position where the error occurred for subsequent error handling.
[0045] If the data integrity verification is successful, indicating that the backup data has been correctly copied, the system recovery controller will execute the system program to start the target device. If the data integrity verification fails, indicating that there is a data error or damage, the system recovery controller will record the corresponding error information and activate the error handling program. Among them, the error handling program is: according to the recorded error information, try to correct the error or make a recovery attempt. Correcting the error may include re-copying the data, repairing data damage, or performing other recovery measures. The recovery attempt may include trying to copy the data again, starting the backup system, or taking other measures. If the data integrity verification is successful, the system recovery controller will continue to execute the system program to start the target device. The startup program may include steps such as performing a self-test, loading the operating system, initializing the hardware device, and restoring the system configuration. The system recovery controller will control the execution of these steps to ensure the smooth progress of the system recovery.
[0046] In order to enable the control device to promptly learn the system recovery result of the target device and provide corresponding feedback information, in some embodiments, the system recovery controller of the target device will provide feedback information to the control device according to the recovery result after performing the system recovery operation. The feedback information can be a status report of the target device, including the success or failure of the recovery operation and any relevant diagnostic data.
[0047] Specifically, if the system recovery operation of the target device is successful, the system recovery controller will send a system recovery success message to the control device, which may include the completion time of the recovery operation, the system status, and any additional information, such as the verification result of the backup data. If the system recovery operation of the target device fails, the system recovery controller will send a diagnostic message containing the reason for the failure to the control device, which may include the failure time of the recovery operation, the system status, and the specific reason for the failure, such as data replication error, hardware failure, or system configuration problem. Feedback information can be transmitted through a variety of communication protocols, including but not limited to TCP / IP, UDP, HTTP, or HTTPS. The control device can be set to periodically poll or receive push notifications from the target device to obtain feedback on the system recovery results. The control device can monitor the feedback information of the target device and take corresponding actions based on the system recovery results. For example, if the system recovery is successful, the control device can continue to monitor the operating status of the target device; if the system recovery fails, the control device can start the recovery program or notify maintenance personnel.
[0048] Through the above implementation, remote control and automated management of the target device are achieved, so that when a device fails, it can respond quickly and automatically perform recovery operations without manual intervention. This technical solution can achieve remote wake-up and system recovery of the device without relying on the device being in a shutdown state, greatly improving the efficiency and speed of system recovery. Through data integrity verification and error handling procedures, this technical solution enhances the stability and security of the system and improves the reliability and availability of the system. In addition, the control device can promptly understand the system recovery results of the target device and take corresponding actions based on the feedback information, improving the transparency and responsiveness of the system.
[0049] like Figure 2 As shown, a flow chart of a system recovery method for a remote device in an embodiment of the second aspect of the present disclosure is shown. The method is applied to a control device and includes steps S21-S22.
[0050] Step S21: Send a WOL signal to the target device to trigger the target device to respond to the WOL signal and perform a system recovery operation.
[0051] Specifically, a control device (such as a network management server, PC or other device) generates a WOL signal containing a specific data structure, which usually includes a fixed first 6 bytes (0xFF), the middle 96 bytes are the MAC address of the target device, repeated 16 times, and an optional 4 to 6 bytes of password data. The control device sends the WOL signal to the local area network (LAN) where the target device is located through the network. The WOL signal is usually sent through Ethernet, but it can also be sent through other network protocols. The network interface card (NIC) of the target device receives the WOL signal, and the NIC checks the fixed first 6 bytes of the data packet to determine whether it is a WOL signal. If a WOL signal is detected, the target device sends a signal to notify the system recovery controller through the GPIO interface. After receiving the GPIO signal, the system recovery controller begins to prepare to perform a system recovery operation, which includes reading data from the backup data storage area and writing it to the system data storage area. After the data is copied, the system recovery controller starts the system of the target device. The system recovery operation may include performing self-test, loading the operating system, initializing hardware devices, and restoring system configuration.
[0052] Step S22: receiving feedback information sent by the target device to perform the next operation according to the system recovery result of the target device.
[0053] Specifically, the control device is provided with a special receiving mechanism for receiving feedback information sent by the target device. The feedback information can be sent via a predetermined communication protocol (such as TCP / IP, UDP, HTTP or HTTPS). After receiving the feedback information, the control device parses the information to obtain the system recovery result of the target device. The feedback information may include the success or failure of the recovery operation, the system status, and any relevant diagnostic data. According to the system recovery result of the target device, the control device performs the corresponding next step. If the system recovery is successful, the control device can continue to monitor the operating status of the target device or perform other predetermined operations. If the system recovery fails, in some embodiments, the control device can resend the WOL signal or start the recovery program, notify the maintenance personnel or take other measures. In addition, the control device can record the feedback information of the target device for subsequent analysis and reporting. The control device can also generate a report to summarize the system recovery results of the target device and provide it to relevant personnel.
[0054] Through the above implementation, by sending a WOL signal to the target device, remote control and automatic management of the target device are achieved, so that when a device fails, a quick response and automatic recovery operation can be performed without manual intervention.
[0055] It should be particularly noted that the process or method represented by the flowchart of the above embodiment of the present disclosure can be understood as representing a module, fragment or part of a code including one or more sets of executable instructions configured to implement the steps of a specific logical function or process. And the scope of the preferred embodiment of the present disclosure includes other implementations, in which the functions may not be performed in the order shown or discussed, including performing the functions in a substantially simultaneous manner or in a reverse order according to the functions involved.
[0056] like Figure 3 As shown, the system recovery device 30 of the remote device of the present disclosure is shown, which is set in the target device. It should be noted that the principle and technical implementation of the system recovery device of the remote device can refer to the system recovery method embodiment of the remote device in the previous embodiment (for example Figure 1 ), so it will not be repeated in this embodiment.
[0057] Specifically, the electronic tag radio frequency identification device 30 includes: a first receiving module 31, an activation module 32, a detection module 33, a copy module 34, and an execution module 35, wherein:
[0058] The first receiving module is used to receive a WOL signal from a control device;
[0059] The activation module is used to activate the system recovery controller to prepare for system recovery in response to the received WOL signal;
[0060] The detection module is used to detect whether the current system is in a running state;
[0061] The copy module is used to retrieve the backup data from the backup data storage area and copy the backup data to the system data storage area when it is detected that the system is not in operation;
[0062] The execution module is used to start the system of the target device after the copy operation is completed.
[0063] like Figure 4 As shown, a system recovery device 40 of a remote device in an embodiment of the present disclosure is shown, which is installed in a control device. It should be noted that the principle and technical implementation of the system recovery device of the remote device can refer to a system recovery method embodiment of a remote device in the previous embodiment (for example Figure 2 ), so it will not be repeated in this embodiment.
[0064] Specifically, the system recovery device 40 of the remote device includes: a sending module 41 and a second receiving module 42, wherein:
[0065] The sending module 41 is used to send a WOL signal to the target device to trigger the target device to respond to the WOL signal and perform a system recovery operation;
[0066] The second receiving module 42 is used to receive feedback information sent by the target device, so as to perform the next operation according to the system recovery result of the target device.
[0067] It should be noted that in Figure 3 , Figure 4 Each functional module in the embodiment can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a program instruction product. The program instruction product includes one or a group of program instructions. When the program instruction is loaded and executed on a computer, the process or function according to the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable devices. The program instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
[0068] and, Figure 3 , Figure 4 The device disclosed in the embodiment can be implemented by other module division methods. The device embodiments shown above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as a group of modules or modules can be combined or dynamically added to another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical or other forms.
[0069] in addition, Figure 3 , Figure 4 Each functional module and submodule in the embodiment can be dynamically in a processing component, or each module can exist physically separately, or two or more modules can be dynamically in one component. The above-mentioned dynamic components can be implemented in the form of hardware or in the form of software functional modules. If the above-mentioned dynamic components are implemented in the form of software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a disk or an optical disk, etc.
[0070] The fifth aspect of the present disclosure relates to a remote device 50, which is used to execute a method as described in any embodiment of the first aspect, including: a system data storage area 51, a backup data storage area 52 and a system recovery controller 53; the system recovery controller 53 is used to read data from the backup data storage area 52 and copy the read data to the system data storage area 51.
[0071] The system data storage area 51 and the backup data storage area 52 can exist in two different ways. The first way is that they are located on the same storage medium and divided into two different areas by logical address space, such as Figure 5a As shown, a schematic diagram of system recovery of a remote device 50 is shown. The second way is that the system data storage area 51 and the backup data storage area 52 are located on different storage media, such as Figure 5b As shown, a schematic diagram of system recovery of the remote device 50 is shown.
[0072] like Figure 6 As shown, a schematic diagram of the structure of an electronic device in an embodiment of the present disclosure is shown.
[0073] The electronic device can execute the following steps by running the computer program instructions: Figure 1 , Figure 2 The method of any one of the above. Exemplarily, the electronic device may be a server group / server, a desktop computer, a laptop computer, etc., so as to be used to run the following Figure 1 Alternatively, the electronic device may be a server / server group, a distributed computing node system, etc. in the cloud that communicates remotely with the local terminal, and by executing Figure 2 System recovery method for remote devices in.
[0074] The electronic device 60 includes a bus 61, a processor 62, and a memory 63. The processor 62 and the memory 63 can communicate with each other through the bus 61. The memory 63 may store program instructions. The processor 62 implements the method steps in the previous embodiment by running the program instructions in the memory 63, such as Figure 1 , Figure 2 Any method.
[0075] The bus 61 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, although only one thick line is used in the figure, it does not mean that there is only one bus or one type of bus.
[0076] In some embodiments, the processor 62 may be implemented as a central processing unit (CPU), a microprocessing unit (MCU), a system on chip (System On Chip), or a field programmable logic array (FPGA). The memory 63 may include a volatile memory (Volatile Memory) for temporary storage of data when running a program, such as a random access memory (Random Access Memory, RAM).
[0077] The memory 63 may also include a non-volatile memory (non-volatile memory) for data storage, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state disk (SSD).
[0078] In some embodiments, the electronic device 60 may further include a communicator 64. The communicator 64 is used to communicate with the outside. In a specific example, the communicator 64 may include one or a group of wired and / or wireless communication circuit modules. For example, the communicator 64 may include one or more of a wired network card, a USB module, a serial interface module, etc. The wireless communication protocols followed by the wireless communication module include: for example, near field wireless communication (NFC) technology, infrared (IR) technology, global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time division code division multiple access (TD-SCDMA), long term evolution (LTE), Bluetooth (BT), global navigation satellite system (GNSS), etc. One or more of the above.
[0079] In an embodiment of the present disclosure, a computer-readable storage medium may be provided, wherein program instructions are stored, and the program instructions are executed by running, for example Figure 1 The system recovery method of the remote device in the embodiment, or executing, for example Figure 2 A system recovery method for a remote device in an embodiment.
[0080] That is, the method steps in the above embodiments are implemented as software or computer code that can be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk or magneto-optical disk), or are implemented as computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded via a network and to be stored in a local recording medium, so that the method represented herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware (such as an ASIC or FPGA).
[0081] In summary, the system recovery method, device, equipment and medium of the remote device disclosed in the present invention realizes remote wake-up and system recovery of network devices by remotely sending WOL signals, so that when a device fails, it can quickly respond and automatically perform recovery operations without manual intervention. This solution can not only perform recovery when the device is powered off, but also execute the system recovery process when the device is in operation, greatly improving the flexibility and efficiency of system recovery. In addition, a data integrity verification process is set to improve the reliability of the system.
[0082] The above embodiments are merely illustrative of the principles and effects of the present disclosure, and are not intended to limit the present disclosure. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present disclosure. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present disclosure shall still be covered by the claims of the present disclosure.
Claims
1. A system recovery method for a remote device, applied to a target device, characterized in that: include: Receive WOL signal from control device; In response to the received WOL signal, activating a system recovery controller to prepare for system recovery; Check whether the current system is in operation; When it is detected that the system is not in operation, retrieving the backup data from the backup data storage area, and copying the backup data to the system data storage area; After the copy operation is complete, boot the target device's system.
2. The system recovery method of the remote device according to claim 1, characterized in that: Also includes: If it is detected that the system is in a running state, executing a system shutdown procedure to stop the current operation of the system; After the system stops running, the same system recovery steps as in claim 1 are performed.
3. The system recovery method of the remote device according to claim 1, characterized in that: After the data copy operation is completed, the method further includes: Performing data integrity verification on the backup data copied to the system data storage area to confirm the consistency of the copied data with the backup data; If the data integrity verification is successful, continue to boot the system of the target device; If data integrity verification fails, appropriate error diagnostic information is logged and an error handler is activated to perform error correction or recovery attempts.
4. The system recovery method of the remote device according to claim 3, characterized in that: The data integrity verification includes: Compare each data bit of the data copied to the system data storage area with that of the backup data one by one; Detect whether there are data bit errors or damages, and record the detected error information; If no data bit errors are found, the data integrity verification is confirmed to be successful; If a data bit error is found, the data integrity verification fails.
5. The system recovery method of a remote device according to claim 1, characterized in that: The network data packet of the WOL signal includes a data structure of 106 to 108 bytes; The first 6 bytes of the data structure are fixed hexadecimal values 0xFF; The middle 96 bytes of the data structure are the media access control address of the target device repeated 16 times continuously; The end of the data structure may contain 4 to 6 bytes of cryptographic data or no cryptographic data.
6. The system recovery method of a remote device according to claim 1, characterized in that: Also includes: Providing feedback information to the control device according to the system recovery result of the target device; If the system recovery operation of the target device is successful, sending a system recovery success message to the control device; If the system recovery operation of the target device fails, a diagnostic message including the cause of the failure is sent to the control device.
7. A system recovery method for a remote device, applied to a control device, characterized in that: include: Sending a WOL signal to the target device to trigger the target device to respond to the WOL signal and perform a system recovery operation; Receive feedback information sent by the target device to perform next operation according to the system recovery result of the target device.
8. The system recovery method of a remote device according to claim 1, characterized in that: The next step operation includes one or more combinations of resending the WOL signal, starting the backup recovery program, and notifying maintenance personnel.
9. A system recovery device for a remote device, arranged on a target device, characterized in that: include: A first receiving module, used for receiving a WOL signal from a control device; an activation module, configured to activate a system recovery controller to prepare for system recovery in response to a received WOL signal; A detection module is used to detect whether the current system is in operation; A copy module, for retrieving backup data from a backup data storage area and copying the backup data to a system data storage area when it is detected that the system is not in an operating state; The execution module is used to start the system of the target device after the copy operation is completed.
10. A system recovery device for a remote device, arranged in a control device, characterized in that: include: A sending module, used for sending a WOL signal to a target device to trigger the target device to respond to the WOL signal and perform a system recovery operation; The second receiving module is used to receive feedback information sent by the target device to perform the next operation according to the system recovery result of the target device.
11. A remote device, used to execute the method according to any one of claims 1 to 6, characterized in that: It includes a system data storage area, a backup data storage area and a system recovery controller; The system data storage area and the backup data storage area are located on the same storage medium and are divided into two different areas through a logical address space; Or the system data storage area and the backup data storage area are located on different storage media; The system recovery controller is used to read data from the backup data storage area and copy the read data to the system data storage area.
12. An electronic device, characterized in that: The electronic device comprises: Processor and memory; Wherein, the memory is used to store computer programs; The processor is used to execute the computer program stored in the memory so that the electronic device executes the system recovery method of the remote device according to any one of claims 1 to 6, or the system recovery method of the remote device according to claim 7 or 8.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by an electronic device, the system recovery method of the remote device described in any one of claims 1 to 6, or the system recovery method of the remote device described in claim 7 or 8 is implemented.
Citation Information
Patent Citations
System excuting a fast boot wake-up
CN101067790A
Method and apparatus for waking up a sleeping system
CN101243644A
Method and system for quickly backing up and recovering computer operating system
CN112068996A
Node awakening method based on distributed cluster and controlled terminal
CN112187877A
Cloud desktop running state management and control method and device, electronic equipment and storage medium
CN116339925A
Cited By
Data backup method, device and equipment based on portable storage equipment and medium
CN122285390A
