CN117891472A - Bare metal mirror image deployment method, device and medium - Google Patents
Bare metal mirror image deployment method, device and medium Download PDFInfo
- Publication number
- CN117891472A CN117891472A CN202410274496.5A CN202410274496A CN117891472A CN 117891472 A CN117891472 A CN 117891472A CN 202410274496 A CN202410274496 A CN 202410274496A CN 117891472 A CN117891472 A CN 117891472A
- Authority
- CN
- China
- Prior art keywords
- mirror
- bare metal
- mirror image
- image
- deployment
- 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.)
- Granted
Links
- 239000002184 metal Substances 0.000 title claims abstract description 152
- 229910052751 metal Inorganic materials 0.000 title claims abstract description 152
- 238000000034 method Methods 0.000 title claims abstract description 58
- 238000006243 chemical reaction Methods 0.000 claims abstract description 15
- 238000012545 processing Methods 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 10
- 230000006835 compression Effects 0.000 claims description 7
- 238000007906 compression Methods 0.000 claims description 7
- 238000005516 engineering process Methods 0.000 claims description 5
- 230000005540 biological transmission Effects 0.000 abstract description 16
- 230000001934 delay Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 238000004088 simulation Methods 0.000 description 4
- 230000006837 decompression Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000013473 artificial intelligence Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000000926 separation method Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 150000002739 metals Chemical class 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 239000000725 suspension Substances 0.000 description 1
- 230000001052 transient 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
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application relates to the technical field of mirror image deployment, and discloses a bare metal mirror image deployment method, a device and a medium, which are applied to a bare metal service node, wherein the method comprises the following steps: receiving a first mirror image in a first format sent by a bare metal control node; converting the first image into a second image in a second format; the storage space occupation amount of the first mirror image is smaller than that of the second mirror image; and deploying the second mirror image to the local hard disk. Therefore, the technical scheme provided by the application finishes the format conversion and deployment of the mirror image at the bare metal service node, avoids the situation that more network resources are occupied due to the fact that the bare metal control node converts the first mirror image with smaller storage space occupation into the second mirror image with larger storage space occupation, delays the format conversion and deployment of the mirror image to the bare metal service node, can reduce the network bandwidth occupation, reduces the mirror image transmission time length, and further improves the deployment efficiency of the bare metal mirror image.
Description
Technical Field
The present application relates to the field of mirror deployment technologies, and in particular, to a method, an apparatus, and a medium for bare metal mirror deployment.
Background
With the continuous development of server virtualization technology, traditional data center services are gradually migrating to the cloud. However, for some heavy-duty traffic, such as databases and the like, there is still a need to be deployed in bare metal infrastructure, where bare metal refers to computer hardware without an operating system, to meet the high performance, low latency requirements of the heavy-duty traffic.
In bare metal system deployment, an operating system image to be deployed is usually installed and manufactured in advance, and uploaded to an image warehouse in a reduced qcow2 format. During deployment, the operating system image is downloaded to the bare metal server from the image warehouse, converted into a raw format and released to a local hard disk, so that quick deployment is completed.
Specifically, openstack Ironic-frame bare metal system deployment has two implementations. One possible implementation method is that a local disk on a bare metal server is mounted to a Ironic control node according to an iSCSI protocol, the Ironic control node downloads an operating system image in qcow2 format from an image warehouse, and the operating system image in qcow2 format is copied to a mounted remote bare metal server hard disk after being converted into a raw format, so that deployment is completed.
In another possible implementation, unlike the above-mentioned transmission of the os image based on iSCSI protocol, the method starts a proxy service HTTP SERVER after the control node converts the qcow2 format os image into the raw format at Ironic, and remotely requests to download the raw format os image at the bare metal server through a client request tool HTTP CLIENT, and copies the raw format os image to the local hard disk of the bare metal server, thereby completing deployment.
In the deployment process of the bare metal system, the two embodiments need to convert the qcow2 format operating system image into the raw format at Ironic control nodes and then transmit the raw format operating system image to the bare metal server. The image capacity of the raw format operating system is often large, so that a lot of network bandwidth resources are occupied in the transmission process, the transmission time is long, and the deployment efficiency is low.
Therefore, how to reduce the occupation amount of network bandwidth resources in bare metal deployment and improve the deployment efficiency is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
In view of this, an aspect of the present application provides a method for bare metal mirror deployment, applied to a bare metal service node, the method comprising:
Receiving a first mirror image in a first format sent by a bare metal control node;
converting the first image into a second image in a second format; the storage space occupation amount of the first mirror image is smaller than that of the second mirror image;
and deploying the second mirror image on a local hard disk.
Another aspect of the present application provides a method for bare metal mirror deployment, applied to a bare metal control node, the method comprising:
The method comprises the steps that a first mirror image in a first format is sent to a bare metal service node, so that the bare metal service node converts the first mirror image into a second mirror image in a second format, and the second mirror image is deployed on a local hard disk; the storage space occupation amount of the first mirror image is smaller than that of the second mirror image.
Another aspect of the present application provides an apparatus for bare metal mirror deployment, for use in a bare metal service node, the apparatus comprising:
The receiving module is used for receiving a first mirror image in a first format sent by the bare metal control node;
The conversion module is used for converting the first image into a second image in a second format; the storage space occupation amount of the first mirror image is smaller than that of the second mirror image;
And the deployment module is used for deploying the second mirror image on the local hard disk.
Another aspect of the application provides an apparatus for bare metal mirror deployment comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method for bare metal mirror deployment when executing the program.
Another aspect of the application provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of bare metal mirror deployment.
According to the method, the device and the medium for deploying the bare metal mirror image, the format conversion and the deployment of the mirror image are completed at the bare metal service node, the situation that more network resources are occupied due to the fact that the bare metal control node converts the first mirror image with smaller storage space occupation into the second mirror image with larger storage space occupation is avoided, the format conversion and the deployment of the mirror image are delayed to the bare metal service node, the network bandwidth occupation can be reduced, the mirror image transmission time is shortened, and the deployment efficiency of the bare metal mirror image is further improved.
Drawings
FIG. 1 is a schematic flow chart of a method for bare metal mirror deployment according to an embodiment of the present application;
FIG. 2 is a schematic block diagram of a bare metal mirror deployment provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of a bare metal mirror deployment device according to an embodiment of the present application;
Fig. 4 is a schematic structural diagram of a bare metal mirror deployment device according to another embodiment of the present application.
The reference numerals are as follows: 1 is a mirror image warehouse, 2 is a bare metal control node, 3 is a bare metal service node, 40 is a memory, 41 is a processor, 42 is a display screen, 43 is an input/output interface, 44 is a communication interface, 45 is a power supply, 46 is a communication bus, 401 is a computer program, and 402 is an operating system 403 is data.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the application. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination" depending on the context.
In the development process of automobiles, it is required to verify the performance of the automobile through a Computer aided engineering (Computer AIDED ENGINEERING, abbreviated as CAE) simulation platform, for example, to verify the comfort of the chassis of the automobile, and to evaluate the strength, rigidity, fatigue durability, NVH (noise, vibration and harshness) characteristics and the like of automobile structural components (such as automobile bodies, frames, suspension systems and the like) under static loads (such as dead weights) and dynamic loads (such as collisions, road impacts, torsion and the like). Specifically, when the performance of the vehicle is verified by the CAE simulation platform, an operating system needs to be installed on the physical server, that is, an operating system mirror image needs to be deployed on the bare metal (physical server) so as to implement the CAE simulation on the physical server.
When the mirror image deployment of bare metal is carried out, how to reduce the occupation amount of network resources during the mirror image transmission and improve the mirror image deployment efficiency is an important research direction. In order to solve the technical problems, the embodiment of the application provides a bare metal mirror deployment method, which delays the conversion of a mirror format to a bare metal service node, namely to a physical machine server, so that network resources are saved and the mirror deployment efficiency is improved.
Fig. 1 is a flow chart of a method for bare metal mirror deployment according to an embodiment of the present application, as shown in fig. 1, the method includes:
S10: receiving a first mirror image in a first format sent by a bare metal control node;
Fig. 2 is a schematic block diagram of a bare metal mirror deployment according to an embodiment of the present application, as shown in fig. 2, in a specific embodiment, a bare metal control node 2 downloads a first mirror in a first format from a mirror warehouse 1, and sends the first mirror to a bare metal service node 3.
In some alternative embodiments, since the qcow2 format image is easy to archive and distribute, the first format of the first image may be qcow2 format image, or may be an image of other formats, which is not limited to this application. It should be noted that, the method for deploying the bare metal mirror images provided by the application can be used for deploying the mirror images of a plurality of bare metals at the same time.
S11: converting the first image into a second image in a second format; the storage space occupation amount of the first mirror image is smaller than that of the second mirror image;
Further, after the bare metal service node 3 receives the first image in the first format sent by the bare metal control node 2 through step S10, it is to be understood that, in order to reduce the excessive network resources occupied by the image in the transmission process, the storage space occupation amount of the first image is smaller than that of the second image.
In some alternative embodiments, the second mirror is a raw format mirror, i.e., a format mirror necessary for the bare metal service node 3 to function properly. It will be appreciated that the raw format mirror image storage space occupies a relatively large amount, for example, a first mirror image in qcow2 format that occupies 10 Gigabytes (GB) of real storage space may be calibrated to a second mirror image in raw format of 100GB, i.e. a first mirror image in qcow2 format of 10GB may be converted to a second mirror image in raw format of 100 GB.
Therefore, if the bare metal control node 2 converts the first image into the second image, the second image is transmitted to the bare metal service node 3 for deployment, more network bandwidth resources are occupied in the transmission process, and the time consumption of transmission is increased, so that the conversion of the first image in qcow2 format into the second image in raw format is completed in the bare metal service node 3, thereby saving network resources.
S12: and deploying the second mirror image to the local hard disk.
Further, the second mirror image is deployed to the local hard disk of the bare metal service node 3, so that the mirror image deployment of the bare metal is completed, and network resources and storage space are saved through simplified transmission and delay conversion.
Therefore, the method for deploying the bare metal mirror image provided by the embodiment of the application finishes the format conversion and deployment of the mirror image at the bare metal service node 3, avoids the situation that more network resources are occupied due to the fact that the bare metal control node 2 converts the first mirror image with smaller storage space occupation into the second mirror image with larger storage space occupation, delays the conversion and deployment of the mirror image format to the bare metal service node 3, can reduce the network bandwidth occupation, reduces the mirror image transmission time length, and further improves the deployment efficiency of the bare metal mirror image.
In an alternative embodiment, the first image is a compressed image in a predetermined manner; the preset mode comprises a zip compression mode. On the basis of the above embodiment, in order to further reduce network resources occupied by the first image in the transmission process, the first image is compressed, and specifically, a qcow2 format is taken as an example for explaining the first format.
After the bare metal control node 2 downloads the first mirror image in qcow2 format from the mirror image warehouse 1, the first mirror image in qcow2 format is zip-compressed, and the compressed first mirror image is transmitted to the bare metal service node 3, and it is noted that the first mirror image obtained by the bare metal service node 3 is the mirror image in qcow2 format and is the mirror image after zip compression.
For example, the first mirror image in the qcow2 format of 10GB is compressed into the first mirror image in the qcow2 format of 2GB, so that occupation of network resources when the bare metal control node 2 transmits the first mirror image can be further saved, the transmission rate is improved, and the mirror image deployment efficiency of the bare metal is improved.
In fact, the preset compression mode of the first mirror image is not limited, and the zip compression mode is preferable to compress the first mirror image because the zip compression mode can compress the first mirror image to obtain the mirror image with smaller occupied storage space.
Thus, the reduced qcow2 format is maintained and compressed before the bare metal control node 2 is ready to distribute the transmission first image to the bare metal service node 3, the dual measure reducing the transmission disk capacity.
It can be understood that, based on the above embodiment, after the compressed first image is transmitted to the bare metal service node 3, the bare metal service node 3 needs to decompress the first image first and then convert the first image into the second image in the second format.
Specifically, taking the first format as qcow2 format and the second format as raw format as an example for explanation, the bare metal control node 2 compresses the first mirror image of the qcow2 format of 10GB into the first mirror image of the qcow2 format of 2GB, and then transmits the first mirror image to the bare metal service node 3, and the bare metal service node 3 decompresses the first mirror image of the qcow2 format of 2GB into the first mirror image of the qcow2 format of 10GB based on the manner of unzip decompression.
Further, the first image in the qcow2 format of 10GB is converted into the second image in the raw format through the qemu-img tool. Wherein qemu-img is a command line tool that is part of the simulation processor QEMU (Quick Emulator) virtualization software suite for creating, converting, and managing disk image files.
Notably, in some alternative embodiments, bare metal control node 2 may be Ironic control node, ironic is an item in the Open source community-pushed Open Stack architecture for managing bare metal service node 3.
In this way, in the method for deploying the bare metal mirror image provided by the embodiment of the application, the bare metal control node 2 compresses the first mirror image and transmits the compressed first mirror image to the bare metal service node 3, the bare metal service node 3 completes decompression and format conversion of the first mirror image, and deploys the second mirror image obtained by format conversion to the local hard disk, so that the deployment of the bare metal mirror image is realized, and the occupation amount of the mirror image to network resources in the transmission process is further saved. In addition, the compression mode is adopted to store the mirror image, so that the occupation of the local storage space can be reduced.
In an alternative embodiment, in order to further improve the mirror image deployment efficiency of the bare metal and reduce the storage space occupation amount, the method for deploying the mirror image of the bare metal provided by the embodiment of the application decompresses the first mirror image, converts the first mirror image into a second mirror image in a second format, and deploys the second mirror image on a local hard disk, including:
For the data in the first mirror image and the second mirror image, sequentially decompressing the data in the first mirror image in a streaming data processing mode, converting the decompressed data into the data in the second mirror image, and deploying the data of the second mirror image on a local hard disk.
It can be understood that if the compressed first image is decompressed and stored, then the decompressed first image is converted into the second image for storage, and finally the second image is deployed on the local hard disk, more storage space is occupied, and the deployment efficiency of the images is low.
Therefore, according to the technical scheme provided by the embodiment of the application, the first mirror image is decompressed in turn in a non-falling mode, namely in a streaming data processing mode, while the bare metal service node 3 receives the compressed first mirror image, the decompressed first mirror image is converted into the second mirror image, and the second mirror image is deployed on the local hard disk.
That is, the first mirror image is decompressed and then is not stored, and is directly converted into a second mirror image in a second format, and the second mirror image is not stored after being obtained, and is directly deployed on a local hard disk, so that the occupation amount of the storage space of the bare metal service node 3 is reduced, and the deployment efficiency of bare metal is improved.
In some alternative embodiments, converting the first image to a second image in a second format includes:
downloading a virtual memory disk from the bare metal control node through a pxe boot technology;
A proxy service is initiated in the virtual disk to convert the first image to the second image via the proxy service.
In particular embodiments, when converting the first image to a second image in the second format, the virtual memory disk (ramdisk) may be downloaded from the bare metal control node 2 via a preset network boot technique, which in some alternative embodiments includes, but is not limited to, a px boot technique.
Further, the bare metal service node 3 initiates a proxy service in the virtual disk (HTTP SERVER) by which the first image is converted to the second image by the qemu-img tool.
In some alternative embodiments, the proxy service converts the first image to a second image, comprising:
Dividing a storage space with a preset size in a virtual memory disk;
and converting the first mirror image into a second mirror image in a storage space with a preset size.
Specifically, the proxy service HTTP SERVER divides a storage space of a predetermined size in the virtual disk ramdisk to convert the first image into the second image in the storage space. Further, the proxy service HTTP SERVER continuously writes the converted second image data in the second format into the local hard disk in an asynchronous manner, thereby completing the image deployment of the bare metal.
In the foregoing embodiment, a detailed description is given of a bare metal mirror deployment method applied to a bare metal service node, and the embodiment of the present application further provides a corresponding embodiment of a bare metal mirror deployment method applied to a bare metal control node, where the method includes:
the method comprises the steps that a first mirror image in a first format is sent to a bare metal service node, so that the bare metal service node converts the first mirror image into a second mirror image in a second format, and the second mirror image is deployed on a local hard disk; the storage space occupation amount of the first mirror image is smaller than that of the second mirror image.
It can be understood that the deployment method of the bare metal control node side provided by the embodiment of the application corresponds to the deployment method of the bare metal service node side, so that the beneficial effects are the same, and the description is omitted here.
In the above embodiments, the detailed description is given of the method applied to the deployment of the bare metal mirror image of the bare metal service node, and the application also provides a corresponding embodiment of the device applied to the deployment of the bare metal mirror image of the bare metal service node. It should be noted that the present application describes an embodiment of the device portion from two angles, one based on the angle of the functional module and the other based on the angle of the hardware structure.
Fig. 3 is a schematic structural diagram of a bare metal mirror deployment device according to an embodiment of the present application, where the device is applied to a bare metal service node, as shown in fig. 3, and the device includes:
A receiving module 30, configured to receive a first image in a first format sent by a bare metal control node;
a conversion module 31 for converting the first image into a second image in a second format; the storage space occupation amount of the first mirror image is smaller than that of the second mirror image;
a deployment module 32, configured to deploy the second image to the local hard disk.
In addition, the device for bare metal mirror deployment provided by the embodiment of the application further comprises:
and the decompression module is used for decompressing the first mirror image.
The data processing module is used for sequentially decompressing the data in the first mirror image and the second mirror image in a streaming data processing mode, converting the decompressed data into the data in the second mirror image and deploying the data of the second mirror image on the local hard disk.
The downloading module is used for downloading the virtual memory disc from the bare metal control node through a pxe guiding technology;
And the starting module is used for starting the proxy service in the virtual memory disk so as to convert the first image into the second image through the proxy service.
The division module is used for dividing a storage space with a preset size in the virtual memory disk;
the conversion module is used for converting the first mirror image into the second mirror image in a storage space with a preset size.
In addition, describing in detail the method for deploying the bare metal mirror image applied to the bare metal control node, the application also provides a corresponding embodiment of a device for deploying the bare metal mirror image applied to the bare metal control node, the device comprises: the sending module is specifically configured to send a first image in a first format to the bare metal service node, so that the bare metal service node converts the first image into a second image in a second format, and deploy the second image to the local hard disk; the storage space occupation amount of the first mirror image is smaller than that of the second mirror image.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purposes of the present application. Those of ordinary skill in the art will understand and implement the present application without undue burden.
Fig. 4 is a schematic structural diagram of a bare metal mirror deployment device according to another embodiment of the present application, where, as shown in fig. 4, the bare metal mirror deployment device includes: a memory 40 for storing a computer program;
A processor 41 for implementing the steps of the method of bare metal mirror deployment as mentioned in the above embodiments when executing a computer program.
The bare metal mirror deployment device provided in this embodiment may include, but is not limited to, a whole car controller, a notebook computer, a desktop computer, or the like.
Processor 41 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc., among others. The processor 41 may be implemented in at least one hardware form of a digital signal processor (DIGITAL SIGNAL processor, DSP), field-programmable gate array (FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 41 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a central processor (Central Processing Unit, abbreviated as CPU); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 41 may be integrated with an image processor (Graphics Processing Unit, GPU for short) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 41 may also include an artificial intelligence (ARTIFICIAL INTELLIGENCE, AI) processor for processing computing operations related to machine learning.
Memory 40 may include one or more computer-readable storage media, which may be non-transitory. Memory 40 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 40 is at least used to store a computer program 401, where the computer program, when loaded and executed by the processor 41, is capable of implementing the relevant steps of the bare metal mirror deployment method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 40 may further include an operating system 402, data 403, and the like, where the storage manner may be transient storage or permanent storage. Operating system 402 may include Windows, unix, linux, among other things. The data 403 may include, but is not limited to, related data involved in the method of bare metal mirror deployment, and the like.
In some embodiments, the bare metal mirror deployed device may further include a display screen 42, an input-output interface 43, a communication interface 44, a power supply 45, and a communication bus 46.
Those skilled in the art will appreciate that the structure shown in fig. 4 is not limiting of the bare metal mirror deployed device and may include more or fewer components than shown.
The device for deploying the bare metal mirror image provided by the embodiment of the application comprises a memory and a processor, wherein the processor can realize the method for deploying the bare metal mirror image in the embodiment when executing the program stored in the memory.
Finally, the application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps described in the above method embodiments (may be a method corresponding to a bare metal service node, or a method corresponding to a bare metal service node).
While this specification contains many specific implementation details, these should not be construed as limitations on the scope of any invention or of what may be claimed, but rather as descriptions of features of specific embodiments of particular inventions. Certain features that are described in this specification in the context of separate embodiments can also be implemented in combination in a single embodiment. On the other hand, the various features described in the individual embodiments may also be implemented separately in the various embodiments or in any suitable subcombination. Furthermore, although features may be acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.
Similarly, although operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In some cases, multitasking and parallel processing may be advantageous. Moreover, the separation of various system modules and components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.
Thus, particular embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. Furthermore, the processes depicted in the accompanying drawings are not necessarily required to be in the particular order shown, or sequential order, to achieve desirable results. In some implementations, multitasking and parallel processing may be advantageous.
The foregoing description of the preferred embodiments of the application is not intended to be limiting, but rather to enable any modification, equivalent replacement, improvement or the like to be made within the spirit and principles of the application.
Claims (10)
1. A method of bare metal mirror deployment, for use in a bare metal service node, the method comprising:
Receiving a first mirror image in a first format sent by a bare metal control node;
converting the first image into a second image in a second format; the storage space occupation amount of the first mirror image is smaller than that of the second mirror image;
and deploying the second mirror image on a local hard disk.
2. The method for bare metal mirror deployment according to claim 1, wherein the first mirror is a compressed mirror by a preset manner; the preset mode comprises a zip compression mode.
3. The method of bare metal mirror deployment according to claim 2, further comprising, prior to converting the first mirror to a second mirror in a second format:
Decompressing the first mirror image.
4. The method of bare metal mirror deployment of claim 3, wherein decompressing the first mirror, converting the first mirror to a second mirror in a second format, and deploying the second mirror to a local hard disk, comprises:
And sequentially decompressing the data in the first mirror image and the second mirror image in a streaming data processing mode, converting the decompressed data into the data in the second mirror image, and deploying the data of the second mirror image on the local hard disk.
5. The method of bare metal mirror deployment of claim 1, wherein converting the first mirror to a second mirror in a second format comprises:
downloading a virtual memory disk from the bare metal control node through a pxe boot technology;
a proxy service is initiated in the virtual disk to convert the first image to the second image via the proxy service.
6. The method of bare metal mirror deployment of claim 5, wherein the proxy service converting the first mirror to the second mirror comprises:
Dividing a storage space with a preset size in the virtual memory disk;
And converting the first mirror image into the second mirror image in the storage space with the preset size.
7. A method of bare metal mirror deployment, applied to a bare metal control node, the method comprising:
The method comprises the steps that a first mirror image in a first format is sent to a bare metal service node, so that the bare metal service node converts the first mirror image into a second mirror image in a second format, and the second mirror image is deployed on a local hard disk; the storage space occupation amount of the first mirror image is smaller than that of the second mirror image.
8. An apparatus for bare metal mirror deployment, for use in a bare metal service node, the apparatus comprising:
The receiving module is used for receiving a first mirror image in a first format sent by the bare metal control node;
The conversion module is used for converting the first image into a second image in a second format; the storage space occupation amount of the first mirror image is smaller than that of the second mirror image;
And the deployment module is used for deploying the second mirror image on the local hard disk.
9. An apparatus for bare metal mirror deployment comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor performs the steps of the method for bare metal mirror deployment of any of claims 1 to 7 when the program is executed by the processor.
10. A computer readable storage medium having stored thereon a computer program, characterized in that the program when executed by a processor realizes the steps of the method of bare metal mirror deployment according to any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410274496.5A CN117891472B (en) | 2024-03-11 | 2024-03-11 | Bare metal mirror image deployment method, device and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410274496.5A CN117891472B (en) | 2024-03-11 | 2024-03-11 | Bare metal mirror image deployment method, device and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117891472A true CN117891472A (en) | 2024-04-16 |
CN117891472B CN117891472B (en) | 2024-06-04 |
Family
ID=90649519
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410274496.5A Active CN117891472B (en) | 2024-03-11 | 2024-03-11 | Bare metal mirror image deployment method, device and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117891472B (en) |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7865475B1 (en) * | 2007-09-12 | 2011-01-04 | Netapp, Inc. | Mechanism for converting one type of mirror to another type of mirror on a storage system without transferring data |
CN103620550A (en) * | 2011-06-28 | 2014-03-05 | 微软公司 | Virtual machine image analysis |
CN109522088A (en) * | 2018-09-30 | 2019-03-26 | 华为技术有限公司 | A kind of virtual machine migration method and device |
CN110780980A (en) * | 2019-10-30 | 2020-02-11 | 成都无糖信息技术有限公司 | Method for quickly restoring images of disks or operating systems from different sources |
CN111090439A (en) * | 2019-12-13 | 2020-05-01 | 苏州浪潮智能科技有限公司 | Mirror image generation method, device and equipment for Linux system of bare metal server |
US20200186600A1 (en) * | 2018-12-11 | 2020-06-11 | Amazon Technologies, Inc. | Mirroring network traffic of virtual networks at a service provider network |
CN111475172A (en) * | 2020-02-29 | 2020-07-31 | 新华三大数据技术有限公司 | Bare machine deployment method and device |
CN112230940A (en) * | 2020-09-18 | 2021-01-15 | 苏州浪潮智能科技有限公司 | User mirror image making method and system based on Openstack bare computer service |
US20210055946A1 (en) * | 2019-08-21 | 2021-02-25 | Red Hat, Inc. | Minimizing downtime when importing virtual machines from other platforms |
CN113127008A (en) * | 2019-12-30 | 2021-07-16 | 华为技术有限公司 | Bare metal server issuing method and related device |
CN113626137A (en) * | 2021-06-30 | 2021-11-09 | 济南浪潮数据技术有限公司 | Implementation method, device, equipment and medium supporting multi-format mirror image |
CN114416434A (en) * | 2022-03-30 | 2022-04-29 | 苏州浪潮智能科技有限公司 | Bare metal disk backup method and device and computer readable storage medium |
CN115878136A (en) * | 2022-12-13 | 2023-03-31 | 新华三技术有限公司 | Deployment method, device and system based on bare metal server |
CN116483382A (en) * | 2023-05-11 | 2023-07-25 | 济南浪潮数据技术有限公司 | Bare metal deployment method, device and medium thereof |
CN116755721A (en) * | 2023-06-02 | 2023-09-15 | 浪潮云信息技术股份公司 | Method and device for realizing private mirror image of cloud physical machine local system disk |
CN117289956A (en) * | 2023-10-12 | 2023-12-26 | 北京首都在线科技股份有限公司 | Mirror image manufacturing method, apparatus, electronic device and storage medium |
CN117453240A (en) * | 2023-11-30 | 2024-01-26 | 济南浪潮数据技术有限公司 | RAID configuration method, device, equipment and medium of bare metal server |
-
2024
- 2024-03-11 CN CN202410274496.5A patent/CN117891472B/en active Active
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7865475B1 (en) * | 2007-09-12 | 2011-01-04 | Netapp, Inc. | Mechanism for converting one type of mirror to another type of mirror on a storage system without transferring data |
CN103620550A (en) * | 2011-06-28 | 2014-03-05 | 微软公司 | Virtual machine image analysis |
CN109522088A (en) * | 2018-09-30 | 2019-03-26 | 华为技术有限公司 | A kind of virtual machine migration method and device |
US20200186600A1 (en) * | 2018-12-11 | 2020-06-11 | Amazon Technologies, Inc. | Mirroring network traffic of virtual networks at a service provider network |
US20210055946A1 (en) * | 2019-08-21 | 2021-02-25 | Red Hat, Inc. | Minimizing downtime when importing virtual machines from other platforms |
CN110780980A (en) * | 2019-10-30 | 2020-02-11 | 成都无糖信息技术有限公司 | Method for quickly restoring images of disks or operating systems from different sources |
CN111090439A (en) * | 2019-12-13 | 2020-05-01 | 苏州浪潮智能科技有限公司 | Mirror image generation method, device and equipment for Linux system of bare metal server |
CN113127008A (en) * | 2019-12-30 | 2021-07-16 | 华为技术有限公司 | Bare metal server issuing method and related device |
CN111475172A (en) * | 2020-02-29 | 2020-07-31 | 新华三大数据技术有限公司 | Bare machine deployment method and device |
CN112230940A (en) * | 2020-09-18 | 2021-01-15 | 苏州浪潮智能科技有限公司 | User mirror image making method and system based on Openstack bare computer service |
CN113626137A (en) * | 2021-06-30 | 2021-11-09 | 济南浪潮数据技术有限公司 | Implementation method, device, equipment and medium supporting multi-format mirror image |
CN114416434A (en) * | 2022-03-30 | 2022-04-29 | 苏州浪潮智能科技有限公司 | Bare metal disk backup method and device and computer readable storage medium |
CN115878136A (en) * | 2022-12-13 | 2023-03-31 | 新华三技术有限公司 | Deployment method, device and system based on bare metal server |
CN116483382A (en) * | 2023-05-11 | 2023-07-25 | 济南浪潮数据技术有限公司 | Bare metal deployment method, device and medium thereof |
CN116755721A (en) * | 2023-06-02 | 2023-09-15 | 浪潮云信息技术股份公司 | Method and device for realizing private mirror image of cloud physical machine local system disk |
CN117289956A (en) * | 2023-10-12 | 2023-12-26 | 北京首都在线科技股份有限公司 | Mirror image manufacturing method, apparatus, electronic device and storage medium |
CN117453240A (en) * | 2023-11-30 | 2024-01-26 | 济南浪潮数据技术有限公司 | RAID configuration method, device, equipment and medium of bare metal server |
Non-Patent Citations (2)
Title |
---|
徐铁军;李宏波;: "利用开源实现虚拟化平台迁移", 网络安全和信息化, no. 07, 5 July 2020 (2020-07-05) * |
李阳阳;: "基于开源KVM的服务器虚拟机迁移方案研究", 计算机安全, no. 08, 15 August 2013 (2013-08-15) * |
Also Published As
Publication number | Publication date |
---|---|
CN117891472B (en) | 2024-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11868617B2 (en) | Virtualizing non-volatile storage at a peripheral device | |
CN105122210B (en) | GPU virtualization implementation method and related device and system | |
US9720719B2 (en) | Method and system for optimizing virtual disk provisioning | |
CN111160545A (en) | Artificial neural network processing system and data processing method thereof | |
CN107850983B (en) | Computer system, storage device and data management method | |
CN101702115B (en) | Method for realizing block protocol interface based on cluster storage system | |
US20190235758A1 (en) | Autonomic Data Compression for Balancing Performance and Space | |
WO2022095808A1 (en) | Method for implementing graphics rendering on basis of vulkan, and related apparatus | |
US20150278032A1 (en) | Providing services on system being recovered | |
US20190250852A1 (en) | Distributed compute array in a storage system | |
US11449963B1 (en) | Virtual graphics processing with remote execution | |
CN110888599A (en) | Interface device, system for virtualizing mass storage | |
US9311721B1 (en) | Graphics processing unit-assisted lossless decompression | |
US11681659B2 (en) | Hybrid file compression model | |
CN115858103B (en) | Method, device and medium for virtual machine hot migration of open stack architecture | |
CN107450856A (en) | Writing method and reading method of stored data, corresponding devices and terminals | |
CN116257276B (en) | Virtual host machine user back-end upgrading method supporting virtualized hardware acceleration | |
CN113535068B (en) | Data reading method and system | |
CN117891472B (en) | Bare metal mirror image deployment method, device and medium | |
CN114465877A (en) | Edge cloud migration method and system suitable for wireless self-organizing network environment | |
CN114925012A (en) | Ethernet frame issuing method, Ethernet frame uploading method and related devices | |
WO2023193433A1 (en) | Service starting method and related device | |
US20240256348A1 (en) | Graphical memory sharing | |
CN115617270A (en) | Data processing method and device for virtualized storage equipment of data processor | |
CN113934437A (en) | Method and system for installing application in cloud mobile phone and client cloud mobile phone |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |