CN117453240A - RAID configuration method, device, equipment and medium of bare metal server - Google Patents

RAID configuration method, device, equipment and medium of bare metal server Download PDF

Info

Publication number
CN117453240A
CN117453240A CN202311632420.7A CN202311632420A CN117453240A CN 117453240 A CN117453240 A CN 117453240A CN 202311632420 A CN202311632420 A CN 202311632420A CN 117453240 A CN117453240 A CN 117453240A
Authority
CN
China
Prior art keywords
bare metal
deployment
raid configuration
server
metal 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.)
Pending
Application number
CN202311632420.7A
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.)
Inspur Jinan data Technology Co ltd
Original Assignee
Inspur Jinan data Technology 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 Jinan data Technology Co ltd filed Critical Inspur Jinan data Technology Co ltd
Priority to CN202311632420.7A priority Critical patent/CN117453240A/en
Publication of CN117453240A publication Critical patent/CN117453240A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • 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/4411Configuring for operating with peripheral devices; Loading of device drivers

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the field of bare metal server deployment, and provides a RAID configuration method, device, equipment and medium of a bare metal server, wherein the method comprises the following steps: in response to receiving deployment parameters including RAID configuration related parameters, configuring the deployment parameters into a preset deployment template, obtaining a deployment system based on the deployment template, and selecting bare metal nodes; running a management process of the bare metal server, taking over the bare metal node through the management process, and configuring RAID and formatting a data disk according to relevant parameters of RAID configuration; in response to RAID configuration completion, uploading a preset operating system image to a disk of the bare metal server; and setting the bare metal node according to the preset mirror image activation of the operating system. According to the invention, through automatic RAID configuration of the bare metal server, the deployment efficiency, the data safety and the consistency are improved, the error risk is reduced, the flexibility and the data safety of the deployment of the bare metal server are improved, the deployment flow is simplified, and the deployment efficiency and the data safety are improved.

Description

RAID configuration method, device, equipment and medium of bare metal server
Technical Field
The invention relates to the technical field of bare metal server deployment, in particular to a RAID configuration method, device, equipment and medium of a bare metal server.
Background
In the field of cloud computing, the deployment mode of the virtual machine is simple and efficient, and the virtual machine has the advantages of on-demand distribution, elastic expansion and quick delivery. However, virtual machines also have problems with virtualization loss, high latency, and low performance. In order to fully exert the performance of the physical machine, eliminate the virtualization loss, and manage and deploy the physical machine in a cloud computing environment, bare metal server technology has been developed. Bare metal servers allow virtual machines to run directly on physical hardware, thereby providing virtualization advantages while continuing to preserve performance advantages of physical machines.
However, the deployment and management process of bare metal servers is relatively complex. The traditional bare metal deployment method is mainly divided into two types of manual delivery and unattended operation. Manual delivery methods include on-site wiring and through iso-installers, but these methods are difficult to standardize delivery and require long deployment cycles. Unattended deployment is typically implemented by means of network boot (PXE) with the aid of an Ironic component of an open source project such as OpenStack. However, this approach also has some limitations, such as the effect of the mirror size on deployment success, and the inability of the user to adjust the logical disk configuration.
Particularly in the deployment process of bare metal servers, operations such as RAID configuration and data disk cleaning may be involved. RAID (Redundant Array of Independent Disks ) configuration is a technique that improves performance and fault tolerance by combining multiple disks. However, manually configuring RAID and formatting of data disks may result in problems of complex operations, high error rates, long deployment times, etc. In addition, the data security problem of bare metal servers is also of concern because improper data disk processing may result in data leakage from the previous user to the next user.
Disclosure of Invention
Based on the problems, the invention provides a RAID configuration method, device, equipment and medium of a bare metal server, aiming at improving the flexibility and data security of bare metal server deployment. By means of an automatic mode, the steps of RAID configuration, data disk cleaning, operating system installation and the like are achieved in the bare metal deployment process, so that the deployment flow is simplified, and the deployment efficiency and the data safety are improved.
Based on the above object, in a first aspect, the present invention provides a method for automatically performing RAID configuration by a bare metal server, including the following steps:
in response to receiving the deployment parameters, configuring the deployment parameters into a preset deployment template, obtaining a deployment system based on the deployment template, and selecting bare metal nodes, wherein the deployment parameters comprise RAID configuration related parameters;
running a management process of the bare metal server, taking over the bare metal node through the management process, configuring RAID according to relevant parameters of RAID configuration, and formatting a data disk;
in response to RAID configuration completion, uploading a preset operating system image to a disk of the bare metal server;
and setting the bare metal node according to the preset mirror image activation of the operating system.
In some embodiments, the step of configuring the deployment parameters into a preset deployment template, obtaining a deployment system based on the deployment template and selecting bare metal nodes in response to receiving the deployment parameters comprises:
defining a deployment template;
filling the deployment parameters into a deployment template and setting the deployment parameters to obtain a deployment system;
and selecting a bare metal node in the deployment system, and carrying out scheduling and network configuration to obtain a bare metal network.
In some embodiments, the step of running the management process of the bare metal server, taking over the bare metal node by the management process, configuring the RAID according to the RAID configuration related parameter, and formatting the data disk includes:
starting the bare metal server from the bare metal network as a client;
requesting ip from a server side in a bare metal network through a bare metal server, and receiving the ip distributed by the server side, the address of a designated tftp (simple file transfer protocol) server and a system start guide file;
the bare metal server acquires ip and executes a guide file, and downloads kernel and ramdisk according to the setting of the system start guide file;
sequentially starting a kernel and a ramdisk, and running a management process of the bare metal server;
the management process of the bare metal server acquires a corresponding bare metal node from an ironic-conductor (bare metal control service);
the management process of the bare metal server communicates with an ironic-conductor through a heartbeat protocol to generate a RAID configuration command;
the management process of the bare metal server performs RAID configuration according to the RAID configuration command and the RAID configuration related parameters;
and the management process of the bare metal server formats the data disc according to the formatting command.
In some embodiments, the management process of the bare metal server communicates with the ironic-conductor via a heartbeat protocol, and the step of generating the RAID configuration command includes:
responding to the ironic-conductor receiving the first heartbeat protocol message, triggering the ironic-conductor to issue a RAID configuration command to a management process of the bare metal server;
in response to the irong-conductor receiving the second heartbeat protocol message, triggering the irong-conductor to issue a preparation_image (mirror preparation operation service) to a management process of the bare metal server;
in response to the irong-conductor receiving the third heartbeat protocol message, triggering the irong-conductor to query a command status on a management process of the bare metal server.
In some embodiments, the step of uploading the preset operating system image to the disk of the bare metal server in response to the RAID configuration being complete comprises:
in response to RAID configuration completion, acquiring new logic disk configuration from the bare metal server, and extracting a minimum disk according to the new logic disk configuration;
and the management process of the bare metal server injects the preset operating system image into the minimum disk.
In some embodiments, the method further comprises: and responding to uploading of the operating system image, setting a boot option of the bare metal server based on the deployment system, analyzing the operating equipment from the boot option, starting the bare metal server in the operating equipment, and loading the operating system image.
In some embodiments, the step of setting the bare metal node according to a preset operating system image activation includes:
and in response to the operating system image completing deployment, setting the bare metal node to an active mode by the deployment system, and waiting for configuration.
The invention provides a RAID configuration system of a bare metal server, which comprises the following components:
the deployment unit is configured to respond to receiving the deployment parameters, configure the deployment parameters into a preset deployment template, obtain a deployment system based on the deployment template and select bare metal nodes, wherein the deployment parameters comprise RAID configuration related parameters;
the configuration unit is configured to run a management process of the bare metal server, take over the bare metal node through the management process, configure RAID according to relevant parameters of RAID configuration and format a data disk;
the mirror image unit is configured to respond to the RAID configuration completion and upload a preset operating system mirror image to a disk of the bare metal server;
and the setting unit is configured to set the bare metal node according to the preset mirror image activation of the operating system.
The invention proposes a computer device comprising:
at least one processor; and a memory storing a computer program executable on the processor, the processor executing steps of a RAID configuration method of the bare metal server when the program is executed.
The present invention proposes a computer readable storage medium storing a computer program which, when executed by a processor, performs the steps of a RAID configuration method of the bare metal server.
Compared with the prior art, the RAID configuration method, device, equipment and medium of the bare metal server provided by the invention have the following beneficial effects:
1. automated deployment flow: according to the invention, RAID configuration and data disk cleaning are automatically performed by using the ironic-python-agent, so that the deployment flow of the bare metal server is greatly simplified. Compared with the traditional manual configuration and installation method, the automatic flow can remarkably reduce deployment time and human errors.
2. Flexible RAID configuration: the invention allows a user to specify RAID configuration related parameters, such as RAID level, disk type and number, among deployment parameters. The RAID configuration method provides greater flexibility for users, and RAID configuration is performed according to actual requirements, so that different performance and fault tolerance requirements are met.
3. Data security enhancement: the RAID configuration and the data disk cleaning can be automatically carried out to effectively remove the data of the last user, so that the data security is improved. The data in the past cannot remain on the data disk, so that the risk of data leakage is avoided.
4. Operating system proper deployment: the operating system installation is booted through the ironic-python-agent to ensure that the operating system is properly deployed on top of the RAID configuration. This eliminates configuration errors and incompatibilities that occur in manual operations, improving the stability and accuracy of operating system deployment.
5. Deployment efficiency promotes: automatic RAID configuration and data disk cleaning, and automatic injection of operating system images all contribute to improving deployment efficiency. The user does not need to manually intervene in complicated configuration steps, so that time and resources are saved.
6. Unified deployment standard: by using unified deployment templates and parameters, the invention can ensure that the deployment process of each bare metal server follows the same standard. This helps to improve consistency and manageability of deployment; the invention reduces the complexity of the deployment process to the minimum through an automatic flow. The user does not need to go deep into the details of the bottom layer configuration, and can complete efficient deployment.
In summary, the RAID configuration method, device, equipment and medium of the bare metal server improve deployment efficiency, data security and correct deployment of an operating system through an automatic process, reduce deployment complexity and risk of human errors, and bring various beneficial effects to the deployment of the bare metal server.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments. It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are necessary for the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention and that other embodiments may be obtained according to these drawings without inventive effort for a person skilled in the art.
In the figure:
FIG. 1 is a flowchart of a RAID configuration method of a bare metal server according to an embodiment of the present invention;
FIG. 2 is a system block diagram of a RAID configuration device of a bare metal server according to an embodiment of the present invention;
FIG. 3 is a prior art bare metal deployment flow chart of a RAID configuration method for a bare metal server according to an embodiment of the present invention;
FIG. 4 is a bare metal deployment flow chart of a RAID configuration method of a bare metal server according to an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating a computer device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an embodiment of a computer readable storage medium according to the present invention.
Detailed Description
The present application will be further described with reference to the drawings and detailed description, which should be understood that, on the premise of no conflict, the following embodiments or technical features may be arbitrarily combined to form new embodiments.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention will be described in further detail with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
It should be noted that, in the embodiments of the present invention, all the expressions "first" and "second" are used to distinguish two non-identical entities with the same name or non-identical parameters, and it is noted that the "first" and "second" are only used for convenience of expression, and should not be construed as limiting the embodiments of the present invention. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, apparatus, article, or device that comprises a list of steps or elements does not include other steps or elements inherent to the apparatus.
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
The invention provides a RAID configuration method of a bare metal server, referring to fig. 1, 3 and 4, comprising the following steps:
s1: in response to receiving the deployment parameters, configuring the deployment parameters into a preset deployment template, obtaining a deployment system based on the deployment template, and selecting bare metal nodes, wherein the deployment parameters comprise RAID configuration related parameters;
s2: running a management process of the bare metal server, taking over the bare metal node through the management process, configuring RAID according to relevant parameters of RAID configuration, and formatting a data disk;
s3: in response to RAID configuration completion, uploading a preset operating system image to a disk of the bare metal server;
s4: and setting the bare metal node according to the preset mirror image activation of the operating system.
The implementation process of the invention is to set a deployment template, enter deployment parameters, enter a bare metal stage randisk, take over a bare metal node by a management process (ironic-python-agent) of a bare metal server, configure RAID and format a data disk, inject mirror image data, guide an operating system and activate the bare metal node. Aiming at the problems of deployment failure of the bare metal server and data residue of the bare metal data disk caused by unreasonable distribution of the bare metal logic disk, the invention realizes that the bare metal server automatically carries out raid configuration and deployment installation of data disk cleaning, and improves the deployment flexibility and data safety of the bare metal server.
In some embodiments, referring to fig. 1, in response to receiving the deployment parameter, configuring the deployment parameter into a preset deployment template, and obtaining a deployment system and selecting a bare metal node based on the deployment template includes:
defining a deployment template;
filling deployment parameters into a deployment template, and setting to obtain a deployment system;
and selecting a bare metal node in the deployment system, and carrying out scheduling and network configuration to obtain a bare metal network.
In the deployment process of the bare metal server, a deployment template is first required to be defined, which includes information such as server hardware configuration, network setting, operating system image and the like. The template will be used for subsequent deployment operations.
To personalize each bare metal server, specific deployment parameters need to be entered, such as the server's hostname, IP address, network configuration, RAID configuration, etc. These parameters will be set according to the deployment template.
The user selects a deployment template through CMP, and deployment parameters are set, wherein the deployment parameters comprise information such as an instance name, a network, a user password, RAID configuration and the like.
The Nova module completes scheduling and network configuration. And selecting proper bare metal nodes according to the deployment template, and configuring bare metal network information through a neutron module.
In some embodiments, referring to fig. 1, the step of running the management process of the bare metal server, taking over the bare metal node through the management process, configuring the RAID according to the RAID configuration related parameter, and formatting the data disk includes:
starting the bare metal server from the bare metal network as a client;
requesting ip from a server side in a bare metal network through a bare metal server, and receiving the ip distributed by the server side, the address of a designated tftp (simple file transfer protocol) server and a system start guide file;
the bare metal server acquires ip and executes a system start guide file, and downloads kernel and ramdisk according to the setting of the system start guide file;
sequentially starting a kernel and a ramdisk, and running a management process of the bare metal server;
the management process of the bare metal server acquires a corresponding bare metal node from an ironic-conductor (bare metal control service);
the management process of the bare metal server communicates with an ironic-conductor through a heartbeat protocol to generate a RAID configuration command;
the management process of the bare metal server performs RAID configuration according to the RAID configuration command and the RAID configuration related parameters;
and the management process of the bare metal server formats the data disc according to the formatting command.
After the scheduling and network configuration are completed, the nova investigation ironic module starts to perform bare metal deployment. The deployment system is run through ipxe. After the bare metal is started from the network, a dhcp client in the network card requests an ip to a dhcp server, the server allocates the ip, simultaneously, the address of a tftp server and a system start guide file are designated, after the bare metal acquires the ip, the start guide file is downloaded and executed according to the guidance, a kernel and a ramdisk are downloaded from the tftp server according to the setting in the guide file, the kernel and the ramdisk are sequentially started after the downloading is completed, and after the starting is successful, an init process pulls up an ironic-python-agent process. IPA gets its corresponding ironic_node_uuid from the Ironic connector via a lookup. IPA communicates with Ironic through HeartBeat, and the drive deployment flow triggers the Ironic-conductor to send RAID configuration commands to IPA, so that IPA performs RAID configuration.
Entering a bare metal stage randisk. The bare metal server runs the deployment system through the px and pulls up the ironic-python-agent process.
The ironic-python-agent takes over the bare metal node. "ironic-python-agent" is an agent for managing bare metal servers. In this step, the agent will take over the bare metal node, responsible for performing subsequent operations such as RAID configuration, data disk formatting, mirror injection, etc.
In the RAID configuration and data disk formatting phase, the ir-python-agent receives a conductor request for hardware RAID configuration (e.g., disk redundancy) and formatting of the data disk. These operations will ensure that the data storage and redundancy of the server are satisfactory.
RAID configuration can be flexibly set according to user requirements. And the data disk cleaning is completed, so that data leakage is avoided.
In some embodiments, referring to fig. 1, the step of generating the RAID configuration command by the management process of the bare metal server communicating with the ironic-conductor through a heartbeat protocol includes:
responding to the ironic-conductor receiving the first heartbeat protocol message, triggering the ironic-conductor to issue a RAID configuration command to a management process of the bare metal server;
in response to the irong-conductor receiving the second heartbeat protocol message, triggering the irong-conductor to issue a preparation_image (mirror preparation operation service) to a management process of the bare metal server;
in response to the irong-conductor receiving the third heartbeat protocol message, triggering the irong-conductor to query a command status on a management process of the bare metal server.
After receiving the Heartbase message (RPC message from ironic-api), the ironic-conductor processes the message according to the current state. The first HeartBeat message triggers the ironic-conductor to issue RAID configuration to IPA, later HeartBeat message triggers the preparation_image to IPA, later HeartBeat message triggers the ironic-conductor to query command status on IPA, its purpose is to monitor whether the commands such as preparation_image are still running. Once the command status display command ends. The next deployment operation is continued, including setting up the physical server to start up from disk, shut down, switch network, start up. Until the deployment process ends.
In some embodiments, referring to fig. 1, in response to the RAID configuration being completed, the step of uploading the preset operating system image to the disk of the bare metal server includes:
in response to RAID configuration completion, acquiring new logic disk configuration from the bare metal server, and extracting a minimum disk according to the new logic disk configuration;
and the management process of the bare metal server injects the preset operating system image into the minimum disk.
Operating system image data needs to be injected into the storage device of the server before the operating system is installed on the bare metal server. This includes writing the image to disk or network transmission.
In some embodiments, referring to fig. 1, the method further comprises: and responding to uploading of the operating system image, setting a boot option of the bare metal server based on the deployment system, analyzing the operating equipment from the boot option, starting the bare metal server in the operating equipment, and loading the operating system image. The flexible and safe deployment of the bare metal server through the cloud platform is realized.
In some embodiments, referring to fig. 1, the step of setting the bare metal node according to the preset operating system image activation includes:
and in response to the operating system image completing deployment, setting the bare metal node to an active mode by the deployment system, and waiting for configuration.
The configuration and preparation work of the bare metal server are completed, and the bare metal node can be activated to set the state of the bare metal node as active, so that the bare metal node becomes an available server resource, and further configuration and use can be performed.
The invention provides a RAID configuration system of a bare metal server, referring to FIG. 2, comprising:
the deployment unit 100 is configured to respond to receiving deployment parameters, configure the deployment parameters into a preset deployment template, obtain a deployment system based on the deployment template and select bare metal nodes, wherein the deployment parameters comprise RAID configuration related parameters;
the configuration unit 200 is configured to run a management process of the bare metal server, take over the bare metal node through the management process, configure the RAID according to the relevant parameters of RAID configuration and format the data disk;
the mirroring unit 300 is configured to upload a preset operating system mirror image to a disk of the bare metal server in response to the RAID configuration completion;
and a setting unit 400 configured to set the bare metal node according to a preset operating system image activation.
According to some embodiments, the specific steps for automatic configuration in a RAID configuration system of a bare metal server are as follows:
adding RAID configuration related parameters in the incoming deployment parameters when bare metal deployment is performed;
after an ironic-python-agent takes over a bare metal node, an ironic-conductor first issues a RAID configuration request to perform RAID configuration and data disk formatting on the bare metal disk;
and after RAID configuration is finished, the ironic-python-agent selects the minimum disk injection mirror image data according to the new logic disk configuration to install the operating system and complete bare metal deployment.
In this embodiment, the RAID configuration related parameters include at least a RAID level, a disk type, and a disk number; the method also comprises the steps of automatically activating the bare metal node to become available computing resources after the installation of the operating system is completed; selecting a new logical disk configuration based on the disk layout after RAID configuration; operating system image data is automatically injected into the bare metal server through the ironic-python-agent; RAID configuration requests are commands issued to the ironic-python-agent by the ironic-conductor; operating system installation is booted based on the ironic-python-agent; the RAID configuration also includes a specification of the formatting of the data disks.
According to another aspect of the present invention, as shown in fig. 3, according to the same inventive concept, an embodiment of the present invention further provides a computer device 30, in which the computer device 30 includes a processor 310 and a memory 320, the memory 320 storing a computer program 321 executable on the processor, and the processor 310 executing the steps of the method as above.
According to another aspect of the present invention, as shown in fig. 4, based on the same inventive concept, an embodiment of the present invention further provides a computer-readable storage medium 40, the computer-readable storage medium 40 storing a computer program 410 which when executed by a processor performs the above method.
In summary, the RAID configuration method of the bare metal server realizes RAID configuration, data disk cleaning and operating system deployment of the bare metal server through an automatic flow based on the ironic-python-agent. A user may specify RAID configuration in the deployment parameters, and the ironic-python-agent takes over the nodes, and the ironic-conductor issues RAID configuration requests, automatically performing RAID setup and data disk formatting. The new logical disk configuration determines the minimum disk capacity and automatically injects operating system image data, and then directs the operating system installation. After deployment, the bare metal node is automatically activated to become available computing resources. The method not only improves the deployment efficiency and the data security, but also reduces the error risk, and brings remarkable advantages for the automatic deployment of the bare metal server.
Furthermore, the terminology referred to in the above disclosure ends as follows:
OVN: open Virtual Network open source community project.
Openstack cloud computing open source infrastructure project
Bare metal server (BareMetal): the physical server, which is typically used to indicate that an operating system has not yet been installed, may be referred to simply as bare metal.
Ironic: bare metal services in OpenStack are mainly used for managing deployment of bare metal.
The OVERLAY network is a virtual network established on an existing physical network, has independent control and forwarding planes, and is transparent to terminal devices (e.g., servers) connected to the OVERLAY, so that separation of a bearer network and a service network can be achieved.
Intelligent network card the intelligent network card appearing in the document is exemplified by the blue 2 intelligent network card pushed by Mellanox
Sdn: an Overlay network is a virtual network built on an existing physical network, with independent control and forwarding planes, and is transparent to the end devices (e.g., servers) connected to the Overlay, so that separation of the bearer network and the traffic network can be achieved.
Pf0hpf after the intelligent network card is inserted into the bare metal node, the network card can generate a PF0 port on the bare metal system, and a port corresponding to the PF0 port in the bare metal system is also provided in the arm operating system of the intelligent network card, and the port is Pf0hpf
Neutron: network component of Openstack cloud computing open source project
Checking the network: deployment of the network is a concept in ironic, and the bare metal inspection flow can be implemented by inspecting the network bare metal. Embodied as bare metal re-pxe boot, dhcp to ip address and tftp server address. And further acquiring a memory file system for deploying the mirror image, and acquiring and reporting the hardware information of the current bare metal after the acquired memory file system is electrified.
Dnsmasq DNSmasq is a compact and convenient tool for configuring DNS and DHCP, suitable for small networks, which provides DNS functionality and optional DHCP functionality.
IPA: the full scale ironic-python-agent is a service written with python exposing REST API to the conductor. The agent that actually controls the bare metal will actually run on top of the bare metal to receive the instruction of ironic to operate the bare metal in an in-band manner. The method is used in bare metal inspection, configuration, cleaning and mirror image deployment processes, and has different functions in different processes. In the scheme, the deployment flow for bare metal is mainly used for RAID configuration and bare metal deployment. The Ironic-Python-Agent can directly access hardware at the depoy module, providing the following functions:
disk formatting, disk partitioning, installing an OS (Bootloaders), firmware upgrading, and raid configuration.
ramdisk: the bare metal without the operating system installed runs the ramdisk in memory through a specific boot to provide the agent with an execution environment. He is not an item in ironic and can be generated by diskimage-builder.
Inpur-aspect-agent: the agent component running on the intelligent network card arm system is mainly used for opening the checking network.
It is noted that the above-described figures are only schematic illustrations of processes involved in a method according to an exemplary embodiment of the invention, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
It should be understood that although described in a certain order, the steps are not necessarily performed sequentially in the order described. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, some steps of the present embodiment may include a plurality of steps or stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily sequential, but may be performed alternately or alternately with at least a part of the steps or stages in other steps or other steps.
Referring to fig. 5, the computer device includes a processor and a memory, and may further include: input means and output means. The processor, memory, input device, and output device may be connected by a bus or other means, and the input device may receive input numeric or alphanumeric information and generate signal inputs related to the bare metal server's automated RAID configuration migration. The output means may comprise a display device such as a display screen.
Referring to fig. 6, the memory is used as a non-volatile computer readable storage medium, and may be used to store a non-volatile software program, a non-volatile computer executable program, and a module, such as program instructions/modules corresponding to the method for automatically performing RAID configuration by the bare metal server in the embodiments of the present application. The memory may include a memory program area and a memory data area, wherein the memory program area may store an operating device, an application program required for at least one function; the storage data area may store data created by the bare metal server automatically performing the use of the RAID configuration method, and the like. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory optionally includes memory remotely located relative to the processor, the remote memory being connectable to the local module through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor is typically used to control the overall operation of the computer device. In this embodiment, the processor is configured to execute the program code stored in the memory or process the data. The processors of the multiple computer devices of the computer device of the present embodiment execute various functional applications and data processing of the server by running nonvolatile software programs, instructions and modules stored in the memory, that is, implement the steps of the RAID configuration method automatically performed by the bare metal server of the above method embodiment.
It should be appreciated that all of the embodiments, features and advantages set forth above for the bare metal server automated RAID configuration method according to the present invention apply equally to the bare metal server automated RAID configuration and storage medium according to the present invention without conflict.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall device. 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 disclosure.
Finally, it should be noted that the computer-readable storage media (e.g., memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of example, and not limitation, RAM may be available in a variety of forms such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed with the following components designed to perform the functions herein: a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP and/or any other such configuration.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that as used herein, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items. The foregoing embodiment of the present invention has been disclosed with reference to the number of embodiments for the purpose of description only, and does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that: the above discussion of any embodiment is merely exemplary and is not intended to imply that the scope of the disclosure of embodiments of the invention, including the claims, is limited to such examples; combinations of features of the above embodiments or in different embodiments are also possible within the idea of an embodiment of the invention, and many other variations of the different aspects of the embodiments of the invention as described above exist, which are not provided in detail for the sake of brevity. Therefore, any omission, modification, equivalent replacement, improvement, etc. of the embodiments should be included in the protection scope of the embodiments of the present invention.

Claims (10)

1. A RAID configuration method of a bare metal server is characterized by comprising the following steps:
in response to receiving a deployment parameter, configuring the deployment parameter into a preset deployment template, obtaining a deployment system based on the deployment template, and selecting a bare metal node, wherein the deployment parameter comprises RAID configuration related parameters;
running a management process of the bare metal server, taking over the bare metal node through the management process, configuring RAID according to the RAID configuration related parameters and formatting a data disk;
responding to the RAID configuration completion, and uploading a preset operating system image to a disk of the bare metal server;
and activating and setting the bare metal node according to the preset operating system image.
2. The RAID configuration method of bare metal servers of claim 1, wherein in response to receiving deployment parameters, configuring the deployment parameters into a preset deployment template, obtaining a deployment system based on the deployment template and selecting bare metal nodes comprises:
defining a deployment template;
filling the deployment parameters into a deployment template and setting the deployment parameters to obtain a deployment system;
and selecting a bare metal node in the deployment system, and carrying out scheduling and network configuration to obtain a bare metal network.
3. The RAID configuration method of a bare metal server according to claim 2, wherein the step of running a management process of the bare metal server, taking over the bare metal node by the management process, configuring a RAID according to the RAID configuration related parameter, and formatting a data disk comprises:
starting the bare metal server from the bare metal network as a client;
requesting ip from a server side in the bare metal network through the bare metal server, and receiving the ip distributed by the server side, the address of a designated simple file transfer protocol server and a system start guide file;
the bare metal server acquires ip and executes the system start guide file, and downloads kernel and ramdisk according to the setting of the system start guide file;
sequentially starting the kernel and the ramdisk, and running the management process of the bare metal server;
the management process of the bare metal server acquires the corresponding bare metal node from the bare metal control service;
the management process of the bare metal server communicates with the bare metal control service through a heartbeat protocol to generate a RAID configuration command;
the management process of the bare metal server performs RAID configuration according to the RAID configuration command and the RAID configuration related parameters;
and the management process of the bare metal server formats the data disc according to the formatting command.
4. The RAID configuration method of a bare metal server according to claim 3, wherein the management process of the bare metal server communicates with the bare metal control service via a heartbeat protocol, the step of generating a RAID configuration command comprising:
responding to the bare metal control service to receive a first heartbeat protocol message, and triggering the bare metal control service to issue a RAID configuration command to a management process of the bare metal server;
responding to the bare metal control service to receive a second heartbeat protocol message, and triggering the bare metal control service to issue a mirror image preparation operation service to a management process of the bare metal server;
and responding to the bare metal control service to receive a third heartbeat protocol message, and triggering the bare metal control service to inquire the running state of the management process of the bare metal server.
5. The method of claim 1, wherein the step of uploading a preset operating system image to a disk of the bare metal server in response to the RAID configuration being complete comprises:
in response to RAID configuration completion, acquiring new logic disk configuration from the bare metal server, and extracting a minimum disk according to the new logic disk configuration;
and the management process of the bare metal server injects a preset operating system image into the minimum disk.
6. The RAID configuration method of bare metal servers of claim 5, further comprising:
and responding to the uploading of the operating system image, setting a boot option of the bare metal server based on the deployment system, analyzing a working device from the boot option, booting the bare metal server to start in the working device, and loading the operating system image.
7. The RAID configuration method of a bare metal server according to claim 1, wherein said step of setting said bare metal node according to said preset operating system image activation comprises:
and responding to the operating system image to complete deployment, setting the bare metal node to be in an activated mode by the deployment system, and waiting for configuration.
8. A RAID configuration system for bare metal servers, comprising:
the deployment unit is configured to respond to receiving deployment parameters, configure the deployment parameters into a preset deployment template, obtain a deployment system based on the deployment template and select bare metal nodes, wherein the deployment parameters comprise RAID configuration related parameters;
the configuration unit is configured to run a management process of the bare metal server, take over the bare metal node through the management process, configure RAID according to the RAID configuration related parameters and format a data disk;
the mirror image unit is configured to respond to the RAID configuration completion and upload a preset operating system mirror image to the disk of the bare metal server;
and the setting unit is configured to set the bare metal node according to the preset operating system mirror image activation.
9. A computer device, comprising:
at least one processor; and a memory storing a computer program executable on the processor, wherein the processor executes the program to perform the steps of the RAID configuration method of the bare metal server according to any of claims 1 to 7.
10. A computer readable storage medium storing a computer program, wherein the computer program, when executed by a processor, performs the steps of the RAID configuration method of a bare metal server according to any of claims 1 to 7.
CN202311632420.7A 2023-11-30 2023-11-30 RAID configuration method, device, equipment and medium of bare metal server Pending CN117453240A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311632420.7A CN117453240A (en) 2023-11-30 2023-11-30 RAID configuration method, device, equipment and medium of bare metal server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311632420.7A CN117453240A (en) 2023-11-30 2023-11-30 RAID configuration method, device, equipment and medium of bare metal server

Publications (1)

Publication Number Publication Date
CN117453240A true CN117453240A (en) 2024-01-26

Family

ID=89596913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311632420.7A Pending CN117453240A (en) 2023-11-30 2023-11-30 RAID configuration method, device, equipment and medium of bare metal server

Country Status (1)

Country Link
CN (1) CN117453240A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117891472A (en) * 2024-03-11 2024-04-16 杭州吉利汽车数字科技有限公司 Bare metal mirror image deployment method, device and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117891472A (en) * 2024-03-11 2024-04-16 杭州吉利汽车数字科技有限公司 Bare metal mirror image deployment method, device and medium
CN117891472B (en) * 2024-03-11 2024-06-04 杭州吉利汽车数字科技有限公司 Bare metal mirror image deployment method, device and medium

Similar Documents

Publication Publication Date Title
US10609112B2 (en) Method, server and system for converging desktop application and web application
CN106126273B (en) A kind of method of upgrading BIOS
CN109067599B (en) Cluster deployment method and device
CN109889377B (en) Method and device for deploying VNF in NFV system based on Openstack
CN105487892A (en) Inter-cloud GIS service deploying system in Linux environment
CN117453240A (en) RAID configuration method, device, equipment and medium of bare metal server
CN112328262A (en) Deployment method, system and device of operating system and electronic equipment
US20240338191A1 (en) System adaptation method and apparatus, electronic device and storage medium
CN111966530A (en) Disaster recovery switching method and device for application system, computer equipment and storage medium
CN115514667A (en) Access service processing method, system, device, electronic equipment and storage medium
CN102567050B (en) The method and apparatus of B/S system remote deploying projects
CN109039784B (en) Node deployment method and device of OpenStack
CN112948008A (en) Ironic based physical bare computer management method
CN109495298B (en) Method and device for managing nodes in OpenStack system
CN112099902A (en) Network adapter configuration method and device of virtual machine, electronic device and storage medium
CN111797059A (en) Method for online cloud host migration across clouds, migration controller and cloud server
CN115913959A (en) Template-based equipment configuration method and device and electronic equipment
US11425203B2 (en) Commissioning a virtualized network function
CN116225617A (en) Management migration method and device for container instance, electronic equipment and storage medium
CN110489134A (en) A kind of dispositions method and system of PXE server and High-Performance Computing Cluster environment
CN108920936A (en) A kind of method and apparatus that vmware certification is realized based on Purley platform
CN112199161A (en) Cloud platform service management method and device and related components
CN113391876A (en) Remote control method and system of virtual machine and computing equipment
CN112994907B (en) Network configuration method, device, storage medium and equipment of virtual machine
CN114265628B (en) Operating system deployment method, device, electronic equipment, storage medium and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination