CN116185510A - Partition switch starting method, array server and computer readable storage medium - Google Patents
Partition switch starting method, array server and computer readable storage medium Download PDFInfo
- Publication number
- CN116185510A CN116185510A CN202310188268.1A CN202310188268A CN116185510A CN 116185510 A CN116185510 A CN 116185510A CN 202310188268 A CN202310188268 A CN 202310188268A CN 116185510 A CN116185510 A CN 116185510A
- Authority
- CN
- China
- Prior art keywords
- partition
- processing module
- starting
- instruction
- startup
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Hardware Redundancy (AREA)
Abstract
The embodiment of the application discloses a partition switching starting method, an array server and a computer readable storage medium. The method comprises the following steps: determining a processing module to be started according to the control instruction response, wherein the processing module is started after being electrified; controlling the processing module to be electrified so that the processing module runs a starting program stored in the first partition to execute a starting process; waiting to acquire startup confirmation information fed back by the processing module; and when the startup confirmation information is not acquired, sending a partition switching instruction to the processing module so that the processing module runs the startup program stored in the second partition according to the partition switching instruction to execute the startup process. Therefore, the method and the device can monitor the starting state of the processing module in real time in the starting process of the processing module, so that when the starting fails, the starting state is timely switched to the second partition, the starting program in the second partition is operated, the processing module is ensured to be started normally, and data loss caused by the problem of machine brushing is prevented.
Description
Technical Field
The application belongs to the technical field of servers, and particularly relates to a partition switching starting method, an array server and a computer readable storage medium.
Background
In most electronic devices today, the proper functioning of the electronic device depends on the operating system of the electronic device. The process of powering up and starting the application System for the processing module in the array server is that a BootLoader (BootLoader), a Kernel (Kernel), an operating System (System), and the starting of the operating System and the application System is completed only when the processing module walks to the System. There is often only one partition at BootLoader, kernel or System. If a fault is stuck in the process module during start-up BootLoader, kernel or System, the System may fail to start up. Recovery can only be performed by brushing, which can in turn lead to loss of data stored in the System, resulting in unnecessary damage. How to ensure the normal startup of the electronic device, avoid unnecessary data loss caused by the startup, and solve the technical problem that the skilled person needs to solve.
The foregoing description is provided for general background information and does not necessarily constitute prior art.
Disclosure of Invention
Based on this, it is necessary to provide a partition switching starting method, an array server and a computer readable storage medium, which can timely switch starting partitions under the condition that the starting of a processing module in the array server fails, so as to ensure that the processing module can start up and run normally.
The technical problem that this application solved is realized by adopting following technical scheme:
the application provides a partition switching starting method, which is applied to a control module in an array server and comprises the following steps: determining a processing module to be started according to the control instruction response, wherein the processing module is started after being electrified; controlling the processing module to be electrified so that the processing module runs a starting program stored in the first partition to execute a starting process; waiting to acquire startup confirmation information fed back by the processing module; and when the startup confirmation information is not acquired, sending a partition switching instruction to the processing module so that the processing module runs the startup program stored in the second partition according to the partition switching instruction to execute the startup process.
In an alternative embodiment of the present application, before responding according to the control instruction, the method further includes: identifying partition information of the processing module; if the second partition does not exist according to the partition information, sending a partition control generation instruction to the processing module so as to control the processing module to generate the second partition, and backing up the starting program to the second partition; if the version of the starting program is not adapted according to the partition information, an updating program control instruction is sent to the processing module so as to control the processing module to update the starting program stored in the first partition and/or the second partition.
In an optional embodiment of the present application, sending a partition switching instruction to the processing module, so that the processing module runs a startup procedure stored in the second partition according to the partition switching instruction, to execute a startup procedure, including: after the power supply of the processing module is disconnected, the processing module is controlled to be electrified again and a partition switching instruction is sent to the processing module; after the switching confirmation information sent back by the processing module is obtained, the processing module is restarted, so that the processing module runs the starting program stored in the second partition according to the partition switching instruction, and the starting process is executed.
In an optional embodiment of the present application, after sending the partition switch instruction to the processing module, the method further includes: waiting to acquire the feedback startup confirmation information sent back by the processing module; and when the startup confirmation information is not acquired again, sending a shutdown instruction to the processing module, generating and outputting startup abnormal information, wherein the startup abnormal information is used for informing a user that the processing module fails to start.
The application also provides a partition switching starting method, which is applied to a processing module in the array server, wherein the processing module comprises a first partition and a second partition, starting programs for executing a starting process are stored in the first partition and the second partition, and the method comprises the following steps: after the processing module is powered on, running a starting program of the first partition; if the starting program of the first partition is not run successfully, the starting confirmation information is not sent to the control module, and the control module is used for sending a partition switching instruction to the processing module when the starting confirmation information is not acquired; when the partition switching instruction issued by the control module is acquired, the starting program stored in the second partition is operated according to the partition switching instruction so as to execute the starting process.
In an alternative embodiment of the present application, the method further comprises: the partition information is sent to the control module, the control module is further used for sending a partition control instruction to the processing module if the second partition does not exist according to the partition information, or sending an update program control instruction to the processing module if the version is determined to be not suitable according to the partition information; when a partition generation control instruction issued by the control module is received, a second partition is generated, and a starting program is backed up to the second partition; when receiving an update program control instruction issued by the control module, updating the starting program stored in the first partition and/or the second partition.
In an optional embodiment of the present application, when a partition switching instruction issued by the control module is obtained, a startup procedure stored in a second partition is executed according to the partition switching instruction, including: if the partition switching instruction issued by the control module is acquired, stopping when the starting program runs to the system boot program; shielding the first partition according to the partition switching instruction, and starting the second partition; generating switching confirmation information and sending the switching confirmation information to a control module, wherein the control module is used for controlling the restarting processing module after receiving the switching confirmation information; and after the processing module is powered on again, running a starting program stored in the second partition according to the partition switching instruction so as to execute the starting process.
In an alternative embodiment of the present application, the running of the startup procedure stored in the second partition according to the partition switch instruction includes: if the starting program of the second partition is still not run successfully, the starting confirmation information is not sent to the control module again, the control module is used for sending a shutdown instruction to the processing module when the starting confirmation information is not acquired again, starting abnormal information is generated and output, and the starting abnormal information is used for informing a user that the starting of the processing module fails.
The application also provides an array server, which comprises a control module and at least one processing module; the control module is used for executing the method; the processing module is used for executing the method.
The present application also provides a computer readable storage medium storing a computer program which when executed by a processor implements a method as described above.
By adopting the embodiment of the application, the method has the following beneficial effects:
according to the method and the device, the starting state of the processing module can be monitored in real time in the starting process of the processing module, so that when the starting fails, the starting state is timely switched to the second partition, the starting program in the second partition is operated, the processing module is guaranteed to be started normally, and data loss caused by the problem of machine brushing is prevented.
The foregoing description is only an overview of the technical solutions of the present application, and may be implemented according to the content of the specification, so that the foregoing and other objects, features and advantages of the present application can be more clearly understood, and the following detailed description of the preferred embodiments is given with reference to the accompanying drawings. It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Wherein:
FIG. 1 is a flow chart of a partition switch starting method applied to a control module in an array server according to an embodiment;
FIG. 2 is a flow chart of a partition switch starting method applied to a processing module in an array server according to an embodiment;
FIG. 3 is a schematic block diagram of an array server according to an embodiment;
fig. 4 is a schematic block diagram of a control module according to an embodiment.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The array server includes a plurality of processing modules to provide computing power, each processing module being a separate system running independently of the other, each processing module being used as an individual. In the array server of ARM (Advanced RISC Machine) architecture, the processing module is typically an ARM architecture chip. In order to adapt to the application scene of the server, the starting circuit of the processing module is set to be powered on, namely, started. The starting process is usually implemented by executing a starting program in a starting partition, and the specific flow is to start and run a System boot program (hereinafter abbreviated as BootLoader) first, and then run a Kernel (hereinafter abbreviated as Kernel) and an operating System (hereinafter abbreviated as System) later. The BootLoader has small volume and high stability, and is not easy to generate errors in the starting process; kernel and System are complex and may fail to start. If an error occurs due to Kernel or System, the processing module may fail to boot. A common solution is to perform a brushing to reset the boot program stored in the partition. However, this may cause other important data stored in the partition, such as user data, logs, configuration files, etc., to be erased together, resulting in loss of the important data. How to restart the processing module by bypassing the wrong partition in the process of starting the processing module and error, so as to ensure normal starting and avoid data loss caused by machine brushing. For a clear description of the method provided in this embodiment, please refer to fig. 1, and the partition switch starting method shown in fig. 1 is applied to a control module in an array server, and specifically includes steps S110 to S130.
Step S110: and determining a processing module to be started according to the control instruction response, wherein the processing module is started after being electrified.
In one embodiment, as described above, the processing module is adapted to the application environment in the array server, and the circuit is usually set to be powered on. However, there are many processing modules in the array server, one control module may be simultaneously divided into a plurality of processing modules, when the upper computer sends a corresponding control instruction to explicitly control the starting of one or some processing modules, the control module needs to respond to the control instruction, determines the processing module that the upper computer needs to be started, and turns on the power supply circuit of the corresponding processing module, thereby ensuring the normal starting of the selected processing module.
In one embodiment, step S110: before responding according to the control instruction, the method further comprises: identifying partition information of the processing module; if the second partition does not exist according to the partition information, sending a partition control generation instruction to the processing module so as to control the processing module to generate the second partition, and backing up the starting program to the second partition; if the version of the starting program is not adapted according to the partition information, an updating program control instruction is sent to the processing module so as to control the processing module to update the starting program stored in the first partition and/or the second partition.
In one embodiment, to avoid the problem of boot failure as described above, the processing module proposed in the present application may include two types of boot partitions: a first partition and a second partition. It is noted that here, two types of partitions are mentioned instead of two, and the distinction of the partitions is a distinction in kind instead of a limitation of the number. The first partition means a main partition, which is a partition in which a processing module runs a boot program in a normal case; the second partition means a backup partition, which is called in case of a failure of the first partition to start. That is, in the actual situation, the number of the partitions is at least two, but not limited to only two, in the actual situation, three, four or more partitions may be provided, and the specific number is set by the developer according to the needs, which is not described herein. For convenience of explanation, the processing module includes two partitions, which are not described in detail later. The same system, namely the same starting program is stored in the first partition and the second partition, and when the starting program responds, the starting process can be executed; however, the priorities are different, and in general, one priority is higher than the other, and in this embodiment, the first priority is higher than the second partition. Therefore, when the processing module is powered on, the default responds according to the starting program stored in the first partition to execute the starting process. While typically the processing modules often have only one partition. For this purpose, the backup of the partitions is to be carried out by means of an external module control, so that in the present embodiment the external module, i.e. the execution module of the method: a control module in the array server. The control module may be a micro control unit (Micro Controller Unit, MCU) or a baseboard management controller (Bulk Molding Compound, BMC). The specific implementation is controlled by the actual functional requirements, and the developer's settings, and is not limited herein. It is only to be understood that the control module is a functional unit capable of controlling the processing module in the array server. The control module may obtain partition information of the processing module before controlling the processing module to boot, for example, when the processing module boots up for the first time or accesses the array server for the first time. The partition information is used for indicating the partition state of the processing module, whether the second partition exists, whether the program is started in the second partition, version information of the starting program in the first partition and/or the second partition, and the like. If the preset starting condition is not met, the processing module can be controlled, so that the corresponding condition is met. The starting condition may be that the starting partition of the processing module includes a first partition and a second partition, and the first partition and the second partition are stored with the same latest version of the starting program. The specific conditions may be arbitrarily set according to the needs of the developer for the device, and are merely illustrative and not limiting herein. If it is determined that the second partition does not exist in the processing module according to the partition information, the processing module cannot implement the method provided by the application. The control module may send a partition generation control instruction to the processing module to control the processing module to generate the second partition, and backup the startup procedure to the second partition. The processing module can select another same path even if the processing module can not realize starting up through the first partition. In addition, if the version of the startup procedure is not adapted according to the partition information, an update procedure control instruction may be sent to the processing module to control the processing module to update the startup procedure stored in the first partition and/or the second partition. The specific meaning of version discomfort refers to that the version of the starting program does not meet the requirements of a developer, and specifically includes, but is not limited to, the following: the version of the boot program stored by the first partition and/or the second partition is not the desired version; the version of the boot program stored by the first partition and/or the second partition is not uniform, and so on. No matter for the condition that no second partition or version adaptation exists, even other actual conditions occur, but the processing module which is not mentioned in the application does not meet the starting condition, the control module can specifically upgrade an OTA (Over-the-Air Technology) for the control processing module, and the preparation of starting work is rapidly completed through one-time operation, so that the method provided by the application can be realized, normal starting of the processing module is ensured, and the embarrassment that only one path of data loss is caused by brushing is avoided when the starting fails.
Step S120: controlling the processing module to be electrified so that the processing module runs a starting program stored in the first partition to execute a starting process; waiting to acquire the startup confirmation information fed back by the processing module.
Step S130: and when the startup confirmation information is not acquired, sending a partition switching instruction to the processing module so that the processing module runs the startup program stored in the second partition according to the partition switching instruction to execute the startup process.
In an embodiment, in the normal procedure, after the control module determines that the processing module needs to be started, that is, the power supply circuit corresponding to the control processing module is turned on, the processing module automatically runs the starting program stored in the first partition after being powered on, so as to execute the starting procedure. The control module waits for obtaining the startup confirmation information fed back by the processing module. The startup confirmation information is information which is sent back to the control module by confirming the normal startup after the processing module runs the System after self-checking, and is used for indicating that the processing module is started normally, and the normal flow is ended after the step is finished. However, if the control module does not acquire the startup confirmation information, it can be confirmed that the processing module fails to start up, and partition switching operation needs to be executed. The control module may not acquire the startup confirmation information, which includes: and the startup confirmation information fed back by the processing module is not acquired in the preset time, or the startup failure information sent back by the processing module is received. The preset time can be set by a developer according to the actual performance of the processing module and the startup time data measured by experiments, and the preset time is not limited herein. And as described above, the self-checking can be performed during the starting process of the processing module, after BootLoader, kernel and System are executed accordingly, if it is detected that the starting program card cannot be performed in one step of starting, or after the System is started, the System does not enter the application System according to the preset information. And the fault occurs in the starting-up flow, and if the starting-up fails, the starting-up failure information is correspondingly generated and returned to the control module. Either of them may belong to the control module not obtaining the boot confirmation information, that is, confirming that the processing module fails to boot, and for this reason, the partition boot operation needs to be executed to ensure that the processing module boots normally.
In one embodiment, step S130: sending a partition switching instruction to the processing module, so that the processing module runs a starting program stored in the second partition according to the partition switching instruction to execute a starting process, and the method comprises the following steps: after the power supply of the processing module is disconnected, the processing module is controlled to be electrified again and a partition switching instruction is sent to the processing module; after the switching confirmation information sent back by the processing module is obtained, the processing module is restarted, so that the processing module runs the starting program stored in the second partition according to the partition switching instruction, and the starting process is executed.
In one embodiment, the key to performing the partition switch operation is the partition switch instruction sent by the control module. It will be appreciated that the boot program of the first partition fails to boot, and that boot cannot be performed. For this, the power supply of the processing module needs to be cut off to shut down, and a partition switching instruction is sent when the processing module is powered on again. When the processing module receives the partition switching instruction, the processing module will switch the starting partition to the activation state of the second partition, and the execution process of the processing module will be described in detail later, which is not developed here. After the partition is completed, the processing module sends a switching confirmation message to the control module so as to indicate that the processing module has completed partition switching. The control module can restart the processing module again, so that the processing module executes the startup procedure according to the startup procedure in the second partition. Specifically, the switching control instruction may be sent by the control module and the processing module through a GPIO interface (General-purpose input/output), for example, when the control module outputs a low level signal to the processing module through the GPIO, the control module is regarded as sending the partition switching instruction. When the control module controls to output high level to the processing module through the GIPO, the processing module executes the startup procedure according to the startup procedure stored in the first partition. If the control module sends a low-level signal to the processing module through the GIPO interface, it may be regarded that the control module sends a partition switching instruction to the processing module, and when the processing module executes a start program according to the first partition, the processing module stops at BootLoader and executes FastBoot function to implement partition switching.
In one embodiment, step S130: after sending the partition switching instruction to the processing module, the method further comprises: waiting to acquire the feedback startup confirmation information sent back by the processing module; and when the startup confirmation information is not acquired again, sending a shutdown instruction to the processing module, generating and outputting startup abnormal information, wherein the startup abnormal information is used for informing a user that the processing module fails to start.
In an embodiment, if the starting procedure in the second partition is correct, starting is performed according to the normal starting procedure, starting is completed, and starting confirmation information is sent back. If the control module does not acquire the startup confirmation information, the control module indicates that the startup program in the second partition cannot be started as well, and the processing module cannot be started normally. And generating a shutdown instruction and sending the shutdown instruction to the processing module to control the processing module to be closed, and generating and outputting starting abnormal information. The user is informed of the abnormal state of the processing module, and is prompted to process the processing module in time.
Therefore, the method and the device can monitor the starting state of the processing module in real time in the starting process of the processing module, so that when the starting fails, the starting state is timely switched to the second partition, the starting program in the second partition is operated, the processing module is ensured to be started normally, and data loss caused by the problem of machine brushing is prevented.
It can be appreciated that the control performs partition switching, and the participation of the control module and the processing module is required to implement the partition switching method applied to the control module has been described in the foregoing embodiments, and the present embodiment provides the partition switching method applied to the processing module. For a clear description of the method provided in this embodiment, please refer to fig. 2, and the partition switch starting method shown in fig. 2 is applied to a processing module in an array server, and specifically includes steps S120 to S230.
Step S210: and after the processing module is powered on, running a starting program of the first partition.
In one embodiment, the method further comprises: the partition information is sent to the control module, the control module is further used for sending a partition control instruction to the processing module if the second partition does not exist according to the partition information, or sending an update program control instruction to the processing module if the version is determined to be not suitable according to the partition information; when a partition generation control instruction issued by the control module is received, a second partition is generated, and a starting program is backed up to the second partition; when receiving an update program control instruction issued by the control module, updating the starting program stored in the first partition and/or the second partition.
In one embodiment, the processing module may generate the partition information by self-checking before the processing module is powered on, for example, when the processing module is powered on for the first time, or when the processing module is accessed to the array server for the first time. The partition information is used for indicating the partition state of the processing module, whether the second partition exists, whether the program is started in the second partition, version information of the starting program in the first partition and/or the second partition, and the like. If the preset starting condition is not met, corresponding conditions are met according to the control of the control module. The starting condition may be that the starting partition of the processing module includes a first partition and a second partition, and the first partition and the second partition both store the same latest version of the starting program. The specific conditions may be arbitrarily set according to the needs of the developer for the device, and are merely illustrative and not limiting herein. If it is determined that the second partition does not exist in the processing module according to the partition information, the processing module cannot implement the method provided by the application. The control module can send a partition control generation instruction to the processing module, and the processing module backs up the second partition from the starting partition after receiving the partition control instruction, and backs up the starting program to the second partition. The processing module can select another same path even if the processing module can not realize starting up through the first partition. In addition, if the version of the startup procedure is not adapted according to the partition information, the startup procedure stored in the first partition and/or the second partition may be updated according to the update procedure control instruction sent by the control module. The specific meaning of version discomfort refers to that the version of the starting program does not meet the requirements of a developer, and specifically includes, but is not limited to, the following: the version of the boot program stored by the first partition and/or the second partition is not the desired version; the version of the boot program stored by the first partition and/or the second partition is not uniform, and so on. In addition, the control instruction sent by the control module can be specifically OTA upgrade, and the processing module rapidly completes the preparation of starting work through one-time operation according to the control response, so that the method provided by the application can be realized, the normal starting of the processing module is ensured, and the embarrassment of data loss caused by only one path selection of a brushing machine when the starting fails is avoided.
Step S220: if the starting program of the first partition is not run successfully, the starting confirmation information is not sent to the control module, and when the starting confirmation information is not acquired, the control module is used for sending a partition switching instruction to the processing module.
In one embodiment, the process of executing the start-up procedure by the processing module as described above is performed BootLoader, kernel, system accordingly. The processing module may implement detection of all flows or just systems. If the System operates normally, the processing module is indicated to be successfully started, the startup confirmation information is generated and fed back to the control module, and the whole startup process is finished. But if the detection fails, the starting program of the first partition is not successfully operated, and the starting fails. The processing module can not do any operation, namely, the startup confirmation information is not generated and the startup confirmation information is not sent; start failure information may also be generated and fed back to the control module. In either case, the control module determines that the boot confirmation information is not acquired, and generates a partition switch instruction to send to the processing module.
Step S230: when the partition switching instruction issued by the control module is acquired, the starting program stored in the second partition is operated according to the partition switching instruction so as to execute the starting process.
In an embodiment, when a partition switching instruction issued by the control module is obtained, a startup program stored in a second partition is operated according to the partition switching instruction, including: if the partition switching instruction issued by the control module is acquired, stopping when the starting program runs to the system boot program; shielding the first partition according to the partition switching instruction, and starting the second partition; generating switching confirmation information and sending the switching confirmation information to a control module, wherein the control module is used for controlling the restarting processing module after receiving the switching confirmation information; and after the processing module is powered on again, running a starting program stored in the second partition according to the partition switching instruction so as to execute the starting process.
In one embodiment, when the partition switch command is sent, the control module controls the processing module to complete a restart. When the processing module is restarted, if a partition switching instruction is received, the processing module stops when a starting program running the first partition is executed to a BootLoader, and starts a FastBooot function. FastBoot will mask the first partition and initiate activation of the second partition, so that the second partition is set to initiate partition. And then generating and sending the switching confirmation information to the control module. After receiving the generated switching confirmation information, the control module controls the processing module to restart again. The restarted processing module can respond according to the starting program in the second partition to execute the starting flow.
In one embodiment, the running of the startup procedure stored in the second partition according to the partition switch instruction includes: if the starting program of the second partition is still not run successfully, the starting confirmation information is not sent to the control module again, the control module is used for sending a shutdown instruction to the processing module when the starting confirmation information is not acquired again, starting abnormal information is generated and output, and the starting abnormal information is used for informing a user that the starting of the processing module fails.
In an embodiment, if the starting procedure in the second partition is correct, starting is performed according to the normal starting procedure, starting is completed, and starting confirmation information is sent back. The processing module executes the startup procedure or fails according to the startup procedure of the second partition, and then the control module is caused to enter a state that the startup confirmation information is not acquired. In this case it is indicated that the boot program in the second partition is likewise not bootable and that the processing module is not bootable normally. And generating a shutdown instruction and sending the shutdown instruction to the processing module to control the processing module to be closed, and generating and outputting starting abnormal information. The user is informed of the abnormal state of the processing module, and is prompted to process the processing module in time.
Therefore, the method and the device can monitor the starting state of the processing module in real time in the starting process of the processing module, so that when the starting fails, the starting state is timely switched to the second partition, the starting program in the second partition is operated, the processing module is ensured to be started normally, and data loss caused by the problem of machine brushing is prevented.
FIG. 3 illustrates a block diagram of the architecture of an array server in one embodiment. The present application also provides an array server 30, comprising a control module 310 and at least one processing module 320; the control module 310 is configured to perform a partition switch initiation method as described above for the control module 310 in the array server 30; the processing module 320 is configured to execute a block switching start method as described above for the processing module 320 in the array server 30. Further, for the processing module 320 in the array server 30 provided in the present application, it may be a mobile terminal processor chip of an ARM architecture, for example, a Gao Tongxiao long 865 chip.
In one embodiment, a control module 310 provided in the present application includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of: step S110: determining a processing module to be started according to the control instruction response, wherein the processing module is started after being electrified; step S120: controlling the processing module to be electrified so that the processing module runs a starting program stored in the first partition to execute a starting process; waiting to acquire startup confirmation information fed back by the processing module; step S130: and when the startup confirmation information is not acquired, sending a partition switching instruction to the processing module so that the processing module runs the startup program stored in the second partition according to the partition switching instruction to execute the startup process.
FIG. 4 illustrates an internal block diagram of the control module 310 in one embodiment. The control module 310 may be a terminal or a server. As shown in fig. 4, the control module 310 includes a processor, memory, and a network interface connected by a system bus. The memory includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium of the control module 310 stores an operating system and may also store a computer program that, when executed by a processor, causes the processor to implement a partition switch initiation method. The internal memory may also have stored therein a computer program which, when executed by the processor, causes the processor to perform the age identification method. Those skilled in the art will appreciate that the structure shown in fig. 4 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the control module 310 to which the present application is applied, and that a particular control module 310 may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the present application also proposes a processing module comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of: step S210: after the processing module is powered on, running a starting program of the first partition; step S220: if the starting program of the first partition is not successfully operated, the starting confirmation information is not sent to the control module; step S230: when the partition switching instruction issued by the control module is acquired, the starting program stored in the second partition is operated according to the partition switching instruction so as to execute the starting process. The specific implementation process of step S210 to step S230 is referred to the above description, and will not be repeated here.
In one embodiment, the present application also proposes a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the steps of the method as described above,
those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.
Claims (10)
1. The partition switching starting method is applied to a control module in an array server and is characterized by comprising the following steps of:
determining a processing module to be started according to the control instruction response, wherein the processing module is started after being electrified;
controlling the processing module to be electrified so that the processing module runs a starting program stored in the first partition to execute a starting process; waiting to acquire startup confirmation information fed back by the processing module;
and when the startup confirmation information is not acquired, sending a partition switching instruction to the processing module so that the processing module runs a startup program stored in a second partition according to the partition switching instruction to execute a startup process.
2. The partition switch initiation method of claim 1, wherein prior to responding according to a control instruction, the method further comprises:
identifying partition information of the processing module;
if the second partition does not exist according to the partition information, sending a partition generation control instruction to the processing module so as to control the processing module to generate the second partition, and backing up the starting program to the second partition;
and if the version of the starting program is not adapted according to the partition information, sending an updating program control instruction to the processing module so as to control the processing module to update the starting program stored in the first partition and/or the second partition.
3. The partition switch initiation method of claim 1 wherein sending a partition switch instruction to the processing module to cause the processing module to execute a boot program stored in a second partition according to the partition switch instruction to perform a boot flow comprises:
after the power supply of the processing module is disconnected, controlling the processing module to be electrified again and sending a partition switching instruction to the processing module;
after the switching confirmation information sent back by the processing module is obtained, restarting the processing module, so that the processing module runs the starting program stored in the second partition according to the partition switching instruction, and the starting process is executed.
4. The partition switch initiation method of claim 1, wherein after sending a partition switch instruction to the processing module, the method further comprises:
waiting to acquire the feedback startup confirmation information sent back by the processing module;
and when the startup confirmation information is not acquired again, sending a shutdown instruction to the processing module, generating startup abnormal information and outputting the startup abnormal information, wherein the startup abnormal information is used for informing a user that the startup of the processing module fails.
5. The partition switching starting method is applied to a processing module in an array server and is characterized by comprising a first partition and a second partition, wherein starting programs for executing a starting process are stored in the first partition and the second partition, and the method comprises the following steps:
after the processing module is powered on, running a starting program of the first partition;
if the starting program of the first partition is not run successfully, not sending the startup confirmation information to a control module, wherein the control module is used for sending a partition switching instruction to the processing module when the startup confirmation information is not acquired;
and when the partition switching instruction issued by the control module is acquired, running a starting program stored in the second partition according to the partition switching instruction so as to execute a starting process.
6. The partition switch initiation method of claim 5, wherein the method further comprises:
the control module is further used for sending a partition control instruction to the processing module if the second partition does not exist according to the partition information, or sending an update program control instruction to the processing module if the version of the starting program is determined to be not suitable according to the partition information;
when a partition generation control instruction issued by the control module is received, generating the second partition, and backing up the starting program to the second partition;
and when receiving an updating program control instruction issued by the control module, updating the starting program stored in the first partition and/or the second partition.
7. The partition switch starting method according to claim 5, wherein when the partition switch instruction issued by the control module is obtained, running a starting program stored in the second partition according to the partition switch instruction, including:
if the partition switching instruction issued by the control module is acquired, stopping when the starting program runs to the system boot program;
shielding the first partition according to the partition switching instruction, and starting the second partition;
generating switching confirmation information and sending the switching confirmation information to the control module, wherein the control module is used for controlling restarting of the processing module after receiving the switching confirmation information;
and after the processing module is powered on again, the starting program stored in the second partition is operated according to the partition switching instruction so as to execute a starting process.
8. The partition switch initiation method of claim 5 wherein the executing the initiation program stored in the second partition in accordance with the partition switch instruction comprises:
if the starting program of the second partition is still not run successfully, the starting confirmation information is not sent to the control module again, the control module is used for sending a shutdown instruction to the processing module and generating and outputting starting abnormal information when the starting confirmation information is not acquired again, and the starting abnormal information is used for informing a user that the processing module is failed to start.
9. An array server, comprising a control module and at least one processing module;
the control module being adapted to perform the method of any one of claims 1 to 4;
the processing module is configured to perform the method of any of claims 5 to 8.
10. A computer readable storage medium, characterized in that it stores a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 4 or the method according to any one of claims 5 to 8.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310188268.1A CN116185510A (en) | 2023-02-22 | 2023-02-22 | Partition switch starting method, array server and computer readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310188268.1A CN116185510A (en) | 2023-02-22 | 2023-02-22 | Partition switch starting method, array server and computer readable storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116185510A true CN116185510A (en) | 2023-05-30 |
Family
ID=86446061
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310188268.1A Pending CN116185510A (en) | 2023-02-22 | 2023-02-22 | Partition switch starting method, array server and computer readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116185510A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117370103A (en) * | 2023-09-04 | 2024-01-09 | 启朔(深圳)科技有限公司 | A PCIE network card-based SoC system monitoring method, device, equipment and medium |
| CN119718435A (en) * | 2023-09-28 | 2025-03-28 | 北京小米移动软件有限公司 | Startup control method, device, equipment and medium based on memory chip |
-
2023
- 2023-02-22 CN CN202310188268.1A patent/CN116185510A/en active Pending
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117370103A (en) * | 2023-09-04 | 2024-01-09 | 启朔(深圳)科技有限公司 | A PCIE network card-based SoC system monitoring method, device, equipment and medium |
| CN117370103B (en) * | 2023-09-04 | 2024-07-05 | 启朔(深圳)科技有限公司 | A SoC system monitoring method, device, equipment and medium based on PCIE network card |
| CN119718435A (en) * | 2023-09-28 | 2025-03-28 | 北京小米移动软件有限公司 | Startup control method, device, equipment and medium based on memory chip |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113064747B (en) | Fault positioning method, system and device in server starting process | |
| US7200845B2 (en) | System and method for high availability firmware load | |
| US11314665B2 (en) | Information processing system, information processing device, BIOS updating method for information processing device, and BIOS updating program for information processing device | |
| CN101882085B (en) | System starting method and embedded equipment | |
| CN112328358B (en) | Dual-system starting method based on virtual machine and storage medium | |
| CN103605536B (en) | Starting method and starting device of embedded operating system and baseboard management controller | |
| US20030106052A1 (en) | System and method for high availability firmware load | |
| CN115237644B (en) | System fault processing method, central operation unit and vehicle | |
| CN113867807A (en) | Method, device, equipment and storage medium for shortening power-on time of server | |
| CN116185510A (en) | Partition switch starting method, array server and computer readable storage medium | |
| CN108345464A (en) | A kind of the startup method and Android vehicle device of Android system | |
| CN117130672A (en) | Server startup process control method, system, terminal and storage medium | |
| CN111651304B (en) | Software recovery method and device based on double-core intelligent ammeter and computer equipment | |
| CN119621157B (en) | Method and device for detecting and recovering fault of operation system of AI (advanced technology attachment) server | |
| CN114528555A (en) | ARM server firmware safety check starting management method, device and medium | |
| CN116795408A (en) | ECU software upgrading method and system and vehicle | |
| CN118260130B (en) | Starting method and system for dual-chip system after upgrading | |
| CN117785238A (en) | Firmware upgrade method, device, electronic equipment and computer-readable storage medium | |
| CN112380083B (en) | A method and system for testing the stability of BMC active/standby switching | |
| CN108170247A (en) | BMC power loss recovery method and apparatus | |
| CN114064086A (en) | Multi-stage processor system and upgrading method thereof | |
| CN113672302A (en) | Router starting method and device, router and storage medium | |
| CN111078307A (en) | Starting method and device of embedded equipment, embedded equipment and storage medium | |
| CN118860748B (en) | Program upgrading method, electronic device, storage medium and program product | |
| CN113867753B (en) | A server firmware update method and system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |