CN-122019252-A - Cloud computer system resetting method, cloud system device, electronic equipment and storage medium
Abstract
The embodiment of the application provides a system resetting method, a cloud system, a device, electronic equipment and a storage medium of a cloud computer, and belongs to the technical field of cloud computing. The cloud computer system resetting method comprises the steps that after the cloud computer is updated, the cloud server stores data of the cloud computer, and on the basis, after a resetting instruction of the cloud computer is received, the resetting data are read from a preset storage area. And replacing the data to be reset in the cloud computer with the read reset data. When the cloud computer is reset, only the corresponding data is required to be read to replace the corresponding data of the current cloud computer, so that the process of regenerating the system disk and the data disk according to the mirror image file is avoided. The reset data comprise configuration data after updating of the cloud computer, and basic configuration information does not need to be set again after the computer is reset. The reset time is reduced to a certain extent, long-time waiting of a user is avoided, and user experience is improved.
Inventors
- ZHAO WENQIANG
Assignees
- 阿里云计算有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20241105
Claims (14)
- 1. The system resetting method of the cloud computer is characterized by being applied to a cloud service end, wherein the cloud service end runs at least one cloud computer, and aiming at any cloud computer, the method comprises the following steps: Reading prestored reset data of the cloud computer in response to a reset instruction of the cloud computer, wherein the reset data is obtained by extracting and storing data after system updating from the cloud computer after the operating system of the cloud computer is updated; And replacing the corresponding operation data to be reset in the cloud computer by using the reset data.
- 2. The method of claim 1, wherein the reading the pre-stored reset data of the cloud computer comprises: Determining the current running state of the cloud computer; And reading matched reset data from a preset storage area according to the current running state of the cloud computer.
- 3. The method according to claim 2, wherein the preset storage area includes an internal storage area and an external storage area, the internal storage area is a storage area allocated to a cloud computer by the cloud server, the external storage area is a storage area not belonging to the cloud server, and the reading the matched reset data from the preset storage area according to the current running state of the cloud computer includes: If the cloud computer is in an operating state, reading first configuration data of an operating system of the cloud computer from the internal storage area, and reading second configuration data of the cloud computer from the external storage area; And if the cloud computer is in an unoperated state, reading first configuration data of an operating system of the cloud computer from the external storage area, and taking the first configuration data as the reset data.
- 4. The method of claim 3, wherein the first configuration data is operation record data of the cloud computer, and the second configuration data comprises operating system data and the user configuration data.
- 5. The method according to claim 1, wherein the method further comprises: responding to the detection of the cloud computer updating instruction, and reading the reset data according to the running state of the cloud computer; and storing the reset data into a preset storage area.
- 6. The method of claim 5, wherein the reading the reset data according to the operating state of the cloud computer comprises: if the cloud computer is in an operating state, calling a preset stopping function interface, suspending the operation of the cloud computer, and reading the first configuration data and the second configuration data of the cloud computer; And if the cloud computer is in an unoperated state, reading the second configuration data of the cloud computer, and taking the first configuration data as the reset data.
- 7. The method of claim 6, wherein storing the reset data to a preset storage area comprises: If the cloud computer is in an operating state, storing the first configuration data in the internal storage area, and storing the second configuration data in the external storage area; And if the cloud computer is in an unoperated state, storing the second configuration data in the external storage area.
- 8. The method of claim 4, wherein the user configuration data comprises at least one of domain addition data and system name data.
- 9. The method of claim 4, wherein replacing the corresponding operation data to be reset in the cloud computer with the reset data to complete the resetting of the cloud computer comprises: If the cloud computer is in an operating state, calling the preset stop function interface to stop the operation of the cloud computer, and replacing original operation record data in the cloud computer with the operation record data; and if the cloud computer is in an unoperated state, the operating system data replace the original operating system data in the cloud computer, and the user configuration data replace the original user configuration data in the cloud computer.
- 10. A cloud system is characterized by comprising a cloud service end and at least one cloud computer operated by the cloud service end, Aiming at any cloud computer, the cloud computer is used for sending a reset instruction of the cloud computer to the cloud server; The cloud server is used for reading pre-stored reset data of the cloud computer, wherein the reset data is obtained by extracting and storing data updated by an operating system of the cloud computer from the cloud computer after the operating system of the cloud computer is updated, and replacing corresponding operation data to be reset in the cloud computer by the reset data.
- 11. A system resetting device of a cloud computer, wherein the device is applied to a cloud service end, the cloud service end operates at least one cloud computer, and the device comprises, for any cloud computer: The data reading module is used for responding to a reset instruction of the cloud computer and reading prestored reset data of the cloud computer, wherein the reset data is obtained by extracting and storing data after system updating from the cloud computer after the operating system of the cloud computer is updated; And the reset module is used for replacing the corresponding operation data to be reset in the cloud computer by using the reset data.
- 12. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the computer program is executed by the processor to cause the electronic device to perform the method of any one of claims 1-9.
- 13. A computer readable storage medium having stored thereon a computer program, wherein the program is executed by a processor to implement the method of any of claims 1-9.
- 14. A computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any of claims 1-9.
Description
Cloud computer system resetting method, cloud system device, electronic equipment and storage medium Technical Field The embodiment of the application relates to the technical field of cloud computing, in particular to a system resetting method, a cloud system, a device, electronic equipment and a storage medium of a cloud computer. Background Cloud computing is a technology for integrating traditional computing resources of a computer into a cloud based on a cloud computing technology and providing relevant services to a client through a network. In the use process of the cloud computer, the cloud computer is often required to be reset, namely, the basic configuration information of the cloud computer is restored to an initial state. The existing resetting mechanism for the cloud computer comprises the steps of firstly manufacturing a pre-stored image file into a system disk image and a data disk image under a shutdown state, replacing the system disk of the current cloud computer by the system disk image, and restarting the cloud computer after replacing the data disk of the current cloud computer by the data disk image. And further, the basic configuration information of the cloud computer is configured to be in an initial state based on the replaced system disk file and the data disk file. Therefore, in the cloud computer resetting process, on one hand, a system disk image and a data disk image are required to be manufactured, and on the other hand, the cloud computer is required to be restarted and basic configuration information is required to be reconfigured, and the two processes consume longer time, so that the service efficiency is reduced, the waiting time of a user is longer, and the use experience of the user is affected. Disclosure of Invention In order to overcome the problems in the related art, the embodiment of the application provides a system resetting method, a cloud system, a device, electronic equipment and a storage medium of a cloud computer. According to a first aspect of an embodiment of the present application, there is provided a system resetting method of a cloud computer, the method being applied to a cloud server, the cloud server running at least one cloud computer, the method including, for any one cloud computer: Reading prestored reset data of the cloud computer in response to a reset instruction of the cloud computer, wherein the reset data is obtained by extracting and storing data after system updating from the cloud computer after the operating system of the cloud computer is updated; And replacing the corresponding operation data to be reset in the cloud computer by using the reset data. According to a second aspect of embodiments of the present application, there is provided a cloud system including a cloud server and at least one cloud computer operated by the cloud server, Aiming at any cloud computer, the cloud computer is used for sending a reset instruction of the cloud computer to the cloud server; The cloud server is used for reading pre-stored reset data of the cloud computer, wherein the reset data is obtained by extracting and storing data updated by an operating system of the cloud computer from the cloud computer after the operating system of the cloud computer is updated, and replacing corresponding operation data to be reset in the cloud computer by the reset data. According to a third aspect of the embodiments of the present application, there is provided a system resetting device of a cloud computer, the device being applied to a cloud server, the cloud server running at least one cloud computer, and for any cloud computer, the device comprising: The data reading module is used for responding to a reset instruction of the cloud computer and reading prestored reset data of the cloud computer, wherein the reset data is obtained by extracting and storing data after system updating from the cloud computer after the operating system of the cloud computer is updated; And the reset module is used for replacing the corresponding operation data to be reset in the cloud computer by using the reset data. According to a fourth aspect of embodiments of the present application there is provided an electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being executable by the processor to cause the electronic device to perform the method as described in the first aspect. According to a fifth aspect of embodiments of the present application, there is provided a computer readable storage medium having stored thereon a computer program for execution by a processor to perform the method according to the first aspect. According to a sixth aspect of embodiments of the present application, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method according to the first aspect. The technical scheme