CN113934463A - Starting method and device of server, computer equipment and storage medium - Google Patents

Starting method and device of server, computer equipment and storage medium Download PDF

Info

Publication number
CN113934463A
CN113934463A CN202111298591.1A CN202111298591A CN113934463A CN 113934463 A CN113934463 A CN 113934463A CN 202111298591 A CN202111298591 A CN 202111298591A CN 113934463 A CN113934463 A CN 113934463A
Authority
CN
China
Prior art keywords
started
item
starting
virtual
target
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
Application number
CN202111298591.1A
Other languages
Chinese (zh)
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.)
Zhongke Controllable Information Industry Co Ltd
Original Assignee
Zhongke Controllable 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 Zhongke Controllable Information Industry Co Ltd filed Critical Zhongke Controllable Information Industry Co Ltd
Priority to CN202111298591.1A priority Critical patent/CN113934463A/en
Publication of CN113934463A publication Critical patent/CN113934463A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/4416Network booting; Remote initial program loading [RIPL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/451Execution arrangements for user interfaces

Landscapes

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

Abstract

The application relates to a method and a device for starting a server, a computer device, a storage medium and a computer program product. The method comprises the following steps: in the process of the power-on self-test of the server, a virtual starting item is created for each device to be started contained in the server; binding a starting list to each virtual starting item; responding to a selection request aiming at a target virtual starting item, and determining target equipment to be started corresponding to the target virtual starting item; initializing the target equipment to be started through a starting sequence corresponding to the target equipment to be started, and creating a real starting item according to configuration information after the target equipment to be started is initialized; and starting the target equipment to be started based on the real starting item. By adopting the method, the starting speed of the server can be improved.

Description

Starting method and device of server, computer equipment and storage medium
Technical Field
The present application relates to the field of server technologies, and in particular, to a method and an apparatus for starting a server, a computer device, a storage medium, and a computer program product.
Background
The server includes a plurality of configuration devices (for example, 20 hard disks, 5 network cards, and the like), and in a process of starting the server, a bios (basic Input Output system) of the server initializes the bootable configuration devices before BOOT is started, creates a BOOT entry corresponding to each configuration device, and further, based on guidance of the BOOT entry, selects a PXE (remote BOOT Environment) Environment for booting any configuration device in the server to the corresponding hard disk or network card, and completes booting of the server.
However, in the conventional server startup method, when there are many configuration devices in the server, each server startup process needs to initialize and create a startup item for each configuration device, which consumes a lot of server startup time. Therefore, a method for quickly starting a server is needed.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a server startup method, apparatus, computer device, computer readable storage medium, and computer program product for solving the above technical problems.
In a first aspect, the present application provides a method for starting a server. The method comprises the following steps:
in the process of power-on self-test of a server, creating a virtual starting item for each device to be started contained in the server; binding a starting list to each virtual starting item;
responding to a selection request aiming at a target virtual starting item, and determining target equipment to be started corresponding to the target virtual starting item;
initializing the target equipment to be started through a starting sequence corresponding to the target equipment to be started, and creating a real starting item according to configuration information after the target equipment to be started is initialized;
and starting the target equipment to be started based on the real starting item.
By adopting the method, in the process of the power-on self-test of the server, the process of initializing all the equipment to be started is skipped, the virtual starting item is directly created, the selection request of the target virtual starting item is responded, the equipment to be started corresponding to the target virtual starting item is initialized only, the real starting item is created to realize the starting of the equipment to be started, the time and the resource consumption for initializing each equipment in the server are greatly reduced, and the starting speed of the server is improved.
In one embodiment, the creating a virtual boot entry for each to-be-booted device included in the server includes:
reading the number of hard disks corresponding to each port stored in a register of a hard disk controller of the server;
based on the number of the hard disks, creating a virtual starting item corresponding to each hard disk device;
and adding a name identifier for the virtual starting item corresponding to the hard disk device according to the hard disk controller where the hard disk device is located and the corresponding port information.
In this embodiment, the number of devices reading the hard disk devices in the register is obtained, and a virtual startup item is created for each hard disk device based on the number of devices, where the created virtual startup item carries a name identifier for uniquely identifying the hard disk device, so that a user selects a hard disk device to be started.
In one embodiment, the device to be started is a network card device, and each device to be started included in the server creates a virtual start item, including:
creating a virtual starting item aiming at each network card device;
and acquiring product information of each network card device, and adding a name identifier for the corresponding virtual starting item according to the product information of each network card device.
In this embodiment, each network card device in the server is acquired, a virtual startup item is created, and the created virtual startup item carries a name identifier for uniquely identifying the network card device, so that a user selects the network card device to be started.
In one embodiment, the method further comprises:
initializing an interface display module of a Basic Input Output System (BIOS) in a server;
and acquiring the virtual starting item of each device to be started, generating a display identifier of the virtual starting item of each device to be started in the interface display module, and outputting and displaying the display identifier.
In this embodiment, based on each created virtual startup item, a corresponding virtual startup item display identifier is drawn in a display interface of the server, and is used to output and display the startup item represented by each virtual startup item, so as to implement the trigger selection of the user.
In one embodiment, the selection request of the virtual startup item carries a name identifier of the virtual startup item; the step of determining a target to-be-started device corresponding to a target virtual starting item in response to a selection request for the target virtual starting item includes:
in response to a selection request aiming at a target virtual starting item, identifying the target virtual starting item corresponding to the name identification of the virtual starting item and the type of the target virtual starting item;
and inquiring the target equipment to be started corresponding to the target virtual starting item in the corresponding relation between the virtual starting item and the equipment to be started under the type.
In this embodiment, in response to a selection request of a target virtual start item, based on a display identifier and a corresponding relationship between the virtual start item and a device to be started, a target device to be started corresponding to the virtual start item triggered by a user is determined, so that targeted initialization is achieved based on the target device to be started, and the server startup speed is increased.
In one embodiment, the device to be started comprises a hard disk device and a network card device; the creating a real startup item according to the configuration information initialized by the target device to be started includes:
reading the configuration information after the initialization of the hard disk device, installing read-write hard disk service, and creating a real startup item based on the configuration information after the initialization and the read-write hard disk service;
identifying the operating system operating environment where the network card equipment is located, and determining a network card data loading mode according to the operating system operating environment;
and loading the configuration information after the network card equipment is initialized based on the network card data loading mode, and creating a real starting item corresponding to the network card equipment.
In this embodiment, different device initialization modes are provided for different device types of the determined target device to be started, so that all devices capable of being started do not need to be initialized, targeted initialization operation is achieved only based on the target device to be started, and the starting speed of the server is increased.
In a second aspect, the present application further provides a starting apparatus of a server. The device comprises:
the system comprises a first establishing module, a second establishing module and a third establishing module, wherein the first establishing module is used for establishing a virtual starting item for each device to be started contained in a server in the power-on self-test process of the server; binding a starting list to each virtual starting item;
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for responding to a selection request aiming at a target virtual starting item and determining a target device to be started corresponding to the target virtual starting item;
the second creating module is used for initializing the target equipment to be started through a starting sequence corresponding to the target equipment to be started and creating a real starting item according to the configuration information after the target equipment to be started is initialized;
and the starting module is used for starting the target equipment to be started based on the real starting item.
According to the starting device of the server, in the process of power-on self-detection of the server, the process of initializing all the equipment to be started is skipped, the virtual starting item is directly created, the selection request of the target virtual starting item is responded, the equipment to be started only aiming at the target equipment to be started corresponding to the target virtual starting item is initialized, then the real starting item is created to start the target equipment to be started, the time and the resource consumption for initializing each equipment in the server are greatly reduced, and the starting speed of the server is improved.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the following steps when executing the computer program:
in the process of power-on self-test of a server, creating a virtual starting item for each device to be started contained in the server; binding a starting list to each virtual starting item;
responding to a selection request aiming at a target virtual starting item, and determining target equipment to be started corresponding to the target virtual starting item;
initializing the target equipment to be started through a starting sequence corresponding to the target equipment to be started, and creating a real starting item according to configuration information after the target equipment to be started is initialized;
and starting the target equipment to be started based on the real starting item.
In the power-on self-test process of the computer equipment, the process of initializing all equipment to be started is skipped, a virtual starting item is directly created, a selection request of a target virtual starting item is responded, the equipment to be started is initialized only aiming at the target equipment to be started corresponding to the target virtual starting item, then a real starting item is created to start the target equipment to be started, the time and resource consumption for initializing each equipment in the server are greatly reduced, and the starting speed of the server is improved.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
in the process of power-on self-test of a server, creating a virtual starting item for each device to be started contained in the server; binding a starting list to each virtual starting item;
responding to a selection request aiming at a target virtual starting item, and determining target equipment to be started corresponding to the target virtual starting item;
initializing the target equipment to be started through a starting sequence corresponding to the target equipment to be started, and creating a real starting item according to configuration information after the target equipment to be started is initialized;
and starting the target equipment to be started based on the real starting item.
By adopting the computer readable storage medium, in the process of power-on self-test of the server, the process of initializing all the devices to be started is skipped, the virtual starting item is directly created, the selection request of the target virtual starting item is responded, the initialization is only carried out on the target devices to be started corresponding to the target virtual starting item, the real starting item is created to realize the starting of the target devices to be started, the time and resource consumption for initializing each device in the server are greatly reduced, and the starting speed of the server is improved.
In a fifth aspect, the present application further provides a computer program product. The computer program product comprising a computer program which when executed by a processor performs the steps of:
in the process of power-on self-test of a server, creating a virtual starting item for each device to be started contained in the server; binding a starting list to each virtual starting item;
responding to a selection request aiming at a target virtual starting item, and determining target equipment to be started corresponding to the target virtual starting item;
initializing the target equipment to be started through a starting sequence corresponding to the target equipment to be started, and creating a real starting item according to configuration information after the target equipment to be started is initialized;
and starting the target equipment to be started based on the real starting item.
In the computer program product of the server, in the process of power-on self-test of the server, a virtual starting item is created for each device to be started contained in the server; binding a starting list to each virtual starting item; responding to a selection request aiming at a target virtual starting item, and determining target equipment to be started corresponding to the selected target virtual starting item; initializing the target equipment to be started through a starting sequence corresponding to the target equipment to be started, and creating a real starting item according to configuration information after the target equipment to be started is initialized; and starting the target equipment to be started based on the real starting item. By adopting the method, in the process of the power-on self-test of the server, the process of initializing all the equipment to be started is skipped, the virtual starting item is directly created, the selection request of the target virtual starting item is responded, the equipment to be started is initialized only aiming at the target equipment to be started corresponding to the target virtual starting item, then the real starting item is created to start the target equipment to be started, the time and the resource consumption for initializing each equipment in the server are greatly reduced, and the starting speed of the server is improved.
Drawings
FIG. 1 is a flow chart illustrating a method for starting a server according to an embodiment;
FIG. 2 is a flowchart illustrating steps of creating a virtual boot entry for a hard disk device in one embodiment;
FIG. 3 is a flowchart illustrating steps of creating a virtual boot entry for a network card device in one embodiment;
FIG. 4 is a flowchart illustrating a step of drawing an output display on a display interface according to another embodiment;
FIG. 5 is a flowchart illustrating the steps of selecting a request in response to a virtual launch item in one embodiment;
FIG. 6 is a flowchart of steps for creating a real boot entry for a target device to be booted in one embodiment;
FIG. 7 is a flow diagram that illustrates an example method for starting a server in one embodiment;
FIG. 8 is a block diagram showing the configuration of a starting apparatus of the server in one embodiment;
FIG. 9 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, as shown in FIG. 1, a method for booting a server is provided. In this embodiment, the method includes the steps of:
step 102, in the process of the power-on self-test of the server, a virtual starting item is created for each device to be started included in the server.
Wherein, each virtual starting item is bound with a starting list.
The boot sequence is a function pointer that is used to point to the hardware initialization and boot code program.
In the process of starting the server, the executable program pointed by the starting sequence is operated so as to initialize any device to be started in the server (for example, hardware initialization, execution of a starting loader, loading and starting of an operating system, and the like).
In an implementation, during a POWER ON SELF TEST (POST) process of the server, a BIOS (Basic Input Output System) in the server creates a virtual boot entry for each device to be booted included in the server. For example, the server includes 20 hard disks, 5 network cards, and the like, and the BIOS skips the initialization process for the devices to be started and directly creates corresponding virtual startup items. Each virtual starting item is equivalent to a starting item, and a starting list is correspondingly bound so as to start the target equipment to be started.
And 104, responding to the selection request aiming at the target virtual starting item, and determining the target to-be-started equipment corresponding to the target virtual starting item.
In implementation, in a BIOS power on self test process of a server, a user selects a target device to be started from a plurality of devices to be started included in the server to trigger, and after receiving a virtual start item selection request triggered by the user, the server determines, in response to the selection request for the target virtual start item, the target device to be started corresponding to the triggered target virtual start item.
And 106, initializing the target equipment to be started through a starting sequence corresponding to the target equipment to be started, and creating a real starting item according to the configuration information after the target equipment to be started is initialized.
In implementation, the server initializes only the target device to be started through a start-up sequence corresponding to the target device to be started, executes a start-up loader, reads configuration information of the target device to be started, and creates a real start-up item according to the configuration information initialized by the target device to be started.
And 108, starting the target equipment to be started based on the real starting item.
In implementation, the BIOS in the server starts the target device to be started based on the created real start item, thereby implementing the start of the server.
In the starting method of the server, in the process of power-on self-test of the server, the BIOS creates a virtual starting item for each device to be started included in the server, and then determines a target device to be started corresponding to the target virtual starting item in response to a selection request for the target virtual starting item. Initializing the target equipment to be started through a starting sequence corresponding to the target equipment to be started, and creating a real starting item according to configuration information after the target equipment to be started is initialized. And finally, the BIOS starts the target equipment to be started based on the real starting item. By adopting the method, in the process of the power-on self-test of the server, the process of initializing all the equipment to be started is skipped, the virtual starting item is directly created, the selection request of the target virtual starting item is responded, the equipment to be started corresponding to the target virtual starting item is initialized only, the real starting item is created to realize the starting of the equipment to be started, the time and the resource consumption for initializing each equipment in the server are greatly reduced, and the starting speed of the server is improved.
In one embodiment, as shown in fig. 2, the server includes a plurality of bootable hardware devices, and when the type of the device to be booted is a hard disk device, the process of creating a virtual boot entry for each device to be booted (hard disk device) in step 102 includes the following steps:
step 202, reading the number of hard disks corresponding to each port stored in the register of the hard disk controller of the server.
Specifically, the device to be started in the server is a hard disk device, and a port status register is further included in a controller of the server hard disk device. Further, the PortStatus register stores the hard disk information of each port.
In implementation, the BIOS of the server may read the hard disk information stored in the register of the hard disk controller to obtain the number of hard disks corresponding to each port.
And step 204, creating a virtual startup item corresponding to each hard disk device based on the number of hard disks.
In implementation, the BIOS creates a virtual boot entry corresponding to the hard disk device of the port for each port based on the obtained number of hard disks of each port. Specifically, the created virtual startup item binds a startup list and is used for representing a startup item corresponding to each device to be started, but cannot directly start the hardware device.
And step 206, adding a name identifier for the virtual startup item corresponding to the hard disk device according to the hard disk controller where the hard disk device is located and the corresponding port information.
In implementation, the BIOS adds a name identifier to the virtual boot entry created for each hard disk device. The name identifier of the virtual boot item is generated according to a hard disk controller where the hard disk device corresponding to the virtual boot item is located and corresponding port (port) information (e.g., a port number). For example, if the hard disk controller 1 where the hard disk device corresponding to the currently created virtual startup item is located corresponds to the port 1, the virtual startup item name identifier is generated by "the hard disk controller 1, the port 1", and the virtual startup item and the hard disk device corresponding to the virtual startup item are uniquely identified.
In this embodiment, the number of devices reading the hard disk devices in the register is obtained, and a virtual startup item is created for each hard disk device based on the number of devices, where the created virtual startup item carries a name identifier for uniquely identifying the hard disk device, so that a user selects a hard disk device to be started.
In an embodiment, as shown in fig. 3, the server includes a plurality of bootable hardware devices, and when the type of the device to be booted is a network card device, the process of creating a virtual boot entry for each device to be booted (hard disk device) in step 102 includes the following steps:
step 302, creating a virtual boot entry for each network card device.
In implementation, the server creates a virtual start item for each network card device, and the created virtual start item binds a start list and is used for representing a start entry corresponding to each device to be started, but cannot directly start the hardware device.
And step 304, acquiring product information of each network card device, and adding a name identifier for the corresponding virtual starting item according to the product information of each network card device.
In implementation, the server obtains product information of each network card device, for example, a manufacturer ID (Identification) of the network card device, an ID of the network card device, and the like, and generates a name identifier of the virtual start item based on the obtained product information of the network card device. For example, if the manufacturer ID of the network card device 1 is XXX manufacturer and the ID of the network card device is AAA, name identifiers are generated by "XXX manufacturer" and "AAA", and are added to the corresponding virtual boot entry.
In this embodiment, a virtual startup item is created for each network card device in the server, and the created virtual startup item carries a name identifier for uniquely identifying the network card device, so that a user selects the network card device to be started.
In one embodiment, as shown in fig. 4, the method further comprises:
step 402, initializing an interface display module of a Basic Input Output System (BIOS) in a server.
In implementation, the server initializes an interface display module of the BIOS, assigns parameter variables in the interface display module to default values, and adjusts a control of the interface display module to a default state.
Step 404, obtaining the virtual startup item of each device to be started, generating a display identifier of the virtual startup item of each device to be started in the interface display module, and outputting and displaying the display identifier.
In implementation, the server obtains the virtual startup items of each device to be started, generates corresponding display identifiers in the interface display module, and outputs and displays the display identifiers of the virtual startup items, so that a user can select the virtual startup items based on the display identifiers of the virtual startup items.
In this embodiment, based on each created virtual startup item, a corresponding virtual startup item display identifier is drawn in a display interface of the server, and is used to output and display the startup item represented by each virtual startup item, so as to implement the trigger selection of the user.
In one embodiment, as shown in fig. 5, if the selection request of the virtual startup item carries a name identifier of the virtual startup item, the specific processing procedure of step 104 includes:
step 502, in response to the selection request for the target virtual startup item, identifying the target virtual startup item corresponding to the name identifier of the virtual startup item and the type of the target virtual startup item.
In implementation, the server displays, on a display interface, display identifiers (or called display icons) of virtual startup items corresponding to the devices to be started, where each display identifier displays a name identifier of the virtual startup item, a user may select a display identifier of any one of the virtual startup items to trigger, that is, input a selection request for a virtual startup item corresponding to the triggered display identifier, and then, in response to the selection request, the server identifies a target virtual startup item corresponding to the name identifier displayed in the selection request and a type of the target virtual startup item.
For example, if the name identifier carried in the selection request for the target virtual boot item received by the server is "port 1 of the hard disk control device 1", the corresponding target virtual boot item is determined based on the name identifier, and the target virtual boot item is determined to be a virtual boot item of the hard disk device type.
Optionally, the user may also adjust the starting sequence of each hard disk device and the network card device displayed in the display interface through operations such as dragging, and the like, and sequentially execute the starting sequence based on the adjusted starting sequence of each device to be started, and the BIOS may sequentially start each device to be started, so as to start the server.
Step 504, in the corresponding relation between the virtual startup item and the to-be-started device under the type of the target virtual startup item, querying the target to-be-started device corresponding to the target virtual startup item.
In implementation, after determining the type of the boot item to which the target virtual boot item belongs, the server queries the target to-be-booted device corresponding to the target virtual boot item in the corresponding relationship between the virtual boot item of the type to which the target virtual boot item belongs and the to-be-booted device. Specifically, the server includes two types of startable devices, namely a hard disk device and a network card device, and further virtual startup items corresponding to the hard disk device and the network card device respectively belong to different startup item types, and each virtual startup item also corresponds to a unique device to be started under each type.
In this embodiment, in response to a selection request of a target virtual start item, based on a display identifier and a corresponding relationship between the virtual start item and a device to be started, a target device to be started corresponding to the virtual start item triggered by a user is determined, so that targeted initialization is achieved based on the target device to be started, and the server startup speed is increased.
In one embodiment, as shown in fig. 6, the to-be-started devices in the server include a hard disk device and a network card device, and the processes for creating the real startup items corresponding to different to-be-started devices are different, then creating the real startup items in step 106 according to the configuration information after the initialization of the target to-be-started device corresponds to the following steps, respectively:
step 602, reading the configuration information after the initialization of the hard disk device, installing the read-write hard disk service, and creating a real startup item based on the configuration information after the initialization and the read-write hard disk service.
In implementation, the server reads the configuration information after the initialization of the hard disk device, installs the read-write hard disk server, and then creates a real startup item based on the configuration information after the initialization and the trigger of the read-write hard disk service. The real boot entry may directly boot the target hard disk device.
Step 604, identifying the operating system operating environment where the network card device is located, and determining a network card data loading mode according to the operating system operating environment.
In implementation, the server identifies an operating environment of an operating system in which the network card device is located, and determines a corresponding network card data loading manner according to a difference of the operating environments of the operating systems, for example, in an Option Rom operating environment, the server needs to execute a two-stage loading program, that is, a TCP (Transmission Control Protocol/Internet Protocol)/UDP (User Datagram Protocol) network Protocol stack is loaded, and then, a network card initialization program (Option Rom) is loaded. Under the UEFI (Unified Extensible Firmware Interface) operating environment, the server only needs to execute a loading program of one stage, namely loading UEFI Network Stack (UEFI Network Stack) drive.
Step 606, based on the network card data loading mode, loading the configuration information after the initialization of the network card device, and creating a real startup item corresponding to the network card device.
In implementation, the server performs an initialization process on the network card device based on different network card data loading manners, loads configuration information after the network card device is initialized, and further creates a real start item corresponding to the network card device, that is, a PXE (remote boot Environment) start item. The PXE starting item can realize the direct starting of the network card device.
In addition, in the process of power-on self-test of the server, any type of equipment can be selected for the hard disk equipment and the network card equipment to initialize, and then the selected equipment is started, so that the initialization processing modes of the hard disk equipment and the network card equipment are not in sequence, and are two different initialization processing modes which can be selected.
In this embodiment, different device initialization modes are provided for different device types of the determined target device to be started, so that all devices capable of being started do not need to be initialized, targeted initialization operation is achieved only based on the target device to be started, and the starting speed of the server is increased.
In one embodiment, as shown in fig. 7, there is provided an example of a method for starting a server, the method comprising the steps of:
in step 701, a BIOS of a server is powered on and self-tested (POST).
Step 702, scanning a register of the server, judging the number of in-place hard disks of each port, creating a virtual startup item for each in-place hard disk device, and generating a name identifier based on product information of each hard disk device.
Step 703, scanning the system network card, and reading product information such as the network card device ID, the manufacturer ID, and the like.
Step 704, initializing the BIOS interface module, capturing all created virtual boot items (including the hard disk type virtual boot item and the network card type virtual boot item), drawing to a screen interface, and outputting and displaying.
Step 705, receiving a selection request triggered by a user for a certain target virtual boot item, or adjusting the boot sequence of all the hard disk devices and the network card devices by the user, and sequentially triggering the selection request according to the sequence of the hard disk devices and the network card devices after the adjustment sequence.
Step 706, determining whether the received selection request is a virtual hard disk startup item, if yes, executing step 707, and if not, executing step 708.
Step 707, reading the hard disk information, installing the read-write hard disk service, and starting the hard disk.
Step 708, determining whether the received selection request is a virtual network card boot entry, if yes, executing step 709, if not, the result is wrong, and performing error reporting feedback on the trigger result.
Step 709, loading a TCP/UDP network protocol stack, loading a network card Option rom, creating a PXE starting item, and starting the network card device.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides a server startup device for implementing the above-mentioned server startup method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so specific limitations in the following embodiments of the starting device for one or more servers may refer to the limitations on the starting method for the server, and details are not described herein.
In one embodiment, as shown in fig. 8, there is provided a server boot apparatus 800, including: a first creation module 810, a determination module 820, a second creation module 830, and an initiation module 840, wherein:
a first creating module 810, configured to create a virtual startup item for each to-be-started device included in a server in a power-on self-test process of the server; binding a starting list to each virtual starting item;
a determining module 820, configured to determine, in response to a selection request for a target virtual startup item, a target device to be started corresponding to the target virtual startup item;
the second creating module 830 is configured to initialize the target device to be started through a start sequence corresponding to the target device to be started, and create a real start item according to configuration information after the target device to be started is initialized;
a starting module 840, configured to start the target device to be started based on the real starting item.
In the power-on self-test process of the server, the starting device 800 of the server skips the process of initializing all the devices to be started, directly creates the virtual starting item, responds to the selection request of the target virtual starting item, initializes only the target devices to be started corresponding to the target virtual starting item, then creates the real starting item to start the target devices to be started, greatly reduces the time and resource consumption for initializing each device in the server, and improves the starting speed of the server.
In one embodiment, the device to be started is a hard disk device, and the first creating module 810 is specifically configured to read the number of hard disks corresponding to each port stored in a register of a hard disk controller of the server;
based on the number of the hard disks, creating a virtual starting item corresponding to each hard disk device;
and adding a name identifier for the virtual start item corresponding to the hard disk device according to the hard disk controller where the hard disk device is located and the corresponding port information.
In one embodiment, the device to be started is a network card device, and the first creating module 810 is specifically configured to create a virtual start item for each network card device;
and acquiring the product information of each network card device, and adding a name identifier for the corresponding virtual starting item according to the product information of each network card device.
In one embodiment, the apparatus 800 further comprises:
the initialization module is used for initializing an interface display module of a Basic Input Output System (BIOS) in the server;
and the display module is used for acquiring the virtual starting items of the equipment to be started, generating the display identifiers of the virtual starting items of the equipment to be started in the interface display module, and outputting and displaying the display identifiers.
In one embodiment, the selection request of the virtual startup item carries a name identifier of the virtual startup item; a determining module 820, specifically configured to, in response to a selection request for a target virtual startup item, identify a target virtual startup item corresponding to a name identifier of the virtual startup item and a type of the target virtual startup item;
and inquiring target equipment to be started corresponding to the target virtual starting item in the corresponding relation between the virtual starting item and the equipment to be started under the type.
In one embodiment, the second creating module 830 is specifically configured to read configuration information after initialization of the hard disk device, install a read-write hard disk service, and create a real boot item based on the configuration information after initialization and the read-write hard disk service;
identifying the operating system operating environment where the network card equipment is located, and determining a network card data loading mode according to the operating system operating environment;
and loading the configuration information after the initialization of the network card equipment based on the network card data loading mode, and creating a real starting item corresponding to the network card equipment.
The modules in the starting apparatus 800 of the server can be implemented in whole or in part by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 9. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the executable program for initializing each device to be started. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of starting a server.
Those skilled in the art will appreciate that the architecture shown in fig. 9 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
in the process of the power-on self-test of the server, a virtual starting item is created for each device to be started contained in the server; binding a starting list to each virtual starting item;
responding to a selection request aiming at a target virtual starting item, and determining target equipment to be started corresponding to the target virtual starting item;
initializing the target equipment to be started through a starting sequence corresponding to the target equipment to be started, and creating a real starting item according to configuration information after the target equipment to be started is initialized;
and starting the target equipment to be started based on the real starting item.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
reading the number of hard disks corresponding to each port stored in a register of a hard disk controller of the server;
based on the number of the hard disks, creating a virtual starting item corresponding to each hard disk device;
and adding a name identifier for the virtual start item corresponding to the hard disk device according to the hard disk controller where the hard disk device is located and the corresponding port information.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
aiming at each network card device, creating a virtual starting item;
and acquiring the product information of each network card device, and adding a name identifier for the corresponding virtual starting item according to the product information of each network card device.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
initializing an interface display module of a Basic Input Output System (BIOS) in a server;
the method comprises the steps of obtaining virtual starting items of all equipment to be started, generating display identifications of the virtual starting items of the equipment to be started in an interface display module, and outputting and displaying the display identifications.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
responding to a selection request aiming at a target virtual starting item, and identifying the target virtual starting item corresponding to the name identification of the virtual starting item and the type of the target virtual starting item;
and inquiring target equipment to be started corresponding to the target virtual starting item in the corresponding relation between the virtual starting item and the equipment to be started under the type.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
reading the configuration information after the initialization of the hard disk device, installing read-write hard disk service, and creating a real startup item based on the configuration information after the initialization and the read-write hard disk service;
identifying the operating system operating environment where the network card equipment is located, and determining a network card data loading mode according to the operating system operating environment;
and loading the configuration information after the initialization of the network card equipment based on the network card data loading mode, and creating a real starting item corresponding to the network card equipment.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
in the process of the power-on self-test of the server, a virtual starting item is created for each device to be started contained in the server; binding a starting list to each virtual starting item;
responding to a selection request aiming at a target virtual starting item, and determining target equipment to be started corresponding to the target virtual starting item;
initializing the target equipment to be started through a starting sequence corresponding to the target equipment to be started, and creating a real starting item according to configuration information after the target equipment to be started is initialized;
and starting the target equipment to be started based on the real starting item.
In one embodiment, the computer program when executed by the processor further performs the steps of:
reading the number of hard disks corresponding to each port stored in a register of a hard disk controller of the server;
based on the number of the hard disks, creating a virtual starting item corresponding to each hard disk device;
and adding a name identifier for the virtual start item corresponding to the hard disk device according to the hard disk controller where the hard disk device is located and the corresponding port information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
aiming at each network card device, creating a virtual starting item;
and acquiring the product information of each network card device, and adding a name identifier for the corresponding virtual starting item according to the product information of each network card device.
In one embodiment, the computer program when executed by the processor further performs the steps of:
initializing an interface display module of a Basic Input Output System (BIOS) in a server;
the method comprises the steps of obtaining virtual starting items of all equipment to be started, generating display identifications of the virtual starting items of the equipment to be started in an interface display module, and outputting and displaying the display identifications.
In one embodiment, the computer program when executed by the processor further performs the steps of:
responding to a selection request aiming at a target virtual starting item, and identifying the target virtual starting item corresponding to the name identification of the virtual starting item and the type of the target virtual starting item;
and inquiring target equipment to be started corresponding to the target virtual starting item in the corresponding relation between the virtual starting item and the equipment to be started under the type.
In one embodiment, the computer program when executed by the processor further performs the steps of:
reading the configuration information after the initialization of the hard disk device, installing read-write hard disk service, and creating a real startup item based on the configuration information after the initialization and the read-write hard disk service;
identifying the operating system operating environment where the network card equipment is located, and determining a network card data loading mode according to the operating system operating environment;
and loading the configuration information after the initialization of the network card equipment based on the network card data loading mode, and creating a real starting item corresponding to the network card equipment.
In an embodiment, a computer program product is provided, comprising a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A method for starting a server, the method comprising:
in the process of power-on self-test of a server, creating a virtual starting item for each device to be started contained in the server; binding a starting list to each virtual starting item;
responding to a selection request aiming at a target virtual starting item, and determining target equipment to be started corresponding to the target virtual starting item;
initializing the target equipment to be started through a starting sequence corresponding to the target equipment to be started, and creating a real starting item according to configuration information after the target equipment to be started is initialized;
and starting the target equipment to be started based on the real starting item.
2. The method according to claim 1, wherein the device to be booted is a hard disk device, and the creating a virtual boot entry for each device to be booted included in the server includes:
reading the number of hard disks corresponding to each port stored in a register of a hard disk controller of the server;
based on the number of the hard disks, creating a virtual starting item corresponding to each hard disk device;
and adding a name identifier for the virtual starting item corresponding to the hard disk device according to the hard disk controller where the hard disk device is located and the corresponding port information.
3. The method according to claim 1, wherein the device to be started is a network card device, and each of the devices to be started included in the server creates a virtual start item, including:
creating a virtual starting item aiming at each network card device;
and acquiring product information of each network card device, and adding a name identifier for the corresponding virtual starting item according to the product information of each network card device.
4. The method of claim 1, further comprising:
initializing an interface display module of a Basic Input Output System (BIOS) in a server;
and acquiring the virtual starting item of each device to be started, generating a display identifier of the virtual starting item of each device to be started in the interface display module, and outputting and displaying the display identifier.
5. The method according to claim 1, wherein the selection request of the virtual startup item carries a name identifier of the virtual startup item; the step of determining a target to-be-started device corresponding to a target virtual starting item in response to a selection request for the target virtual starting item includes:
in response to a selection request aiming at a target virtual starting item, identifying the target virtual starting item corresponding to the name identification of the virtual starting item and the type of the target virtual starting item;
and inquiring the target equipment to be started corresponding to the target virtual starting item in the corresponding relation between the virtual starting item and the equipment to be started under the type.
6. The method according to claim 1, wherein the device to be started comprises a hard disk device and a network card device; the creating a real startup item according to the configuration information initialized by the target device to be started includes:
reading the configuration information after the initialization of the hard disk device, installing read-write hard disk service, and creating a real startup item based on the configuration information after the initialization and the read-write hard disk service;
identifying the operating system operating environment where the network card equipment is located, and determining a network card data loading mode according to the operating system operating environment;
and loading the configuration information after the network card equipment is initialized based on the network card data loading mode, and creating a real starting item corresponding to the network card equipment.
7. An apparatus for starting a server, the apparatus comprising:
the system comprises a first establishing module, a second establishing module and a third establishing module, wherein the first establishing module is used for establishing a virtual starting item for each device to be started contained in a server in the power-on self-test process of the server; binding a starting list to each virtual starting item;
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for responding to a selection request aiming at a target virtual starting item and determining a target device to be started corresponding to the target virtual starting item;
the second creating module is used for initializing the target equipment to be started through a starting sequence corresponding to the target equipment to be started and creating a real starting item according to the configuration information after the target equipment to be started is initialized;
and the starting module is used for starting the target equipment to be started based on the real starting item.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 6.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 6 when executed by a processor.
CN202111298591.1A 2021-11-04 2021-11-04 Starting method and device of server, computer equipment and storage medium Pending CN113934463A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111298591.1A CN113934463A (en) 2021-11-04 2021-11-04 Starting method and device of server, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111298591.1A CN113934463A (en) 2021-11-04 2021-11-04 Starting method and device of server, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113934463A true CN113934463A (en) 2022-01-14

Family

ID=79285626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111298591.1A Pending CN113934463A (en) 2021-11-04 2021-11-04 Starting method and device of server, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113934463A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116643640A (en) * 2023-04-23 2023-08-25 合芯科技(苏州)有限公司 Step-by-step power-up method, device, equipment and storage medium of server system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100205420A1 (en) * 2009-02-09 2010-08-12 Inventec Corporation System and method for realizing remote test on computer apparatus without storage device
CN102298532A (en) * 2011-09-15 2011-12-28 奇智软件(北京)有限公司 Startup-item-based management method and device
CN109656627A (en) * 2018-12-18 2019-04-19 广东浪潮大数据研究有限公司 Starting method, activation system and the relevant apparatus of hard disk in a kind of BIOS
CN110399168A (en) * 2019-07-12 2019-11-01 苏州浪潮智能科技有限公司 Majority according to disk storage server system start method, device and equipment
CN112306581A (en) * 2020-11-13 2021-02-02 苏州浪潮智能科技有限公司 Method and medium for managing Basic Input Output System (BIOS) configuration by baseboard management controller

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100205420A1 (en) * 2009-02-09 2010-08-12 Inventec Corporation System and method for realizing remote test on computer apparatus without storage device
CN102298532A (en) * 2011-09-15 2011-12-28 奇智软件(北京)有限公司 Startup-item-based management method and device
CN109656627A (en) * 2018-12-18 2019-04-19 广东浪潮大数据研究有限公司 Starting method, activation system and the relevant apparatus of hard disk in a kind of BIOS
CN110399168A (en) * 2019-07-12 2019-11-01 苏州浪潮智能科技有限公司 Majority according to disk storage server system start method, device and equipment
CN112306581A (en) * 2020-11-13 2021-02-02 苏州浪潮智能科技有限公司 Method and medium for managing Basic Input Output System (BIOS) configuration by baseboard management controller

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116643640A (en) * 2023-04-23 2023-08-25 合芯科技(苏州)有限公司 Step-by-step power-up method, device, equipment and storage medium of server system
CN116643640B (en) * 2023-04-23 2024-01-23 合芯科技(苏州)有限公司 Step-by-step power-up method, device, equipment and storage medium of server system

Similar Documents

Publication Publication Date Title
US10019253B2 (en) Systems and methods of updating hot-pluggable devices
US7103641B2 (en) Method and apparatus for distributing computer platform firmware across a network
US7159106B2 (en) Information handling system manufacture method and system
US20070260868A1 (en) Booting an operating system in discrete stages
US7363514B1 (en) Storage area network(SAN) booting method
US7356685B2 (en) System and method for enabling automated run-time input to network bootstrapping processes
US20020169949A1 (en) System and method for dynamic management of a startup sequence
US20050149716A1 (en) Preboot execution bootloading
US20100262815A1 (en) Detection Mechanism for System Image Class
US20080077784A1 (en) Electronic marketing on a computing device during select time windows
US7234053B1 (en) Methods for expansive netboot
CN112783761A (en) Method, device and system for testing cold start duration of application program
US20030188146A1 (en) Method of ordered execution of firmware modules in a pre-memory execution environment
US8316361B2 (en) Method of enabling a user to update one or more low-level resources of a computer system in a user-friendly manner
US7257704B2 (en) Method of selectively loading a pre-boot execution extension determined based on an identifier
CN113934463A (en) Starting method and device of server, computer equipment and storage medium
CN109614156B (en) Method, device and system for supporting driving of starting type external equipment
CN111433747A (en) Virtual memory for loading an operating system
CN111078305A (en) Information acquisition method and device, server and information management system
CN111966376A (en) Data flashing method and related equipment
US7487342B2 (en) Method and apparatus for starting up and maintaining of multiple networked computing systems
US8850174B1 (en) Method for dedicated netboot
CN112463466B (en) Computer testing method
CN113010179A (en) Software storage method under storage architecture
US9141419B1 (en) Capturing and restoring an appliance image

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