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 PDFInfo
- 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
Links
- 239000002184 metal Substances 0.000 title claims abstract description 229
- 238000000034 method Methods 0.000 title claims abstract description 123
- 230000008569 process Effects 0.000 claims abstract description 80
- 230000004044 response Effects 0.000 claims abstract description 28
- 230000015654 memory Effects 0.000 claims description 30
- 238000004590 computer program Methods 0.000 claims description 8
- 230000004913 activation Effects 0.000 claims description 6
- 238000002360 preparation method Methods 0.000 claims description 4
- 238000012546 transfer Methods 0.000 claims description 3
- 230000003213 activating effect Effects 0.000 claims description 2
- 238000007726 management method Methods 0.000 description 34
- 239000004020 conductor Substances 0.000 description 28
- 239000003795 chemical substances by application Substances 0.000 description 24
- 238000004140 cleaning Methods 0.000 description 9
- 230000008901 benefit Effects 0.000 description 7
- 238000009434 installation Methods 0.000 description 7
- 230000001960 triggered effect Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000007689 inspection Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 239000000243 solution Substances 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 238000002347 injection Methods 0.000 description 2
- 239000007924 injection Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000000926 separation method Methods 0.000 description 2
- 239000008186 active pharmaceutical agent Substances 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000002716 delivery method Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000005012 migration Effects 0.000 description 1
- 238000013508 migration Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring 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
本发明涉及裸金属服务器部署领域,本发明提供了一种裸金属服务器的RAID配置方法、装置、设备及介质,方法包括:响应于接收到含RAID配置相关参数的部署参数,将部署参数配置到预设的部署模板中,基于部署模板得到部署系统并选择裸金属节点;运行裸金属服务器的管理进程,通过管理进程接管裸金属节点,根据RAID配置相关参数对RAID进行配置和数据盘格式化;响应于RAID配置完成,将预设的操作系统镜像上传到裸金属服务器的磁盘中;根据预设的操作系统镜像激活设置裸金属节点。本发明通过裸金属服务器自动RAID配置,提高了部署效率、数据安全性和一致性,降低了错误风险,提高裸金属服务器部署的灵活性和数据安全性,简化了部署流程,提高了部署效率和数据安全性。
The present invention relates to the field of bare metal server deployment. The present invention provides a RAID configuration method, device, equipment and medium for a bare metal server. The method includes: in response to receiving deployment parameters containing RAID configuration related parameters, configuring the deployment parameters to In the preset deployment template, obtain the deployment system based on the deployment template and select the bare metal node; run the management process of the bare metal server, take over the bare metal node through the management process, configure the RAID and format the data disk according to the relevant RAID configuration parameters; In response to the completion of the RAID configuration, upload the preset operating system image to the disk of the bare metal server; activate and set the bare metal node according to the preset operating system image. Through the automatic RAID configuration of the bare metal server, the present invention improves the deployment efficiency, data security and consistency, reduces the risk of errors, improves the flexibility and data security of the bare metal server deployment, simplifies the deployment process, improves the deployment efficiency and Data security.
Description
技术领域Technical field
本发明涉及裸金属服务器部署的技术领域,具体涉及一种裸金属服务器的RAID配置方法、装置、设备及介质。The present invention relates to the technical field of bare metal server deployment, and specifically relates to a RAID configuration method, device, equipment and medium of a bare metal server.
背景技术Background technique
在云计算领域,虚拟机的部署方式简单高效,并且具有按需分配、弹性扩展、快速交付的优点。然而,虚拟机也存在虚拟化损耗、高延迟和低效能等问题。为了充分发挥物理机的性能、消除虚拟化损耗,并在云计算环境下管理和部署物理机,裸金属服务器技术应运而生。裸金属服务器允许在物理硬件上直接运行虚拟机,从而在提供虚拟化优势的同时,继续保留物理机的性能优势。In the field of cloud computing, the deployment method of virtual machines is simple and efficient, and has the advantages of on-demand allocation, elastic expansion, and rapid delivery. However, virtual machines also have problems such as virtualization loss, high latency, and low performance. In order to fully utilize the performance of physical machines, eliminate virtualization losses, and manage and deploy physical machines in a cloud computing environment, bare metal server technology emerged as the times require. Bare metal servers allow virtual machines to be run directly on physical hardware, thereby retaining the performance advantages of physical machines while providing the benefits of virtualization.
然而,裸金属服务器的部署和管理过程相对复杂。传统的裸金属部署方法主要分为人工交付和无人值守两种。人工交付方法包括现场布线和通过iso装机,但这些方法难以标准化交付,且需要较长的部署周期。无人值守部署通常借助于开源项目如OpenStack的Ironic组件,通过网络引导(PXE)方式实现。然而,这种方式也存在一些限制,比如镜像大小对部署成功的影响,以及用户无法调整逻辑磁盘配置等问题。However, the deployment and management process of bare metal servers is relatively complex. Traditional bare metal deployment methods are mainly divided into two types: manual delivery and unattended delivery. Manual delivery methods include on-site wiring and installation through ISO, but these methods are difficult to standardize delivery and require a long deployment cycle. Unattended deployment is usually implemented through network boot (PXE) with the help of open source projects such as OpenStack's Ironic component. However, this method also has some limitations, such as the impact of image size on deployment success and the inability of users to adjust the logical disk configuration.
特别是在裸金属服务器的部署过程中,可能会涉及到RAID配置和数据盘清理等操作。RAID(Redundant Array of Independent Disks,独立硬盘冗余阵列)配置是一种通过组合多个磁盘来提高性能和容错性的技术。然而,手动配置RAID以及数据盘的格式化可能会导致操作复杂、错误率高、部署时间长等问题。另外,裸金属服务器的数据安全问题也备受关注,因为不当的数据盘处理可能会导致上一个用户的数据泄露给下一个用户。Especially during the deployment 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 technology that improves performance and fault tolerance by combining multiple disks. However, manual RAID configuration and data disk formatting may lead to complex operations, high error rates, and long deployment time. In addition, the data security issue of bare metal servers has also attracted much attention, because improper data disk handling may cause the data of the previous user to be leaked to the next user.
发明内容Contents of the invention
基于上述问题,本发明提出了一种裸金属服务器的RAID配置方法、装置、设备及介质,旨在提高裸金属服务器部署的灵活性和数据安全性。通过自动化的方式,在裸金属部署过程中实现了RAID配置、数据盘清理和操作系统安装等步骤,从而简化了部署流程,提高了部署效率和数据安全性。Based on the above problems, the present invention proposes a RAID configuration method, device, equipment and medium for bare metal servers, aiming to improve the flexibility and data security of bare metal server deployment. Through automation, steps such as RAID configuration, data disk cleaning, and operating system installation are implemented during the bare metal deployment process, thereby simplifying the deployment process and improving deployment efficiency and data security.
基于上述目的,第一方面,本发明提供了一种裸金属服务器自动进行RAID配置方法,包括以下步骤:Based on the above purpose, in the first aspect, the present invention provides a method for automatically performing RAID configuration on a bare metal server, which includes the following steps:
响应于接收到部署参数,将部署参数配置到预设的部署模板中,基于部署模板得到部署系统并选择裸金属节点,其中部署参数包含RAID配置相关参数;In response 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 a bare metal node, where the deployment parameters include RAID configuration related parameters;
运行裸金属服务器的管理进程,通过管理进程接管裸金属节点,根据RAID配置相关参数对RAID进行配置并对数据盘格式化;Run the management process of the bare metal server, take over the bare metal node through the management process, configure the RAID and format the data disk according to the relevant RAID configuration parameters;
响应于RAID配置完成,将预设的操作系统镜像上传到裸金属服务器的磁盘中;In response to the RAID configuration being completed, upload the preset operating system image to the disk of the bare metal server;
根据预设的操作系统镜像激活设置裸金属节点。Set up bare metal nodes based on preset operating system image activation.
在一些实施例中,所述响应于接收到部署参数,将部署参数配置到预设的部署模板中,基于所述部署模板得到部署系统并选择裸金属节点的步骤包括:In some embodiments, in response to receiving the deployment parameters, configuring the deployment parameters into a preset deployment template, the step of obtaining a deployment system and selecting a bare metal node based on the deployment template includes:
定义部署模板;Define deployment template;
将部署参数填充到部署模板中并进行设置,得到部署系统;Fill the deployment parameters into the deployment template and set them to obtain the deployment system;
在部署系统中选择裸金属节点,进行调度和网络的配置,得到裸金属网络。Select bare metal nodes in the deployment system, perform scheduling and network configuration, and obtain a bare metal network.
在一些实施例中,所述运行裸金属服务器的管理进程,通过管理进程接管裸金属节点,根据RAID配置相关参数对RAID进行配置并对数据盘格式化的步骤包括:In some embodiments, the steps of running a management process of the bare metal server, taking over the bare metal node through the management process, configuring the RAID according to RAID configuration related parameters and formatting the data disk include:
将裸金属服务器从裸金属网络中启动作为客户端;Launch the bare metal server as a client from the bare metal network;
通过裸金属服务器向裸金属网络中的服务端请求ip,接收服务端分配的ip以及指定的tftp(简单文件传输协议)服务器的地址和系统启动引导文件;Request IP from the server in the bare metal network through the bare metal server, and receive the IP assigned by the server as well as the address of the specified tftp (Simple File Transfer Protocol) server and the system startup boot file;
裸金属服务器获取ip并执行引导文件,根据系统启动引导文件的设置下载kernel和ramdisk;The bare metal server obtains the IP and executes the boot file, and downloads the kernel and ramdisk according to the settings of the system startup boot file;
依次启动kernel和ramdisk,运行裸金属服务器的管理进程;Start the kernel and ramdisk in sequence and run the management process of the bare metal server;
裸金属服务器的管理进程从ironic-conductor(裸金属控制服务)中获取它对应的裸金属节点;The management process of the bare metal server obtains its corresponding bare metal node from ironic-conductor (bare metal control service);
裸金属服务器的管理进程通过心跳协议与ironic-conductor通信,产生RAID配置命令;The management process of the bare metal server communicates with ironic-conductor through the heartbeat protocol to generate RAID configuration commands;
裸金属服务器的管理进程根据RAID配置命令和RAID配置相关参数进行RAID配置;The management process of the bare metal server performs RAID configuration based on RAID configuration commands and RAID configuration related parameters;
裸金属服务器的管理进程根据格式化命令进行数据盘的格式化。The management process of the bare metal server formats the data disk according to the format command.
在一些实施例中,所述裸金属服务器的管理进程通过心跳协议与ironic-conductor通信,产生RAID配置命令的步骤包括:In some embodiments, the management process of the bare metal server communicates with the ironic-conductor through a heartbeat protocol. The step of generating a RAID configuration command includes:
响应于ironic-conductor接收到第一心跳协议消息,触发ironic-conductor下发RAID配置命令到裸金属服务器的管理进程;In response to ironic-conductor receiving the first heartbeat protocol message, ironic-conductor is triggered to issue the RAID configuration command to the management process of the bare metal server;
响应于ironic-conductor接收到第二心跳协议消息,触发ironic-conductor下发prepare_image(镜像准备操作服务)到裸金属服务器的管理进程;In response to ironic-conductor receiving the second heartbeat protocol message, ironic-conductor is triggered to deliver prepare_image (image preparation operation service) to the management process of the bare metal server;
响应于ironic-conductor接收到第三心跳协议消息,触发ironic-conductor查询裸金属服务器的管理进程上的command status(运行状态)。In response to ironic-conductor receiving the third heartbeat protocol message, ironic-conductor is triggered to query the command status (running status) on the management process of the bare metal server.
在一些实施例中,所述响应于RAID配置完成,将预设的操作系统镜像上传到裸金属服务器的磁盘中的步骤包括:In some embodiments, the step of uploading the preset operating system image to the disk of the bare metal server in response to the completion of the RAID configuration includes:
响应于RAID配置完成,在裸金属服务器中获取新的逻辑磁盘配置,根据新的逻辑磁盘配置提取最小磁盘;In response to the RAID configuration being completed, obtain the new logical disk configuration in the bare metal server and extract the minimum disk according to the new logical disk configuration;
裸金属服务器的管理进程将预设的操作系统镜像注入至最小磁盘中。The management process of the bare metal server injects the preset operating system image into the minimum disk.
在一些实施例中,方法还包括:响应于操作系统镜像上传,基于部署系统设置裸金属服务器的引导选项,从引导选项中解析出工作设备,引导裸金属服务器在工作设备中启动,并加载操作系统镜像。In some embodiments, the method further includes: in response to the operating system image upload, setting a boot option of the bare metal server based on the deployment system, parsing the working device from the boot option, booting the bare metal server in the working device, and loading the operation System image.
在一些实施例中,所述根据预设的操作系统镜像激活设置裸金属节点的步骤包括:In some embodiments, the step of setting up a bare metal node according to a preset operating system image activation includes:
响应于操作系统镜像完成部署,通过部署系统将裸金属节点设置为激活模式,等待配置。In response to the operating system image being deployed, the bare metal node is set to active mode via the deployment system and awaits configuration.
本发明提出了一种裸金属服务器的RAID配置系统,包括:The present invention proposes a RAID configuration system for bare metal servers, including:
部署单元,配置为响应于接收到部署参数,将部署参数配置到预设的部署模板中,基于所述部署模板得到部署系统并选择裸金属节点,其中所述部署参数包含RAID配置相关参数;A deployment unit 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 a bare metal node, wherein the deployment parameters include RAID configuration related parameters;
配置单元,配置为运行裸金属服务器的管理进程,通过管理进程接管裸金属节点,根据RAID配置相关参数对RAID进行配置并对数据盘格式化;The configuration unit is configured to run the management process of the bare metal server, take over the bare metal node through the management process, configure the RAID and format the data disk according to the relevant RAID configuration parameters;
镜像单元,配置为响应于RAID配置完成,将预设的操作系统镜像上传到裸金属服务器的磁盘中;a mirror unit configured to upload a preset operating system image to the disk of the bare metal server in response to completion of the RAID configuration;
设置单元,配置为根据预设的操作系统镜像激活设置裸金属节点。A setup unit configured to activate a bare metal node based on a preset operating system image.
本发明提出了一种计算机设备,包括:The invention proposes a computer device, including:
至少一个处理器;以及存储器,所述存储器存储有可在所述处理器上运行的计算机程序,所述处理器执行所述程序时执行所述裸金属服务器的RAID配置方法的步骤。At least one processor; and a memory, the memory stores a computer program that can be run on the processor, and when the processor executes the program, it performs the steps of the RAID configuration method of the bare metal server.
本发明提出了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时执行所述裸金属服务器的RAID配置方法的步骤。The present invention proposes a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the steps of the RAID configuration method of the bare metal server are executed.
与现有技术相比较而言,本发明提出的一种裸金属服务器的RAID配置方法、装置、设备及介质,具有以下有益效果:Compared with the existing technology, the RAID configuration method, device, equipment and medium of a bare metal server proposed by the present invention have the following beneficial effects:
1.自动化部署流程:本发明通过使用ironic-python-agent自动进行RAID配置和数据盘清理,极大地简化了裸金属服务器的部署流程。相比于传统的手动配置和安装方法,自动化流程可以显著减少部署时间和人为错误。1. Automated deployment process: The present invention greatly simplifies the deployment process of bare metal servers by using ironic-python-agent to automatically perform RAID configuration and data disk cleaning. Automated processes can significantly reduce deployment time and human error compared to traditional manual configuration and installation methods.
2.灵活的RAID配置:本发明允许用户在部署参数中指定RAID配置相关参数,如RAID级别、磁盘类型和数量等。这为用户提供了更大的灵活性,根据实际需求进行RAID设置,从而满足不同的性能和容错需求。2. Flexible RAID configuration: The present invention allows users to specify RAID configuration-related parameters in deployment parameters, such as RAID level, disk type and quantity, etc. This provides users with greater flexibility to configure RAID settings based on actual needs to meet different performance and fault tolerance needs.
3.数据安全性增强:自动进行RAID配置和数据盘清理可以有效地清除上一个用户的数据,从而提高了数据安全性。以往的数据不会残留在数据盘上,避免了数据泄露的风险。3. Enhanced data security: Automatic RAID configuration and data disk cleaning can effectively clear the previous user's data, thereby improving data security. Past data will not remain on the data disk, avoiding the risk of data leakage.
4.操作系统正确部署:通过ironic-python-agent引导操作系统安装,确保操作系统正确地部署在RAID配置之上。这消除了手动操作中出现的配置错误和不兼容性问题,提高了操作系统部署的稳定性和准确性。4. Correct deployment of the operating system: Guide the operating system installation through ironic-python-agent to ensure that the operating system is correctly deployed on the RAID configuration. This eliminates configuration errors and incompatibility issues that arise during manual operations, improving the stability and accuracy of operating system deployments.
5.部署效率提升:自动RAID配置和数据盘清理,以及操作系统镜像的自动注入,都有助于提高部署效率。用户无需手动干预繁琐的配置步骤,节省了时间和资源。5. Improved deployment efficiency: Automatic RAID configuration and data disk cleaning, as well as automatic injection of operating system images, all help improve deployment efficiency. Users do not need to manually intervene in tedious configuration steps, saving time and resources.
6.统一部署标准:通过使用统一的部署模板和参数,本发明能够确保每个裸金属服务器的部署过程都遵循相同的标准。这有助于提高部署的一致性和可管理性;本发明通过自动化流程,将部署过程的复杂性降至最低。用户不需要深入了解底层配置细节,也能够完成高效的部署。6. Unified deployment standards: By using unified deployment templates and parameters, the present invention can ensure that the deployment process of each bare metal server follows the same standards. This helps to improve the consistency and manageability of deployment; the present invention minimizes the complexity of the deployment process through automated processes. Users do not need to understand the underlying configuration details in depth to complete efficient deployment.
综上所述,本发明的裸金属服务器的RAID配置方法及、装置、设备及介质通过自动化流程,提高了部署效率、数据安全性和操作系统的正确部署,减少了部署复杂性和人为错误的风险,为裸金属服务器的部署带来了多方面的有益效果。In summary, the RAID configuration method, device, equipment and media of the bare metal server of the present invention improve deployment efficiency, data security and correct deployment of the operating system through automated processes, and reduce deployment complexity and human error. Risks have brought many beneficial effects to the deployment of bare metal servers.
本申请的这些方面或其他方面在以下实施例的描述中会更加简明易懂。应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。These and other aspects of the application will be more clearly understood in the following description of the embodiments. It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and do not limit the present application.
附图说明Description of the drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的实施例。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other embodiments can be obtained based on these drawings without exerting creative efforts.
在图中:In the picture:
图1为本发明实施例的一种裸金属服务器的RAID配置方法的流程图;Figure 1 is a flow chart of a RAID configuration method for a bare metal server according to an embodiment of the present invention;
图2为本发明实施例的一种裸金属服务器的RAID配置装置的系统框图;Figure 2 is a system block diagram of a RAID configuration device for a bare metal server according to an embodiment of the present invention;
图3为本发明实施例的一种裸金属服务器的RAID配置方法的现有技术裸金属部署流程图;Figure 3 is a flow chart of a conventional bare metal deployment of a RAID configuration method for a bare metal server according to an embodiment of the present invention;
图4为本发明实施例的一种裸金属服务器的RAID配置方法的裸金属部署流程图;Figure 4 is a bare metal deployment flow chart of a RAID configuration method for a bare metal server according to an embodiment of the present invention;
图5为本发明提供的计算机设备的一实施例的结构示意图;Figure 5 is a schematic structural diagram of an embodiment of the computer equipment provided by the present invention;
图6为本发明提供的计算机可读存储介质的一实施例的结构示意图。FIG. 6 is a schematic structural diagram of an embodiment of a computer-readable storage medium provided by the present invention.
具体实施方式Detailed ways
下面,结合附图以及具体实施方式,对本申请做进一步描述,需要说明的是,在不相冲突的前提下,以下描述的各实施例之间或各技术特征之间可以任意组合形成新的实施例。Below, the present application will be further described with reference to the accompanying drawings and specific embodiments. It should be noted that, on the premise that there is no conflict, the embodiments or technical features described below can be arbitrarily combined to form new embodiments. .
为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明实施例进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to specific embodiments and the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application.
需要说明的是,本发明实施例中所有使用“第一”和“第二”的表述均是为了区分两个相同名称的非相同的实体或者非相同的参量,可见“第一”“第二”仅为了表述的方便,不应理解为对本发明实施例的限定。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、装置、产品或设备固有的其他步骤或单元。It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are to distinguish two non-identical entities or non-identical parameters with the same name. It can be seen that "first" and "second" ” is only for convenience of expression and should not be understood as limiting the embodiments of the present invention. Furthermore, the terms "include" and "having" and any variations thereof are intended to cover the non-exclusive inclusion of, for example, other steps or units inherent in a process, method, apparatus, product or equipment that encompasses a series of steps or units.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all contents and operations/steps, nor are they necessarily performed in the order described. For example, some operations/steps can also be decomposed, combined or partially merged, so the actual order of execution may change according to actual conditions.
下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The following embodiments and features in the embodiments may be combined with each other without conflict.
本发明提出了一种裸金属服务器的RAID配置方法,请参阅图1、图3和图4,包括以下步骤:The present invention proposes a RAID configuration method for bare metal servers. Please refer to Figure 1, Figure 3 and Figure 4, which includes the following steps:
S1:响应于接收到部署参数,将部署参数配置到预设的部署模板中,基于所述部署模板得到部署系统并选择裸金属节点,其中部署参数包含RAID配置相关参数;S1: In response to receiving the deployment parameters, configure the deployment parameters into the preset deployment template, obtain the deployment system based on the deployment template and select the bare metal node, where the deployment parameters include RAID configuration related parameters;
S2:运行裸金属服务器的管理进程,通过管理进程接管裸金属节点,根据RAID配置相关参数对RAID进行配置并对数据盘格式化;S2: Run the management process of the bare metal server, take over the bare metal node through the management process, configure the RAID and format the data disk according to the relevant RAID configuration parameters;
S3:响应于RAID配置完成,将预设的操作系统镜像上传到裸金属服务器的磁盘中;S3: In response to the RAID configuration being completed, upload the preset operating system image to the disk of the bare metal server;
S4:根据预设的操作系统镜像激活设置裸金属节点。S4: Set up bare metal nodes based on preset operating system image activation.
本发明的实现过程为设定部署模板、传入部署参数、进入裸金属阶段randisk、裸金属服务器的管理进程(ironic-python-agent)接管裸金属节点、RAID配置和数据盘格式化、注入镜像数据、引导操作系统以及激活裸金属节点。本发明针对由于裸金属逻辑磁盘分配不合理导致裸金属服务器部署失败和裸金属数据盘数据残留的问题,实现裸金属服务器自动进行raid配置并进行数据盘清理的部署装,提高裸金属服务器部署灵活性和数据安全。The implementation process of the present invention is to set the deployment template, input the deployment parameters, enter the bare metal stage randisk, the management process (ironic-python-agent) of the bare metal server takes over the bare metal node, RAID configuration and data disk formatting, and inject the image data, boot the operating system, and activate bare metal nodes. The invention aims at the problems of bare metal server deployment failure and bare metal data disk data remaining due to unreasonable allocation of bare metal logical disks, and realizes the deployment installation of bare metal servers automatically performing raid configuration and cleaning data disks, thereby improving the flexibility of bare metal server deployment. sex and data security.
在一些实施例中,请参阅图1,所述响应于接收到部署参数,将部署参数配置到预设的部署模板中,基于所述部署模板得到部署系统并选择裸金属节点的步骤包括:In some embodiments, please refer to Figure 1. In response to receiving the deployment parameters, configuring the deployment parameters into a preset deployment template, the step of obtaining a deployment system and selecting a bare metal node based on the deployment template includes:
定义部署模板;Define deployment template;
将部署参数填充到部署模板中,进行设置,得到部署系统;Fill the deployment parameters into the deployment template, set them, and get the deployment system;
在部署系统中选择裸金属节点,进行调度和网络的配置,得到裸金属网络。Select bare metal nodes in the deployment system, perform scheduling and network configuration, and obtain a bare metal network.
在裸金属服务器部署过程中,首先需要定义一个部署模板,包括服务器硬件配置、网络设置、操作系统镜像等信息。该模板将被用于后续的部署操作。During the bare metal server deployment process, you first need to define a deployment template, including server hardware configuration, network settings, operating system image and other information. This template will be used for subsequent deployment operations.
为了个性化地配置每台裸金属服务器,需要传入特定的部署参数,例如服务器的主机名、IP地址、网络配置、RAID配置等。这些参数将根据部署模板进行设置。In order to personally configure each bare metal server, specific deployment parameters need to be passed in, such as the server's host name, IP address, network configuration, RAID configuration, etc. These parameters will be set according to the deployment template.
用户通过CMP选择部署模板,设置部署参数,部署参数包括实例名,网络,用户密码,RAID配置等信息。Users select a deployment template through CMP and set deployment parameters. Deployment parameters include instance name, network, user password, RAID configuration and other information.
Nova模块完成调度和网络配置。根据部署模板选择合适的裸金属节点,并通过neutron模块配置裸金属网络信息。The Nova module completes scheduling and network configuration. Select the appropriate bare metal node according to the deployment template, and configure the bare metal network information through the neutron module.
在一些实施例中,请参阅图1,所述运行裸金属服务器的管理进程,通过管理进程接管裸金属节点,根据RAID配置相关参数对RAID进行配置并对数据盘格式化的步骤包括:In some embodiments, please refer to Figure 1. The steps of running a management process of a bare metal server, taking over the bare metal node through the management process, configuring RAID according to RAID configuration parameters and formatting the data disk include:
将裸金属服务器从裸金属网络中启动作为客户端;Launch the bare metal server as a client from the bare metal network;
通过裸金属服务器向裸金属网络中的服务端请求ip,接收服务端分配的ip以及指定的tftp(简单文件传输协议)服务器的地址和系统启动引导文件;Request IP from the server in the bare metal network through the bare metal server, and receive the IP assigned by the server as well as the address of the specified tftp (Simple File Transfer Protocol) server and the system startup boot file;
裸金属服务器获取ip并执行系统启动引导文件,根据系统启动引导文件的设置下载kernel和ramdisk;The bare metal server obtains the IP and executes the system startup boot file, and downloads the kernel and ramdisk according to the settings of the system startup boot file;
依次启动kernel和ramdisk,运行裸金属服务器的管理进程;Start the kernel and ramdisk in sequence and run the management process of the bare metal server;
裸金属服务器的管理进程从ironic-conductor(裸金属控制服务)中获取它对应的裸金属节点;The management process of the bare metal server obtains its corresponding bare metal node from ironic-conductor (bare metal control service);
裸金属服务器的管理进程通过心跳协议与ironic-conductor通信,产生RAID配置命令;The management process of the bare metal server communicates with ironic-conductor through the heartbeat protocol to generate RAID configuration commands;
裸金属服务器的管理进程根据RAID配置命令和RAID配置相关参数进行RAID配置;The management process of the bare metal server performs RAID configuration based on RAID configuration commands and RAID configuration related parameters;
裸金属服务器的管理进程根据格式化命令进行数据盘的格式化。The management process of the bare metal server formats the data disk according to the format command.
调度和网络配置完成后,nova调研ironic模块开始进行裸金属部署。通过ipxe运行部署系统。裸金属从网络启动后,网卡中的dhcp客户端向dhcp服务端请求ip,服务端分配ip的同时,指定tftp服务器的地址和系统启动引导文件,裸金属获取ip后根据指引下载启动引导文件并执行,根据引导文件中的设置从tftp服务器上下载kernel和ramdisk,下载完成后kernel和ramdisk依次启动,待启动成功后,init进程拉起ironic-python-agent进程。IPA通过lookup从Ironic Conductor取得它对应的ironic_node_uuid。IPA通过Heartbeat与Ironic通信,驱动部署流程触发ironic-conductor发送RAID配置命令到IPA,让IPA进行RAID配置。After scheduling and network configuration are completed, the nova research ironic module begins bare metal deployment. Run the deployment system through ipxe. After the bare metal starts from the network, the dhcp client in the network card requests the dhcp server for an IP. When the server allocates the IP, it also specifies the address of the tftp server and the system startup boot file. After the bare metal obtains the IP, it downloads the startup boot file according to the instructions and Execute, download the kernel and ramdisk from the tftp server according to the settings in the boot file. After the download is completed, the kernel and ramdisk are started in sequence. After the startup is successful, the init process starts the ironic-python-agent process. IPA obtains its corresponding ironic_node_uuid from Ironic Conductor through lookup. IPA communicates with Ironic through Heartbeat, and the driver deployment process triggers ironic-conductor to send RAID configuration commands to IPA, allowing IPA to perform RAID configuration.
进入裸金属阶段randisk。裸金属服务器通过pxe运行部署系统,并拉起ironic-python-agent进程。Entering the bare metal stage randisk. The bare metal server runs the deployment system through pxe and starts the ironic-python-agent process.
ironic-python-agent接管裸金属节点。"ironic-python-agent"是一个用于管理裸金属服务器的代理程序。在此步骤中,该代理程序将接管裸金属节点,负责执行后续的操作,如RAID配置、数据盘格式化、镜像注入等。ironic-python-agent takes over bare metal nodes. "ironic-python-agent" is an agent for managing bare metal servers. In this step, the agent will take over the bare metal node and be responsible for performing subsequent operations, such as RAID configuration, data disk formatting, image injection, etc.
在RAID配置和数据盘格式化阶段,ironic-python-agent接收conductor请求进行硬件RAID配置(如磁盘冗余)以及数据盘的格式化。这些操作将确保服务器的数据存储和冗余性满足要求。In the RAID configuration and data disk formatting stage, ironic-python-agent receives conductor requests for hardware RAID configuration (such as disk redundancy) and data disk formatting. These actions will ensure that the server's data storage and redundancy meet requirements.
能够根据用户要求灵活设置RAID配置。完成数据盘清理避免数据泄露。RAID configuration can be flexibly set according to user requirements. Complete data disk cleaning to avoid data leakage.
在一些实施例中,请参阅图1,所述裸金属服务器的管理进程通过心跳协议与ironic-conductor通信,产生RAID配置命令的步骤包括:In some embodiments, please refer to Figure 1. The management process of the bare metal server communicates with the ironic-conductor through the heartbeat protocol. The steps of generating a RAID configuration command include:
响应于ironic-conductor接收到第一心跳协议消息,触发ironic-conductor下发RAID配置命令到裸金属服务器的管理进程;In response to ironic-conductor receiving the first heartbeat protocol message, ironic-conductor is triggered to issue the RAID configuration command to the management process of the bare metal server;
响应于ironic-conductor接收到第二心跳协议消息,触发ironic-conductor下发prepare_image(镜像准备操作服务)到裸金属服务器的管理进程;In response to ironic-conductor receiving the second heartbeat protocol message, ironic-conductor is triggered to deliver prepare_image (image preparation operation service) to the management process of the bare metal server;
响应于ironic-conductor接收到第三心跳协议消息,触发ironic-conductor查询裸金属服务器的管理进程上的command status(运行状态)。In response to ironic-conductor receiving the third heartbeat protocol message, ironic-conductor is triggered to query the command status (running status) on the management process of the bare metal server.
ironic-conductor收到Heartbeat消息后(从ironic-api过来的RPC消息),根据当前状态的不同有相应的处理。第一个Heartbeat消息会触发ironic-conductor下发RAID配置到IPA,以后的Heartbeat消息会触发prepare_image到IPA,再后的Heartbeat消息会触发ironic-conductor查询IPA上的command status,它的目的是要监控prepare_image等command是否还在运行中。一旦command status显示命令结束。就会继续下一步部署操作,包括设置物理服务器从磁盘启动、关机、切换网络、开机。直到部署流程结束。After ironic-conductor receives the Heartbeat message (RPC message from ironic-api), it will handle it accordingly according to the current status. The first Heartbeat message will trigger ironic-conductor to deliver the RAID configuration to IPA. Subsequent Heartbeat messages will trigger prepare_image to IPA. The subsequent Heartbeat message will trigger ironic-conductor to query the command status on IPA. Its purpose is to monitor Whether commands such as prepare_image are still running. Once command status shows the command is finished. The next step of the deployment operation will continue, including setting the physical server to boot from disk, shutting down, switching networks, and powering on. until the deployment process is complete.
在一些实施例中,请参阅图1,所述响应于RAID配置完成,将预设的操作系统镜像上传到裸金属服务器的磁盘中的步骤包括:In some embodiments, please refer to Figure 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:
响应于RAID配置完成,在裸金属服务器中获取新的逻辑磁盘配置,根据新的逻辑磁盘配置提取最小磁盘;In response to the RAID configuration being completed, obtain the new logical disk configuration in the bare metal server and extract the minimum disk according to the new logical disk configuration;
裸金属服务器的管理进程将预设的操作系统镜像注入至最小磁盘中。The management process of the bare metal server injects the preset operating system image into the minimum disk.
在裸金属服务器上安装操作系统之前,需要将操作系统镜像数据注入到服务器的存储设备中。这包括将镜像写入到磁盘或进行网络传输。Before installing an operating system on a bare metal server, the operating system image data needs to be injected into the server's storage device. This includes writing the image to disk or transferring it over the network.
在一些实施例中,请参阅图1,方法还包括:响应于操作系统镜像上传,基于部署系统设置裸金属服务器的引导选项,从引导选项中解析出工作设备,引导裸金属服务器在工作设备中启动,并加载操作系统镜像。实现了裸金属服务器通过云平台灵活安全的部署。In some embodiments, please refer to Figure 1. The method further includes: in response to the operating system image upload, setting a boot option of the bare metal server based on the deployment system, parsing the working device from the boot option, and booting the bare metal server in the working device. Start and load the operating system image. Realizes the flexible and secure deployment of bare metal servers through the cloud platform.
在一些实施例中,请参阅图1,所述根据预设的操作系统镜像激活设置裸金属节点的步骤包括:In some embodiments, referring to Figure 1, the step of setting up a bare metal node according to a preset operating system image activation includes:
响应于操作系统镜像完成部署,通过部署系统将裸金属节点设置为激活模式,等待配置。In response to the operating system image being deployed, the bare metal node is set to active mode via the deployment system and awaits configuration.
裸金属服务器的配置和准备工作已完成,可以激活裸金属节点设置其状态为active,使其成为可用的服务器资源,可以进行进一步的配置和使用。The configuration and preparation of the bare metal server has been completed. You can activate the bare metal node and set its status to active, making it an available server resource that can be further configured and used.
本发明提出了一种裸金属服务器的RAID配置系统,请参阅图2,包括:The present invention proposes a RAID configuration system for bare metal servers, please refer to Figure 2, including:
部署单元100,配置为响应于接收到部署参数,将部署参数配置到预设的部署模板中,基于所述部署模板得到部署系统并选择裸金属节点,其中所述部署参数包含RAID配置相关参数;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 a bare metal node, wherein the deployment parameters include RAID configuration related parameters;
配置单元200,配置为运行裸金属服务器的管理进程,通过管理进程接管裸金属节点,根据RAID配置相关参数对RAID进行配置并对数据盘格式化;The configuration unit 200 is configured to run the management process of the bare metal server, take over the bare metal node through the management process, configure the RAID and format the data disk according to the RAID configuration related parameters;
镜像单元300,配置为响应于RAID配置完成,将预设的操作系统镜像上传到裸金属服务器的磁盘中;The mirror unit 300 is configured to upload the preset operating system image to the disk of the bare metal server in response to the completion of the RAID configuration;
设置单元400,配置为根据预设的操作系统镜像激活设置裸金属节点。The setting unit 400 is configured to activate and set the bare metal node according to a preset operating system image.
根据一些实施例,在一种裸金属服务器的RAID配置系统中进行自动配置的具体步骤如下:According to some embodiments, the specific steps for automatic configuration in a RAID configuration system of a bare metal server are as follows:
在裸金属部署时在传入的部署参数中增加RAID配置相关参数;When deploying bare metal, add RAID configuration-related parameters to the incoming deployment parameters;
在ironic-python-agent接管裸金属节点后ironic-conductor首先下发RAID配置请求对裸金属磁盘进行RAID配置和数据盘格式化;After ironic-python-agent takes over the bare metal node, ironic-conductor first issues a RAID configuration request to perform RAID configuration and data disk formatting on the bare metal disk;
RAID配置结束后ironic-python-agent再根据新的逻辑磁盘配置选择最小磁盘注入镜像数据进行操作系统安装并完成裸金属部署。After the RAID configuration is completed, ironic-python-agent selects the smallest disk to inject image data based on the new logical disk configuration to install the operating system and complete bare metal deployment.
在本实施例中,RAID配置相关参数至少包括RAID级别、磁盘类型和磁盘数量;所述的方法还包括在操作系统安装完成后,自动激活裸金属节点,使其成为可用的计算资源;新的逻辑磁盘配置基于RAID配置后的磁盘布局进行选择;操作系统镜像数据通过ironic-python-agent自动注入至裸金属服务器;RAID配置请求是通过ironic-conductor下发至ironic-python-agent的命令;操作系统安装是基于ironic-python-agent引导的;所述RAID配置还包括对数据盘的格式化方式的指定。In this embodiment, the RAID configuration related parameters at least include RAID level, disk type and disk quantity; the method also includes automatically activating the bare metal node after the operating system is installed to make it an available computing resource; new The logical disk configuration is selected based on the disk layout after RAID configuration; the operating system image data is automatically injected into the bare metal server through ironic-python-agent; the RAID configuration request is a command sent to ironic-python-agent through ironic-conductor; operation The system installation is guided based on ironic-python-agent; the RAID configuration also includes specifying the formatting method of the data disk.
基于同一发明构思,根据本发明的另一个方面,如图3所示,本发明的实施例还提供了一种计算机设备30,在该计算机设备30中包括处理器310以及存储器320,存储器320存储有可在处理器上运行的计算机程序321,处理器310执行程序时执行如上的方法的步骤。Based on the same inventive concept, according to another aspect of the present invention, as shown in Figure 3, an embodiment of the present invention also provides a computer device 30. The computer device 30 includes a processor 310 and a memory 320. The memory 320 stores There is a computer program 321 that can be run on the processor. When the processor 310 executes the program, it performs the steps of the above method.
基于同一发明构思,根据本发明的另一个方面,如图4所示,本发明的实施例还提供了一种计算机可读存储介质40,计算机可读存储介质40存储有被处理器执行时执行如上方法的计算机程序410。Based on the same inventive concept, according to another aspect of the present invention, as shown in Figure 4, an embodiment of the present invention also provides a computer-readable storage medium 40. The computer-readable storage medium 40 stores information that is executed when executed by the processor. Computer program 410 for the above method.
综上所述,本发明的裸金属服务器的RAID配置方法通过基于ironic-python-agent的自动化流程,实现了裸金属服务器的RAID配置、数据盘清理和操作系统部署。用户可在部署参数中指定RAID配置,ironic-python-agent接管节点,ironic-conductor下发RAID配置请求,自动进行RAID设置和数据盘格式化。新的逻辑磁盘配置确定最小磁盘容量,并将操作系统镜像数据自动注入,随后引导操作系统安装。部署完成后,裸金属节点自动激活,成为可用计算资源。此方法不仅提高了部署效率和数据安全性,还减少了错误风险,为裸金属服务器的自动化部署带来了显著优势。To sum up, the RAID configuration method of the bare metal server of the present invention realizes the RAID configuration, data disk cleaning and operating system deployment of the bare metal server through the automated process based on ironic-python-agent. Users can specify the RAID configuration in the deployment parameters, ironic-python-agent takes over the node, ironic-conductor issues a RAID configuration request, and automatically performs RAID settings and data disk formatting. The new logical disk configuration determines the minimum disk capacity and automatically injects the operating system image data, followed by booting the operating system installation. After the deployment is completed, the bare metal nodes are automatically activated and become available computing resources. This approach not only improves deployment efficiency and data security, but also reduces the risk of errors, bringing significant advantages to automated deployment of bare metal servers.
此外,对上述公开中涉及的术语结束如下:In addition, the terminology involved in the above disclosure is concluded as follows:
OVN:Open Virtual Network开源社区项目。OVN: Open Virtual Network open source community project.
Openstack:云计算开源基础设施项目Openstack: Cloud computing open source infrastructure project
裸金属服务器(BareMetal):一般用来表明还没有安装操作系统的物理服务器,可简称为裸金属。Bare metal server (BareMetal): Generally used to indicate a physical server that has not yet installed an operating system, and can be referred to as bare metal.
Ironic:OpenStack中的裸金属服务,主要是用来管理部署裸金属。Ironic: The bare metal service in OpenStack is mainly used to manage and deploy bare metal.
OVERLAY:Overlay网络是建立在已有物理网络上的虚拟网络,具有独立的控制和转发平面,对于连接到Overlay的终端设备(例如服务器)来说,物理网络是透明的,从而可以实现承载网络和业务网络的分离。OVERLAY: An Overlay network is a virtual network built on an existing physical network. It has independent control and forwarding planes. For terminal devices (such as servers) connected to the Overlay, the physical network is transparent, thus enabling the implementation of bearer networks and Separation of business networks.
智能网卡:文档中出现的智能网卡以Mellanox推出的bluefield2智能网卡为例Smart network card: The smart network card that appears in the document takes the bluefield2 smart network card launched by Mellanox as an example.
Sdn:Overlay网络是建立在已有物理网络上的虚拟网络,具有独立的控制和转发平面,对于连接到Overlay的终端设备(例如服务器)来说,物理网络是透明的,从而可以实现承载网络和业务网络的分离。Sdn: Overlay network is a virtual network built on an existing physical network. It has independent control and forwarding planes. The physical network is transparent to terminal devices (such as servers) connected to the Overlay, so that the bearer network and Separation of business networks.
Pf0hpf:将智能网卡插到裸金属节点上之后,该网卡会在裸金属的系统上生成PF0口,同样在智能网卡的arm操作系统中也会有一个口与在裸金属系统的PF0相对应,这个口就是pf0hpfPf0hpf: After inserting the smart network card into the bare metal node, the network card will generate a PF0 port on the bare metal system. Similarly, in the arm operating system of the smart network card, there will also be a port corresponding to the PF0 in the bare metal system. This mouth is pf0hpf
Neutron:Openstack云计算开源项目的网络组件Neutron: the network component of the Openstack cloud computing open source project
检查网络:部署网络是ironic中的概念,通过检查网络裸金属可以实现裸金属检查流程。具体表现为裸金属重新pxe启动,dhcp到ip地址以及tftp server地址。进而去获取部署镜像的内存文件系统,通过获取到的内存文件系统上电之后,会采集当前裸金属的硬件信息并上报。Check the network: Deployment network is a concept in ironic, and the bare metal inspection process can be realized by checking the network bare metal. The specific performance is bare metal restarting pxe, dhcp to ip address and tftp server address. Then obtain the memory file system of the deployed image. After the obtained memory file system is powered on, the current bare metal hardware information will be collected and reported.
Dnsmasq:DNSmasq是一个小巧且方便地用于配置DNS和DHCP的工具,适用于小型网络,它提供了DNS功能和可选择的DHCP功能。Dnsmasq: DNSmasq is a small and convenient tool for configuring DNS and DHCP. It is suitable for small networks. It provides DNS functionality and optional DHCP functionality.
IPA:全称ironic-python-agent,是一个用python写的service,暴露出REST API给conductor。实际控制裸金属的agent,它会实际运行在裸金属之上接受ironic的指令以带内方式操作裸金属。用在裸金属检查、配置、清除和部署镜像流程当中,在不同的流程有着不同的作用。在本案中,用来裸金属的部署流程中,主要用来进行RAID配置和裸金属部署。Ironic-Python-Agent可以在deploy模块直接访问硬件,提供以下功能:IPA: The full name is ironic-python-agent. It is a service written in python and exposes REST API to conductor. The agent that actually controls the bare metal will actually run on the bare metal and accept instructions from ironic to operate the bare metal in-band. It is used in bare metal inspection, configuration, cleaning and deployment image processes, and has different functions in different processes. In this case, the bare metal deployment process is mainly used for RAID configuration and bare metal deployment. Ironic-Python-Agent can directly access the hardware in the deploy module and provide the following functions:
磁盘格式化,磁盘分区,安装OS(Bootloaders,OS),固件升级,raid配置。Disk formatting, disk partitioning, installing OS (Bootloaders, OS), firmware upgrade, raid configuration.
ramdisk:ironic-python-agent的运行环境,没有安装操作系统的裸金属通过特定的引导将ramdisk运行在内存之中为agent提供执行环境。他不是ironic中的一个项目,可以通过diskimage-builder生成。ramdisk: The operating environment of ironic-python-agent. Bare metal without an operating system runs the ramdisk in the memory through a specific boot to provide an execution environment for the agent. It is not a project in ironic and can be generated through diskimage-builder.
inspur-inspect-agent:浪潮自研运行在智能网卡arm系统上的agent组件,主要用来打通检查网络。inspur-inspect-agent: Inspur’s self-developed agent component runs on the smart network card arm system and is mainly used to open up the inspection network.
需要注意的是,上述附图仅是根据本发明示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。It should be noted that the above-mentioned drawings are only schematic illustrations of processes included in methods according to exemplary embodiments of the present invention, and are not intended to be limiting. It is readily understood that the processes shown in the above figures do not indicate or limit the temporal sequence of these processes. In addition, it is also easy to understand that these processes may be executed synchronously or asynchronously in multiple modules, for example.
应该理解的是,上述虽然是按照某一顺序描述的,但是这些步骤并不是必然按照上述顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,本实施例的一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the above is described in a certain order, these steps are not necessarily performed in the order described above. Unless explicitly stated in this article, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, some steps of this embodiment may include multiple steps or stages. These steps or stages are not necessarily executed at the same time, but may be executed at different times. The order of execution of these steps or stages does not necessarily change. It must be performed sequentially, but may be performed in turn or alternately with other steps or at least part of steps or stages in other steps.
请参阅图5,在该计算机设备中包括一个处理器以及一个存储器,并还可以包括:输入装置和输出装置。处理器、存储器、输入装置和输出装置可以通过总线或者其他方式连接,输入装置可接收输入的数字或字符信息,以及产生与裸金属服务器自动进行RAID配置迁移有关的信号输入。输出装置可包括显示屏等显示设备。Referring to Figure 5, the computer device includes a processor and a memory, and may also include: input devices and output devices. The processor, memory, input device and output device can be connected through a bus or other means. The input device can receive input numeric or character information and generate signal input related to the automatic RAID configuration migration of the bare metal server. The output device may include a display device such as a display screen.
请参阅图6,存储器作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的裸金属服务器自动进行RAID配置方法对应的程序指令/模块。存储器可以包括存储程序区和存储数据区,其中,存储程序区可存储操作装置、至少一个功能所需要的应用程序;存储数据区可存储裸金属服务器自动进行RAID配置方法的使用所创建的数据等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器可选包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至本地模块。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。Please refer to Figure 6. As a non-volatile computer-readable storage medium, memory can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as the bare metal server in the embodiment of the present application. Program instructions/modules corresponding to automatic RAID configuration methods. The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating device and an application program required for at least one function; the storage data area may store data created by the bare metal server automatically using the RAID configuration method, etc. . 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 located remotely from the processor, and these remote memories may be connected to the local module through a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.
处理器在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。该处理器通常用于控制计算机设备的总体操作。本实施例中,处理器用于运行存储器中存储的程序代码或者处理数据。本实施例计算机设备的多个计算机设备的处理器通过运行存储在存储器中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例的裸金属服务器自动进行RAID配置方法的步骤。In some embodiments, the processor may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor is typically used to control the overall operation of a computer device. In this embodiment, the processor is used to run program codes stored in the memory or process data. The processors of the multiple computer devices of the computer device in this embodiment execute various functional applications and data processing of the server by running non-volatile software programs, instructions and modules stored in the memory, that is, implementing the above method embodiments. Steps to automatically perform RAID configuration on a bare metal server.
应当理解,在相互不冲突的情况下,以上针对根据本发明的裸金属服务器自动进行RAID配置方法阐述的所有实施方式、特征和优势同样地适用于根据本发明的裸金属服务器自动进行RAID配置和存储介质。It should be understood that, without conflicting with each other, all the implementations, features and advantages described above for the automatic RAID configuration method of a bare metal server according to the present invention are equally applicable to the automatic RAID configuration of a bare metal server according to the present invention. storage media.
本领域技术人员还将明白的是,结合这里的公开所描述的各种示例性逻辑块、模块、电路和算法步骤可以被实现为电子硬件、计算机软件或两者的组合。为了清楚地说明硬件和软件的这种可互换性,已经就各种示意性组件、方块、模块、电路和步骤的功能对其进行了一般性的描述。这种功能是被实现为软件还是被实现为硬件取决于具体应用以及施加给整个装置的设计约束。本领域技术人员可以针对每种具体应用以各种方式来实现的功能,但是这种实现决定不应被解释为导致脱离本发明实施例公开的范围。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 generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends on the specific application and design constraints imposed on the overall device. Those skilled in the art may implement the functionality in various ways for each specific application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
最后需要说明的是,本文的计算机可读存储介质(例如,存储器)可以是易失性存储器或非易失性存储器,或者可以包括易失性存储器和非易失性存储器两者。作为例子而非限制性的,非易失性存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦写可编程ROM(EEPROM)或快闪存储器。易失性存储器可以包括随机存取存储器(RAM),该RAM可以充当外部高速缓存存储器。作为例子而非限制性的,RAM可以以多种形式获得,比如同步RAM(DRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据速率SDRAM(DDRSDRAM)、增强SDRAM(ESDRAM)、同步链路DRAM(SLDRAM)、以及直接Rambus RAM(DRRAM)。所公开的方面的存储设备意在包括但不限于这些和其它合适类型的存储器。Finally, it should be noted that the computer-readable storage medium (eg, memory) herein may be a volatile memory or a non-volatile memory, or may include both a volatile memory and a non-volatile memory. By way of example and not limitation, non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which may act as external cache memory. By way of example and not limitation, RAM is available in various forms, such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). Storage devices of the disclosed aspects are intended to include, but are not limited to, these and other suitable types of memory.
结合这里的公开所描述的各种示例性逻辑块、模块和电路可以利用被设计成用于执行这里功能的下列部件来实现或执行:通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或其它可编程逻辑器件、分立门或晶体管逻辑、分立的硬件组件或者这些部件的任何组合。通用处理器可以是微处理器,但是可替换地,处理器可以是任何传统处理器、控制器、微控制器或状态机。处理器也可以被实现为计算设备的组合,例如,DSP和微处理器的组合、多个微处理器、一个或多个微处理器结合DSP和/或任何其它这种配置。The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed using components designed to perform the functions herein: general purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but alternatively the processor may be any conventional processor, controller, microcontroller or state machine. A processor may also be implemented as a combination of computing devices, such as 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 above are exemplary embodiments disclosed by the present invention, but it should be noted that various changes and modifications can be made without departing from the scope of the disclosed embodiments of the present invention defined by the 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. In addition, although the elements disclosed in the embodiments of the present invention may be described or claimed in individual form, they may also be understood as plural unless expressly limited to the singular.
应当理解的是,在本文中使用的,除非上下文清楚地支持例外情况,单数形式“一个”旨在也包括复数形式。还应当理解的是,在本文中使用的“和/或”是指包括一个或者一个以上相关联地列出的项目的任意和所有可能组合。上述本发明实施例公开实施例序号仅仅为了描述,不代表实施例的优劣。It will be understood that, as used herein, the singular form "a" and "an" are intended to include the plural form as well, unless the context clearly supports an exception. It will also be understood that as used herein, "and/or" is meant to include any and all possible combinations of one or more of the associated listed items. The embodiment numbers disclosed in the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
所属领域的普通技术人员应当理解:以上任何实施例的讨论仅为示例性的,并非旨在暗示本发明实施例公开的范围(包括权利要求)被限于这些例子;在本发明实施例的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,并存在如上的本发明实施例的不同方面的许多其它变化,为了简明它们没有在细节中提供。因此,凡在本发明实施例的精神和原则之内,所做的任何省略、修改、等同替换、改进等,均应包含在本发明实施例的保护范围之内。Those of ordinary skill in the art should understand that the above discussion of any embodiments is only illustrative, and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the thinking of the embodiments of the present invention , the above embodiments or technical features in different embodiments can also be combined, and there are many other changes in different aspects of the above embodiments of the present invention, which are not provided in details for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention shall be included in the protection scope of the embodiments of the present invention.
Claims (10)
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 (2)
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 |
CN119088575A (en) * | 2024-11-07 | 2024-12-06 | 云南神经元信息技术有限公司 | Bare Metal Server Computing Power Scheduling Platform |
-
2023
- 2023-11-30 CN CN202311632420.7A patent/CN117453240A/en active Pending
Cited By (3)
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 | 杭州吉利汽车数字科技有限公司 | A method, device and medium for bare metal image deployment |
CN119088575A (en) * | 2024-11-07 | 2024-12-06 | 云南神经元信息技术有限公司 | Bare Metal Server Computing Power Scheduling Platform |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN117453240A (en) | RAID configuration method, device, equipment and medium of bare metal server | |
CN103365696B (en) | BIOS image file acquisition methods and device | |
CN111984270A (en) | Application deployment method and system | |
CN106201563A (en) | The method and apparatus that the collocation method of start-up parameter and device, mainboard start | |
CN110968477B (en) | A method, device and medium for obtaining backup BMC version information | |
CN101000550A (en) | Remote on-line reconfiguration method of embedded system | |
CN112882726B (en) | Hadoop and Docker-based deployment method of environment system | |
WO2011088701A1 (en) | Method and device for online upgrading cross-platform version | |
CN109067599A (en) | A kind of method and device for disposing cluster | |
CN113391828B (en) | Method and system for realizing system disk RAID division and installing operating system | |
CN116431190B (en) | Firmware upgrading method and device, BMC chip, server and medium | |
CN108989123A (en) | A kind of server configuration method and device | |
CN108881504A (en) | A kind of hardware information automatic acquiring method and device | |
WO2025112897A1 (en) | Method and apparatus for displaying boot mode of pcie device, and device and medium | |
CN113778474A (en) | Upgrading method, device, device and storage medium | |
WO2024007800A1 (en) | Cloud terminal system upgrade method and apparatus, and cloud terminal and storage medium | |
CN110096366A (en) | A kind of configuration method, device and the server of isomery memory system | |
CN108810174A (en) | A kind of long-range control method and device | |
CN116627472A (en) | Firmware program upgrading method and server of high-speed peripheral component equipment | |
CN114816454A (en) | PXE server deployment method, device and medium | |
CN114442765A (en) | Fan control method for computer equipment, baseboard management controller and storage medium | |
CN114675926A (en) | Virtual machine attribute changing method and device, storage medium and electronic device | |
CN117319194A (en) | Bare metal server deployment method, device, equipment and medium | |
CN118132450B (en) | A management method and system for Windows integrated test environment | |
CN115509590B (en) | Continuous deployment method and computer equipment |
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 |