[go: up one dir, main page]

CN113849230B - Server startup method, device, electronic device and readable storage medium - Google Patents

Server startup method, device, electronic device and readable storage medium Download PDF

Info

Publication number
CN113849230B
CN113849230B CN202111006595.8A CN202111006595A CN113849230B CN 113849230 B CN113849230 B CN 113849230B CN 202111006595 A CN202111006595 A CN 202111006595A CN 113849230 B CN113849230 B CN 113849230B
Authority
CN
China
Prior art keywords
raid card
information
dual
dual raid
server
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.)
Active
Application number
CN202111006595.8A
Other languages
Chinese (zh)
Other versions
CN113849230A (en
Inventor
张国奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
IEIT Systems Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN202111006595.8A priority Critical patent/CN113849230B/en
Publication of CN113849230A publication Critical patent/CN113849230A/en
Application granted granted Critical
Publication of CN113849230B publication Critical patent/CN113849230B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4403Processor initialisation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

本申请公开了一种服务器启动方法、装置、电子设备及可读存储介质。其中,方法包括预先根据ARM架构服务器的双RAID卡和各硬盘的底层驱动文件生成硬件标准信息,并将硬件标准信息加载至BIOS中;在BIOS中构建维持双RAID卡正常运行的应急通道信息。BIOS启动过程中,若通过双RAID卡的启动信息判定双RAID卡加载异常,则调用硬件标准信息维持双RAID卡正常进行硬件设备初始化直至成功进入操作系统。在进入操作系统之后,若通过读取双RAID卡的运行状态信息判定双RAID卡运行异常,则将正常运行状态信息写入至双RAID的配置空间,同时提供应急通道信息,以通过应急通道信息实现双RAID和操作系统的数据交互,从而可保证服务器正常开机启动,有效提升了ARM架构服务器的稳定性。

The present application discloses a server startup method, device, electronic device and readable storage medium. The method includes generating hardware standard information in advance according to the bottom-layer driver files of the dual RAID card and each hard disk of the ARM architecture server, and loading the hardware standard information into the BIOS; constructing emergency channel information in the BIOS to maintain the normal operation of the dual RAID card. During the BIOS startup process, if the dual RAID card loading is determined to be abnormal through the startup information of the dual RAID card, the hardware standard information is called to maintain the dual RAID card to perform normal hardware device initialization until the operating system is successfully entered. After entering the operating system, if the dual RAID card operation is determined to be abnormal by reading the operating status information of the dual RAID card, the normal operating status information is written to the configuration space of the dual RAID, and the emergency channel information is provided at the same time, so as to realize the data interaction between the dual RAID and the operating system through the emergency channel information, thereby ensuring the normal startup of the server, and effectively improving the stability of the ARM architecture server.

Description

Server starting method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for starting a server, an electronic device, and a readable storage medium.
Background
In recent years, with the accelerated development of the domestic process, a domestic ARM architecture (ADVANCED RISC (Reduced Instruction Set Computing, reduced instruction set computer) server has also been rapidly developed, and the improvement of the performance of the domestic server is a particularly important ring while the domestic server is developed. The current mainstream server market is still dominated by the X86 architecture series of servers, and domestic ARM servers may need to catch up with and even exceed the performance of the current mainstream server market in terms of performance. In terms of the performance of a server matched with a double RAID (Redundant Arrays of INDEPENDENT DISKS, disk array) card, the situation that the system cannot be started up is usually avoided under the condition that the double RAID card is externally connected with a fully loaded hard disk or the double RAID card is matched with different forms, but under the same configuration condition as the X86 server, the domestic ARM server is very easy to be started up and cannot be started up due to insufficient stability.
In view of this, how to improve the stability of the domestic ARM architecture server is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application provides a method and a device for starting a server, electronic equipment and a readable storage medium, which solve the problem that an ARM architecture server cannot perform system when being started under the condition that double RAID is provided with different forms of hard disks or is externally connected with a full-load hard disk, can ensure the normal starting of the server, and effectively improve the stability of the ARM architecture server.
In order to solve the technical problems, the embodiment of the invention provides the following technical scheme:
in one aspect, an embodiment of the present invention provides a method for starting a server, including:
Generating hardware standard information in advance according to a double RAID card of an ARM architecture server and bottom drive files of all hard disks, and loading the hardware standard information into a BIOS; constructing emergency channel information for maintaining normal operation of the dual RAID card in the BIOS;
In the BIOS starting process, if the dual RAID card is judged to be abnormally loaded according to the starting information of the dual RAID card, the hardware standard information is called to maintain the dual RAID card to normally initialize hardware equipment until the dual RAID card successfully enters an operating system;
After the operation system is accessed, if the operation abnormality of the dual RAID card is judged by reading the operation state information of the dual RAID card, writing the normal operation state information into the configuration space of the dual RAID card, and simultaneously providing the emergency channel information so as to realize the data interaction between the dual RAID card and the operation system through the emergency channel information.
Optionally, the calling the hardware standard information maintains the dual RAID card to perform hardware device initialization normally until the operating system is successfully accessed, including:
acquiring starting information of a currently used hard disk;
And calling the hardware standard information to finish the initialization process of the hardware equipment in the BIOS based on the starting information of the currently used hard disk.
Optionally, the determining, by the startup information of the dual RAID card, that the dual RAID card is abnormally loaded includes:
acquiring equipment ID information of the dual RAID card;
According to the equipment ID information and the starting sequence of each disk of the dual RAID card, polling the starting state of the dual RAID card;
and if the starting state of the dual RAID card is abnormal, judging that the dual RAID card is abnormal in loading.
Optionally, the determining that the dual RAID card is abnormal by reading the operation state information of the dual RAID card includes:
reading a state value of a register of a configuration space of the dual RAID card;
If the state value is the abnormal operation identification value, judging that the dual RAID card operates abnormally; and if the state value is the normal operation identification value, judging that the dual RAID card operates normally.
Optionally, the emergency channel information provides a dedicated channel for the operating system to read the dual RAID card information, and further includes:
a generic channel is pre-created for providing BIOS with operation of the dual RAID card.
Optionally, after the operating system is entered, the method further includes:
and polling and reading the running state information of the double RAID cards until the server receives a shutdown instruction.
Another aspect of the embodiment of the present invention provides a server starting apparatus, including:
the pre-deployment module is used for generating hardware standard information in advance according to the double RAID cards of the ARM architecture server and the bottom layer driving files of all the hard disks, and loading the hardware standard information into the BIOS; constructing emergency channel information for maintaining normal operation of the dual RAID card in the BIOS;
the loading exception handling module is used for calling the hardware standard information to maintain the dual RAID card to normally initialize hardware equipment until the dual RAID card successfully enters an operating system if the dual RAID card is judged to be abnormally loaded according to the starting information of the dual RAID card in the BIOS starting process;
And the operation abnormality processing module is used for writing the normal operation state information into the configuration space of the dual RAID card and simultaneously providing the emergency channel information so as to realize the data interaction between the dual RAID card and the operating system through the emergency channel information if the operation abnormality of the dual RAID card is judged by reading the operation state information of the dual RAID card after the operating system is entered.
Optionally, the load exception handling module is further configured to: acquiring starting information of a currently used hard disk; and calling the hardware standard information to finish the initialization process of the hardware equipment in the BIOS based on the starting information of the currently used hard disk.
The embodiment of the invention also provides electronic equipment, which comprises a processor, wherein the processor is used for realizing the steps of the server starting method when executing the computer program stored in the memory.
Finally, an embodiment of the present invention provides a readable storage medium, where a computer program is stored, where the computer program, when executed by a processor, implements the steps of the server start-up method according to any one of the preceding claims.
The technical scheme provided by the application has the advantages that the identification function of corresponding error information in the BIOS starting process and the dual RAID card using process is added, if the BIOS scans the corresponding error information in the starting process, namely the dual RAID card loading abnormality is detected, the dual RAID card can be adapted to the latest firmware version according to hardware standard information which is pre-loaded in the BIOS and is generated by driving the relatively stable information points in the firmware of the dual RAID card and the hard disk, and the probability of successful loading of the dual RAID card is effectively improved. If the operation of the dual RAID card is found abnormal in the use process, the normal operation state information is written into the configuration space of the dual RAID card, meanwhile, the channel information for maintaining the normal operation of the dual RAID card and the hard disk is provided, the normal operation of the external hardware such as the dual RAID card and the hard disk is maintained by providing the necessary information for maintaining the starting and the operation of the external hardware, and meanwhile, the normal starting of the server is not influenced by the loading abnormality, so that the defect that the ARM architecture server cannot perform the system when the dual RAID card is provided with different types of hard disks or is externally connected with full-loaded hard disks is solved, the normal starting of the server can be ensured, and the stability of the ARM architecture server is effectively improved.
In addition, the embodiment of the invention also provides a corresponding implementation device, electronic equipment and a readable storage medium for the server starting method, so that the method is more practical, and the device, the electronic equipment and the readable storage medium have corresponding advantages.
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 disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the related art, the drawings that are required to be used in the embodiments or the description of the related art will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort to those of ordinary skill in the art.
Fig. 1 is a schematic flow chart of a method for starting a server according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for starting up a server according to an embodiment of the present invention;
FIG. 3 is a block diagram of a server start device according to an embodiment of the present invention;
fig. 4 is a block diagram of an embodiment of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to better understand the aspects of the present invention, the present invention will be described in further detail with reference to the accompanying drawings and detailed description. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms first, second, third, fourth and the like in the description and in the claims and in the above drawings are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may include other steps or elements not expressly listed.
Having described the technical solutions of embodiments of the present application, various non-limiting embodiments of the present application are described in detail below.
Referring first to fig. 1, fig. 1 is a flowchart of a server startup method according to an embodiment of the present invention, where the embodiment of the present invention may include the following:
s101: generating hardware standard information in advance according to a double RAID card of an ARM architecture server and bottom drive files of all hard disks, and loading the hardware standard information into a BIOS; and constructing emergency channel information for maintaining normal operation of the dual RAID card in the BIOS.
The embodiment is suitable for an ARM architecture server with double RAID cards, such as an FT2000+ server, and solves the problem that the server cannot be started normally when the double RAID cards are provided with different types of hard disks or are externally connected with full-load hard disks, wherein the double RAID cards are matched with the full-load hard disks, namely, the server is matched with two or more RAID card devices and each corresponding interface is connected with more than 4 hard disks for configuration, that is, the double RAID cards of the application are generally referred to, not to be referred to as double RAID cards consisting of only two RAID cards, but to be referred to as a situation consisting of more than or equal to two RAID cards, such as double RAID cards can be composed of RAID1, RAID2 and RAID3, and each hard disk is referred to as a hard disk connected with each RAID card in the double RAID cards.
It will be appreciated that for the dual RAID card and hard disk hardware, the firmware versions of these hardware will be updated frequently, i.e., their firmware versions are not a fixed version, which requires the server's firmware BIOS and operating system OS to be adapted to the firmware versions of the different hardware. Furthermore, hardware of different firmware versions may be assembled on the same server. Based on this, this step may utilize some relatively stable information such as the drives in the firmware of the dual RAID card and hard disk as the base information to assist the BIOS and operating system OS in successfully booting the server. The bottom layer driving file may be, for example, mechanical hard disk HDD driving information, a driving library file, a password of a cracked hard disk, such as a password of an HDD, that is, relatively stable information in the dual RAID card and each hard disk, which does not change with firmware version upgrade, and other stable data may be added to generate hardware standard information based on actual needs by those skilled in the art, where the hardware standard information may be, for example, in the form of a packed BIOS efi (Extensible FIRMWARE INTERFACE) file. The emergency channel information is necessary information for providing channel information for maintaining normal operation of the dual RAID card and the hard disk and for maintaining the start-up and operation of these external hardware, and may be constructed, for example, by an ACPI table (Advanced Configuration and Power MANAGEMENT INTERFACE ). The channel is a method for providing the BIOS or OS with data information for reading the dual RAID card or operating the dual RAID card. The step can provide more guide systems for the firmware BIOS through the hardware standard information and the emergency channel information which are preloaded into the BIOS, and can maintain the normal starting operation of the CPU, thereby ensuring that the ARM architecture server can be started normally and enter the operating system.
S102: in the BIOS starting process, if the loading of the dual RAID card is abnormal according to the starting information of the dual RAID card, the hardware standard information is called to maintain the dual RAID card to normally initialize hardware equipment until the operating system is successfully accessed.
In the process of starting the BIOS when the server is powered on, the initialization task of hardware is executed, and the initialization identification of the hard disk mounted on the dual RAID card can cause the starting abnormality of the dual RAID card, namely the loading abnormality of the dual RAID card. Therefore, the firmware BIOS can be added with the identification function of the corresponding error information in the starting process, and as an optional implementation manner, the judging mode of the loading abnormal condition of the dual RAID card can be as follows: acquiring equipment ID information of the dual RAID card; according to the equipment ID information and the starting sequence of each disk of the dual RAID card, the starting state of the dual RAID card is polled; if the starting state of the dual RAID card is abnormal, the loading abnormality of the dual RAID card is judged. Specifically, the BIOS may poll and read the starting condition of the dual RAID card according to the ID information of the dual RAID card device, determine whether the dual RAID card is abnormally loaded according to the starting condition of the dual RAID card, if the BIOS scans the corresponding error information, the dual RAID card and the corresponding driving information of each hard disk may be updated, and the BIOS may maintain the process of initializing the hard disk according to the efi files of the compiled driving information through the bottom driving information introduced in S101, so as to prevent the loading abnormality in the starting process of the hard disk mounted by the dual RAID card.
S103: after the operation system is accessed, if the operation abnormality of the dual RAID card is judged by reading the operation state information of the dual RAID card, the normal operation state information is written into the configuration space of the dual RAID card, and the emergency channel information is provided at the same time, so that the data interaction between the dual RAID card and the operation system is realized through the emergency channel information.
Similarly, the step can increase the identification function of the corresponding error information in the use process in the firmware BIOS, specifically, the method of reading PCI (PERIPHERAL COMPONENT INTERCONNECT, peripheral component interconnect standard) configuration space can be used in the use process, the value of the register of the dual RAID card is read to judge the use state or the working state of the dual RAID card, if the use state of the dual RAID card is abnormal, the BIOS needs to write the corresponding working state value into the configuration space of the dual RAID card to maintain the operation of the dual RAID card, and meanwhile, the BIOS also provides emergency channel information such as ACPI table of the dual RAID card device to maintain the interaction of the operating system and the dual RAID card firmware information, enhance the operation state of the dual RAID card, maintain the normal operation of the external hardware such as the dual RAID card and the hard disk, and the like, and can not influence the normal starting of the server because of the loading abnormality of the devices.
In the technical scheme provided by the embodiment of the invention, the identification function of the corresponding error information in the BIOS starting process and the dual RAID using process is added, if the BIOS scans the corresponding error information in the starting process, namely the dual RAID loading abnormality is detected, the dual RAID card can be adapted to the latest firmware version according to the hardware standard information which is preloaded in the BIOS and generated by driving the relatively stable information points in the firmware of the dual RAID and the hard disk, and the probability of successfully loading the dual RAID card is effectively improved. If the operation of the dual RAID card is found abnormal in the use process, the normal operation state information is written into the configuration space of the dual RAID card, meanwhile, the channel information for maintaining the normal operation of the dual RAID card and the hard disk is provided, the normal operation of the externally inserted hardware such as the RAID and the hard disk is maintained by providing the necessary information for maintaining the starting and the operation of the externally connected hardware, and meanwhile, the normal starting of the server is not influenced by the loading abnormality, so that the defect that the ARM architecture server cannot perform the system when the dual RAID carries different hard disks or is externally connected with full-load hard disks is solved, the normal starting of the server can be ensured, and the stability of the ARM architecture server is effectively improved.
In order to further ensure the stable operation of the ARM architecture server, a hard disk anti-self-locking mechanism can be added in the process of executing hardware initialization by the BIOS and the process of using the double RAID cards, and starting information of a currently used hard disk is obtained by taking the example of adding the anti-self-locking mechanism in the initialization process; and calling hardware standard information to finish the initialization process of the hardware equipment in the BIOS based on the starting information of the hard disk currently used.
In the embodiment, ID information of double RAID card equipment information is found in the starting process, and the BIOS polls and reads the starting state of the equipment according to the ID of the double RAID card equipment information and the starting sequence of each RAID card in the double RAID cards such as RAID1, RAID2 and RAID 3; meanwhile, the BIOS introduces the latest hard disk hdd password and other drivers to avoid the self-locking of the hard disk. When the dual RAID card is used (multiple cards are used), BIOS reads and configures the device register of the dual RAID card through the hardware link channel in the use process, so that the performance requirement in the use process is met, and the occurrence of abnormal phenomena such as disk loss and card locking can not occur, and the performance of the server is influenced.
The above embodiment does not limit how to determine the operation abnormality of the dual RAID card, and the present application further provides an optional determination method of the operation abnormality of the dual RAID card based on the above embodiment, which may include:
reading the state value of a register of the configuration space of the dual RAID card; if the state value is the abnormal value of the identification operation, judging that the dual RAID card operates abnormally; and if the state value is the normal value of the identification operation, judging that the dual RAID card operates normally.
For example, the flag bit in the register of the dual RAID card, which identifies the operation status of the dual RAID card, records two values of 00 and 01, where 00 indicates that the dual RAID card is operating abnormally, and 01 indicates that the dual RAID card is operating normally, and if the value of 00 is read, it is determined that the dual RAID card is operating abnormally.
In order to further promote the stable operation of the ARM architecture server, the application can simultaneously provide the dual-channel enhanced dual-RAID card and the interaction performance of the BIOS and the OS, namely, besides the special channel for providing the read dual-RAID card for the OS, namely, the emergency channel information, which is constructed by the embodiment, a general channel for providing the operation dual-RAID card for the BIOS can be pre-created.
In order to ensure that the dual RAID card can be used stably all the time, the running stability of the ARM architecture server is improved, and after the steps enter an operating system, the running state information of the dual RAID card can be polled and read until the server receives a shutdown instruction.
In order to make the technical solution of the present application more clear for those skilled in the art, an exemplary example is further provided by applying for further combining fig. 2, and the ARM architecture FT2000+ server increases an automatic identification function in the process of initializing the dual RAID card and the hard disk information of the external hardware device when starting, obtains the initialized starting information of the mobile hardware by a polling mechanism to determine whether the initialization is successful, and reads the value of the register of the dual RAID card through the PCI configuration space to determine the use state of the dual RAID card in the use process, and if an abnormality occurs, the BIOS provides ACPI table channel information of the dual RAID card device to maintain normal use of the dual RAID card, which may include the following contents: a1: the dual RAID card is matched with the FT2000+ ARM framework server of the full-load hard disk to be powered on.
A2: during BIOS startup, the hardware device includes dual RAID cards to complete the initialization process.
A3: and in the process of initializing the hardware equipment in the BIOS, whether the loading start of the double RAID card equipment is abnormal or not is read through the ID information polling of the double RAID card.
A4: if the double RAID card has abnormal loading, the BIOS is required to call the preloaded bottom driving information, so that the normal operation of the system in the starting process is ensured, and the normal starting of the server is ensured to enter the OS system.
A5: after the system is started, the BIOS reads the state of the register of the configuration space of the dual RAID card, and judges whether the equipment operation of the dual RAID card is abnormal.
A6: if abnormal BIOS is generated, the running state of the double RAID card is maintained for the write value of the corresponding configuration space, and meanwhile, the running state of the double RAID card is enhanced and maintained by providing interaction between the emergency channel information maintaining system of the double RAID card and the firmware information of the RAID card.
A6: the BIOS continues to read the state of the registers of the dual RAID card configuration space and jumps to execute A5.
The embodiment can solve the problem that the FT2000+ARM platform dual-raid card equipment or multi-raid card equipment is abnormally started when the fully loaded hard disk is mounted, meanwhile, the phenomena of disk loss and card locking are avoided in the using process, and the stable improvement of the performance of the domestic FT server when the domestic FT server is matched with the dual-raid card and the fully loaded hard disk is ensured.
It should be noted that, in the present application, the steps are not strictly executed sequentially, so long as they conform to the logic sequence, the steps may be executed simultaneously, or may be executed according to a certain preset sequence, and fig. 1 is only a schematic manner, and is not meant to represent only such an execution sequence.
The embodiment of the invention also provides a corresponding device for the server starting method, so that the method has higher practicability. Wherein the device may be described separately from the functional module and the hardware. The following describes a server starting device provided by an embodiment of the present invention, and the server starting device described below and the server starting method described above may be referred to correspondingly.
Based on the angles of the functional modules, referring to fig. 3, fig. 3 is a block diagram of a server starting device provided by an embodiment of the present invention under a specific implementation manner, where the device may include:
The pre-deployment module 301 is configured to generate hardware standard information in advance according to a dual RAID card of the ARM architecture server and a bottom layer driving file of each hard disk, and load the hardware standard information into the BIOS; and constructing emergency channel information for maintaining normal operation of the dual RAID card in the BIOS.
And the loading exception handling module 302 is configured to, in the process of starting the BIOS, if it is determined that the dual RAID card is abnormally loaded according to the starting information of the dual RAID card, call the hardware standard information to maintain the dual RAID card to perform hardware device initialization normally until the operating system is successfully entered.
And the operation exception handling module 303 is configured to, after entering the operating system, if it is determined that the operation of the dual RAID card is abnormal by reading the operation status information of the dual RAID card, write the normal operation status information into the configuration space of the dual RAID card, and provide emergency channel information at the same time, so as to implement data interaction between the dual RAID card and the operating system through the emergency channel information.
Optionally, in some implementations of this embodiment, the loading exception handling module 302 may be further configured to: acquiring starting information of a currently used hard disk; and calling hardware standard information to finish the initialization process of the hardware equipment in the BIOS based on the starting information of the hard disk currently used.
As an optional implementation manner of this embodiment, the loading exception handling module 302 may be further configured to: acquiring equipment ID information of the dual RAID card; according to the equipment ID information and the starting sequence of each disk of the dual RAID card, the starting state of the dual RAID card is polled; if the starting state of the dual RAID card is abnormal, the loading abnormality of the dual RAID card is judged.
Optionally, in other implementations of this embodiment, the foregoing abnormal operation processing module 303 may be further configured to: reading the state value of a register of the configuration space of the dual RAID card; if the state value is the abnormal value of the identification operation, judging that the dual RAID card operates abnormally; and if the state value is the normal value of the identification operation, judging that the dual RAID card operates normally.
As another alternative implementation manner of this embodiment, the foregoing abnormal operation processing module 303 may be further configured to: and polling and reading the running state information of the double RAID cards until the server receives a shutdown instruction.
Optionally, in some other implementations of this embodiment, the pre-deployment module 301 may be further configured to: the emergency channel information provides a special channel for an operating system to read the information of the double RAID cards, and a general channel for providing the operation of the double RAID cards for the BIOS is created in advance.
The functions of each functional module of the server starting device according to the embodiment of the present invention may be specifically implemented according to the method in the embodiment of the method, and the specific implementation process may refer to the related description of the embodiment of the method, which is not repeated herein.
From the above, the embodiment of the invention can ensure the normal start-up of the ARM architecture server, thereby effectively improving the stability of the ARM architecture server.
The server starting device mentioned above is described from the viewpoint of functional modules, and further, the application also provides an electronic device, which is described from the viewpoint of hardware. Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 4, the electronic device comprises a memory 40 for storing a computer program; a processor 41 for implementing the steps of the server start-up method as mentioned in any of the embodiments above when executing a computer program.
Processor 41 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and processor 41 may also be a controller, microcontroller, microprocessor, or other data processing chip, among others. The processor 41 may be implemented in at least one hardware form of DSP (DIGITAL SIGNAL Processing), FPGA (Field-Programmable gate array), PLA (Programmable Logic Array ). The processor 41 may also include a main processor and a coprocessor, the main processor being a processor for processing data in an awake state, also called a CPU (Central Processing Unit ); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 41 may be integrated with a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 41 may also include an AI (ARTIFICIAL INTELLIGENCE ) processor for processing computing operations related to machine learning.
Memory 40 may include one or more computer-readable storage media, which may be non-transitory. Memory 40 may also include high-speed random access memory as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. Memory 40 may be an internal storage unit of the electronic device, such as a hard disk of a server, in some embodiments. The memory 40 may also be an external storage device of the electronic device, such as a plug-in hard disk provided on a server, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD), etc. in other embodiments. Further, the memory 40 may also include both internal storage units and external storage devices of the electronic device. The memory 40 may be used to store not only application software installed in the electronic device, but also various types of data, such as: code of a program that executes the vulnerability processing method, or the like, may also be used to temporarily store data that has been output or is to be output. In this embodiment, the memory 40 is at least used for storing a computer program 401, where the computer program, when loaded and executed by the processor 41, is capable of implementing the relevant steps of the server startup method disclosed in any one of the foregoing embodiments. In addition, the resources stored in the memory 40 may further include an operating system 402, data 403, and the like, where the storage manner may be transient storage or permanent storage. Operating system 402 may include Windows, unix, linux, among other things. The data 403 may include, but is not limited to, data corresponding to a server start-up result, and the like.
In some embodiments, the electronic device may further include a display 42, an input/output interface 43, a communication interface 44, or referred to as a network interface, a power supply 45, and a communication bus 46. Among other things, the display 42, input-output interface 43 such as a Keyboard (Keyboard) belong to a user interface, which may alternatively include a standard wired interface, a wireless interface, etc. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device and for displaying a visual user interface. The communication interface 44 may optionally include a wired interface and/or a wireless interface, such as a WI-FI interface, a bluetooth interface, etc., typically used to establish a communication connection between the electronic device and other electronic devices. The communication bus 46 may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in fig. 4, but not only one bus or one type of bus.
Those skilled in the art will appreciate that the configuration shown in fig. 4 is not limiting of the electronic device and may include more or fewer components than shown, for example, may also include sensors 47 to perform various functions.
The functions of each functional module of the electronic device according to the embodiment of the present invention may be specifically implemented according to the method in the embodiment of the method, and the specific implementation process may refer to the related description of the embodiment of the method, which is not repeated herein.
From the above, the embodiment of the invention can ensure the normal start-up of the ARM architecture server, thereby effectively improving the stability of the ARM architecture server.
It will be appreciated that if the server start-up method in the above embodiments is implemented in the form of a software functional unit and sold or used as a stand-alone product, it may be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in part or in whole or in part in the form of a software product stored in a storage medium for performing all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrically erasable programmable ROM, registers, a hard disk, a multimedia card, a card-type Memory (e.g., SD or DX Memory, etc.), a magnetic Memory, a removable disk, a CD-ROM, a magnetic disk, or an optical disk, etc., that can store program code.
Based on this, an embodiment of the present invention further provides a readable storage medium storing a computer program, which when executed by a processor, performs the steps of the server start method according to any one of the embodiments above.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the hardware including the device and the electronic equipment disclosed in the embodiments, the description is relatively simple because the hardware includes the device and the electronic equipment corresponding to the method disclosed in the embodiments, and relevant places refer to the description of the method.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The method, the device, the electronic equipment and the readable storage medium for starting the server provided by the application are described in detail. The principles and embodiments of the present application have been described herein with reference to specific examples, the description of which is intended only to facilitate an understanding of the method of the present application and its core ideas. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the application can be made without departing from the principles of the application and these modifications and adaptations are intended to be within the scope of the application as defined in the following claims.

Claims (10)

1. A server startup method, comprising:
Generating hardware standard information in advance according to a double RAID card of an ARM architecture server and bottom drive files of all hard disks, and loading the hardware standard information into a BIOS; constructing emergency channel information for maintaining normal operation of the dual RAID card in the BIOS; the bottom driving file is a dual RAID card and relatively stable information which cannot be changed along with firmware version upgrading in each hard disk; the emergency channel information is used for providing channel information for maintaining normal operation of the dual RAID card and the hard disk and necessary information for maintaining starting and operation of external hardware, and the channel is used for providing data information of reading the dual RAID card for BIOS or OS or a method for operating the dual RAID card;
In the BIOS starting process, if the dual RAID card is judged to be abnormally loaded according to the starting information of the dual RAID card, the hardware standard information is called to maintain the dual RAID card to normally initialize hardware equipment until the dual RAID card successfully enters an operating system;
After the operation system is accessed, if the operation abnormality of the dual RAID card is judged by reading the operation state information of the dual RAID card, writing the normal operation state information into the configuration space of the dual RAID card, and simultaneously providing the emergency channel information so as to realize the data interaction between the dual RAID card and the operation system through the emergency channel information.
2. The method of claim 1, wherein the invoking the hardware standard information maintains the dual RAID card to perform hardware device initialization normally until an operating system is successfully entered, comprising:
acquiring starting information of a currently used hard disk;
And calling the hardware standard information to finish the initialization process of the hardware equipment in the BIOS based on the starting information of the currently used hard disk.
3. The server boot method according to claim 2, wherein the determining of the dual RAID card loading abnormality by the boot information of the dual RAID card comprises:
acquiring equipment ID information of the dual RAID card;
According to the equipment ID information and the starting sequence of each disk of the dual RAID card, polling the starting state of the dual RAID card;
and if the starting state of the dual RAID card is abnormal, judging that the dual RAID card is abnormal in loading.
4. The server startup method according to claim 3, wherein the determination of the dual RAID card operation abnormality by reading the operation state information of the dual RAID card comprises:
reading a state value of a register of a configuration space of the dual RAID card;
If the state value is the abnormal operation identification value, judging that the dual RAID card operates abnormally; and if the state value is the normal operation identification value, judging that the dual RAID card operates normally.
5. The server boot method of any one of claims 1 to 4, wherein the emergency channel information provides a dedicated channel for the operating system to read the dual RAID card information, further comprising:
a generic channel is pre-created for providing BIOS with operation of the dual RAID card.
6. The method for starting up a server according to claim 4, further comprising, after said entering said operating system:
and polling and reading the running state information of the double RAID cards until the server receives a shutdown instruction.
7. A server starting apparatus, comprising:
the pre-deployment module is used for generating hardware standard information in advance according to the double RAID cards of the ARM architecture server and the bottom layer driving files of all the hard disks, and loading the hardware standard information into the BIOS; constructing emergency channel information for maintaining normal operation of the dual RAID card in the BIOS; the bottom driving file is a dual RAID card and relatively stable information which cannot be changed along with firmware version upgrading in each hard disk; the emergency channel information is used for providing channel information for maintaining normal operation of the dual RAID card and the hard disk and necessary information for maintaining starting and operation of external hardware, and the channel is used for providing data information of reading the dual RAID card for BIOS or OS or a method for operating the dual RAID card; the loading exception handling module is used for calling the hardware standard information to maintain the dual RAID card to normally initialize hardware equipment until the dual RAID card successfully enters an operating system if the dual RAID card is judged to be abnormally loaded according to the starting information of the dual RAID card in the BIOS starting process;
And the operation abnormality processing module is used for writing the normal operation state information into the configuration space of the dual RAID card and simultaneously providing the emergency channel information so as to realize the data interaction between the dual RAID card and the operating system through the emergency channel information if the operation abnormality of the dual RAID card is judged by reading the operation state information of the dual RAID card after the operating system is entered.
8. The server boot apparatus of claim 7, wherein the load exception handling module is further to: acquiring starting information of a currently used hard disk; and calling the hardware standard information to finish the initialization process of the hardware equipment in the BIOS based on the starting information of the currently used hard disk.
9. An electronic device comprising a processor and a memory, the processor being configured to implement the steps of the server boot method according to any one of claims 1 to 6 when executing a computer program stored in the memory.
10. A readable storage medium, characterized in that it has stored thereon a computer program which, when executed by a processor, implements the steps of the server start-up method according to any of claims 1 to 6.
CN202111006595.8A 2021-08-30 2021-08-30 Server startup method, device, electronic device and readable storage medium Active CN113849230B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111006595.8A CN113849230B (en) 2021-08-30 2021-08-30 Server startup method, device, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111006595.8A CN113849230B (en) 2021-08-30 2021-08-30 Server startup method, device, electronic device and readable storage medium

Publications (2)

Publication Number Publication Date
CN113849230A CN113849230A (en) 2021-12-28
CN113849230B true CN113849230B (en) 2024-11-22

Family

ID=78976529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111006595.8A Active CN113849230B (en) 2021-08-30 2021-08-30 Server startup method, device, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN113849230B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116204502B (en) * 2023-05-04 2023-07-04 湖南博匠信息科技有限公司 NAS storage service method and system with high availability
CN117389781B (en) * 2023-10-18 2024-06-04 上海合芯数字科技有限公司 Abnormal detection and recovery method, system, server and medium for server equipment
CN120066595B (en) * 2025-04-25 2025-07-25 苏州元脑智能科技有限公司 Operating system starting device, electronic device and starting method of operating system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622249A (en) * 2012-03-05 2012-08-01 山东华芯半导体有限公司 Safety starting method preventing central processing unit (CPU) from self locking
CN105607911A (en) * 2015-12-25 2016-05-25 浪潮电子信息产业股份有限公司 Method for automatically adjusting hard disk starting equipment according to different configuration information

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7181609B2 (en) * 2003-08-15 2007-02-20 Intel Corporation System and method for accelerated device initialization
US7958343B2 (en) * 2006-09-08 2011-06-07 Hewlett-Packard Development Company, L.P. BIOS bootable RAID support
CN107766734A (en) * 2017-11-03 2018-03-06 浪潮(北京)电子信息产业有限公司 Clean boot RAID card method, apparatus, equipment and computer-readable recording medium
CN109446234B (en) * 2018-10-12 2021-10-19 Oppo广东移动通信有限公司 Data processing method, device and electronic device
CN110045991B (en) * 2019-03-08 2022-05-20 平安科技(深圳)有限公司 RAID configuration method and device of server, computer equipment and storage medium
CN110083491A (en) * 2019-05-08 2019-08-02 苏州浪潮智能科技有限公司 A kind of BIOS initialization method, apparatus, equipment and storage medium
CN112286709B (en) * 2020-10-29 2022-07-08 苏州浪潮智能科技有限公司 A kind of server hardware fault diagnosis method, diagnosis device and diagnosis equipment
CN112835516B (en) * 2021-01-14 2023-05-23 浪潮电子信息产业股份有限公司 RAID card monitoring management method, system and device
CN112948157B (en) * 2021-01-29 2022-12-23 苏州浪潮智能科技有限公司 Server fault location method, device, system and computer-readable storage medium
CN112860329B (en) * 2021-02-10 2023-05-26 山东英信计算机技术有限公司 Startup configuration method, system and medium
CN113239362A (en) * 2021-05-28 2021-08-10 浪潮电子信息产业股份有限公司 Data access method, device and computer readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622249A (en) * 2012-03-05 2012-08-01 山东华芯半导体有限公司 Safety starting method preventing central processing unit (CPU) from self locking
CN105607911A (en) * 2015-12-25 2016-05-25 浪潮电子信息产业股份有限公司 Method for automatically adjusting hard disk starting equipment according to different configuration information

Also Published As

Publication number Publication date
CN113849230A (en) 2021-12-28

Similar Documents

Publication Publication Date Title
CN113849230B (en) Server startup method, device, electronic device and readable storage medium
US9430250B2 (en) Bootability with multiple logical unit numbers
US8751783B2 (en) Booting computing devices with EFI aware operating systems
US10613773B2 (en) Backing up firmware during initialization of device
US9501289B2 (en) Method of a UEFI firmware and computer system thereof
US9680712B2 (en) Hardware management and control of computer components through physical layout diagrams
US8468334B1 (en) Efficient initial RAM disk creation
US8281119B1 (en) Separate normal firmware and developer firmware
US20150143098A1 (en) Method for updating firmware of an electronic device within a computer
US9811347B2 (en) Managing dependencies for human interface infrastructure (HII) devices
US20100049961A1 (en) Update method for basic input/output system and update system thereof
CN103514015A (en) Method and device for booting operation system from storage medium
US10491736B2 (en) Computer system and method thereof for bluetooth data sharing between UEFI firmware and OS
US9672047B1 (en) Systems and methods for accessing a bootable partition on a serial peripheral interface device
US11340882B2 (en) Systems and methods for enforcing update policies while applying updates from bootable image file
CN103106086B (en) Operating system disposal route and system
US9852029B2 (en) Managing a computing system crash
CN113849229A (en) Server starting method and device, electronic equipment and readable storage medium
US11221842B2 (en) Systems and methods for executing and verifying system firmware update before committing firmware update to motherboard
US8386761B2 (en) System for registering and initiating pre-boot environment for enabling partitions
CN110825421A (en) Firmware upgrading method and system and readable storage medium
US9442831B1 (en) Automated testing of program code for processing a simple boot flag data structure
US10838737B1 (en) Restoration of memory content to restore machine state
US11354109B1 (en) Firmware updates using updated firmware files in a dedicated firmware volume
CN114510751A (en) A kind of hardware anti-replacement device and method based on processor security core

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
GR01 Patent grant
GR01 Patent grant