System operation control method and device, electronic equipment and storage medium
By obtaining and analyzing the file system partition space occupation information of the BMC system, determining whether the restart conditions are met, and updating the startup configuration items, the startup failure problem of the BMC system due to the exhaustion of the target partition space is solved, and the normal startup and operation of the system is achieved .
Patent Information
- Application Number
- CN202411545959.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2044-10-31
AI Technical Summary
During long-term operation of the BMC system, the target partition space of the firmware storage media may be exhausted, which in turn leads to failure of system startup.
By obtaining the target partition space occupation information of the file system partition, determine whether the restart condition is met, and update the startup configuration item with the target parameters to generate a startup instruction to indicate restart.
Real-time monitoring of the target partition space information of the file system partition, early warning and determine whether the target system needs to be started in the initial mode, ensure the availability of the target partition space, and reduce the risk of system startup failure.
Smart Images

Figure CN119473721A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, in particular to the field of system management technology, embedded system technology, and data storage and processing technology, and more specifically to a system operation control method, device, electronic device, and storage medium. Background Art
[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 servers has become increasingly important. 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 manages the complex interaction between system software and hardware.
[0003] However, during long-term operation of the BMC, the storage space on the firmware storage medium may be exhausted, which may lead to system startup failure due to repeated system startup. Summary of the invention
[0004] The present disclosure provides a method, an apparatus, an electronic device, a storage medium, and a program product for controlling system operation.
[0005] According to one aspect of the present disclosure, a system operation control method is provided, including: obtaining 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 a target system in operation; and in a case where it is determined that the target partition space occupancy information represents that the target system meets a restart condition, using a target parameter to update a startup configuration item and generate a startup instruction for instructing a restart, wherein the target parameter is used to represent starting the target system according to an initialization mode, and the startup configuration item includes a configuration parameter for starting the target system.
[0006] According to another aspect of the present disclosure, a system operation control device is provided, comprising a first acquisition module for 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 a target system in operation; and a generation module for updating a startup configuration item using a target parameter and generating a startup instruction for instructing a restart when it is determined that the target partition space occupancy information indicates that the target system meets a restart condition, wherein the target parameter is used to indicate that the target system is started according to an initialization mode, and the startup configuration item includes a configuration parameter for starting the target system. .
[0007] According to another aspect of the present disclosure, an electronic device is provided, 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, and the instructions are executed by the at least one processor so that the at least one processor can execute a method as disclosed in the present disclosure.
[0008] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method of the present disclosure.
[0009] According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein the computer program implements the method of the present disclosure when executed by a processor.
[0010] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[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 The following schematically shows a flow chart of monitoring target partition space according to an embodiment of the present disclosure;
[0014] Figure 3 A flowchart of a system startup method according to an embodiment of the present disclosure is schematically shown;
[0015] Figure 4A A schematic diagram schematically shows the BMC system partitions of a related embodiment;
[0016] Figure 4B A schematic diagram schematically shows the BMC system partition according to an embodiment of the present disclosure
[0017] Figure 5 A flowchart schematically shows a method for controlling the operation of a BMC system according to an embodiment of the present disclosure;
[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 an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0020] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0021] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision, disclosure and application of user personal information involved comply with the provisions of relevant laws and regulations, take necessary confidentiality measures, and do not violate public order and good morals.
[0022] In the technical solution of the present disclosure, the user's authorization or consent is obtained before obtaining or collecting the user's personal information.
[0023] The inventors have found that the long-term operation of the existing BMC system will cause the space of a readable and writable target partition of the firmware storage medium to be exhausted, further leading to the problem of repeated system startup failure. In the related art, the startup configuration items and startup scripts can be modified in the Boot stage, the kernel minimum system can be entered, and after modifying and mounting the file system, some files can be deleted and synchronized to the readable and writable partition in the storage medium. However, this method is complicated to operate, including manual modification of Boot parameters and manual deletion of files in the minimum system, which is prone to errors and is a remedial measure after the problem occurs.
[0024] The present disclosure provides a system operation control method, comprising obtaining 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 a target system in a running state; and in the case of determining that the target partition space occupancy information represents that the target system meets a restart condition, using a target parameter to update a startup configuration item and generate a startup instruction for instructing a restart, wherein the target parameter is used to represent starting the target system according to an initialization mode, and the startup configuration item includes a configuration parameter for starting the target system.
[0025] By obtaining the target partition space occupancy information, the target partition space occupancy result of the file system partition can be monitored in real time, which has the effect of early warning. Based on the target partition space occupancy result, it is determined whether it is necessary to start the target system in initialization mode to implement factory recovery operations, thereby ensuring the availability of the target partition space, thereby reducing the problem of system startup failure caused by the exhaustion of the file system target partition space, and ensuring the normal startup and operation of the system.
[0026] Figure 1 The flowchart of the system operation control method according to the embodiment of the present disclosure is schematically shown.
[0027] like Figure 1 As shown, the method includes operations S110 to S120.
[0028] In operation S110, target partition space occupancy information of the file system partition is obtained.
[0029] According to an embodiment of the present disclosure, a file system partition stores system files, and the system files are used to run a file subsystem, which is a subsystem of a target system in a running state.
[0030] According to an embodiment of the present disclosure, the target system may be a BMC system.
[0031] According to an embodiment of the present disclosure, the file system partition includes a ROFS partition (Read Only File System) and a RWFS partition (Read-Write File System). The system files stored in the ROFS partition include key data and program files necessary for the startup and operation of the BMC system, which are used to run the ROFS file subsystem. The system files stored in the RWFS include data and configuration files that may need to be changed when the BMC system is running. For example, log information, user settings, system status, etc., are used to run the RWFS file subsystem.
[0032] According to an embodiment of the present disclosure, the target partition space may be a RWFS partition, which is a readable and writable partition. When the system runs for a long time, the target partition space may be overloaded. Therefore, it is possible to determine whether the RWFS partition is overloaded by obtaining the space occupancy information of the RWFS partition.
[0033] In operation S120, when it is determined that the target partition space occupancy information indicates that 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.
[0034] According to an embodiment of the present disclosure, the target parameter is used to characterize starting the target system according to the initialization mode, and the startup configuration item includes the configuration parameter used to start the target system.
[0035] According to an embodiment of the present disclosure, the target parameter may be a configuration bit for requesting recovery of parameters, and starting the system in the initialization mode is to restore the system to the factory configuration. Updating the startup configuration item using the configuration bit for requesting recovery of parameters may indicate that the configuration parameters in the startup configuration item are to be started according to the factory configuration parameters, and when the target system operation is restarted using the updated startup configuration item, the target system may be restored to the factory configuration.
[0036] According to the embodiments of the present disclosure, by obtaining the target partition space occupancy information, the target partition space information of the file system partition can be monitored in real time, which has the effect of early warning. Based on the target partition space occupancy information, it is determined whether it is necessary to start the target system in initialization mode to implement factory recovery operations, thereby ensuring the availability of the target partition space, and further reducing the problem of target system startup failure caused by target partition space consumption, thereby ensuring the normal startup and operation of the target system.
[0037] According to an embodiment of the present disclosure, when executing Figure 1 Before the operation S120 shown, the process may also include determining the space availability of the file system partition and the file types of the files currently stored in the file system partition based on the target partition space occupancy information; and determining whether the target system meets the restart condition based on the space availability and the file type.
[0038] According to an embodiment of the present disclosure, a space availability threshold may be preset, such as 5%, 3%, etc. When the availability of the target partition space of the file system partition is less than the space availability threshold, it is determined that the target partition space is about to be overloaded.
[0039] According to the 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, non-deletable file type currently stored in the file system partition, thereby avoiding the loss of some important files after the system starts in the initialization mode.
[0040] According to an embodiment of the present disclosure, when executing Figure 1 Before the operation S120 shown, the process may further include moving files of a predetermined type stored in the file system partition to the backup space; and obtaining space occupancy information of the target partition of the updated file system partition.
[0041] According to an embodiment of the present disclosure, the predetermined type of file may be an important type of file, such as a log file. The backup space may be an external hard disk, a network storage device, or a cloud storage space.
[0042] According to an embodiment of the present disclosure, when it is determined that the occupancy rate of the target partition space reaches a preset threshold, it can be determined first whether the target partition space stores files of a predetermined type. If there are files of the predetermined type, the files of the predetermined type are moved to the backup space. If the occupancy rate of the target partition space after the move is lower than the preset threshold, the subsequent operation of starting the target system according to the initialization mode may not be performed. If the occupancy rate of the target partition space after the move is still greater than or equal to the preset threshold, the subsequent operation of starting the target system according to the initialization mode is performed.
[0043] By backing up important types of files, you can free up storage space in the file system partition, thereby improving the stability of the target system and reducing the number of restarts.
[0044] According to the embodiments of the present disclosure, Figure 1 The operation S110 shown, obtaining the target partition space occupancy information of the file system partition, may 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 to monitor the space occupancy of the file system partition.
[0045] According to an 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, if the current occupancy rate of the target partition space is low, a longer time interval can be set; if the current occupancy rate of the target partition space is high, the time interval can be shortened.
[0046] According to an embodiment of the present disclosure, a detection program may be deployed in the ROFS file subsystem to dynamically detect the space availability of the RWFS partition when the RWFS file subsystem is in operation, thereby obtaining the target partition space occupancy information.
[0047] According to the embodiments of the present disclosure, automated monitoring and control can be achieved through a monitoring program, and the monitoring frequency can be flexibly controlled by setting a predetermined time interval.
[0048] Figure 2 A schematic diagram of the monitoring target partition space process according to an embodiment of the present disclosure is schematically shown.
[0049] like Figure 2As shown, the space occupancy information of the target partition space 210 is obtained. When the target partition space 210 meets 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, it is judged whether the target partition space 210 meets the restart condition. If the restart condition is still met, a start instruction 240 is generated. If the restart condition is not met, it returns to continue monitoring the target partition space 210.
[0050] Figure 3 The flowchart of the system startup method according to the embodiment of the present disclosure is schematically shown.
[0051] like Figure 3 The method includes operations S310~S320.
[0052] In operation S310, in response to a startup instruction, a startup subsystem is used to perform parameter identification on a startup configuration item, wherein the startup subsystem is a subsystem of a target system having a startup function.
[0053] In operation S320, when the target parameters are identified from the startup configuration items, the target system is started according to the initialization mode.
[0054] According to an embodiment of the present disclosure, the startup subsystem may be a program or script that guides the target system to start up. For example, the startup subsystem may be a Boot subsystem. When the system receives a startup instruction, Boot is first activated, and then the startup configuration items and startup scripts are read from Boot-ENV (Boot Environment). At the same time, the read parameters are identified to determine whether the parameters of the current startup configuration items are request recovery parameter configuration bits. If so, the initial startup of the target system can be achieved.
[0055] According to the embodiments of the present disclosure, by actively obtaining the target partition space occupancy information and after the restart conditions are met, the startup configuration items are updated and restart instructions are generated; in response to the instructions, the startup configuration items are queried and the target parameters are identified, thereby realizing the initialization mode startup of the target system, completing the automated operation, improving the automated restart, and improving the precise control of the restart operation and the restart efficiency.
[0056] According to an embodiment of the present disclosure, when executing Figure 3 The operation S320 shown includes updating all files stored in the file system partition using the initialization system file, wherein the initialization system file includes a file for running the file subsystem in an initialization state.
[0057] According to an embodiment of the present disclosure, a shadow partition RWFS-Ghost of the RWFS partition can be established in the storage medium. The RWFS-Ghost partition has the same size and content as the RWFS partition and can be used to store initialization system files. When the space of the RWFS partition is overloaded, the initialization system files of the RWFS-Ghost partition are updated to the RWFS partition to achieve the reset of the RWFS partition.
[0058] According to an embodiment of the present disclosure, by initializing system files to update all files stored in a file system partition, space of the file system partition can be released, thereby avoiding system performance degradation or crash due to insufficient space.
[0059] According to an embodiment of the present disclosure, when executing Figure 3 The operation S320 shown further includes updating the startup configuration item using the initialization startup configuration item, wherein the initialization startup configuration item includes a predetermined configuration parameter.
[0060] According to an embodiment of the present disclosure, a shadow partition (Boot-ENV-Ghost) of the Boot-ENV partition can be established in a storage medium. The Boot-ENV-Ghost partition has the same size and content as the Boot-ENV partition, and can be used to store initialization startup configuration items. When a modification error occurs in the parameters of the Boot-ENV partition and the system cannot be restarted, the initialization startup configuration items of the Boot-ENV-Ghost partition are updated to the Boot-ENV partition, so that the Boot-ENV partition is reset, and Boot can read accurate parameters.
[0061] According to the embodiments of the present disclosure, by using the initialization startup configuration item for updating, it is possible to ensure that the system startup parameters and the initial configuration remain consistent, thereby reducing system startup failures or crashes caused by configuration errors or improper operations and improving system stability.
[0062] Figure 4A A schematic diagram of BMC system partitions of a related embodiment is schematically shown.
[0063] like Figure 4A As shown, in the related art, the BMC system partition 400 includes a Boot partition 410, a Boot-ENV partition 420, a kernel partition 430, a ROFS partition 440, and a RWFS partition 450. The BMC system triggers Boot startup after power-on. Boot reads the startup configuration items and startup scripts from the BOOT-ENV partition 410, runs the startup script, and boots the kernel and mounts the file systems of the ROFS partition 440 and the RWFS partition 450 to complete the system startup process.
[0064] Figure 4B The diagram schematically shows a BMC system partition according to an embodiment of the present disclosure.
[0065] like Figure 4B As shown, in this embodiment, 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 BMC system partition 400 also adds the Boot-ENV partition 420 and the RWFS partition 450 shadow partitions Boot-ENV-Ghost partition 470 and RWFS-Ghost partition 460. When the RWFS partition 450 exceeds the limited space size, the content of the RWFS-Ghost partition 460 is written to the RWFS partition 450, which can achieve the reset of the RWFS partition 450 and avoid the startup failure caused by the accidental deletion of system files. If the Boot parameter modification error causes the system to fail to start, the Boot-ENV partition 420 is restored using the content of the Boot-ENV-Ghost partition 470 in the Boot stage to achieve the reset of the Boot-ENV partition 420.
[0066] According to an embodiment of the present disclosure, when executing Figure 3 The operation S320 shown further includes updating the startup configuration item using the initialization startup configuration item upon receiving prompt information indicating a startup error, wherein the initialization startup configuration item includes a predetermined configuration parameter.
[0067] For example, if the system still cannot start up during a normal restart instead of the one that determines the impact of the target partition space usage, the system will issue a prompt message indicating a startup error. The startup error may be a hardware-related error, a system log and configuration-related error, etc. The prompt message may include an error message identifier and a cause, etc.
[0068] According to an embodiment of the present disclosure, when a system reports an error, the system can be automatically repaired by updating the initialization startup configuration item.
[0069] Figure 5 The flowchart of the BMC system operation control method according to the embodiment of the present disclosure is schematically shown.
[0070] like Figure 5 As shown, the method may include operations S510 to S580.
[0071] In operation S510 , the BMC system is powered on.
[0072] In operation S520, Boot startup is triggered, Boot reads the startup configuration items from the Boot-ENV partition, identifies the parameters of Boot-ENV, and determines whether Boot-ENV has the target parameters. If the target parameters do not exist, operation S530 is performed.
[0073] In operation S530, Boot-ENV and RWFS are restored to the initialization state. Specifically, in operation S531, the initialization startup configuration items of the Boot-ENV-Ghost partition are updated to the Boot-ENV partition, and in operation S532, the initialization system files of the RWFS-Ghost partition are updated to the RWFS partition, completing the reset of the Boot-ENV partition and the RWFS partition, and then restarting Boot.
[0074] If the target parameter exists, operation S540 is executed. In operation S540, the kernel is guided to perform 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, thereby completing the system startup process.
[0075] After the system is completed, the system monitors the RWFS partition in real time in operation S570. If it is detected that the space occupancy information of the RWFS target partition meets the restart condition, the startup configuration item is updated with the target parameter in operation S580, and Boot is instructed to restart.
[0076] Figure 6 A block diagram of a system operation control device according to an embodiment of the present disclosure is schematically shown.
[0077] like Figure 6 As shown, the system operation control device 600 includes a first acquisition module 610 and a generation module 620 .
[0078] The first acquisition module 610 is used to acquire the target partition space occupancy information of the file system partition, wherein the file system partition stores system files, and the system files are used to run the file subsystem, which is a subsystem of the target system in operation.
[0079] The generation module 620 is used to update the startup configuration item using the target parameter and generate a startup instruction for indicating the restart when it is determined that the target partition space occupancy information indicates that the target system meets the restart condition, wherein the target parameter is used to indicate that the target system is started according to the initialization mode, and the startup configuration item includes the configuration parameter for starting the target system.
[0080] According to an embodiment of the present disclosure, the system operation control device 600 further includes an identification module and a startup module.
[0081] The identification module is used to respond to the startup instruction and use the startup subsystem to perform parameter identification on the startup configuration item, wherein the startup subsystem is a subsystem of the target system with a startup function.
[0082] The startup module is used to start the target system according to the initialization mode when the target parameters are identified from the startup configuration items.
[0083] According to an embodiment of the present disclosure, the startup module includes a first updating unit.
[0084] The first updating unit is used to update all files stored in the file system partition by using the initialization system file, wherein the initialization system file includes a file running the file subsystem according to the initialization state.
[0085] According to an embodiment of the present disclosure, the startup module includes a second updating unit.
[0086] 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.
[0087] According to an embodiment of the present disclosure, the system operation control device 600 further includes a moving module and a second obtaining module.
[0088] The moving module is used to move files of a predetermined type stored in the file system partition to the backup space.
[0089] The second acquisition module is used to acquire the target partition space occupancy information of the updated file system partition.
[0090] According to an embodiment of the present disclosure, the second acquisition module includes a spatial information acquisition unit.
[0091] 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.
[0092] According to an embodiment of the present disclosure, the system operation control device 600 further includes a first determination module and a second determination module.
[0093] The first determination module is used to determine the space availability of the file system partition and the file type of the file currently stored in the file system partition based on the target partition space occupancy information.
[0094] The second determination module is used to determine whether the target system meets the restart condition based on the space availability and the file type.
[0095] According to an embodiment of the present disclosure, the system operation control device 600 further includes an update module.
[0096] The updating module is used for updating the startup configuration item by using the initialization startup configuration item in response to receiving the prompt information indicating the 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 devices are intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0099] like Figure 7 As shown, the 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. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0100] A number of components in the device 700 are connected to an input / output (I / O) interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0101] The computing unit 701 may be a variety of general and / or special 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 dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as the system operation control method. For example, in some embodiments, the system operation control method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the system operation control method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to execute the system operation control method in any other appropriate manner (e.g., by means of firmware).
[0102] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0103] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0104] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0105] To provide interaction with a user, the systems and techniques described herein 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 pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the 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 input, voice input, or tactile input).
[0106] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may 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] A computer system may include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises through computer programs running on respective computers and having a client-server relationship to each other. The server may be a cloud server, a server in a distributed system, or a server combined with a blockchain.
[0108] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0109] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle 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; and When it is determined that the target partition space occupancy information indicates that 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 indicate that the target system is started according to the initialization mode, and the startup configuration item includes configuration parameters 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 having a startup function; and In case 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 according to the initialization state.
4. The method according to claim 2 or 3, 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 a predetermined configuration parameter.
5. The method according to any one of claims 1 to 4, further comprising: Moving files of a predetermined type stored in the file system partition to a backup space; as well as Get the target partition space usage information of the updated file system partition.
6. The method according to any one of claims 1 to 5, wherein: The step of obtaining the target partition space occupancy information of the file system partition includes: At predetermined time intervals, the 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.
7. The method according to any one of claims 1 to 6, further comprising: Based on the target partition space occupancy information, determining the space availability of the file system partition and the file type of the file currently stored in the file system partition; as well as Based on the space availability and the file type, it is determined whether the target system meets the restart condition.
8. The method according to any one of claims 1 to 7, 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.
9. A system operation control device, comprising: A first acquisition module is used to acquire space occupancy information of a target partition 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 the target system in a running state; and A generation module is used to update the startup configuration item using the target parameter and generate a startup instruction for instructing the restart when it is determined that the target partition space occupancy information indicates that the target system meets the restart condition, wherein the target parameter is used to indicate that the target system is started according to the initialization mode, and the startup configuration item includes the configuration parameter for starting the target system.
10. The apparatus according to claim 9, 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 used to start the target system according to the initialization mode when the target parameter is identified from the startup configuration item.
11. The device according to claim 10, wherein: The startup module includes: The first updating unit is used to update all 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 according to the initialization state.
12. The device according to claim 10 or 11, wherein: The startup module includes: The second updating unit is configured to update the startup configuration item by using the initialization startup configuration item, wherein the initialization startup configuration item includes a predetermined configuration parameter.
13. The device according to any one of claims 9 to 12, further comprising: A moving module, used for moving files of a predetermined type stored in the file system partition to a backup space; as well as The second acquisition module is used to acquire the target partition space occupancy information of the updated file system partition.
14. The device according to any one of claims 9 to 13, wherein: The second acquisition module comprises: 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.
15. The device according to any one of claims 9 to 14, further comprising: A first determination module, configured to determine the space availability of the file system partition and the file type of the file currently stored in the file system partition based on the target partition space occupancy information; as well as The second determination module is used to determine whether the target system meets the restart condition based on the space availability and the file type.
16. The device according to any one of claims 9 to 15, further comprising: The updating module is used for updating the startup configuration item by using the initialization startup configuration item in response to receiving the prompt information indicating the startup error, wherein the initialization startup configuration item includes a predetermined configuration parameter.
17. 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 8.
18. 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 8.
19. 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 8.
Citation Information
Patent Citations
Table space automatic alarm method and terminal device
CN109165146A
Method and device for restoring factory settings of server system, equipment and medium
CN111400094A
Computer system and method for operating the same
JP2015114825A
Apparatus and method for controlling user instructions for preventing system overload
KR1019990016747A
Partial hibernation restore for boot time reduction
US20120036346A1