System operation control method and device, electronic equipment and storage medium

By real-time monitoring of BMC system partition space usage information and updating startup configuration items, the startup failure problem caused by BMC system partition space exhaustion is solved, and automatic restart and stable operation of the system are achieved.

CN119473721BActive Publication Date: 2025-10-17BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411545959.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-10-17
Estimated Expiration
2044-10-31

AI Technical Summary

Technical Problem

During the long-term operation of the BMC system, the target partition space of the firmware storage medium is exhausted, resulting in repeated system startup failures. The remedial measures in the existing technology are complex and prone to errors.

Method used

By monitoring the target partition space occupancy information of the file system partition in real time, using the target parameters to update the startup configuration items and generate restart instructions, the system can be started in initialization mode to ensure the availability of partition space and avoid system startup failure.

Benefits of technology

It achieves automated and precise control of the BMC system, reduces the risk of system startup failure, and improves system stability and startup efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119473721B_ABST
    Figure CN119473721B_ABST
Patent Text Reader

Abstract

The present disclosure provides a system running control method, relates to the technical field of computers, and particularly relates to the fields of system management, embedded systems, and data storage and processing. The specific implementation scheme is as follows: obtaining target partition space occupation information of a file system partition, wherein the file system partition stores system files, the system files are used for running a file subsystem, and the file subsystem is a subsystem of a target system in a running state; and in the case that the target partition space occupation information represents that the target system meets a restart condition, updating a start configuration item by using a target parameter and generating a start instruction for indicating a restart, wherein the target parameter is used for representing that the target system is started in an initialization mode, and the start configuration item comprises configuration parameters for starting the target system. The present disclosure also provides a system running control method device, an electronic device, and a storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of computer, in particular, to the technical field of system management, the technical field of embedded system and the technical field of data storage and processing, and more particularly to a system running control method and device, an electronic device and a storage medium. BACKGROUND

[0002] With the rapid development of server technology and the continuous expansion of data center scale, the monitoring and management role of BMC (Baseboard Management Controller) in the server highlights its importance. As a core component embedded in the server motherboard, BMC not only bears the heavy responsibility of real-time monitoring of server hardware status, but also is responsible for managing the complex interaction between system software and hardware.

[0003] However, in the long-term running process of BMC, the storage space on the firmware storage medium may be exhausted, which may cause system startup failure due to repeated system startup. SUMMARY

[0004] The present disclosure provides a system running control method, device, electronic device, storage medium and program product.

[0005] According to an aspect of the present disclosure, a system running control method is provided, comprising: obtaining target partition space occupation information of a file system partition, wherein the file system partition stores system files, the system files are used to run a file subsystem, and the file subsystem is a subsystem of a target system in a running state; and in a case where it is determined that the target partition space occupation information represents that the target system meets a restart condition, updating a startup configuration item by using a target parameter and generating a startup instruction for indicating a restart, wherein the target parameter is used to represent that the target system is started in an initialization mode, and the startup configuration item includes configuration parameters used to start the target system.

[0006] According to another aspect of the present disclosure, a system running control device is provided, comprising: a first obtaining module configured to obtain target partition space occupation information of a file system partition, wherein the file system partition stores system files, the system files are used to run a file subsystem, and the file subsystem is a subsystem of a target system in a running state; and a generating module configured to, in a case where it is determined that the target partition space occupation information represents that the target system meets a restart condition, update a startup configuration item by using a target parameter and generate a startup instruction for indicating a restart, wherein the target parameter is used to represent that the target system is started in an initialization mode, and the startup configuration item includes configuration parameters used to start the target system.

[0007] According to another aspect of the present disclosure, there is provided an electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform a method according to the present disclosure.

[0008] According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform a method according to the present disclosure.

[0009] According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements a method according to the present disclosure.

[0010] It should be understood that the contents described in this section are not intended to identify key or important features of the embodiments of the present disclosure, nor are they used to limit the scope of the present disclosure. Other features of the present disclosure will become apparent through the following description. BRIEF DESCRIPTION OF DRAWINGS

[0011] The accompanying drawings are used to better understand the present scheme, and do not limit the present disclosure. Among them:

[0012] Figure 1 A flowchart of a system operation control method according to an embodiment of the present disclosure is schematically shown;

[0013] Figure 2 A flowchart of a system operation control method according to an embodiment of the present disclosure is schematically shown;

[0014] Figure 3 A flowchart of a system operation control method according to an embodiment of the present disclosure is schematically shown;

[0015] Figure 4A A schematic diagram of a BMC system partition according to an embodiment of the present disclosure is schematically shown;

[0016] Figure 4B A schematic diagram of a BMC system partition according to an embodiment of the present disclosure is schematically shown

[0017] Figure 5 A flowchart of a system operation control method according to an embodiment of the present disclosure is schematically shown;

[0018] Figure 6 A block diagram of a system operation control device according to an embodiment of the present disclosure is schematically shown;

[0019] Figure 7A schematic block diagram of an example electronic device that can be used to implement embodiments of the present disclosure is shown schematically. DETAILED DESCRIPTION

[0020] Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, which show various details of embodiments of the present disclosure by way of example in order to facilitate understanding. It should be recognized that various modifications and changes can be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Also, for the sake of brevity and clarity, descriptions of well-known functions and constructions are omitted from the following description.

[0021] In the technical solutions of the present disclosure, the collection, storage, use, processing, transmission, provision, disclosure and application of user personal information comply with relevant laws and regulations, necessary security measures are taken, and the public order and good customs are not violated.

[0022] In the technical solutions of the present disclosure, the authorization or consent of the user is obtained before the user's personal information is acquired or collected.

[0023] The inventors found that long-term operation of the existing BMC system can cause a certain read-write target partition space of the firmware storage medium to be exhausted, further causing system startup failure problems of repeated system startup. In the related art, in the Boot phase, the startup configuration item and the startup script can be modified, the kernel minimum system is entered, a part of the files are deleted after the file system is modified and mounted, and then synchronized to the read-write partition in the storage medium. However, this method is complex to operate, including manual modification of Boot parameters and manual deletion of files in the minimum system, is prone to errors, and is a remedial measure after the problem occurs.

[0024] The present disclosure provides a system running control method, comprising: acquiring target partition space occupation information of a file system partition, wherein the file system partition stores system files, the system files are used to run a file subsystem, and the file subsystem is a subsystem of a target system in a running state; and in a case where it is determined that the target partition space occupation information represents that the target system satisfies a restart condition, updating a startup configuration item by using a target parameter and generating a startup instruction used to instruct a restart, wherein the target parameter is used to represent that the target system is started in an initialization mode, and the startup configuration item comprises configuration parameters used to start the target system.

[0025] By acquiring the target partition space occupation information, the target partition space occupation result of the file system partition can be monitored in real time, and the effect of early warning is achieved. Based on the target partition space occupation result, it is determined whether the target system needs to be started in an initialization mode to implement a factory recovery operation, thereby ensuring the availability of the target partition space, and further reducing the problem of system startup failure caused by the consumption of the target partition space of the file system, and ensuring the normal startup and operation of the system.

[0026] Figure 1 A flowchart of a system operation control method according to an embodiment of the present disclosure is schematically shown.

[0027] As shown in Figure 1 , the method includes operations S110-S120.

[0028] In operation S110, target partition space occupation information of a file system partition is acquired.

[0029] According to an embodiment of the present disclosure, the file system partition stores system files, and the system files are used to run a file subsystem, and the file subsystem is a subsystem of a target system in a running state.

[0030] According to an embodiment of the present disclosure, the target system can be a BMC system.

[0031] According to an embodiment of the present disclosure, the file system partition includes an ROFS partition (Read Only File System) and an RWFS partition (Read-Write File System), etc. The system files stored in the ROFS partition include key data and program files necessary for the startup and operation of the BMC system, and are used to run an ROFS file subsystem. The system files stored in the RWFS include data and configuration files that can be changed during the operation of the BMC system. For example, log information, user settings, system status, etc., are used to run an RWFS file subsystem.

[0032] According to an embodiment of the present disclosure, the target partition space can be an RWFS partition, and the RWFS partition is a readable and writable partition. In the state of long-time operation of the system, the target partition space can be overloaded, and therefore the space occupation information of the RWFS partition can be acquired to determine whether the RWFS partition is overloaded.

[0033] In operation S120, in a case where it is determined that the target partition space occupation information indicates that the target system satisfies a restart condition, a startup configuration item is updated using a target parameter, and a startup instruction for indicating a restart is generated.

[0034] According to an embodiment of the present disclosure, the target parameter is used to characterize starting the target system in the initialization mode, and the starting configuration item includes configuration parameters used to start the target system.

[0035] According to an embodiment of the present disclosure, the target parameter can be a request recovery parameter configuration bit, and the initialization mode starts the system to restore the system to a factory configuration. The request recovery parameter configuration bit is used to update the starting configuration item, so that the configuration parameters in the starting configuration item are indicated to start in the configuration parameters at the factory. When the target system is restarted by using the updated starting configuration item, the target system can be restored to the factory configuration.

[0036] According to an embodiment of the present disclosure, by obtaining the target partition space occupation information, the target partition space information of the file system partition can be monitored in real time, so that early warning is achieved. Based on the target partition space occupation information, it is determined whether the target system needs to be started in the initialization mode, and the factory recovery operation is implemented. Therefore, the availability of the target partition space is ensured, and the problem of target system startup failure caused by the consumption of the target partition space is reduced, and the normal startup and operation of the target system are ensured.

[0037] According to an embodiment of the present disclosure, before the operation S120 shown in Figure 1 is performed, the operation further includes determining a space availability rate of the file system partition and a file type of a file currently stored in the file system partition based on the target partition space occupation information; and determining whether the target system meets a restart condition based on the space availability rate and the file type.

[0038] According to an embodiment of the present disclosure, a space availability rate threshold value can be preset, for example, 5%, 3%, and the like. When the availability rate of the target partition space of the file system partition is less than the space availability rate threshold value, it is determined that the target partition space is in a state of being overloaded soon.

[0039] According to an embodiment of the present disclosure, by determining the file type of the file currently stored in the file system partition, it can be determined whether there is an important and non-deletable file type currently stored in the file system partition. It is avoided that some important files are lost after the system is started in the initialization mode.

[0040] According to an embodiment of the present disclosure, before the operation S120 shown in Figure 1 is performed, the operation further includes moving a predetermined type of file stored in the file system partition to a backup space; and obtaining target partition space occupation information of an updated file system partition.

[0041] According to an embodiment of the present disclosure, the predetermined type of file can be an important type of file, for example, a log file. The backup space can be an external hard disk, a network storage device, or a cloud storage space.

[0042] According to the embodiment of the present disclosure, when it is determined that the occupancy rate of the target partition space reaches the preset threshold, it can be determined whether the target partition space stores a predetermined type of file first, if the predetermined type of file exists, the predetermined type of file is moved to the backup space, if the occupancy rate of the target partition space after moving is lower than the preset threshold, the subsequent operation of starting the target system in the initialization mode can not be performed, if the occupancy rate of the target partition space after moving is still greater than or equal to the preset threshold, the subsequent operation of starting the target system in the initialization mode is performed.

[0043] By backing up the important type of file, the storage space in the file system partition can be released, and the number of restarts is reduced while improving the running stability of the target system.

[0044] According to the embodiment of the present disclosure, for the operation S110 shown in Figure 1 The operation S110 of obtaining the target partition space occupancy information of the file system partition can include: obtaining the target partition space occupancy information of the file system partition from a monitoring program at a predetermined time interval, wherein the monitoring program is used for monitoring the space occupancy of the file system partition.

[0045] According to the embodiment of the present disclosure, the predetermined time interval can be flexibly adjusted according to the current occupancy rate of the target partition space, for example, a longer time interval can be set when the current occupancy rate of the target partition space is low, and the time interval can be shortened when the current occupancy rate of the target partition space is high.

[0046] According to the embodiment of the present disclosure, a detection program can be deployed in the ROFS file subsystem, which is used for dynamically detecting the space availability of the RWFS partition when the RWFS file subsystem is in the running state, so as to obtain the target partition space occupancy information.

[0047] According to the embodiment of the present disclosure, the monitoring program can realize automatic monitoring and control, and the frequency of monitoring is flexibly controllable through the predetermined time interval.

[0048] Figure 2 The flowchart of monitoring the target partition space according to the embodiment of the present disclosure is schematically shown.

[0049] As shown in Figure 2As shown, the space occupation information of the target partition space 210 is acquired, when the target partition space 210 satisfies the restart condition, the predetermined type file 220 is determined from the target partition space 210, and the predetermined type file 220 of the target partition space 210 is moved to the backup space 230, at this time, whether the target partition space 210 satisfies the restart condition is judged, if the restart condition is still satisfied, the start instruction 240 is generated, if the restart condition is not satisfied, the monitoring of the target partition space 210 is returned.

[0050] Figure 3 A flowchart of a system starting method according to an embodiment of the present disclosure is schematically shown.

[0051] As Figure 3 It is shown that the method includes operations S310-S320.

[0052] In operation S310, in response to the start instruction, the starting configuration item is parameter-identified by using a starting subsystem, wherein the starting subsystem is a subsystem of the target system having a starting function.

[0053] In operation S320, in the case that the target parameter is identified from the starting configuration item, the target system is started in the initialization mode.

[0054] According to an embodiment of the present disclosure, the starting subsystem can be a program or a script for booting the target system, for example, the starting subsystem can be a Boot subsystem, when the system receives the start instruction, the Boot is activated first, then the starting configuration item and the starting script are read from the Boot-ENV (Boot Environment), and the read parameters are identified, it is determined whether the parameter of the current starting configuration item is the requested recovery parameter configuration bit, if yes, the initialization starting of the target system can be realized.

[0055] According to an embodiment of the present disclosure, by actively updating the starting configuration item and generating the restart instruction under the condition of satisfying the restart, in response to the instruction, the starting configuration item is queried and the target parameter is identified, thereby realizing the initialization mode starting of the target system, completing the automatic operation, improving the automatic restart, improving the precision control of the restart operation, and improving the restart efficiency.

[0056] According to an embodiment of the present disclosure, when operation S320 as Figure 3 shown is performed, it includes updating all the files stored in the file system partition by using the initialization system file, wherein the initialization system file includes a file for running the file subsystem in the initialization state.

[0057] According to the embodiments of the present disclosure, a shadow partition RWFS-Ghost of the RWFS partition can be established in the storage medium, the RWFS-Ghost partition and the RWFS partition are completely identical in size and content, and can be used to store the initialization system file. When the space of the RWFS partition is overloaded, the initialization system file of the RWFS-Ghost partition is updated to the RWFS partition, so that the RWFS partition is reset.

[0058] According to the embodiments of the present disclosure, by updating all the files stored in the file system partition through the initialization system file, the space of the file system partition can be released, and the system performance degradation or crash caused by insufficient space can be avoided.

[0059] According to the embodiments of the present disclosure, when the operation S320 shown in Figure 3 is performed, the operation further includes updating the startup configuration item by using the initialization startup configuration item, wherein the initialization startup configuration item includes predetermined configuration parameters.

[0060] According to the embodiments of the present disclosure, a shadow partition (Boot-ENV-Ghost) of the Boot-ENV partition can be established in the storage medium, the Boot-ENV-Ghost partition and the Boot-ENV partition are completely identical in size and content, and can be used to store the initialization startup configuration item. When the Boot-ENV partition cannot be restarted due to modification error of the parameters, the initialization startup configuration item of the Boot-ENV-Ghost partition is updated to the Boot-ENV partition, so that the Boot-ENV partition is reset, and the Boot can read accurate parameters.

[0061] According to the embodiments of the present disclosure, by updating by using the initialization startup configuration item, it can be ensured that the startup parameters and initial configuration of the system are consistent. Thus, system startup failure or crash caused by configuration error or improper operation can be reduced, and the stability of the system can be improved.

[0062] Figure 4A A schematic diagram of a BMC system partition is shown schematically.

[0063] As shown in Figure 4A , in the related art, the BMC system partition 400 includes a Boot partition 410, a Boot-ENV partition 420, a kernel (core) partition 430, a ROFS partition 440, and a RWFS partition 450. After power-on, the BMC system triggers Boot startup, Boot reads the startup configuration item and the startup script from the BOOT-ENV partition 410, runs the startup script, and guides the kernel to mount the file system of the ROFS partition 440 and the RWFS partition 450, to complete the system startup process.

[0064] Figure 4B A schematic diagram of a BMC system partition is shown according to an embodiment of the present disclosure.

[0065] As shown in Figure 4B In this embodiment, the BMC system partition 400 includes, in addition to the Boot partition 410, the Boot-ENV partition 420, the kernel partition 430, the ROFS partition 440, and the RWFS partition 450, the shadow partitions of the Boot-ENV partition 420 and the RWFS partition 450, namely, the Boot-ENV-Ghost partition 470 and the RWFS-Ghost partition 460. When the RWFS partition 450 exceeds the limited space size, the content in the RWFS-Ghost partition 460 is written to the RWFS partition 450, the RWFS partition 450 is reset, and the problem of startup failure caused by the mistaken deletion of system files is avoided. If the system cannot be started due to the modification error of the Boot parameter, the Boot-ENV-Ghost partition 470 is used to restore the Boot-ENV partition 420 in the Boot phase, and the Boot-ENV partition 420 is reset.

[0066] According to an embodiment of the present disclosure, when operation S320 shown in Figure 3 is performed, the operation further includes updating the startup configuration item by using an initialization startup configuration item in response to receiving prompt information indicating a startup error, wherein the initialization startup configuration item includes predetermined configuration parameters.

[0067] For example, in the case of not restarting in response to the result of determining the space occupation of the target partition, but in the case of normal restarting, the system still cannot be started. At this time, the system sends prompt information indicating a startup error. The indication of the startup error can be a hardware-related error, a system log and configuration-related error, and the like. The prompt information can include an identifier of the error information and cause information.

[0068] According to an embodiment of the present disclosure, when the system has an error, the system is automatically repaired by updating the initialization startup configuration item.

[0069] Figure 5 A flowchart of a BMC system running control method according to an embodiment of the present disclosure is shown.

[0070] As shown in Figure 5 , the method can include operations S510 to S580.

[0071] In operation S510, the BMC system is powered on.

[0072] In operation S520, Boot is triggered to start, Boot reads the starting configuration item from the Boot-ENV partition, and identifies the parameters of the Boot-ENV, to determine whether the target parameter exists in the Boot-ENV. If the target parameter does not exist, operation S530 is performed.

[0073] In operation S530, the Boot-ENV and the RWFS are restored to the initial state. Specifically, in operation S531, the initial starting configuration item of the Boot-ENV-Ghost partition is updated to the Boot-ENV partition, and in operation S532, the initial system file of the RWFS-Ghost partition is updated to the RWFS partition, to complete the resetting of the Boot-ENV partition and the RWFS partition, and then Boot is restarted.

[0074] If the target parameter exists, operation S540 is performed. In operation S540, kernel is booted to perform the initialization work, in operation S550, the file system of the ROFS partition is mounted, and in operation S560, the file system of the RWFS partition is mounted, to complete the system starting process.

[0075] After the system is completed, the RWFS partition is monitored in operation S570, and if it is detected that the RWFS target partition space occupation information satisfies the restart condition, in operation S580, the starting configuration item is updated by using the target parameter, and Boot is instructed to restart.

[0076] Figure 6 A block diagram of a system running control apparatus according to an embodiment of the present disclosure is schematically shown.

[0077] As shown in Figure 6 The system running control apparatus 600 includes a first acquisition module 610 and a generation module 620.

[0078] The first acquisition module 610 is configured to acquire target partition space occupation information of a file system partition, wherein the file system partition stores system files, and the system files are used to run a file subsystem, and the file subsystem is a subsystem of a target system in a running state.

[0079] The generation module 620 is configured to, in a case where it is determined that the target partition space occupation information represents that the target system satisfies a restart condition, update a starting configuration item by using a target parameter and generate a starting instruction used to instruct a restart, wherein the target parameter is used to represent that the target system is started in an initialization mode, and the starting configuration item includes a configuration parameter used to start the target system.

[0080] According to an embodiment of the present disclosure, the system running control apparatus 600 further includes an identification module and a starting module.

[0081] The identification module is configured to identify parameters of the starting configuration item by using a starting subsystem in response to a starting instruction, wherein the starting subsystem is a subsystem of the target system having a starting function.

[0082] The starting module is configured to start the target system in the initialization mode in a case where the target parameters are identified from the starting configuration item.

[0083] According to an embodiment of the present disclosure, the starting module comprises a first updating unit.

[0084] The first updating unit is configured to update all files stored in the file system partition by using initialization system files, wherein the initialization system files comprise files for running the file subsystem in the initialization state.

[0085] According to an embodiment of the present disclosure, the starting module comprises a second updating unit.

[0086] The second updating unit is configured to update the starting configuration item by using an initialization starting configuration item, wherein the initialization starting configuration item comprises predetermined configuration parameters.

[0087] According to an embodiment of the present disclosure, the system running control apparatus 600 further comprises a moving module and a second obtaining module.

[0088] The moving module is configured to move predetermined type files stored in the file system partition to a backup space.

[0089] The second obtaining module is configured to obtain target partition space occupation information of the updated file system partition.

[0090] According to an embodiment of the present disclosure, the second obtaining module comprises a space information obtaining unit.

[0091] The space information obtaining unit is configured to obtain the target partition space occupation information of the file system partition from a monitoring program at a predetermined time interval, wherein the monitoring program is configured to monitor space occupation of the file system partition.

[0092] According to an embodiment of the present disclosure, the system running control apparatus 600 further comprises a first determining module and a second determining module.

[0093] The first determining module is configured to determine a space availability rate of the file system partition and a file type of files currently stored in the file system partition based on the target partition space occupation information.

[0094] The second determining module is configured to determine whether the target system satisfies a restart condition based on the space availability rate and the file type.

[0095] According to an embodiment of the present disclosure, the system running control apparatus 600 further comprises an updating module.

[0096] The updating module is configured to update the startup configuration item using the initialization startup configuration item in response to receiving prompt information indicating a startup error, wherein the initialization startup configuration item includes a predetermined configuration parameter.

[0097] Figure 7 A schematic block diagram of an example electronic device that can be used to implement embodiments of the present disclosure is shown.

[0098] Electronic device is intended to refer to various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic device may also refer to various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are intended to be examples only and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0099] like Figure 7 As shown, device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. RAM 703 may also store various programs and data required for the operation of device 700. Computing unit 701, ROM 702, and RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to bus 704.

[0100] Various components in device 700 are connected to an input / output (I / O) interface 705, including an input unit 706, such as a keyboard and mouse; an output unit 707, such as various types of displays and speakers; a storage unit 708, such as a magnetic disk and optical disk; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. Communication unit 709 allows device 700 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0101] The computing unit 701 can be various general and / or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 701 performs various methods and processes described above, such as the system operation control method. For example, in some embodiments, the system operation control method can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 708. In some embodiments, part or all of the computer program can be loaded and / or installed onto the device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded onto the RAM 703 and executed by the computing unit 701, one or more steps of the system operation control method described above can be performed. Alternatively, in other embodiments, the computing unit 701 can be configured to perform the system operation control method by any other suitable means, such as by means of firmware.

[0102] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a complex programmable logic device (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.

[0103] Program code for carrying out methods of the present disclosure can be written in any combination of one or more programming languages. The program code can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the program code, when executed by the processor or controller, produces a means for implementing the functions / acts specified in the flowcharts and / or block diagrams. The program code can be executed entirely on a machine, partially on a machine, partially on a machine as a stand-alone software package, partially on a machine and partially on a remote machine or entirely on a remote machine or server.

[0104] In the context of this disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0105] To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.

[0106] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.

[0107] The computer system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0108] It should be understood that the various forms of flow shown above can be used to reorder, add, or remove steps. For example, the steps described in the present disclosure can be performed in parallel, in series, or in a different order, as long as the desired results of the technology disclosed in the present disclosure are achieved, which is not limited herein.

[0109] The specific implementation described above does not constitute a limitation on the protection scope of the present disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A system operation control method, comprising: Acquiring target partition space occupancy information of a file system partition, wherein the file system partition stores system files, the system files are used to run a file subsystem, and the file subsystem is a subsystem of the target system in a running state; Determining the space occupancy rate of the file system partition and the file types of files stored in the file system partition based on the target partition space occupancy information; When it is determined that the space occupancy rate reaches a preset threshold and files of a predetermined type are stored in the file system partition, the files of the predetermined type are moved to a backup space; If the space occupancy rate of the file system partition after moving the predetermined type of files is greater than or equal to the preset threshold, determining that the target system meets the restart condition; and When the target system meets the restart condition, the startup configuration item is updated using the target parameter and a startup instruction for instructing the restart is generated, wherein the target parameter is used to represent starting the target system according to the initialization mode, and the startup configuration item includes the configuration parameter for starting the target system.

2. The method according to claim 1, further comprising: In response to the startup instruction, using a startup subsystem to perform parameter identification on the startup configuration item, wherein the startup subsystem is a subsystem of the target system that has a startup function; and In a case where the target parameter is identified from the startup configuration item, the target system is started according to the initialization mode.

3. The method according to claim 2, wherein: The starting the target system according to the initialization mode includes: All files stored in the file system partition are updated using the initialization system file, wherein the initialization system file includes a file for running the file subsystem in an initialized state.

4. The method according to claim 2, wherein: The starting the target system according to the initialization mode includes: The startup configuration item is updated using the initialization startup configuration item, wherein the initialization startup configuration item includes predetermined configuration parameters.

5. The method according to any one of claims 1 to 4, wherein The step of obtaining the target partition space occupancy information of the file system partition includes: At predetermined time intervals, target partition space occupancy information of the file system partition is obtained from a monitoring program, wherein the monitoring program is used to monitor the space occupancy of the file system partition.

6. The method according to any one of claims 1 to 4, further comprising: In response to receiving prompt information indicating a startup error, the startup configuration item is updated using an initialization startup configuration item, wherein the initialization startup configuration item includes a predetermined configuration parameter.

7. A system operation control device comprising: A first acquisition module is configured to acquire target partition space occupancy information of a file system partition, wherein the file system partition stores system files, and the system files are used to run a file subsystem, which is a subsystem of the target system in operation; and a generating module configured to update a startup configuration item using a target parameter and generate a startup instruction for instructing a restart if the target system meets a restart condition, wherein the target parameter is used to indicate that the target system is started in an initialization mode, and the startup configuration item includes a configuration parameter for starting the target system; The following operations are performed to determine whether the target system meets the restart condition: Determining the space occupancy rate of the file system partition and the file types of files stored in the file system partition based on the target partition space occupancy information; When it is determined that the space occupancy rate reaches a preset threshold and files of a predetermined type are stored in the file system partition, the files of the predetermined type are moved to a backup space; If the space occupancy rate of the file system partition after moving the predetermined type of files is greater than or equal to the preset threshold, it is determined that the target system meets the restart condition.

8. The apparatus according to claim 7, further comprising: an identification module, configured to, in response to the startup instruction, perform parameter identification on the startup configuration item using a startup subsystem, wherein the startup subsystem is a subsystem of the target system having a startup function; and A startup module is configured to start the target system according to the initialization mode when the target parameter is identified from the startup configuration item.

9. The device according to claim 8, wherein The startup module includes: The first updating unit is configured to update all files stored in the file system partition using an initialization system file, wherein the initialization system file includes a file for running the file subsystem in an initialized state.

10. The device according to claim 8, wherein The startup module includes: The second updating unit is configured to update the startup configuration item using the initialization startup configuration item, wherein the initialization startup configuration item includes a predetermined configuration parameter.

11. The device according to any one of claims 7 to 10, wherein The first acquisition module includes: The space information acquisition unit is used to acquire the target partition space occupancy information of the file system partition from the monitoring program at a predetermined time interval, wherein the monitoring program is used to monitor the space occupancy of the file system partition.

12. The apparatus according to any one of claims 7 to 10, further comprising: The updating module is configured to update the startup configuration item using the initialization startup configuration item in response to receiving prompt information indicating a startup error, wherein the initialization startup configuration item includes a predetermined configuration parameter.

13. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.

14. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 6.

15. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method and device for restoring factory settings of server system, equipment and medium

    CN111400094A

  • Computer system and method for operating the same

    JP2015114825A