CN116527686A - Bare metal opening method, device, equipment and storage medium based on intelligent network card - Google Patents

Bare metal opening method, device, equipment and storage medium based on intelligent network card Download PDF

Info

Publication number
CN116527686A
CN116527686A CN202310272623.3A CN202310272623A CN116527686A CN 116527686 A CN116527686 A CN 116527686A CN 202310272623 A CN202310272623 A CN 202310272623A CN 116527686 A CN116527686 A CN 116527686A
Authority
CN
China
Prior art keywords
cloud disk
bare metal
network card
intelligent network
information
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
CN202310272623.3A
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.)
Anchao Cloud Software Co Ltd
Original Assignee
Anchao Cloud Software 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 Anchao Cloud Software Co Ltd filed Critical Anchao Cloud Software Co Ltd
Priority to CN202310272623.3A priority Critical patent/CN116527686A/en
Publication of CN116527686A publication Critical patent/CN116527686A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to a bare metal opening method, device and equipment based on an intelligent network card and a storage medium, and in particular relates to the technical field of cloud computing. The method comprises the following steps: receiving an opening request operation, wherein the opening request operation carries cloud disk information, bare metal node information and intelligent network card identification information; creating a cloud disk based on the cloud disk information, and copying an operating system into the cloud disk; based on a first intelligent network card corresponding to the intelligent network card identification information, mounting the cloud disk with the operating system on a first bare metal corresponding to the bare metal node information; and restarting the first bare metal after the cloud disk is mounted, so as to finish the opening of the first bare metal. Based on the technical scheme, the disk used when the bare metal is opened is Yun Pan, and based on the characteristics of multiple Yun Pan backups and easy data recovery, the data security can be ensured.

Description

Bare metal opening method, device, equipment and storage medium based on intelligent network card
Technical Field
The application relates to the technical field of cloud computing, in particular to a bare metal opening method, device and equipment based on an intelligent network card and a storage medium.
Background
Bare metal (Bare Metal Server, BMS) refers to a physical server that is not configured with an operating system and other software.
In the related art, when a bare metal is turned on, a service image of the bare metal is generally pulled from a distance, and the service image is written into a physical hard disk of the bare metal.
Based on the bare metal opening method, the disk started by bare metal is a self-contained physical hard disk, and the data security problem cannot be guaranteed because the physical hard disk is difficult to recover after being damaged.
Disclosure of Invention
The application provides a bare metal opening method, device and equipment based on an intelligent network card and a storage medium. The technical scheme is as follows.
In one aspect, a bare metal opening method based on an intelligent network card is provided, and the method comprises the following steps:
receiving an opening request operation, wherein the opening request operation carries cloud disk information, bare metal node information and intelligent network card identification information;
creating a cloud disk based on the cloud disk information, and copying an operating system into the cloud disk;
based on a first intelligent network card corresponding to the intelligent network card identification information, mounting the cloud disk with the operating system on a first bare metal corresponding to the bare metal node information;
and restarting the first bare metal after the cloud disk is mounted, so as to finish the opening of the first bare metal.
In still another aspect, a bare metal opening device based on an intelligent network card is provided, the device includes:
the system comprises an opening request module, a processing module and a processing module, wherein the opening request module is used for receiving an opening request operation, and the opening request operation carries cloud disk information, bare metal node information and intelligent network card identification information;
the cloud disk creating module is used for creating a cloud disk based on the cloud disk information and copying an operating system into the cloud disk;
the cloud disk mounting module is used for mounting the cloud disk with the operating system on first bare metal corresponding to the bare metal node information based on a first intelligent network card corresponding to the intelligent network card identification information;
and the bare metal restarting module is used for restarting the first bare metal after the mounting of the cloud disk is completed so as to finish the opening of the first bare metal.
In yet another aspect, a computer device is provided, where the computer device includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the bare metal activation method based on the intelligent network card.
In yet another aspect, a computer readable storage medium is provided, where at least one instruction, at least one program, a code set, or an instruction set is stored, where the at least one instruction, at least one program, code set, or instruction set is loaded and executed by a processor to implement the bare metal opening method based on an intelligent network card described above.
In yet another aspect, a computer program product or computer program is provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the bare metal opening method based on the intelligent network card.
The technical scheme that this application provided can include following beneficial effect:
receiving an opening request operation, creating a cloud disk based on cloud disk information in the opening request operation, copying an operating system into the cloud disk, mounting the cloud disk with the operating system on a first bare metal corresponding to bare metal node information in the opening request operation based on a first intelligent network card corresponding to intelligent network card identification information in the opening request operation, and restarting the first bare metal after the mounting of the cloud disk is completed so as to complete the opening of the first bare metal, wherein the disk used when the first bare metal is opened is Yun Pan, and the characteristics of more backup and easy data recovery are based on Yun Pan, so that the data security can be ensured.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a method flow diagram illustrating a bare metal provisioning method based on an intelligent network card, according to an example embodiment.
Fig. 2 is a method flow diagram illustrating a bare metal provisioning method based on an intelligent network card, according to an example embodiment.
Fig. 3 is a block diagram illustrating a structure of a bare metal provisioning apparatus based on a smart network card according to an exemplary embodiment.
Fig. 4 is a schematic diagram of a computer device provided in accordance with an exemplary embodiment.
Detailed Description
The following description of the embodiments of the present application will be made apparent and fully in view of the accompanying drawings, in which some, but not all embodiments of the invention are shown. 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.
It should be understood that, in the embodiments of the present application, the "indication" may be a direct indication, an indirect indication, or an indication having an association relationship. For example, a indicates B, which may mean that a indicates B directly, e.g., B may be obtained by a; it may also indicate that a indicates B indirectly, e.g. a indicates C, B may be obtained by C; it may also be indicated that there is an association between a and B.
In the description of the embodiments of the present application, the term "corresponding" may indicate that there is a direct correspondence or an indirect correspondence between the two, or may indicate that there is an association between the two, or may indicate a relationship between the two and the indicated, configured, or the like.
In the embodiment of the present application, the "predefining" may be implemented by pre-storing corresponding codes, tables or other manners that may be used to indicate relevant information in devices (including, for example, terminal devices and network devices), and the specific implementation of the present application is not limited.
The technical scheme provided by the application is further described below with reference to the following examples.
Fig. 1 is a method flow diagram illustrating a bare metal provisioning method based on an intelligent network card, according to an example embodiment. The method can be executed by computer equipment, as shown in fig. 1, the bare metal opening method based on the intelligent network card can comprise the following steps:
step 110, receiving an opening request operation, wherein the opening request operation carries cloud disk information, bare metal node information and intelligent network card information.
In the embodiment of the application, the user initiates an opening request operation, and the opening request operation at least comprises the following information:
the cloud disk information is used for indicating parameter information required by cloud disk creation;
bare metal node information for indicating information corresponding to the bare metal;
and the intelligent network card information is used for indicating information corresponding to the intelligent network card (Data Processing Unit, DPU).
The intelligent network card is a large class of special purpose processors which are developed recently, and is a third important computing power chip in a data center scene after a central processing unit (Central Processing Unit, CPU) and an image processor (Graphics Processing Unit, GPU), so as to provide a computing engine for a high-bandwidth, low-delay and data-intensive computing scene. The DPU will act as an offload engine for the CPU, releasing the CPU's computing power to the upper layer applications. The intelligent network card may also be referred to simply as SmartNic.
In one possible implementation, the ironic-api receives the open request operation and forwards the request to the ironic-conductor via a rpc remote call. The openstack is an open-source technology platform architecture for providing management virtual machines, the ironic is a bare metal component in the openstack, and is generally used for opening and managing bare metal, the ironic-api is mainly used for interacting with users, and the ironic-conductor is mainly used for opening logic arrangement and workflow execution.
Step 120, creating a cloud disk based on the cloud disk information, and copying the operating system into the cloud disk.
In the embodiment of the application, a cloud disk is created based on cloud disk information carried by an opening request operation, and an operating system is copied into the cloud disk.
In one possible implementation manner, the service mirror image is also carried in the opening request operation information; step 120 is alternatively implemented as: the CInder component creates a cloud disk based on the cloud disk information; the client component calls a user image file corresponding to the service image in the glance component; and the client component extracts an operating system in the user image file and copies the operating system to the cloud disk.
Wherein, the client is a block storage component in the openstack and is generally used for providing storage related functions, and the glance is a mirror component in the openstack and is generally used for providing virtual machine mirror.
In the implementation manner, a client component is called, a cloud disk is created by the client, the size and the type of the cloud disk are specified by an opening request operation of a user, a user image file in a glance is called in the process of creating the cloud disk by the client, the image file contains an operating system, the operating system is extracted by the client and copied to the cloud disk, and the cloud disk can be a starting disk with the operating system.
It will be appreciated that the created cloud disk may have multiple backups, e.g., three copies of the cloud disk. In the case of cloud disk corruption, these backups may be used for fast recovery of the cloud disk.
And 130, mounting a cloud disk with an operating system on a first bare metal corresponding to the bare metal node information based on a first intelligent network card corresponding to the intelligent network card information.
In the embodiment of the application, after the cloud disk is created, the cloud disk with the operating system is mounted on a first bare metal corresponding to the bare metal node information through a first intelligent network card corresponding to the intelligent network card information.
It is understood that the first intelligent network card is an intelligent network card loaded on the first bare metal, so that the cloud disk with the operating system can be mounted on the first bare metal through the first intelligent network card.
In one possible implementation, before step 130, the method further includes the following steps: the ironic-conductor calls a neutron to create a port, and calls a switch interface based on port information of the port; a virtual local area network (Virtual Local Area Network, VLAN) corresponding to the first bare metal is configured on the switch interface.
Where neutron is a network component in openstack, it is typically used to provide a two-layer, three-layer virtual network.
In the implementation manner, before the cloud disk with the operating system is mounted on the first bare metal, network construction is performed on the first bare metal: an ironic-conductor calls a software defined network (Software Defined Network, SDN) interface of a network to create a network, wherein the network creation process is to create a port on the side of the network, store port information, call a switch interface according to the port information, configure a virtual local area network on the switch interface, and put through a network of a network card where a media access control (Medium Access Control, MAC) address of a first bare metal is located, so that the network card of the first bare metal can communicate with a corresponding node, thereby completing network construction.
In one possible implementation, step 130 includes: the first intelligent network card creates a first bdev device and binds the first bdev device with the cloud disk; the first intelligent network card hot plugs the first bdev device onto the first bare metal.
In the implementation mode, the first intelligent network card creates the bdev device of the spdk, which is recorded as the first bdev device, and the first bdev device is bound with the cloud disk at the far end through network connection, and the first bdev device is hot-plugged onto the first bare metal, so that the mounting of the first bare metal on the cloud disk is completed.
In one possible implementation, the first smart network card creates a first bdev device and binds the first bdev device with the cloud disc, including: the ironic-connector sends a network request packet containing the heartbeat information to the first intelligent network card; responding to the network request packet, and replying a network response packet containing a token to the ironic-connector by the first intelligent network card; responding to the network response packet, and transmitting cloud disk information to the first intelligent network card by the ironic-conductor; the first intelligent network card creates first bdev equipment and binds the first bdev equipment with a cloud disk corresponding to the cloud disk information.
In the implementation manner, firstly, through interaction of a network request packet and a network response packet, whether the ironic-connector and the first intelligent network card can work normally is confirmed, and then the next operation is executed: the Ironic-conductor transmits cloud disk information to the first intelligent network card, and after the first intelligent network card receives the cloud disk information, the first intelligent network card starts to establish first bdev equipment, and the first bdev equipment is bound with a cloud disk corresponding to the cloud disk information through network connection.
And 140, restarting the first bare metal after the cloud disk is mounted, so as to finish the opening of the first bare metal.
In the embodiment of the application, after the cloud disk with the operating system is mounted, restarting the first bare metal, and enabling the first bare metal to enter the operating system of the cloud disk after restarting, so that the opening of the first bare metal is completed.
In one possible implementation, step 140 is alternatively implemented as: the first intelligent network card replies a response network packet containing cloud disk information of the mounted cloud disk to the ir-conductor; after the cloud disk information in the response network packet is checked, the ironic-conductor calls a baseboard management controller (Baseboard Management Controller, BMC) on the first bare metal to restart the first bare metal. The BMC is generally used for providing a remote management control function of a server, and can perform firmware upgrade, machine equipment checking, startup and other operations on the service in a state that the server is not started.
In this implementation manner, the first intelligent network card sends a response network packet to the ironic-conductor, where the response network packet includes created cloud disk information, and after the ironic-conductor receives the response network packet, the cloud disk information in the response network packet is analyzed, and compared with the cloud disk information transmitted by the ironic-conductor, after confirming that there is no error, the first intelligent network card calls the BMC on the first bare metal, and the BMC is restarted, so that the first bare metal is restarted.
In one possible implementation, after step 140, the following steps are also performed: the CInder component acquires the modified cloud disk information; the CInder component modifies the cloud disk based on the modified cloud disk information.
In this implementation manner, after completing the opening of the first bare metal, the cloud disk may be adjusted according to the modified cloud disk information. The essence of cloud disk is files of a remote storage server, such as: the size of the cloud disk needs to be modified, in fact, the size of the corresponding file on the remote storage server needs to be modified, the size of the file can be changed at any time, and compared with a physical disk with a fixed size, the size of the cloud disk can be changed dynamically according to requirements at any time, so that the cloud disk is flexible.
In one possible implementation, after step 140, the following steps are also performed: under the condition that physical faults of the first bare metal are detected, a cloud disk with an operating system is mounted on the second bare metal; and restarting the second bare metal after the cloud disk is mounted, so as to finish the opening of the second bare metal.
Wherein the second bare metal is another bare metal different from the first bare metal.
In the implementation mode, after the physical failure of the first bare metal occurs, the cloud disk with the operating system is mounted on the second bare metal, and the second bare metal is opened, so that data migration is completed, and data loss is avoided.
It can be understood that the mounting process of the second bare metal to the cloud disk may refer to the mounting process of the first bare metal to the cloud disk, which is not described herein.
In summary, in the method for opening bare metal based on an intelligent network card provided in this embodiment, an opening request operation is received, a cloud disk is created based on cloud disk information in the opening request operation, an operating system is copied to the cloud disk, based on a first intelligent network card corresponding to identification information of the intelligent network card in the opening request operation, the cloud disk with the operating system is mounted on a first bare metal corresponding to node information of the bare metal in the opening request operation, after the mounting of the cloud disk is completed, the first bare metal is restarted to complete the opening of the first bare metal, and since the disk used when the first bare metal is opened is Yun Pan, based on the Yun Pan backup characteristics of more and easy data recovery, data security can be ensured.
In addition, under the condition that the first bare metal mounted on the current cloud disk has physical faults, the cloud disk with the operating system is mounted on the second bare metal, and the second bare metal is opened, so that data migration is conveniently completed, and data loss is avoided.
In addition, after the first bare metal is opened, the cloud disk can be adjusted according to the modified cloud disk information, and the flexibility is good.
Next, an exemplary explanation is made on the bare metal opening method based on the intelligent network card described in the above embodiment with reference to the flow shown in fig. 2.
(1) The user inputs the information of the bare metal with the DPU, cloud disk information (such as the size and type of the cloud disk), service mirror image through a web interface or an ironic client, and the information of the bare metal with the DPU can comprise intelligent network card information (such as the ip, password and user name of the DPU) and bare metal node information (such as the bare metal MAC address). And the user performs an opening request operation through a web interface or an ironic client, and the parameters corresponding to the operation comprise the bare metal node information, the service mirror image and the cloud disk information which are input before. This operation will send a request to the underlying ironic-api service.
(2) The Ironc-api remotely invokes the provisioning request through rpc, forwarding the request to the ironc-conductor, which essentially performs provisioning of provisioning logic and workflow execution.
(3) The ir-conductor uses the bare metal MAC address to call the SDN interface of neutron to create a network, and the flow of creating the network is referred to as follows: creating a port on the side of the neutron, storing port information, then calling a switch interface by the neutron according to the port information, configuring a VLAN on the switch interface, and putting through a network of a network card where a bare metal MAC address is located, so that the bare metal network card can communicate with a corresponding node, thereby completing network construction.
(4) After the ironic-conductor completes network creation, a cander storage component is called, the cander creates a cloud disk, and the size and type of the cloud disk are specified by a user when the user performs an opening request operation.
(5) In the process of creating the cloud disk, the client can call a user image file in the glance, the image file contains an operating system, and the client can extract the operating system and copy the operating system into the cloud disk, so that the cloud disk can be a starting disk with a system, namely, a system disk for bare metal opening starting.
(6) After the cloud disk is started and ready, the ir-conductor sends a network request packet containing the heartbeat information to the agent on the intelligent network card, and after the intelligent network card agent receives the network request packet and confirms that the service is normal, the intelligent network card agent answers a network response packet containing a token, which means that the intelligent network card can work normally and allows the next operation. And then the Ironic-conductor transmits cloud disk information to an agent on the intelligent network card, after the intelligent network card receives the cloud disk information, the intelligent network card starts to create the bdev equipment of the spdk, the bdev equipment is bound with a remote cloud disk through network connection, and reading and writing the bdev equipment is equivalent to reading and writing the remote cloud disk.
(7) The intelligent network card starts to use the built bdev equipment, and is hot-plugged onto the bare metal, so that a hard disk appears on the bare metal. The intelligent network card sends a response network packet to the ironic-conductor, which indicates that the mounting task is completed, and the next operation can be performed.
(8) The method comprises the steps that an Ironic-conductor receives a response network packet of an intelligent network card, the response network packet contains created cloud disk information, the Ironic-conductor analyzes the cloud disk information in the response network packet, the cloud disk information is compared with cloud disk information transmitted by the Ironic-conductor, after the Ironic-conductor confirms that the cloud disk information is correct, BMC on bare metal is called, the BMC is restarted, and after the bare metal is restarted, the BMC can directly enter a cloud disk system.
As can be seen from the above procedure, based on the technical solution provided in the embodiments of the present application, the main advantages of the Yun Pankai bare metal are:
(1) The cloud disk at the far end can be three copies, namely, the system disk of bare metal can be three backups, and the system disk can be quickly recovered after being damaged.
(2) After the bare metal physically fails, the bare metal needs to be migrated, because Yun Pan is stored in a remote storage pool, the disk is not damaged, only the network connection is broken, and only the network connection needs to be re-established during the migration. During migration, firstly, cloud disk information of a first bare metal with faults is inquired out, then a normal bare metal is required to be found, then the cloud disk information is transmitted to a starting request of the normal bare metal, in the starting process of a new second bare metal, an intelligent network card can reload the transmitted cloud disk onto the second bare metal, after the second bare metal is started, the second bare metal is checked to see that the number of the magnetic disks is one, the magnetic disks are the cloud disks of the first bare metal with faults, so that the magnetic disks can be read and written directly in the second bare metal, important data in the magnetic disks are extracted and stored, and after one bare metal fault is completed, the important data are extracted and stored, so that data loss is avoided, and data migration is realized.
(3) The essence of the cloud disk is that the file of the remote storage server is required to be modified, and the size of the file corresponding to the remote storage server is required to be modified in practice, so that the size of the file can be changed at any time, and the size of the cloud disk can be dynamically changed at any time according to the requirements, and is flexible.
The method embodiments may be implemented alone or in combination, which is not limited in this application.
Fig. 3 is a block diagram illustrating a structure of a bare metal provisioning apparatus based on a smart network card according to an exemplary embodiment. The device comprises:
the provisioning request module 301 is configured to receive provisioning request operation, where the provisioning request operation carries cloud disk information, bare metal node information, and intelligent network card identification information;
the cloud disk creating module 302 is configured to create a cloud disk based on the cloud disk information, and copy an operating system into the cloud disk;
the cloud disk mounting module 303 is configured to mount the cloud disk with an operating system on a first bare metal corresponding to the bare metal node information based on a first intelligent network card corresponding to the intelligent network card identification information;
and the bare metal restarting module 304 is configured to restart the first bare metal after the mounting of the cloud disk is completed, so as to complete the opening of the first bare metal.
In a possible implementation manner, the service mirror image is also carried in the opening request operation information;
the cloud disk creation module 302 is configured to:
a CInder component creates the cloud disk based on the cloud disk information;
the client component calls a user image file corresponding to the service image in the glance component;
and the client component extracts an operating system in the user image file and copies the operating system to the cloud disk.
In one possible implementation, the apparatus further includes: the cloud disk modification module is used for:
the CInder component acquires modified cloud disk information;
and the CInder component modifies the cloud disk based on the modified cloud disk information.
In one possible implementation manner, the cloud disk mounting module 303 is configured to:
the first intelligent network card creates a first bdev device and binds the first bdev device with the cloud disk;
and the first intelligent network card hot-plugs the first bdev equipment onto the first bare metal.
In one possible implementation manner, the cloud disk mounting module 303 is configured to:
an ironic-connector sends a network request packet containing the heartbeat information to the first intelligent network card;
responding to the network request packet, and the first intelligent network card replies a network response packet containing a token to the ironic-conductor;
responding to the network response packet, and sending the cloud disk information to the first intelligent network card by the ironic-conductor;
and the first intelligent network card creates the first bdev device and binds the first bdev device with a cloud disk corresponding to the cloud disk information.
In a possible implementation manner, the cloud disk mounting module 303 is configured to mount the cloud disk with the operating system on a second bare metal when a physical failure of the first bare metal is detected;
the bare metal restarting module 304 is configured to restart the second bare metal after completing the mounting of the cloud disk, so as to complete the opening of the second bare metal.
In one possible implementation, the apparatus further includes: a network configuration module, configured to:
calling a port by an ironic-conductor, and calling a switch interface based on port information of the port;
and configuring a virtual local area network corresponding to the first bare metal on the switch interface.
In one possible implementation, the bare metal restart module 304 is configured to:
the first intelligent network card replies a response network packet containing cloud disk information of the mounted cloud disk to the ironic-conductor;
and after the cloud disk information in the response network packet is checked, the ironic-conductor calls a baseboard management controller on the first bare metal to restart the first bare metal.
It should be noted that: the bare metal opening device based on the intelligent network card provided in the above embodiment is only exemplified by the division of the above functional modules, and in practical application, the above functional allocation may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the apparatus and the method embodiments provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the apparatus and the method embodiments are detailed in the method embodiments and are not repeated herein.
Referring to fig. 4, a schematic diagram of a computer device according to an exemplary embodiment of the present application is provided, where the computer device includes a memory and a processor, and the memory is configured to store a computer program, and when the computer program is executed by the processor, implement the above-mentioned bare metal provisioning method based on an intelligent network card.
The processor may be a central processing unit (Central Processing Unit, CPU). The processor may also be any other general purpose processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof.
The memory, as a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the methods in embodiments of the present application. The processor executes various functional applications of the processor and data processing, i.e., implements the methods of the method embodiments described above, by running non-transitory software programs, instructions, and modules stored in memory.
The memory may include a memory program area and a memory data area, wherein the memory program area may store an operating system, at least one application program required for a function; the storage data area may store data created by the processor, etc. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some implementations, the memory optionally includes memory remotely located relative to the processor, the remote memory being connectable to the processor 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.
In an exemplary embodiment, a computer readable storage medium is also provided for storing at least one computer program that is loaded and executed by a processor to implement all or part of the steps of the above method. For example, the computer readable storage medium may be Read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), compact disc Read-Only Memory (CD-ROM), magnetic tape, floppy disk, optical data storage device, and the like.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the present application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (11)

1. The bare metal opening method based on the intelligent network card is characterized by comprising the following steps:
receiving an opening request operation, wherein the opening request operation carries cloud disk information, bare metal node information and intelligent network card identification information;
creating a cloud disk based on the cloud disk information, and copying an operating system into the cloud disk;
based on a first intelligent network card corresponding to the intelligent network card identification information, mounting the cloud disk with the operating system on a first bare metal corresponding to the bare metal node information;
and restarting the first bare metal after the cloud disk is mounted, so as to finish the opening of the first bare metal.
2. The method of claim 1, wherein the provisioning request operation information further carries a service image;
the creating a cloud disk based on the cloud disk information and copying an operating system into the cloud disk includes:
a CInder component creates the cloud disk based on the cloud disk information;
the client component calls a user image file corresponding to the service image in the glance component;
and the client component extracts an operating system in the user image file and copies the operating system to the cloud disk.
3. The method according to claim 2, wherein the method further comprises:
the CInder component acquires modified cloud disk information;
and the CInder component modifies the cloud disk based on the modified cloud disk information.
4. The method of claim 1, wherein the mounting the cloud disk with the operating system on the first bare metal corresponding to the bare metal node information based on the first intelligent network card corresponding to the intelligent network card identification information comprises:
the first intelligent network card creates a first bdev device and binds the first bdev device with the cloud disk;
and the first intelligent network card hot-plugs the first bdev equipment onto the first bare metal.
5. The method of claim 4, wherein the first intelligent network card creates a first bdev device and binds the first bdev device to the cloud disc, comprising:
an ironic-connector sends a network request packet containing the heartbeat information to the first intelligent network card;
responding to the network request packet, and the first intelligent network card replies a network response packet containing a token to the ironic-conductor;
responding to the network response packet, and sending the cloud disk information to the first intelligent network card by the ironic-conductor;
and the first intelligent network card creates the first bdev device and binds the first bdev device with a cloud disk corresponding to the cloud disk information.
6. The method according to claim 1, wherein the method further comprises:
under the condition that physical faults of the first bare metal are detected, the cloud disk with the operating system is mounted on a second bare metal;
and restarting the second bare metal after the cloud disk is mounted, so as to finish the opening of the second bare metal.
7. The method of claim 1, wherein prior to mounting the cloud disk with the operating system on the first bare metal corresponding to the bare metal node information based on the first intelligent network card corresponding to the intelligent network card identification information, the method further comprises:
calling a port by an ironic-conductor, and calling a switch interface based on port information of the port;
and configuring a virtual local area network corresponding to the first bare metal on the switch interface.
8. The method of claim 1, wherein restarting the first bare metal after completing the mounting of the cloud disk comprises:
the first intelligent network card replies a response network packet containing cloud disk information of the mounted cloud disk to the ironic-conductor;
and after the cloud disk information in the response network packet is checked, the ironic-conductor calls a baseboard management controller on the first bare metal to restart the first bare metal.
9. A bare metal opening device based on an intelligent network card, the device comprising:
the system comprises an opening request module, a processing module and a processing module, wherein the opening request module is used for receiving an opening request operation, and the opening request operation carries cloud disk information, bare metal node information and intelligent network card identification information;
the cloud disk creating module is used for creating a cloud disk based on the cloud disk information and copying an operating system into the cloud disk;
the cloud disk mounting module is used for mounting the cloud disk with the operating system on first bare metal corresponding to the bare metal node information based on a first intelligent network card corresponding to the intelligent network card identification information;
and the bare metal restarting module is used for restarting the first bare metal after the mounting of the cloud disk is completed so as to finish the opening of the first bare metal.
10. A computer device, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the smart network card-based bare metal provisioning method according to any of claims 1 to 8.
11. A computer readable storage medium having stored therein at least one instruction, at least one program, code set, or instruction set that is loaded and executed by a processor to implement the smart network card-based bare metal provisioning method of any of claims 1 to 8.
CN202310272623.3A 2023-03-20 2023-03-20 Bare metal opening method, device, equipment and storage medium based on intelligent network card Pending CN116527686A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310272623.3A CN116527686A (en) 2023-03-20 2023-03-20 Bare metal opening method, device, equipment and storage medium based on intelligent network card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310272623.3A CN116527686A (en) 2023-03-20 2023-03-20 Bare metal opening method, device, equipment and storage medium based on intelligent network card

Publications (1)

Publication Number Publication Date
CN116527686A true CN116527686A (en) 2023-08-01

Family

ID=87398362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310272623.3A Pending CN116527686A (en) 2023-03-20 2023-03-20 Bare metal opening method, device, equipment and storage medium based on intelligent network card

Country Status (1)

Country Link
CN (1) CN116527686A (en)

Similar Documents

Publication Publication Date Title
US8726078B1 (en) Method and system for providing high availability to computer applications
US8417796B2 (en) System and method for transferring a computing environment between computers of dissimilar configurations
JP4426736B2 (en) Program correction method and program
CN110224860B (en) Load balancing application creation method and device, computer equipment and storage medium
CN104503965A (en) High-elasticity high availability and load balancing realization method of PostgreSQL (Structured Query Language)
CN103927240A (en) Information dumping method and device answering to software breakdown
CN110138577B (en) Cluster creation method, first server and readable storage medium
CN107506295A (en) Method of testing, equipment and the computer-readable recording medium of virtual machine backup
CN112732412B (en) Service configuration file processing method and device, storage medium and electronic equipment
CN112035062B (en) Migration method of local storage of cloud computing, computer equipment and storage medium
CN115643168B (en) Node super-fusion upgrading method, device, equipment and storage medium
CN111966530A (en) Disaster recovery switching method and device for application system, computer equipment and storage medium
CN116527686A (en) Bare metal opening method, device, equipment and storage medium based on intelligent network card
CN110502238A (en) A kind of method and device of front and back end joint debugging
CN106972963B (en) Service module starting control method and starting control method after crash restart
US20220342769A1 (en) Application consistent network backup using three phase full quorum
CN113691389A (en) Configuration method of load balancer, server and storage medium
CN108614873B (en) Data processing method and device
CN111752627A (en) External device mounting method and system for virtual machine in cloud environment
CN110572442A (en) Method and system for configuring file path
CN111381942A (en) Method and device for realizing APP background resident
Swift et al. Live update for device drivers
CN117234544B (en) Method and device for recovering system of server equipment
JP6822706B1 (en) Cluster system, server equipment, takeover method, and program
CN113595802B (en) Upgrading method and device for distributed firewall

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