+

CN114356357A - Image file processing method, device and electronic device - Google Patents

Image file processing method, device and electronic device Download PDF

Info

Publication number
CN114356357A
CN114356357A CN202210002074.3A CN202210002074A CN114356357A CN 114356357 A CN114356357 A CN 114356357A CN 202210002074 A CN202210002074 A CN 202210002074A CN 114356357 A CN114356357 A CN 114356357A
Authority
CN
China
Prior art keywords
data
image
image file
server
file
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
CN202210002074.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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202210002074.3A priority Critical patent/CN114356357A/en
Publication of CN114356357A publication Critical patent/CN114356357A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a method and a device for processing a mirror image file and electronic equipment, which are used for receiving a mirror image making request aiming at system disk data and data disk data and separating from a public cloud private network environment; and acquiring a first mirror image script and a second mirror image script based on the mirror image manufacturing request. And generating a system image file corresponding to the system disk data and a data image file corresponding to the data disk data based on the first image script, the second image script and the image configuration parameters carried in the image making request. The method can acquire the mirror image scripts corresponding to the system disk data and the data disk data respectively based on the mirror image manufacturing request carrying the mirror image configuration parameters, and the mirror image scripts and the mirror image configuration parameters are used for manufacturing the mirror images for the system disk data and the data disk data in the bare metal server.

Description

镜像文件处理方法、装置和电子设备Image file processing method, device and electronic device

技术领域technical field

本发明涉及数据处理技术领域,尤其是涉及一种镜像文件处理方法、装置和电子设备。The present invention relates to the technical field of data processing, and in particular, to a method, device and electronic device for processing an image file.

背景技术Background technique

裸金属服务器,在拥有虚拟机弹性灵活的基础上,具有高性能计算的能力,是一种可弹性伸缩的高性能计算服务器;用户可以从云计算厂商处购买裸金属服务器,考虑到容灾恢复问题,用户可能需要对现有裸金属服务器中的数据、配置进行留存,相关技术中,云计算厂商可以为用户提供纯净系统镜像,以使用户可以在新建实例时进行系统的安装;但是用户的裸金属服务器中通常还有自行部署的服务、配置文件等其他相关数据,云计算厂商并没有为用户提供针对这类数据的迁移或安装方式,用户需要自行采用其他方式对这类数据进行迁移或安装,因此,相关技术对于数据存储的可用性程度较差,并且用户操作成本也较高。Bare metal servers, based on the flexibility and flexibility of virtual machines, have high-performance computing capabilities, and are a kind of elastically scalable high-performance computing servers; users can purchase bare metal servers from cloud computing vendors, considering disaster recovery. The problem is that users may need to retain the data and configuration in the existing bare metal servers. In related technologies, cloud computing vendors can provide users with pure system images, so that users can install the system when creating new instances; however, the user's Bare metal servers usually have self-deployed services, configuration files and other related data. Cloud computing vendors do not provide users with migration or installation methods for such data. Users need to use other methods to migrate or install such data. Installation, therefore, the related art is less usable for data storage, and the user operation cost is also high.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于提供一种镜像文件处理方法、装置和电子设备,以对于提高数据存储的可用性程度,降低用户操作成本。The purpose of the present invention is to provide a mirror file processing method, device and electronic device, so as to improve the usability of data storage and reduce user operation cost.

第一方面,本发明提供的一种镜像文件处理方法,方法应用于用户侧的裸金属服务器,裸金属服务器预先运行在公有云私有网络环境中;方法包括:接收针对预先存储的系统盘数据和数据盘数据的镜像制作请求,脱离公有云私有网络环境;其中,镜像制作请求中携带有用户输入的镜像配置参数;基于镜像制作请求,获取系统盘数据对应的第一镜像脚本,以及数据盘数据对应的第二镜像脚本;在脱离公有云私有网络环境下,基于第一镜像脚本、第二镜像脚本和镜像配置参数,生成系统盘数据对应的系统镜像文件,以及数据盘数据对应的数据镜像文件。In a first aspect, the present invention provides a method for processing an image file, the method is applied to a bare metal server on the user side, and the bare metal server is pre-run in a public cloud private network environment; the method includes: receiving pre-stored system disk data and The image creation request of the data disk data is separated from the public cloud private network environment; wherein, the image creation request carries the image configuration parameters input by the user; based on the image creation request, the first image script corresponding to the system disk data and the data disk data are obtained. Corresponding second mirroring script; in the absence of the public cloud private network environment, based on the first mirroring script, the second mirroring script and the mirroring configuration parameters, generate a system mirroring file corresponding to the system disk data, and a data mirroring file corresponding to the data on the data disk .

进一步的,裸金属服务器与预启动执行环境服务器连接;预启动执行环境服务器对应的预启动执行环境数据库中预先存储有多种系统盘数据对应的镜像脚本,以及多种数据盘数据对应的镜像脚本;基于镜像制作请求,获取系统盘数据对应的第一镜像脚本,以及数据盘数据对应的第二镜像脚本的步骤包括:将镜像制作请求发送至预启动执行环境服务器,通过预启动执行环境服务器,从预启动执行环境数据库中,获取系统盘数据对应的第一镜像脚本,以及数据盘数据对应的第二镜像脚本。Further, the bare metal server is connected to the pre-boot execution environment server; the pre-boot execution environment database corresponding to the pre-boot execution environment server pre-stores mirror scripts corresponding to various system disk data and mirror scripts corresponding to various data disk data. The step of obtaining the first mirror script corresponding to the system disk data and the second mirror script corresponding to the data disk data based on the mirroring request comprises: sending the mirroring request to the pre-boot execution environment server, and by pre-booting the execution environment server, From the pre-boot execution environment database, the first mirroring script corresponding to the system disk data and the second mirroring script corresponding to the data disk data are acquired.

进一步的,裸金属服务器与预启动执行环境服务器连接;预启动执行环境服务器与对象存储服务器连接;生成系统盘数据对应的系统镜像文件,以及数据盘数据对应的数据镜像文件的步骤之后,方法还包括:通过预启动执行环境服务器,将系统镜像文件和数据镜像文件保存至预启动执行环境服务器对应的预启动执行环境数据库;依次通过预启动执行环境服务器和对象存储服务器,将系统镜像文件和数据镜像文件保存至对象存储服务器对应的对象存储数据库。Further, the bare metal server is connected with the pre-boot execution environment server; the pre-boot execution environment server is connected with the object storage server; after the steps of generating a system image file corresponding to the system disk data and a data image file corresponding to the data disk data, the method further comprises: Including: by pre-starting the execution environment server, saving the system image file and data image file to the pre-start execution environment database corresponding to the pre-start execution environment server; sequentially by pre-starting the execution environment server and the object storage server, saving the system image file and data The image file is saved to the object storage database corresponding to the object storage server.

进一步的,对象存储服务器与裸金属后端服务器连接;将系统镜像文件和数据镜像文件保存至对象存储服务器对应的对象存储数据库的步骤之后,方法还包括:依次通过对象存储服务器和裸金属后端服务器,接收对系统镜像文件和数据镜像文件保存成功的消息,加入公有云私有网络环境,以重新运行在公有云私有网络环境中。Further, the object storage server is connected with the bare metal backend server; after the step of saving the system image file and the data image file to the object storage database corresponding to the object storage server, the method further includes: sequentially passing through the object storage server and the bare metal backend The server receives the message that the system image file and the data image file are successfully saved, and joins the public cloud private network environment to re-run in the public cloud private network environment.

进一步的,加入公有云私有网络环境,以重新运行在公有云私有网络环境中的步骤之后,方法还包括:通过裸金属后端服务器,向镜像制作请求对应的用户返回第一处理结果;其中,第一处理结果包括:系统镜像文件对应的文件标识、数据镜像文件对应的文件标识、系统镜像文件制作成功或失败的消息,以及数据镜像文件制作成功或失败的消息。Further, after joining the public cloud private network environment to re-run the steps in the public cloud private network environment, the method further includes: returning the first processing result to the user corresponding to the image making request through the bare metal back-end server; wherein, The first processing result includes: a file identifier corresponding to the system image file, a file identifier corresponding to the data image file, a message that the system image file is successfully created or failed, and a message that the data image file is created successfully or failed.

进一步的,加入公有云私有网络环境,以重新运行在公有云私有网络环境中的步骤之后,方法还包括:通过裸金属后端服务器,将系统镜像文件对应的文件标识和数据镜像文件对应的文件标识发送至裸金属服务器对应的镜像管理平台。Further, after adding the public cloud private network environment to re-run the steps in the public cloud private network environment, the method further includes: through the bare metal backend server, identifying the file identifier corresponding to the system image file and the file corresponding to the data image file The ID is sent to the image management platform corresponding to the BMS.

第二方面,本发明提供的一种镜像文件处理方法,方法应用于镜像管理平台;镜像管理平台的对象存储服务器上存储有目标镜像文件,目标镜像文件包括按照上述第一方面任一项的方法生成的系统镜像文件和数据镜像文件;方法包括:接收针对系统镜像文件和数据镜像文件的处理请求;其中,处理请求包括以下之一:复制请求、删除请求;基于处理请求,对系统镜像文件对应的文件标识和数据镜像文件对应的文件标识执行处理请求对应的处理操作,得到第二处理结果;向处理请求对应的用户返回第二处理结果。In a second aspect, the present invention provides a method for processing an image file. The method is applied to an image management platform; an object storage server of the image management platform stores a target image file, and the target image file includes the method according to any one of the above first aspects. The generated system mirror file and data mirror file; the method includes: receiving a processing request for the system mirror file and the data mirror file; wherein, the processing request includes one of the following: a copy request and a deletion request; based on the processing request, corresponding to the system mirror file The file identifier corresponding to the data mirror file and the file identifier corresponding to the data mirror file execute the processing operation corresponding to the processing request to obtain the second processing result; and return the second processing result to the user corresponding to the processing request.

第三方面,本发明提供的一种镜像文件处理装置,装置设置于用户侧的裸金属服务器,裸金属服务器预先运行在公有云私有网络环境中;装置包括:第一接收模块,用于接收针对预先存储的系统盘数据和数据盘数据的镜像制作请求,脱离公有云私有网络环境;其中,镜像制作请求中携带有用户输入的镜像配置参数;获取模块,用于基于镜像制作请求,获取系统盘数据对应的第一镜像脚本,以及数据盘数据对应的第二镜像脚本;生成模块,用于在脱离公有云私有网络环境下,基于第一镜像脚本、第二镜像脚本和镜像配置参数,生成系统盘数据对应的系统镜像文件,以及数据盘数据对应的数据镜像文件。In a third aspect, the present invention provides an image file processing device, the device is set on a bare metal server on the user side, and the bare metal server runs in a public cloud private network environment in advance; the device includes: a first receiving module for receiving a target The pre-stored system disk data and the image creation request for the data disk data are separated from the public cloud private network environment; wherein, the image creation request carries the image configuration parameters input by the user; the acquisition module is used to obtain the system disk based on the image creation request a first mirroring script corresponding to the data, and a second mirroring script corresponding to the data disk data; a generation module is used to generate a system based on the first mirroring script, the second mirroring script and the mirroring configuration parameters in the absence of the public cloud private network environment The system image file corresponding to the disk data, and the data image file corresponding to the data disk data.

第四方面,本发明提供的一种镜像文件处理装置,装置设置于镜像管理平台;镜像管理平台的对象存储服务器上存储有目标镜像文件,目标镜像文件包括按照上述第一方面任一项的方法生成的系统镜像文件和数据镜像文件;装置包括:第二接收模块,用于接收针对系统镜像文件和数据镜像文件的处理请求;其中,处理请求包括以下之一:复制请求、删除请求;处理模块,用于基于处理请求,对系统镜像文件对应的文件标识和数据镜像文件对应的文件标识执行处理请求对应的处理操作,得到第二处理结果;返回模块,用于向处理请求对应的用户返回第二处理结果。In a fourth aspect, the present invention provides an image file processing device, the device is set on an image management platform; an object storage server of the image management platform stores a target image file, and the target image file includes the method according to any one of the above first aspects. The generated system image file and data image file; the device includes: a second receiving module for receiving a processing request for the system image file and the data image file; wherein the processing request includes one of the following: a copy request, a deletion request; a processing module is used to perform the processing operation corresponding to the processing request on the file identifier corresponding to the system image file and the file identifier corresponding to the data image file based on the processing request, and obtain the second processing result; the return module is used to return the first processing request to the user corresponding to the processing request. Two processing results.

第五方面,本发明提供的一种电子设备,包括处理器和存储器,存储器存储有能够被处理器执行的机器可执行指令,处理器执行机器可执行指令以实现上述第一方面或第二方面任一项的镜像文件处理方法。In a fifth aspect, an electronic device provided by the present invention includes a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the first aspect or the second aspect. The image file processing method of any item.

第六方面,本发明提供的一种机器可读存储介质,机器可读存储介质存储有机器可执行指令,机器可执行指令在被处理器调用和执行时,机器可执行指令促使处理器实现上述第一方面或第二方面任一项的镜像文件处理方法。In a sixth aspect, the present invention provides a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are invoked and executed by a processor, the machine-executable instructions cause the processor to implement the above The image file processing method of any one of the first aspect or the second aspect.

本发明提供的镜像文件处理方法、装置和电子设备,首先接收针对预先存储的系统盘数据和数据盘数据的镜像制作请求,脱离公有云私有网络环境;其中,镜像制作请求中携带有用户输入的镜像配置参数。然后基于镜像制作请求,获取系统盘数据对应的第一镜像脚本,以及数据盘数据对应的第二镜像脚本。最后在脱离公有云私有网络环境下,基于第一镜像脚本、第二镜像脚本和镜像配置参数,生成系统盘数据对应的系统镜像文件,以及数据盘数据对应的数据镜像文件。该方式可以基于携带有镜像配置参数的镜像制作请求,获取系统盘数据和数据盘数据分别对应的镜像脚本,基于镜像脚本和镜像配置参数,对裸金属服务器中的系统盘数据和数据盘数据制作镜像,由于不需要用户自行采用其他方式对数据盘中的数据进行迁移或安装,从而提高了对于数据存储的可用性程度,降低了用户操作成本。The image file processing method, device and electronic device provided by the present invention firstly receive an image creation request for pre-stored system disk data and data disk data, and leave the public cloud private network environment; wherein, the image creation request carries a user-inputted image. Mirror configuration parameters. Then, based on the image creation request, a first image script corresponding to the system disk data and a second image script corresponding to the data disk data are obtained. Finally, based on the first mirror script, the second mirror script and the mirror configuration parameters, a system mirror file corresponding to the system disk data and a data mirror file corresponding to the data disk data are generated in a private network environment separated from the public cloud. This method can obtain mirror scripts corresponding to the system disk data and data disk data based on the mirror creation request carrying the mirror configuration parameters, and create the system disk data and data disk data in the bare metal server based on the mirror script and the mirror configuration parameters. Mirroring does not require users to migrate or install data in the data disk in other ways, thereby improving the availability of data storage and reducing user operation costs.

附图说明Description of drawings

为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the specific embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the specific embodiments or the prior art. Obviously, the accompanying drawings in the following description The drawings are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative efforts.

图1为本发明实施例提供的一种镜像文件处理方法流程图;1 is a flowchart of a method for processing an image file provided by an embodiment of the present invention;

图2为本发明实施例提供的另一种镜像文件处理方法流程图;2 is a flowchart of another image file processing method provided by an embodiment of the present invention;

图3为本发明实施例提供的另一种镜像文件处理方法流程图;3 is a flowchart of another image file processing method provided by an embodiment of the present invention;

图4为本发明实施例提供的一种前端控制台操作界面示意图;4 is a schematic diagram of an operation interface of a front-end console provided by an embodiment of the present invention;

图5为本发明实施例提供的一种裸金属服务器镜像制作流程图;FIG. 5 is a flowchart of making a bare metal server image according to an embodiment of the present invention;

图6为本发明实施例提供的另一种镜像文件处理方法流程图;6 is a flowchart of another image file processing method provided by an embodiment of the present invention;

图7为本发明实施例提供的一种镜像管理平台界面示意图;7 is a schematic diagram of an interface of an image management platform provided by an embodiment of the present invention;

图8为本发明实施例提供的一种新建标准镜像操作界面示意图;8 is a schematic diagram of an operation interface for creating a new standard mirror image provided by an embodiment of the present invention;

图9为本发明实施例提供的一种创建私有镜像操作界面示意图;9 is a schematic diagram of an operation interface for creating a private image provided by an embodiment of the present invention;

图10为本发明实施例提供的一种镜像文件处理装置的结构示意图;10 is a schematic structural diagram of an image file processing apparatus according to an embodiment of the present invention;

图11为本发明实施例提供的另一种镜像文件处理装置的结构示意图;11 is a schematic structural diagram of another image file processing apparatus provided by an embodiment of the present invention;

图12为本发明实施例提供的一种电子设备的结构示意图。FIG. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合实施例对本发明的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions of the present invention will be clearly and completely described below with reference to the embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

裸金属服务器,在拥有虚拟机弹性灵活的基础上,具有高性能计算的能力,是一种可弹性伸缩的高性能计算服务器;用户可以从云计算厂商处购买裸金属服务器,在一些场景中,用户可能需要对现有裸金属服务器中的数据、配置进行留存或迁移,相关技术中,在用户购买裸金属服务器这一场景中,云计算厂商与技术人员无权干预用户业务,因此,云计算厂商仅支持纯净系统的安装服务,云计算厂商可以提供纯净系统镜像供用户在新建实例时进行系统的安装,对于用户自行部署的服务、配置文件等其他程序,需要用户自行采用其他方式对这类数据进行迁移或安装,在该场景中,云计算厂商所提供的服务未满足用户对于数据存储高可用性的需求,且用户的操作成本(含费用、时间、人力等成本)过大;在用户的裸金属服务器故障,需要进行备机数据迁移这一场景中,通常由用户启用备机,并需要采用能承载同业务的机器,再进行数据的迁移;在启用备机后需做端到端链接,复制数据到备机中;该场景中,如果用户业务部署的裸金属服务器仅有一台,则无法迁移、恢复数据,另外,端到端链接需要用户支付额外的流量费用,开销较大。Bare metal servers, based on the flexibility and flexibility of virtual machines, have high-performance computing capabilities, and are a kind of elastically scalable high-performance computing servers; users can purchase bare metal servers from cloud computing vendors. In some scenarios, Users may need to retain or migrate data and configurations in existing bare metal servers. In related technologies, cloud computing vendors and technicians have no right to intervene in user business in the scenario where users purchase bare metal servers. Therefore, cloud computing The manufacturer only supports the installation service of the pure system. The cloud computing manufacturer can provide the pure system image for the user to install the system when creating a new instance. For other programs such as services and configuration files deployed by the user, the user needs to adopt other methods. Data is migrated or installed. In this scenario, the services provided by cloud computing vendors do not meet the user’s requirement for high availability of data storage, and the user’s operating costs (including costs, time, labor, etc.) are too large; In the scenario where the bare metal server fails and data migration needs to be performed on the backup server, the user usually activates the backup server, and needs to use a machine that can carry the same service, and then migrate the data; after the backup server is enabled, an end-to-end link is required. , copy the data to the standby server; in this scenario, if there is only one bare metal server deployed by the user business, the data cannot be migrated and restored. In addition, the end-to-end link requires the user to pay additional traffic fees, which is expensive.

由上述可知,相关技术中,云计算厂商的产品力不足,无法满足实际用户的使用需求,随着云计算厂商业务和用户业务的发展,曾用功能无法满足用户降低成本、提高效率的重要需求,如果不能跟进用户的实际应用场景,也将对云计算厂商业务产生不良影响。It can be seen from the above that, in the related technologies, the products of cloud computing manufacturers are insufficient and cannot meet the needs of actual users. , if the actual application scenarios of users cannot be followed up, it will also have a negative impact on the business of cloud computing manufacturers.

基于此,本发明实施例提供了一种镜像文件处理方法、装置和电子设备,该技术可以应用于需要对裸金属服务器中的相关数据进行镜像处理的应用中。Based on this, the embodiments of the present invention provide an image file processing method, apparatus, and electronic device, and the technology can be applied to applications that need to perform image processing on related data in a bare metal server.

为便于对本实施例进行理解,首先对本发明实施例所公开的一种镜像文件处理方法进行详细介绍;方法应用于用户侧的裸金属服务器,裸金属服务器预先运行在公有云私有网络环境中,该公有云私有网络可以称为VPC(Virtual Private Cloud),可以理解为用户可自定义的网络,用户可以在公有云私有网络内部署云主机、负载均衡、数据等云服务资源;如图1所示,该方法包括如下步骤:In order to facilitate the understanding of this embodiment, a method for processing an image file disclosed in the embodiment of the present invention is first introduced in detail; the method is applied to a bare metal server on the user side, and the bare metal server is pre-run in a public cloud private network environment, the A public cloud private network can be called a VPC (Virtual Private Cloud), which can be understood as a user-customizable network. Users can deploy cloud service resources such as cloud hosts, load balancing, and data in the public cloud private network; as shown in Figure 1 , the method includes the following steps:

步骤S102,接收针对预先存储的系统盘数据和数据盘数据的镜像制作请求,脱离公有云私有网络环境;其中,镜像制作请求中携带有用户输入的镜像配置参数。Step S102: Receive an image creation request for pre-stored system disk data and data disk data, and leave the public cloud private network environment; wherein the image creation request carries image configuration parameters input by the user.

上述系统盘可以理解为裸金属服务器中用来装系统的磁盘,系统盘数据可以理解为系统盘中所存储的与系统安装相关的数据;上述数据盘可以理解为裸金属服务器中用来存储数据的磁盘,数据盘数据可以理解为数据盘中所存储的数据;在实际实现时,用户可以通过控制台输入相关的镜像配置参数,如用户填写的镜像名称、后端获取的基础镜像所在地域、镜像ID(Identity document,身份标识)、镜像类型等参数信息,然后发出针对裸金属服务器整机的镜像制作请求,即对预先存储在裸金属服务器中的系统盘数据和数据盘数据的镜像制作请求,当裸金属服务器接收到该镜像制作请求后,通常会自动脱离公有云私有网络环境,即自动进入离线VPC状态,以在离线VPC状态下制作镜像。The above system disk can be understood as the disk used to install the system in the bare metal server, and the system disk data can be understood as the data related to the system installation stored in the system disk; the above data disk can be understood as the data stored in the bare metal server. The data of the data disk can be understood as the data stored in the data disk; in actual implementation, the user can input the relevant image configuration parameters through the console, such as the image name filled in by the user, the region where the basic image obtained by the backend is located, Image ID (Identity document, identity identification), image type and other parameter information, and then send an image creation request for the entire BMS, that is, an image creation request for the system disk data and data disk data pre-stored in the BMS , when the bare metal server receives the image creation request, it usually automatically leaves the public cloud private network environment, that is, automatically enters the offline VPC state to create an image in the offline VPC state.

步骤S104,基于镜像制作请求,获取系统盘数据对应的第一镜像脚本,以及数据盘数据对应的第二镜像脚本。Step S104, based on the image creation request, obtain a first image script corresponding to the system disk data and a second image script corresponding to the data disk data.

上述第一镜像脚本可以理解为能对系统盘数据进行实际镜像操作的可执行文件;上述第二镜像脚本可以理解为能对数据盘数据进行实际镜像操作的可执行文件;在实际实现时,当接收到上述镜像制作请求,并脱离公有云私有网络环境后,通常需要获取系统盘数据和数据盘数据分别对应的镜像脚本,以对系统盘数据和数据盘数据执行镜像操作。The above-mentioned first mirroring script can be understood as an executable file that can perform actual mirroring operations on system disk data; the above-mentioned second mirroring script can be understood as an executable file that can perform actual mirroring operations on data disk data; in actual implementation, when After receiving the above image creation request and leaving the public cloud private network environment, it is usually necessary to obtain the image scripts corresponding to the system disk data and the data disk data respectively, so as to perform the mirroring operation on the system disk data and the data disk data.

步骤S106,在脱离公有云私有网络环境下,基于第一镜像脚本、第二镜像脚本和镜像配置参数,生成系统盘数据对应的系统镜像文件,以及数据盘数据对应的数据镜像文件。Step S106 , generating a system image file corresponding to the system disk data and a data image file corresponding to the data disk data based on the first image script, the second image script and the image configuration parameters in the absence of the public cloud private network environment.

上述系统镜像文件可以理解为系统盘数据的备份,可以用于对系统盘数据的保留以及恢复;上述数据镜像文件可以理解为数据盘数据的备份,可以用于对数据盘数据的保留以及恢复;在实际实现时,可以基于获取到的第一镜像脚本、第二镜像脚本和镜像配置参数,对裸金属服务器中的系统盘数据和数据盘数据进行镜像制作,得到系统盘数据对应的系统镜像文件,以及数据盘数据对应的数据镜像文件。The above-mentioned system image file can be understood as a backup of the system disk data, and can be used for the retention and recovery of the system disk data; the above-mentioned data image file can be understood as a backup of the data disk data, and can be used for the retention and recovery of the data disk data; In actual implementation, the system disk data and data disk data in the bare metal server can be mirrored based on the obtained first mirror script, second mirror script and mirror configuration parameters, and a system mirror file corresponding to the system disk data can be obtained , and the data mirror file corresponding to the data on the data disk.

上述镜像文件处理方法,首先接收针对预先存储的系统盘数据和数据盘数据的镜像制作请求,脱离公有云私有网络环境;其中,镜像制作请求中携带有用户输入的镜像配置参数。然后基于镜像制作请求,获取系统盘数据对应的第一镜像脚本,以及数据盘数据对应的第二镜像脚本。最后在脱离公有云私有网络环境下,基于第一镜像脚本、第二镜像脚本和镜像配置参数,生成系统盘数据对应的系统镜像文件,以及数据盘数据对应的数据镜像文件。该方式可以基于携带有镜像配置参数的镜像制作请求,获取系统盘数据和数据盘数据分别对应的镜像脚本,基于镜像脚本和镜像配置参数,对裸金属服务器中的系统盘数据和数据盘数据制作镜像,由于不需要用户自行采用其他方式对数据盘中的数据进行迁移或安装,从而提高了对于数据存储的可用性程度,降低了用户操作成本。The above-mentioned image file processing method firstly receives an image creation request for pre-stored system disk data and data disk data, and leaves the public cloud private network environment; wherein, the image creation request carries image configuration parameters input by the user. Then, based on the image creation request, a first image script corresponding to the system disk data and a second image script corresponding to the data disk data are obtained. Finally, based on the first mirror script, the second mirror script and the mirror configuration parameters, a system mirror file corresponding to the system disk data and a data mirror file corresponding to the data disk data are generated in a private network environment separated from the public cloud. This method can obtain mirror scripts corresponding to the system disk data and data disk data based on the mirror creation request carrying the mirror configuration parameters, and create the system disk data and data disk data in the bare metal server based on the mirror script and the mirror configuration parameters. Mirroring does not require users to migrate or install data in the data disk in other ways, thereby improving the availability of data storage and reducing user operation costs.

本发明实施例还提供了另一种镜像文件处理方法,该方法在上述实施例方法的基础上实现;该方法重点描述基于镜像制作请求,获取系统盘数据对应的第一镜像脚本,以及数据盘数据对应的第二镜像脚本的具体过程,具体对应下述步骤S204;该方法中,裸金属服务器与预启动执行环境服务器连接;预启动执行环境服务器对应的预启动执行环境数据库中预先存储有多种系统盘数据对应的镜像脚本,以及多种数据盘数据对应的镜像脚本;该预启动执行环境服务器也可以称为PXE(Preboot Execute Environment)服务器,客户端可以通过PXE服务器实现开机时自动安装操作系统,服务端可实现监听并响应客户端系统的安装请求,并提供DHCP(Dynamic Host Configuration Protocol,动态主机配置协议)、TFTP(Trivial File Transfer Protocol,简单文件传输协议)等服务;其中,DHCP是一种局域网的网络协议;TFTP是一种用来在客户端与服务器之间进行简单文件传输的协议;上述预启动执行环境数据库也可以称为PXE数据库,该预启动执行环境数据库中通常预先存储有多种不同系统盘数据分别对应的镜像脚本,以及多种不同数据盘数据分别对应的镜像脚本;如图2所示,该方法包括如下步骤:The embodiment of the present invention also provides another image file processing method, which is implemented on the basis of the method in the above-mentioned embodiment; the method focuses on the description of obtaining the first image script corresponding to the system disk data based on the image creation request, and the data disk The specific process of the second mirror script corresponding to the data specifically corresponds to the following step S204; in this method, the bare metal server is connected to the pre-boot execution environment server; the pre-boot execution environment database corresponding to the pre-boot execution environment server pre-stores multiple Mirror scripts corresponding to various system disk data, and mirror scripts corresponding to various data disk data; the pre-boot execution environment server can also be called a PXE (Preboot Execute Environment) server, and the client can use the PXE server to realize automatic installation when booting. System, the server can monitor and respond to the installation request of the client system, and provide services such as DHCP (Dynamic Host Configuration Protocol, dynamic host configuration protocol), TFTP (Trivial File Transfer Protocol, simple file transfer protocol); among them, DHCP is A network protocol of a local area network; TFTP is a protocol used for simple file transfer between a client and a server; the above-mentioned pre-boot execution environment database can also be called a PXE database, which is usually pre-stored in the pre-boot execution environment database There are a variety of mirroring scripts corresponding to different system disk data, and a variety of mirroring scripts corresponding to different data disk data; as shown in Figure 2, the method includes the following steps:

步骤S202,接收针对预先存储的系统盘数据和数据盘数据的镜像制作请求,脱离公有云私有网络环境;其中,镜像制作请求中携带有用户输入的镜像配置参数。Step S202: Receive an image creation request for pre-stored system disk data and data disk data, and leave the public cloud private network environment; wherein the image creation request carries image configuration parameters input by the user.

步骤S204,将镜像制作请求发送至预启动执行环境服务器,通过预启动执行环境服务器,从预启动执行环境数据库中,获取系统盘数据对应的第一镜像脚本,以及数据盘数据对应的第二镜像脚本。Step S204: Send the image creation request to the pre-boot execution environment server, and obtain the first mirror script corresponding to the system disk data and the second mirror corresponding to the data disk data from the pre-boot execution environment database through the pre-boot execution environment server script.

在实际实现时,当用户的裸金属服务器接收到用户发出的镜像制作请求后,可以将该镜像制作请求发送至预启动执行环境服务器,以向预启动执行环境服务器请求制作镜像所需要的镜像脚本,预启动执行环境服务器接收到该镜像制作请求后,通过脚本传输API(Application Programming Interface,应用程序接口),从所连接的预启动执行环境数据库中,获取系统盘数据对应的第一镜像脚本,以及数据盘数据对应的第二镜像脚本。In actual implementation, after the user's bare metal server receives the image creation request sent by the user, it can send the image creation request to the pre-boot execution environment server to request the pre-boot execution environment server for the mirror script required for creating the image. , after the pre-boot execution environment server receives the mirroring request, it obtains the first mirror script corresponding to the system disk data from the connected pre-boot execution environment database through the script transmission API (Application Programming Interface). and the second mirroring script corresponding to the data of the data disk.

步骤S206,在脱离公有云私有网络环境下,基于第一镜像脚本、第二镜像脚本和镜像配置参数,生成系统盘数据对应的系统镜像文件,以及数据盘数据对应的数据镜像文件。Step S206 , generating a system image file corresponding to the system disk data and a data image file corresponding to the data disk data based on the first image script, the second image script and the image configuration parameters in the absence of the public cloud private network environment.

上述镜像文件处理方法,首先接收针对预先存储的系统盘数据和数据盘数据的镜像制作请求,脱离公有云私有网络环境;然后将镜像制作请求发送至预启动执行环境服务器,通过预启动执行环境服务器,从预启动执行环境数据库中,获取系统盘数据对应的第一镜像脚本,以及数据盘数据对应的第二镜像脚本。最后在脱离公有云私有网络环境下,基于第一镜像脚本、第二镜像脚本和镜像配置参数,生成系统盘数据对应的系统镜像文件,以及数据盘数据对应的数据镜像文件。该方式可以基于携带有镜像配置参数的镜像制作请求,获取系统盘数据和数据盘数据分别对应的镜像脚本,基于镜像脚本和镜像配置参数,对裸金属服务器中的系统盘数据和数据盘数据制作镜像,由于不需要用户自行采用其他方式对数据盘中的数据进行迁移或安装,从而提高了对于数据存储的可用性程度,降低了用户操作成本。In the above method for processing image files, firstly, a request for image creation for pre-stored system disk data and data disk data is received, leaving the public cloud private network environment; then, the image creation request is sent to a pre-boot execution environment server, and the pre-boot execution environment server , from the pre-boot execution environment database, to obtain the first mirroring script corresponding to the system disk data and the second mirroring script corresponding to the data disk data. Finally, based on the first mirror script, the second mirror script and the mirror configuration parameters, a system mirror file corresponding to the system disk data and a data mirror file corresponding to the data disk data are generated in a private network environment separated from the public cloud. This method can obtain mirror scripts corresponding to the system disk data and data disk data based on the mirror creation request carrying the mirror configuration parameters, and create the system disk data and data disk data in the bare metal server based on the mirror script and the mirror configuration parameters. Mirroring does not require users to migrate or install data in the data disk in other ways, thereby improving the availability of data storage and reducing user operation costs.

本发明实施例还提供了另一种镜像文件处理方法,该方法在上述实施例方法的基础上实现;该方法中,裸金属服务器与预启动执行环境服务器连接;预启动执行环境服务器与对象存储服务器连接;对象存储服务器与裸金属后端服务器连接;该裸金属后端服务器通常是云计算厂商的裸金属后端服务器,如图3所示,该方法包括如下步骤:The embodiment of the present invention also provides another image file processing method, which is implemented on the basis of the method in the above-mentioned embodiment; in this method, the bare metal server is connected to the pre-boot execution environment server; the pre-boot execution environment server is connected to the object storage The server is connected; the object storage server is connected to the bare metal back-end server; the bare-metal back-end server is usually a bare-metal back-end server of a cloud computing manufacturer, as shown in FIG. 3 , the method includes the following steps:

步骤S302,接收针对预先存储的系统盘数据和数据盘数据的镜像制作请求,脱离公有云私有网络环境;其中,镜像制作请求中携带有用户输入的镜像配置参数。Step S302: Receive an image creation request for pre-stored system disk data and data disk data, and leave the public cloud private network environment; wherein the image creation request carries image configuration parameters input by the user.

在实际实现时,用户可以通过所操作的前端控制台,发起上述镜像制作请求,参见图4所示的一种前端控制台操作界面示意图,当用户需要制作镜像时,可以先选择需要镜像的实例,填写相关的镜像配置参数后,就可以触发制作镜像的按键,发起镜像制作请求,即,用户可以通过前端控制台一键触发镜像制作流程,操作过程简单;用户所操作的前端控制台通常与云计算厂商的裸金属后端服务器连接,裸金属后端服务器与用户的裸金属服务器连接,可以通过该裸金属后端服务器接收用户发起的镜像制作请求。In actual implementation, the user can initiate the above-mentioned image creation request through the operated front-end console. Referring to the schematic diagram of a front-end console operation interface shown in Figure 4, when the user needs to create an image, he can first select the instance that needs to be imaged , after filling in the relevant image configuration parameters, you can trigger the button to create an image and initiate an image creation request, that is, the user can trigger the image creation process with one key on the front-end console, and the operation process is simple; the front-end console operated by the user is usually the same as The bare metal back-end server of the cloud computing manufacturer is connected, and the bare metal back-end server is connected to the user's bare metal server, and the image creation request initiated by the user can be received through the bare metal back-end server.

步骤S304,基于镜像制作请求,获取系统盘数据对应的第一镜像脚本,以及数据盘数据对应的第二镜像脚本。Step S304, based on the image creation request, obtain a first image script corresponding to the system disk data and a second image script corresponding to the data disk data.

步骤S306,在脱离公有云私有网络环境下,基于第一镜像脚本、第二镜像脚本和镜像配置参数,生成系统盘数据对应的系统镜像文件,以及数据盘数据对应的数据镜像文件。Step S306, in the absence of the public cloud private network environment, based on the first mirror script, the second mirror script and the mirror configuration parameters, generate a system mirror file corresponding to the system disk data and a data mirror file corresponding to the data disk data.

步骤S308,通过预启动执行环境服务器,将系统镜像文件和数据镜像文件保存至预启动执行环境服务器对应的预启动执行环境数据库。Step S308, by pre-booting the execution environment server, save the system image file and the data image file to the pre-boot execution environment database corresponding to the pre-boot execution environment server.

在实际实现时,当用户的裸金属服务器制作完成系统盘数据对应的系统镜像文件,以及数据盘数据对应的数据镜像文件后,可以通过所连接的预启动执行环境服务器,将制作完成的系统镜像文件和数据镜像文件保存至预启动执行环境数据库中。In actual implementation, after the user's bare metal server completes the system image file corresponding to the system disk data and the data image file corresponding to the data disk data, the completed system image can be created through the connected pre-boot execution environment server. The files and data image files are saved to the preboot execution environment database.

步骤S310,依次通过预启动执行环境服务器和对象存储服务器,将系统镜像文件和数据镜像文件保存至对象存储服务器对应的对象存储数据库。Step S310, by sequentially pre-starting the execution environment server and the object storage server, save the system image file and the data image file to the object storage database corresponding to the object storage server.

当用户的裸金属服务器制作完成系统盘数据对应的系统镜像文件,以及数据盘数据对应的数据镜像文件后,通常还会通过依次连接的预启动执行环境服务器和对象存储服务器,将制作完成的系统镜像文件和数据镜像文件保存至对象存储服务器对应的对象存储数据库中。对象存储数据库与预启动执行环境数据库所采用的存储文件的方式可能不同,比如,对象存储数据库中的数据可以以容器的方式来存储文件,扩展性更好,对象存储效率也比较高,云计算厂商的工作人员可以通过添加节点的方式对其进行扩展。When the user's bare metal server completes the system image file corresponding to the system disk data and the data image file corresponding to the data disk data, the completed system is usually connected to the pre-boot execution environment server and the object storage server in sequence. The image file and the data image file are saved in the object storage database corresponding to the object storage server. The way of storing files in the object storage database and the pre-boot execution environment database may be different. For example, the data in the object storage database can store files in the form of containers, which has better scalability and higher object storage efficiency. Cloud computing Vendor staff can extend it by adding nodes.

步骤S312,依次通过对象存储服务器和裸金属后端服务器,接收对系统镜像文件和数据镜像文件保存成功的消息,加入公有云私有网络环境,以重新运行在公有云私有网络环境中。Step S312: Receive the message that the system image file and the data image file are successfully saved through the object storage server and the bare metal backend server in sequence, and join the public cloud private network environment to re-run in the public cloud private network environment.

当系统镜像文件和数据镜像文件保存至对象存储服务器对应的对象存储数据库后,对象存储服务器可以向裸金属后端服务器反馈保存成功的消息,裸金属后端服务器将该反馈消息发送至用户的裸金属服务器,用户的裸金属服务器接收到该反馈消息后通常需要重新加入公有云私有网络环境,比如,裸金属服务器重启后自动重新加入公有云私有网络环境中,在加入公有云私有网络环境后,就可以正常访问、使用用户的裸金属服务器。After the system image file and data image file are saved to the object storage database corresponding to the object storage server, the object storage server can feed back a successful message to the bare metal back-end server, and the bare metal back-end server sends the feedback message to the user's bare metal back-end server. Metal server. After receiving the feedback message, the user's bare metal server usually needs to rejoin the public cloud private network environment. For example, the bare metal server automatically rejoins the public cloud private network environment after restarting. After joining the public cloud private network environment, The user's bare metal server can be accessed and used normally.

步骤S314,通过裸金属后端服务器,向镜像制作请求对应的用户返回第一处理结果;其中,第一处理结果包括:系统镜像文件对应的文件标识、数据镜像文件对应的文件标识、系统镜像文件制作成功或失败的消息,以及数据镜像文件制作成功或失败的消息。Step S314, through the bare metal back-end server, return the first processing result to the user corresponding to the image creation request; wherein the first processing result includes: the file identifier corresponding to the system image file, the file identifier corresponding to the data image file, and the system image file. The message of the success or failure of the production, and the message of the success or failure of the data mirror file production.

在实际实现时,当用户的裸金属服务器重新运行在公有云私有网络环境中后,可以向裸金属后端服务器返回第一处理结果,通过该裸金属后端服务器将该第一处理结果反馈至发起上述镜像制作请求的用户,具体的,可以向用户操作的前端控制台返回制作完成的系统镜像文件对应的文件标识与状态值、数据镜像文件对应的文件标识与状态值等,比如,可以向用户返回系统镜像文件对应的ID、数据镜像文件对应的ID、系统镜像文件制作成功或失败、数据镜像文件制作成功或失败等,用户通过所操作的前端控制台就可以查看到上述第一处理结果。In actual implementation, after the user's bare metal server re-runs in the public cloud private network environment, the first processing result can be returned to the bare metal back-end server, and the first processing result can be fed back to the bare metal back-end server through the bare metal back-end server. The user who initiates the above image creation request, specifically, can return the file identifier and status value corresponding to the created system image file, and the file identifier and status value corresponding to the data image file to the front-end console operated by the user. The user returns the ID corresponding to the system image file, the ID corresponding to the data image file, the success or failure of the system image file creation, the success or failure of the data image file creation, etc. The user can view the above-mentioned first processing result through the operated front-end console .

步骤S316,通过裸金属后端服务器,将系统镜像文件对应的文件标识和数据镜像文件对应的文件标识发送至裸金属服务器对应的镜像管理平台。In step S316, the file identifier corresponding to the system image file and the file identifier corresponding to the data image file are sent to the image management platform corresponding to the bare metal server through the bare metal back-end server.

上述镜像管理平台可以理解为云计算厂商内部的运营管理平台,通过该镜像管理平台可以管理用户可见的所有镜像,具体的,当用户的裸金属服务器重新运行在公有云私有网络环境中后,可以通过裸金属后端服务器,将系统镜像文件对应的文件标识和数据镜像文件对应的文件标识发送至裸金属服务器对应的镜像管理平台,比如,可以将系统镜像文件对应的ID和数据镜像文件对应的ID发送至镜像管理平台等,镜像管理平台可以保存接收到的每个镜像文件对应的文件标识,后续云计算厂商的工作人员可以通过镜像管理平台所保存的每个镜像文件对应的文件标识,对用户可见的所有镜像进行复制、删除等操作,操作灵活度更高,可以更好的满足用户对对象存储的需求。The above image management platform can be understood as an internal operation management platform of cloud computing vendors, through which all images visible to users can be managed. Through the bare metal backend server, the file identifier corresponding to the system image file and the file identifier corresponding to the data image file are sent to the image management platform corresponding to the bare metal server. For example, the ID corresponding to the system image file and the corresponding ID of the data image file can be sent. The ID is sent to the image management platform. All images visible to the user can be copied, deleted, etc., which is more flexible and can better meet the user's needs for object storage.

上述镜像文件处理方法,可以将制作完成的系统镜像文件和数据镜像文件保存至预启动执行环境数据库和对象存储数据库;还可以通过裸金属后端服务器,向镜像制作请求对应的用户返回第一处理结果;将系统镜像文件对应的文件标识和数据镜像文件对应的文件标识发送至裸金属服务器对应的镜像管理平台。该方式中,用户可以自主制作镜像,提高了对象存储的可用性,且操作过程简单,提高了不同使用场景下,进行镜像制作的效率;云计算厂商可以通过数据库保管用户镜像制作的数据,实用性以及安全性得到了保障。The above-mentioned image file processing method can save the completed system image file and data image file to the pre-boot execution environment database and the object storage database; it is also possible to return the first processing to the user corresponding to the image creation request through the bare metal back-end server As a result, the file identifier corresponding to the system image file and the file identifier corresponding to the data image file are sent to the image management platform corresponding to the bare metal server. In this method, users can create images independently, which improves the availability of object storage, and the operation process is simple, which improves the efficiency of image creation in different usage scenarios; cloud computing vendors can store the data created by user images through the database, which is practical and security is guaranteed.

为进一步理解上述实施例,下面提供如图5所示的一种裸金属服务器镜像制作流程图,首先对该制作流程概述如下:在制作镜像前,用户需要对用户的裸金属服务器进行机器重启,在网络启动后,通过PXE进入无盘环境,并在无盘环境下执行镜像制作脚本,在无盘环境下制作完成镜像文件,在无盘环境下,将制作完成的镜像文件上传至对象存储服务器对应的对象存储数据库,再在无盘环境下重启机器,重新进入网络,完成镜像制作流程。在整个镜像制作过程中,需要在无盘环境下制作,使用busybox(一种集成了多个最常用Linux命令和工具的软件)制作无盘启动镜像,在此环境下进行镜像制作和镜像恢复,这就是一个文件,存在PXE服务器上;另外,在镜像制作过程中,还需要使用云计算厂商的自制作脚本,用于自动完成镜像制作和镜像恢复,通常会将自制作脚本存放在PXE服务器对应的PXE数据库中,供用户操作时自动下载并执行。In order to further understand the above embodiments, the following provides a flowchart of making a bare metal server image as shown in FIG. 5 . First, the manufacturing process is outlined as follows: Before making an image, the user needs to restart the user's bare metal server, After the network is started, enter the diskless environment through PXE, execute the image creation script in the diskless environment, create the image file in the diskless environment, and upload the created image file to the object storage server in the diskless environment. The corresponding object storage database, then restart the machine in a diskless environment, re-enter the network, and complete the mirroring process. During the entire image creation process, it needs to be created in a diskless environment, using busybox (a software that integrates many of the most commonly used Linux commands and tools) to create a diskless boot image, and in this environment, image creation and image recovery are performed. This is a file, which is stored on the PXE server; in addition, in the process of image creation, the self-made script of the cloud computing manufacturer needs to be used to automatically complete the image creation and image recovery. The self-made script is usually stored in the corresponding PXE server. In the PXE database, it is automatically downloaded and executed for user operation.

下面对制作流程具体描述如下:用户通过前端控制台一键触发镜像制作流程,发出针对用户的裸金属服务器中全部数据(对应上述系统盘数据和数据盘数据)的镜像制作命令(对应上述镜像制作请求),该前端控制台中通常预先安装有webconsole(一个基于Web的应用程序,允许直接从浏览器在服务器上执行shell命令)或SDK(Software DevelopmentKit,软件开发工具包),前端控制台执行镜像制作命令,将该镜像制作命令发送至云计算厂商的裸金属后端服务器,裸金属后端服务器将该镜像制作命令转发至用户的裸金属服务器,以使用户的裸金属服务器可以开始执行镜像制作,通常用户的裸金属服务器接收到镜像制作命令后,会自动进入离线VPC状态(脱离公有云私有网络环境),并向PXE服务器(对应上述预启动执行环境服务器)请求制作镜像的所需要的镜像脚本,PXE服务器通过脚本传输API从PXE数据库(对应上述预启动执行环境数据库)中获取所需要的镜像脚本,并发送至用户的裸金属服务器,用户的裸金属服务器基于获取到的镜像脚本以及镜像制作请求中携带的镜像配置参数开始镜像制作,在镜像制作完成后,将制作完成的镜像通过PXE服务器保存至PXE数据库;同时通过PXE服务器和对象存储服务器,将制作完成的镜像保存至对象存储服务器对应的对象存储数据库,在保存完成后,对象存储服务器会反馈信息到裸金属后端服务器,通过裸金属后端服务器转发至用户的裸金属服务器,用户的裸金属服务器接收到反馈信息后会重新加入VPC(加入所述公有云私有网络环境),最后通过裸金属后端服务器,向前端控制台反馈返回参数(对应上述第一处理结果),用户可以通过前端控制台查看该返回参数。The specific description of the production process is as follows: the user triggers the mirror production process with one key on the front-end console, and issues a mirror production command (corresponding to the above mirror image) for all the data in the user's bare metal server (corresponding to the above system disk data and data disk data). Make requests), the front-end console is usually pre-installed with webconsole (a web-based application that allows executing shell commands on the server directly from the browser) or SDK (Software DevelopmentKit, software development kit), the front-end console executes mirroring Create a command, send the image creation command to the cloud computing vendor's bare metal back-end server, and the bare metal back-end server forwards the image creation command to the user's bare metal server, so that the user's bare metal server can start performing image creation , usually after the user's bare metal server receives the image creation command, it will automatically enter the offline VPC state (disconnected from the public cloud private network environment), and request the PXE server (corresponding to the above-mentioned pre-boot execution environment server) for the image needed to create the image. Script, the PXE server obtains the required mirror script from the PXE database (corresponding to the above-mentioned pre-boot execution environment database) through the script transmission API, and sends it to the user's bare metal server. The user's bare metal server is based on the obtained mirror script and mirror image. The image configuration parameters carried in the production request start the image creation. After the image creation is completed, the created image is saved to the PXE database through the PXE server; at the same time, the created image is saved to the object storage server through the PXE server and the object storage server. After the corresponding object storage database is saved, the object storage server will feed back the information to the bare metal back-end server, and forward it to the user's bare metal server through the bare metal back-end server. Join the VPC (join the public cloud private network environment), and finally return the return parameter (corresponding to the above first processing result) to the front-end console through the bare metal back-end server, and the user can view the return parameter through the front-end console.

图5中的region表示地域,可以用于描述云计算厂商数据中心的位置,不同地域完全独立。可用区(Availability Zone)是指云计算厂商在同一地域内电力和网络互相独立的物理数据中心。另外,裸金属服务器与云主机容器镜像不同,裸金属服务器安装镜像是仍是使用传统PXE装机模式,后续可有分布式存储技术的加持,可优化高并发装机。The region in Figure 5 represents a region, which can be used to describe the location of a cloud computing vendor's data center, and different regions are completely independent. Availability Zone refers to the physical data center where the power and network of cloud computing vendors are independent of each other in the same region. In addition, the bare metal server is different from the cloud host container image. The installation image of the bare metal server still uses the traditional PXE installation mode. Later, it can be supported by distributed storage technology, which can optimize high-concurrency installation.

需要说明的是,通常在用户需要对裸金属服务器中的全部数据进行备份迁移,对新的裸金属服务器进行装机时才会做制作镜像文件,比如,可以把裸金属服务器A中的全部数据整体复制到裸金属服务器B,或者可以把全部数据复制到对象存储服务器对应的对象存储数据库,后续有需要的时候,可以从对象存储服务器对应的对象存储数据库复制过去,通常只做一次性的保存,如果用户有新增数据,需要再次镜像时,则需要再次对裸金属服务器中的全部数据进行整机镜像,保存到对象存储服务器对应的对象存储数据库中,如果用户没有通过前端控制台进行删除镜像文件的操作,则再次制作镜像所生成的镜像文件不会替换原来的镜像文件,即每次制作的镜像文件都会保存在对象存储数据库中。It should be noted that, usually, the user needs to backup and migrate all the data in the bare metal server, and then create an image file when the new bare metal server is installed. For example, all the data in the bare metal server A can be integrated Copy it to the bare metal server B, or you can copy all the data to the object storage database corresponding to the object storage server. When necessary, you can copy it from the object storage database corresponding to the object storage server. Usually, it is only saved once. If the user has newly added data and needs to be mirrored again, the entire data in the bare metal server needs to be mirrored again and saved to the object storage database corresponding to the object storage server. If the user does not delete the mirroring through the front-end console file operation, the image file generated by making the image again will not replace the original image file, that is, the image file created each time will be saved in the object storage database.

相关技术中,在制作当前裸金属服务器的数据、配置留存这一场景中,当在用户业务流程中,需要在某个节点需对现有服务器全部数据进行留存,以保障容灾恢复的效率时,云计算资源厂商所提供的操作方式为,裸金属服务器的用户可以通过前端控制台对单一实例进行镜像的备份;在用户数据恢复与线上扩容场景中,如果用户的裸金属服务器出现故障后需开启另一台裸金属服务器承载故障服务器业务,需将数据迁移至备用服务器,或者,用户做线上扩容需将原有裸金属服务器的数据复制到扩容服务器时,一般是通过前端控制台使用之前留存的镜像进行复制。相关技术中,云计算厂商的服务提供不完整,无法满足用户的使用需求,且无法满足用户降成本、提效率的重要需求。In the related art, in the scenario of making the current bare metal server data and configuration retention, when in the user business process, it is necessary to retain all the existing server data at a certain node to ensure the efficiency of disaster recovery and recovery. , the operation method provided by cloud computing resource manufacturers is that the user of the bare metal server can back up the image of a single instance through the front-end console; in the scenario of user data recovery and online capacity expansion, if the user's bare metal server fails It is necessary to start another bare metal server to carry the service of the failed server, and the data needs to be migrated to the standby server. Or, when the user needs to copy the data of the original bare metal server to the expansion server for online capacity expansion, it is generally used through the front-end console. Copy the previously preserved image. In the related art, the cloud computing vendor's service provision is incomplete, unable to meet the user's usage needs, and unable to meet the user's important needs of reducing costs and improving efficiency.

另外,相关技术中,通常只能对系统盘数据制作镜像,系统盘存储量较小,对较小容量的系统盘进行复制比较容易实现,而本方案是对裸金属服务器中的系统盘数据和数据盘数据的全部数据制作镜像,整机的数据量比较大,并且,系统盘数据和数据盘数据通常存在裸金属服务器不同的配置文件下,存储的路径、权限等相对比较复杂,对这些不同路径、不同权限的数据进行复制、迁移、装机,实现方式相对较复杂。In addition, in the related art, it is usually only possible to make a mirror image of the system disk data, the storage capacity of the system disk is small, and it is easier to replicate the system disk with a smaller capacity. All data on the data disk is mirrored, the data volume of the whole machine is relatively large, and the system disk data and data disk data are usually stored in different configuration files of the bare metal server, and the storage paths and permissions are relatively complicated. The path and data with different permissions are copied, migrated, and installed, and the implementation is relatively complex.

针对用户业务场景,从云计算厂商的角度出发,上述镜像制作方法可以辅助用户完成服务器集群故障等特定场景下的恢复工作,还可以辅助用户可快速扩容线上服务器,减少时间等待,提高扩容效率。从用户角度出发,该方式可提高用户使用满意度,直接影响业务线业务水平;还可降低镜像管理的人力成本,实现自动化流程,减少不必要人力支出。For user business scenarios, from the perspective of cloud computing vendors, the above image creation method can assist users in completing recovery work in specific scenarios such as server cluster failures, and can also assist users in rapidly expanding online servers, reducing time waiting and improving capacity expansion efficiency. . From the user's point of view, this method can improve user satisfaction and directly affect the business level of the business line; it can also reduce the labor cost of image management, realize automated processes, and reduce unnecessary labor costs.

另外,相关技术中,云计算厂商未在数据存储服务上提供更优地数据安全、存算分离产品化方案,未满足用户对于数据存储高可用性的需求,本方案中,用户可通过控制台根据自己实际业务场景进行镜像的制作并支持跨Region复制迁移使用,实现数据存储安全与高可用。另外,针对用户镜像数据存储,云计算厂商可以提供对象存储服务,用户通过前端控制台制作的镜像文件可存放至对象存储服务器对应的对象存储数据库;云计算厂商还可以不断进行对象存储服务器的更新迭代,从用户角度出发,可做到随用随取,安全可靠。In addition, in the related art, cloud computing vendors have not provided better data security and productized solutions for separating storage and computing in data storage services, which do not meet users' requirements for high availability of data storage. In this solution, users can use the console to Create images in your own actual business scenarios and support cross-region replication and migration to achieve data storage security and high availability. In addition, cloud computing vendors can provide object storage services for user image data storage, and the image files created by users through the front-end console can be stored in the object storage database corresponding to the object storage server; cloud computing vendors can also continuously update the object storage server. Iteration, from the user's point of view, can be used at any time, safe and reliable.

本发明实施例还提供了另一种镜像文件处理方法,方法应用于镜像管理平台;镜像管理平台的对象存储服务器上存储有目标镜像文件,目标镜像文件包括按照上述实施例的方法生成的系统镜像文件和数据镜像文件;在实际实现时,通过镜像管理平台的显示界面可以显示系统镜像文件对应的文件标识,以及数据镜像文件对应的文件标识,为方便统一管理,属于用户的同一裸金属服务器的系统镜像文件和数据镜像文件可以打包在一起,只显示打包后对应的一个文件标识;如图6所示,该方法包括如下步骤:The embodiment of the present invention also provides another image file processing method, the method is applied to the image management platform; the object storage server of the image management platform stores a target image file, and the target image file includes the system image generated according to the method of the above embodiment files and data mirror files; in actual implementation, the file ID corresponding to the system mirror file and the file ID corresponding to the data mirror file can be displayed through the display interface of the mirror management platform. The system image file and the data image file can be packaged together, and only a file identifier corresponding to the package is displayed; as shown in Figure 6, the method includes the following steps:

步骤S602,接收针对系统镜像文件和数据镜像文件的处理请求;其中,处理请求包括以下之一:复制请求、删除请求。Step S602: Receive a processing request for the system mirror file and the data mirror file, wherein the processing request includes one of the following: a copy request and a deletion request.

云计算厂商的工作人员可以通过镜像管理平台管理用户可见的所有镜像,用户的前端控制台与镜像管理平台之间通过镜像文件ID找到实际的镜像文件,用户可以通过前端控制台发出针对系统镜像文件和数据镜像文件的处理请求,或者,云计算厂商的工作人员可以发出针对系统镜像文件和数据镜像文件的处理请求,比如,用户可以向镜像管理平台发出复制某个镜像文件的请求,或云计算厂商的工作人员可以向镜像管理平台发出删除某个镜像文件的请求等。The staff of the cloud computing vendor can manage all the images visible to users through the image management platform. The user's front-end console and the image management platform can find the actual image file through the image file ID, and the user can send out system image files through the front-end console. and data image files, or the staff of cloud computing vendors can send processing requests for system image files and data image files. For example, a user can send a request to copy a certain image file to the image management The staff of the manufacturer can send a request to the image management platform to delete a certain image file, etc.

步骤S604,基于处理请求,对系统镜像文件对应的文件标识和数据镜像文件对应的文件标识执行处理请求对应的处理操作,得到第二处理结果。Step S604, based on the processing request, perform a processing operation corresponding to the processing request on the file identifier corresponding to the system image file and the file identifier corresponding to the data image file to obtain a second processing result.

当镜像管理平台接收到上述处理请求后,可以对系统镜像文件对应的文件标识和数据镜像文件对应的文件标识执行处理请求对应的处理操作,如复制操作或删除操作等;比如,用户a有个镜像文件保存在对象存储数据库,与用户a属于同一单位的用户b也想用这个镜像文件,用户a授权告知运营管理平台的工作人员,工作人员可以操作运营管理平台,把用户a的镜像文件ID复制给用户b,具体的,云计算厂商的工作人员可以通过镜像管理平台的操作界面填写镜像文件ID、镜像文件显示名称、目标账号等,其中,该目标账号即为用户b的前端控制台的账号,当操作完成后,就可以得到相应的第二处理结果。After receiving the above processing request, the image management platform can perform the processing operation corresponding to the processing request on the file identifier corresponding to the system image file and the file identifier corresponding to the data image file, such as copy operation or delete operation; for example, user a has a The image file is stored in the object storage database. User b who belongs to the same unit as user a also wants to use this image file. User a is authorized to inform the staff of the operation management platform. The staff can operate the operation management platform and put the image file ID of user a. Copy it to user b. Specifically, the staff of the cloud computing manufacturer can fill in the image file ID, image file display name, target account, etc. through the operation interface of the image management platform, where the target account is the user b's front-end console. Account, when the operation is completed, the corresponding second processing result can be obtained.

另外,云计算厂商的工作人员还可以通过镜像管理平台的操作界面,基于镜像文件ID对用户的所有镜像文件进行统一筛选记录,复制删除操作也是对镜像文件ID的复制删除。镜像管理平台只是内部运营管理,不涉及具体的数据存储、装机等。通过镜像管理平台可以控制用户在前端控制台可以看到哪些镜像文件,镜像管理平台本身不会对预启动执行环境数据库和对象存储数据库中的数据做处理。如果在镜像管理平台把用户自定义的镜像文件ID删除,用户通过前端控制台也看不到这个镜像文件ID;对于标准镜像,也通过镜像管理平台维护,假如某个标准镜像有问题,不能开放给用户,云计算厂商的工作人员可以通过镜像管理平台删除该标准镜像的镜像文件ID,这样所有用户的前端控制台就不会显示该标准镜像的镜像文件ID。需要说明的是,如果用户通过前端控制台发出删除请求,可以参考上述生成镜像文件的过程,删除预启动执行环境数据库和对象存储数据库中对应的镜像文件。In addition, the staff of the cloud computing manufacturer can also use the operation interface of the image management platform to uniformly filter and record all the user's image files based on the image file ID. The copy deletion operation is also the copy deletion of the image file ID. The image management platform is only for internal operation management, and does not involve specific data storage, installation, etc. The image management platform can control which image files users can see in the front-end console. The image management platform itself does not process the data in the pre-boot execution environment database and the object storage database. If the user-defined image file ID is deleted on the image management platform, the user cannot see the image file ID through the front-end console; for standard images, it is also maintained through the image management platform. If there is a problem with a standard image, it cannot be opened. For users, the staff of the cloud computing manufacturer can delete the image file ID of the standard image through the image management platform, so that the front-end console of all users will not display the image file ID of the standard image. It should be noted that, if the user sends a deletion request through the front-end console, you can refer to the above process of generating an image file to delete the corresponding image file in the pre-boot execution environment database and the object storage database.

步骤S606,向处理请求对应的用户返回第二处理结果。Step S606, returning the second processing result to the user corresponding to the processing request.

当得到上述第二处理结果后,可以向处理请求对应的用户返回第二处理结果,比如,继续以上一步骤中的复制请求为例,当云计算厂商的工作人员可以通过镜像管理平台的操作界面完成相应操作后,镜像文件ID就会出现在用户b的前端控制台,当需要装机时,用户b就可以使用该镜像文件ID对应的镜像。After the second processing result is obtained, the second processing result can be returned to the user corresponding to the processing request. For example, continuing with the copy request in the previous step as an example, when the staff of the cloud computing manufacturer can use the operation interface of the image management platform After completing the corresponding operations, the image file ID will appear on the front-end console of user b. When the machine needs to be installed, user b can use the image corresponding to the image file ID.

上述镜像文件处理方法,接收针对系统镜像文件和数据镜像文件的处理请求;基于处理请求,对系统镜像文件对应的文件标识和数据镜像文件对应的文件标识执行处理请求对应的处理操作,得到第二处理结果。向处理请求对应的用户返回第二处理结果。该方式中,云计算厂商可以管理用户可见的所有镜像,用户可以授权云计算厂商对系统镜像文件和数据镜像文件处理部分问题,可以提高运维效率。The above-mentioned image file processing method receives a processing request for the system image file and the data image file; process result. Return the second processing result to the user corresponding to the processing request. In this way, the cloud computing vendor can manage all the images visible to the user, and the user can authorize the cloud computing vendor to deal with some problems in the system image file and data image file, which can improve the operation and maintenance efficiency.

另外,通过设置镜像管理平台,可以基于镜像文件的文件标识对用户的镜像文件进行管理,灵活度更高,不需要对预启动执行环境数据库和对象存储数据库中的数据进行修改,实现与实际业务开发的预启动执行环境数据库和对象存储数据库进行解耦,在满足用户需求的情况下,不会对数据库中的数据产生影响。而相关技术中,没有镜像管理平台进行可视化的管理,会直接对预启动执行环境数据库和对象存储数据库中的数据进行修改,灵活性较差,难以快速满足用户需求。In addition, by setting up the image management platform, the user's image files can be managed based on the file identifiers of the image files, which is more flexible and does not need to modify the data in the pre-boot execution environment database and the object storage database. The developed pre-start execution environment database is decoupled from the object storage database, and will not affect the data in the database if it meets user needs. In the related art, there is no image management platform for visual management, and data in the pre-boot execution environment database and the object storage database are directly modified, which is less flexible and difficult to quickly meet user needs.

为进一步理解上述实施例,参见图7所示的一种镜像管理平台界面示意图,下面结合图7,对镜像管理平台的具体功能进行介绍:In order to further understand the above-mentioned embodiments, referring to a schematic diagram of an image management platform interface shown in FIG. 7 , the specific functions of the image management platform are introduced below with reference to FIG. 7 :

(1)该镜像管理平台支持对数据的筛选,可快速找到需处理的镜像,筛选维度支持:region、系统类型(Centos、Ubuntu等主流镜像)、用户ID(快速定位客户镜像)、镜像类型(标准镜像为云计算厂商自主制作的镜像,自定义镜像为用户通过前端控制台操作后所制作的镜像);(1) The image management platform supports data filtering, which can quickly find the image to be processed. The filtering dimension supports: region, system type (Centos, Ubuntu and other mainstream images), user ID (quickly locate customer images), image type ( The standard image is the image made by the cloud computing manufacturer independently, and the custom image is the image made by the user through the front-end console operation);

(2)可支持镜像的新增,具体的,点击图7中的新建标准镜像,可以显示图8所示的一种新建标准镜像操作界面示意图,从后台人工操作角度可新增加镜像,下面对图8中的字段进行说明:(2) It can support the addition of mirrors. Specifically, click on the new standard mirror in Figure 7 to display a schematic diagram of the operation interface of a new standard mirror shown in Figure 8. From the perspective of manual operation in the background, new mirrors can be added. The following Explain the fields in Figure 8:

目标区域:可指定镜像放置的对象存储服务器(一个Region下有一个对象存储服务器集群);Target area: You can specify the object storage server where the mirror is placed (there is an object storage server cluster under a Region);

镜像名称:云计算厂商所制作的镜像唯一识别名称,用于在此页面填充字段后开启定位数据并启动数据传输;Image name: The unique identification name of the image made by the cloud computing manufacturer, which is used to enable positioning data and start data transmission after filling in the fields on this page;

镜像显示名称:可设置展现在控制台界面的名称;Image display name: You can set the name displayed on the console interface;

镜像分区:可支持标准分区模式和LVS(Linux Virtual Server,Linux虚拟服务器)分区模式的镜像;Mirror partition: Mirror that supports standard partition mode and LVS (Linux Virtual Server, Linux Virtual Server) partition mode;

镜像系统名称:默认的操作系统的系统名称;Mirror system name: the system name of the default operating system;

镜像类型:可供控制台用户在控制台标签分类中查找该镜像;Image type: available for console users to find the image in the console tab category;

镜像标签:可标记是否支持容器Agent,使用拥有该标签的镜像装机可在控制台选择是否挂载容器Agent。Image label: You can mark whether the container agent is supported. Using the image installation with this label, you can choose whether to mount the container agent in the console.

(3)支持删除标准镜像;(3) Support to delete standard images;

(4)支持人工添加用户自定义镜像,具体的,点击图7中的新增自定义镜像,可以显示图9所示的一种创建私有镜像操作界面示意图,下面对图9中的字段进行说明:(4) Manually adding user-defined images is supported. Specifically, click the newly added user-defined image in FIG. 7 to display a schematic diagram of the operation interface for creating a private image as shown in FIG. 9 . The fields in FIG. 9 are described below. illustrate:

镜像ID:存储在服务器中的唯一识别,由云计算厂商提供,作为查找的依据;Image ID: The unique identification stored in the server, provided by the cloud computing vendor, as the basis for searching;

镜像显示名称:控制台镜像的显示;Image display name: the display of the console image;

镜像分区:是标准分区或LVS分区镜像;Mirror partition: It is a standard partition or LVS partition mirror;

镜像系统名称:默认的操作系统的系统名称;Mirror system name: the system name of the default operating system;

镜像类型:底层操作系统类型;Image type: the underlying operating system type;

目标账号:根据用户UID(User Identification,用户身份证明)存储进用户的镜像数据库内;Target account: Stored in the user's mirror database according to the user's UID (User Identification);

目标地域:选择存储进哪个Region的对象存储服务器;Target Region: Select which Region's object storage server to store;

镜像标签:是否支持挂载容器Agent;Image label: whether to support mounting container agent;

(5)复制镜像:复制镜像,将某个镜像复制进相应账户下的镜像存储数据库;(5) Copy image: copy image, copy a certain image into the image storage database under the corresponding account;

(6)标记为支持容器:可手动标记为支持容器Agent。(6) Mark as supporting container: It can be manually marked as supporting container agent.

相应功能有相应功能算法及程序作为支持,可保证99.99%的操作成功率。通过设置镜像管理平台,可以更好地保障用户的流程设计,通过自动与部分人工的方式可以保障客户使用过程的顺畅,该镜像管理平台可支持有筛选条件下的全量数据查看和管理,支持可视化展示数据。Corresponding functions are supported by corresponding function algorithms and programs, which can guarantee a 99.99% operation success rate. By setting up an image management platform, the user's process design can be better guaranteed, and the smooth use process of customers can be ensured through automatic and partial manual methods. The image management platform can support full data viewing and management under screening conditions, and supports visualization Display data.

用户的前端控制台与镜像管理平台的交互逻辑包括如下:用户点击按钮自动制作镜像后,云计算厂商工作人员可从后台管理全量镜像数据;针对用户不方便操作的情况,可联系云计算厂商工作人员进行镜像的制作,完成后通过后台系统可推至指定用户数据库内;用户控制台操作报错,云计算厂商可通过后台系统做第一步筛查,确定问题后联系相应部门处理。The interaction logic between the user's front-end console and the image management platform includes the following: after the user clicks the button to automatically create an image, the cloud computing vendor's staff can manage the full amount of image data from the background; if the user is inconvenient to operate, they can contact the cloud computing vendor for work Personnel make the mirror image, and after completion, it can be pushed to the designated user database through the background system; if an error is reported in the user console operation, the cloud computing manufacturer can do the first step of screening through the background system, and contact the corresponding department to deal with the problem after determining the problem.

对应于上述方法实施例,本发明实施例提供了一种镜像文件处理装置的结构示意图,如图10所示,装置设置于用户侧的裸金属服务器,裸金属服务器预先运行在公有云私有网络环境中;装置包括:第一接收模块100,用于接收针对预先存储的系统盘数据和数据盘数据的镜像制作请求,脱离公有云私有网络环境;其中,镜像制作请求中携带有用户输入的镜像配置参数;获取模块101,用于基于镜像制作请求,获取系统盘数据对应的第一镜像脚本,以及数据盘数据对应的第二镜像脚本;生成模块102,用于在脱离公有云私有网络环境下,基于第一镜像脚本、第二镜像脚本和镜像配置参数,生成系统盘数据对应的系统镜像文件,以及数据盘数据对应的数据镜像文件。Corresponding to the above method embodiments, the embodiments of the present invention provide a schematic structural diagram of an image file processing device. As shown in FIG. 10 , the device is set on a bare metal server on the user side, and the bare metal server runs in a public cloud private network environment in advance. The device includes: a first receiving module 100, configured to receive a mirroring request for pre-stored system disk data and data disk data, leaving the public cloud private network environment; wherein, the mirroring request carries the mirroring configuration input by the user parameters; the obtaining module 101 is used to obtain the first mirroring script corresponding to the data of the system disk and the second mirroring script corresponding to the data of the data disk based on the mirroring request; the generating module 102 is used to obtain the Based on the first mirror script, the second mirror script, and the mirror configuration parameters, a system mirror file corresponding to the system disk data and a data mirror file corresponding to the data disk data are generated.

上述镜像文件处理装置,首先接收针对预先存储的系统盘数据和数据盘数据的镜像制作请求,脱离公有云私有网络环境;其中,镜像制作请求中携带有用户输入的镜像配置参数。然后基于镜像制作请求,获取系统盘数据对应的第一镜像脚本,以及数据盘数据对应的第二镜像脚本。最后在脱离公有云私有网络环境下,基于第一镜像脚本、第二镜像脚本和镜像配置参数,生成系统盘数据对应的系统镜像文件,以及数据盘数据对应的数据镜像文件。该装置可以基于携带有镜像配置参数的镜像制作请求,获取系统盘数据和数据盘数据分别对应的镜像脚本,基于镜像脚本和镜像配置参数,对裸金属服务器中的系统盘数据和数据盘数据制作镜像,由于不需要用户自行采用其他方式对数据盘中的数据进行迁移或安装,从而提高了对于数据存储的可用性程度,降低了用户操作成本。The above image file processing apparatus first receives an image creation request for pre-stored system disk data and data disk data, and leaves the public cloud private network environment; wherein the image creation request carries image configuration parameters input by the user. Then, based on the image creation request, the first image script corresponding to the system disk data and the second image script corresponding to the data disk data are obtained. Finally, based on the first mirror script, the second mirror script and the mirror configuration parameters, a system mirror file corresponding to the system disk data and a data mirror file corresponding to the data disk data are generated in a private network environment separated from the public cloud. The apparatus can obtain mirror scripts corresponding to the system disk data and data disk data respectively based on the mirror creation request carrying the mirror configuration parameters, and based on the mirror script and the mirror configuration parameters, create the system disk data and data disk data in the bare metal server. Mirroring does not require users to migrate or install data in the data disk in other ways, thereby improving the availability of data storage and reducing user operation costs.

进一步的,裸金属服务器与预启动执行环境服务器连接;预启动执行环境服务器对应的预启动执行环境数据库中预先存储有多种系统盘数据对应的镜像脚本,以及多种数据盘数据对应的镜像脚本;获取模块还用于:将镜像制作请求发送至预启动执行环境服务器,通过预启动执行环境服务器,从预启动执行环境数据库中,获取系统盘数据对应的第一镜像脚本,以及数据盘数据对应的第二镜像脚本。Further, the bare metal server is connected to the pre-boot execution environment server; the pre-boot execution environment database corresponding to the pre-boot execution environment server pre-stores mirror scripts corresponding to various system disk data and mirror scripts corresponding to various data disk data. The acquisition module is also used to: send the image making request to the pre-boot execution environment server, and obtain the first mirror script corresponding to the system disk data from the pre-boot execution environment database through the pre-boot execution environment server, and the data corresponding to the data disk the second mirror script.

进一步的,裸金属服务器与预启动执行环境服务器连接;预启动执行环境服务器与对象存储服务器连接;该装置还用于:通过预启动执行环境服务器,将系统镜像文件和数据镜像文件保存至预启动执行环境服务器对应的预启动执行环境数据库;依次通过预启动执行环境服务器和对象存储服务器,将系统镜像文件和数据镜像文件保存至对象存储服务器对应的对象存储数据库。Further, the bare metal server is connected to the pre-boot execution environment server; the pre-boot execution environment server is connected to the object storage server; the device is also used for: by pre-booting the execution environment server, the system image file and the data image file are saved to the pre-boot execution environment server. The pre-start execution environment database corresponding to the execution environment server; the system mirror file and the data mirror file are saved to the object storage database corresponding to the object storage server by sequentially pre-starting the execution environment server and the object storage server.

进一步的,对象存储服务器与裸金属后端服务器连接;该装置还用于:依次通过对象存储服务器和裸金属后端服务器,接收对系统镜像文件和数据镜像文件保存成功的消息,加入公有云私有网络环境,以重新运行在公有云私有网络环境中。Further, the object storage server is connected with the bare metal back-end server; the device is also used for: receiving the message that the system image file and the data image file are successfully saved through the object storage server and the bare metal back-end server in turn, and joining the public cloud private network environment to re-run in a public cloud private network environment.

进一步的,该装置还用于:通过裸金属后端服务器,向镜像制作请求对应的用户返回第一处理结果;其中,第一处理结果包括:系统镜像文件对应的文件标识、数据镜像文件对应的文件标识、系统镜像文件制作成功或失败的消息,以及数据镜像文件制作成功或失败的消息。Further, the device is further configured to: through the bare metal back-end server, return the first processing result to the user corresponding to the mirroring request; wherein, the first processing result includes: the file identifier corresponding to the system mirroring file, and the corresponding data mirroring file. File identification, message of success or failure of system image file creation, and message of success or failure of data image file creation.

进一步的,该装置还用于:通过裸金属后端服务器,将系统镜像文件对应的文件标识和数据镜像文件对应的文件标识发送至裸金属服务器对应的镜像管理平台。Further, the device is further configured to: send the file identifier corresponding to the system image file and the file identifier corresponding to the data image file to the image management platform corresponding to the bare metal server through the bare metal back-end server.

本发明实施例所提供的镜像文件处理装置,其实现原理及产生的技术效果和前述镜像文件处理方法实施例相同,为简要描述,镜像文件处理装置实施例部分未提及之处,可参考前述镜像文件处理方法实施例中相应内容。The implementation principle and the technical effects of the mirror file processing apparatus provided by the embodiments of the present invention are the same as the above-mentioned embodiments of the mirror file processing method. Corresponding content in the embodiment of the image file processing method.

对应于上述方法实施例,本发明实施例提供了另一种镜像文件处理装置的结构示意图,装置设置于镜像管理平台;镜像管理平台的对象存储服务器上存储有目标镜像文件,目标镜像文件包括按照实施例的方法生成的系统镜像文件和数据镜像文件;如图11所示,装置包括:第二接收模块110,用于接收针对系统镜像文件和数据镜像文件的处理请求;其中,处理请求包括以下之一:复制请求、删除请求;处理模块111,用于基于处理请求,对系统镜像文件对应的文件标识和数据镜像文件对应的文件标识执行处理请求对应的处理操作,得到第二处理结果;返回模块112,用于向处理请求对应的用户返回第二处理结果。Corresponding to the above method embodiments, the embodiments of the present invention provide a schematic structural diagram of another image file processing device, the device is set on an image management platform; an object storage server of the image management platform stores a target image file, and the target image file includes The system mirror file and the data mirror file generated by the method of the embodiment; as shown in FIG. 11 , the apparatus includes: a second receiving module 110 for receiving a processing request for the system mirror file and the data mirror file; wherein, the processing request includes the following One: a copy request, a delete request; the processing module 111 is configured to, based on the processing request, perform the processing operation corresponding to the processing request on the file identifier corresponding to the system image file and the file identifier corresponding to the data image file, to obtain a second processing result; return The module 112 is configured to return the second processing result to the user corresponding to the processing request.

上述镜像文件处理装置,接收针对系统镜像文件和数据镜像文件的处理请求;基于处理请求,对系统镜像文件对应的文件标识和数据镜像文件对应的文件标识执行处理请求对应的处理操作,得到第二处理结果。向处理请求对应的用户返回第二处理结果。该装置中,云计算厂商可以管理用户可见的所有镜像,用户可以授权云计算厂商对系统镜像文件和数据镜像文件处理部分问题,可以提高运维效率。The above-mentioned image file processing apparatus receives a processing request for the system image file and the data image file; process result. Return the second processing result to the user corresponding to the processing request. In this device, the cloud computing vendor can manage all the images visible to the user, and the user can authorize the cloud computing vendor to deal with some problems of the system image file and the data image file, which can improve the operation and maintenance efficiency.

本发明实施例还提供了一种电子设备,参见图12所示,该电子设备包括处理器130和存储器131,该存储器131存储有能够被处理器130执行的机器可执行指令,该处理器130执行机器可执行指令以实现上述镜像文件处理方法。An embodiment of the present invention further provides an electronic device, as shown in FIG. 12 , the electronic device includes a processor 130 and a memory 131, where the memory 131 stores machine-executable instructions that can be executed by the processor 130, and the processor 130 The machine-executable instructions are executed to implement the above-described image file processing method.

进一步地,图12所示的电子设备还包括总线132和通信接口133,处理器130、通信接口133和存储器131通过总线132连接。Further, the electronic device shown in FIG. 12 further includes a bus 132 and a communication interface 133 , and the processor 130 , the communication interface 133 and the memory 131 are connected through the bus 132 .

其中,存储器131可能包含高速随机存取存储器(RAM,Random Access Memory),也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。通过至少一个通信接口133(可以是有线或者无线)实现该系统网元与至少一个其他网元之间的通信连接,可以使用互联网,广域网,本地网,城域网等。总线132可以是ISA总线、PCI总线或EISA总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图12中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。The memory 131 may include a high-speed random access memory (RAM, Random Access Memory), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 133 (which may be wired or wireless), which may use the Internet, a wide area network, a local network, a metropolitan area network, and the like. The bus 132 may be an ISA bus, a PCI bus, an EISA bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one bidirectional arrow is shown in FIG. 12, but it does not mean that there is only one bus or one type of bus.

处理器130可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器130中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器130可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(DigitalSignal Processor,简称DSP)、专用集成电路(Application Specific IntegratedCircuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器131,处理器130读取存储器131中的信息,结合其硬件完成前述实施例的方法的步骤。The processor 130 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above-mentioned method may be completed by an integrated logic circuit of hardware in the processor 130 or an instruction in the form of software. The above-mentioned processor 130 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; or a digital signal processor (Digital Signal Processor, DSP for short) , Application Specific Integrated Circuit (ASIC for short), Field-Programmable Gate Array (FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components. The methods, steps, and logical block diagrams disclosed in the embodiments of the present invention can be implemented or executed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the embodiments of the present invention may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. The storage medium is located in the memory 131, and the processor 130 reads the information in the memory 131, and completes the steps of the methods of the foregoing embodiments in combination with its hardware.

本发明实施例还提供了一种机器可读存储介质,该机器可读存储介质存储有机器可执行指令,该机器可执行指令在被处理器调用和执行时,该机器可执行指令促使处理器实现上述镜像文件处理方法,具体实现可参见方法实施例,在此不再赘述。Embodiments of the present invention further provide a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are invoked and executed by a processor, the machine-executable instructions cause the processor to For the implementation of the above image file processing method, the specific implementation can refer to the method embodiment, which is not repeated here.

本发明实施例所提供的镜像文件处理方法、装置和电子设备的计算机程序产品,包括存储了程序代码的计算机可读存储介质,所述程序代码包括的指令可用于执行前面方法实施例中所述的方法,具体实现可参见方法实施例,在此不再赘述。The image file processing method, apparatus, and computer program product of an electronic device provided by the embodiments of the present invention include a computer-readable storage medium storing program codes, and the instructions included in the program codes can be used to execute the methods described in the foregoing method embodiments. The specific implementation can refer to the method embodiment, which is not repeated here.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present invention. scope.

Claims (11)

1. The mirror image file processing method is characterized in that the method is applied to a bare metal server at a user side, and the bare metal server runs in a public cloud private network environment in advance; the method comprises the following steps:
receiving a mirror image making request aiming at pre-stored system disk data and data disk data, and separating from the public cloud private network environment; the mirror image making request carries mirror image configuration parameters input by a user;
acquiring a first mirror image script corresponding to the system disk data and a second mirror image script corresponding to the data disk data based on the mirror image manufacturing request;
and under the condition of being separated from the public cloud private network environment, generating a system image file corresponding to the system disk data and a data image file corresponding to the data disk data based on the first image script, the second image script and the image configuration parameters.
2. The method of claim 1, wherein the bare metal server is connected with a pre-boot execution environment server; the image scripts corresponding to various system disk data and the image scripts corresponding to various data disk data are stored in advance in a pre-starting execution environment database corresponding to the pre-starting execution environment server;
the step of obtaining a first mirror image script corresponding to the system disk data and a second mirror image script corresponding to the data disk data based on the mirror image making request comprises:
and sending the mirror image making request to the pre-starting execution environment server, and acquiring a first mirror image script corresponding to the system disk data and a second mirror image script corresponding to the data disk data from the pre-starting execution environment database through the pre-starting execution environment server.
3. The method of claim 1, wherein the bare metal server is connected with a pre-boot execution environment server; the pre-starting execution environment server is connected with the object storage server; after the step of generating the system image file corresponding to the system disk data and the data image file corresponding to the data disk data, the method further includes:
storing the system image file and the data image file to a pre-boot execution environment database corresponding to the pre-boot execution environment server through the pre-boot execution environment server;
and sequentially starting an execution environment server and the object storage server in advance, and storing the system image file and the data image file to an object storage database corresponding to the object storage server.
4. The method of claim 3, wherein the object storage server is connected to a bare metal backend server; after the step of saving the system image file and the data image file to the object storage database corresponding to the object storage server, the method further includes:
and receiving a message of successful storage of the system image file and the data image file sequentially through the object storage server and the bare metal back-end server, and adding the message into the public cloud private network environment to operate in the public cloud private network environment again.
5. The method of claim 4, wherein after the step of joining the public cloud private network environment to re-run in the public cloud private network environment, the method further comprises:
returning a first processing result to a user corresponding to the mirror image making request through the bare metal back-end server; wherein the first processing result comprises: the file identification corresponding to the system image file, the file identification corresponding to the data image file, the message of successful or failed manufacture of the system image file, and the message of successful or failed manufacture of the data image file.
6. The method of claim 4, wherein after the step of joining the public cloud private network environment to re-run in the public cloud private network environment, the method further comprises:
and sending the file identification corresponding to the system image file and the file identification corresponding to the data image file to an image management platform corresponding to the bare metal server through the bare metal back-end server.
7. A mirror image file processing method is characterized in that the method is applied to a mirror image management platform; the object storage server of the image management platform stores a target image file, wherein the target image file comprises a system image file and a data image file which are generated according to the method of any one of claims 1 to 6; the method comprises the following steps:
receiving a processing request aiming at a system mirror image file and the data mirror image file; wherein the processing request comprises one of: a copy request, a delete request;
based on the processing request, executing the processing operation corresponding to the processing request on the file identification corresponding to the system image file and the file identification corresponding to the data image file to obtain a second processing result;
and returning the second processing result to the user corresponding to the processing request.
8. The mirror image file processing device is characterized in that the device is arranged on a bare metal server at a user side, and the bare metal server runs in a public cloud private network environment in advance; the device comprises:
the first receiving module is used for receiving a mirror image making request aiming at pre-stored system disk data and data disk data and separating from the public cloud private network environment; the mirror image making request carries mirror image configuration parameters input by a user;
the acquisition module is used for acquiring a first mirror image script corresponding to the system disk data and a second mirror image script corresponding to the data disk data based on the mirror image manufacturing request;
and the generating module is used for generating a system image file corresponding to the system disk data and a data image file corresponding to the data disk data based on the first image script, the second image script and the image configuration parameters under the condition of being separated from the public cloud private network environment.
9. The image file processing device is characterized in that the device is arranged on an image management platform; the object storage server of the image management platform stores a target image file, wherein the target image file comprises a system image file and a data image file which are generated according to the method of any one of claims 1 to 6; the device comprises:
the second receiving module is used for receiving processing requests aiming at the system mirror image file and the data mirror image file; wherein the processing request comprises one of: a copy request, a delete request;
the processing module is used for executing the processing operation corresponding to the processing request on the basis of the processing request to the file identification corresponding to the system image file and the file identification corresponding to the data image file to obtain a second processing result;
and the return module is used for returning the second processing result to the user corresponding to the processing request.
10. An electronic device comprising a processor and a memory, the memory storing machine executable instructions executable by the processor, the processor executing the machine executable instructions to implement the image file processing method of any one of claims 1 to 7.
11. A machine-readable storage medium having stored thereon machine-executable instructions which, when invoked and executed by a processor, cause the processor to implement the image file processing method of any one of claims 1 to 7.
CN202210002074.3A 2022-01-04 2022-01-04 Image file processing method, device and electronic device Pending CN114356357A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210002074.3A CN114356357A (en) 2022-01-04 2022-01-04 Image file processing method, device and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210002074.3A CN114356357A (en) 2022-01-04 2022-01-04 Image file processing method, device and electronic device

Publications (1)

Publication Number Publication Date
CN114356357A true CN114356357A (en) 2022-04-15

Family

ID=81104923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210002074.3A Pending CN114356357A (en) 2022-01-04 2022-01-04 Image file processing method, device and electronic device

Country Status (1)

Country Link
CN (1) CN114356357A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115509563A (en) * 2022-11-15 2022-12-23 济南浪潮数据技术有限公司 Image file production method, device, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547250A (en) * 2017-06-26 2018-01-05 新华三云计算技术有限公司 The method and apparatus that database is disposed in cloud computing management platform
CN108429768A (en) * 2018-05-29 2018-08-21 新华三云计算技术有限公司 Cloud data analysis service management system, method and cloud server
CN111090439A (en) * 2019-12-13 2020-05-01 苏州浪潮智能科技有限公司 Method, device and device for generating Linux system image of bare metal server
WO2020207267A1 (en) * 2019-04-08 2020-10-15 阿里巴巴集团控股有限公司 Network system, mirror image management method, device and storage medium
CN113791796A (en) * 2021-11-15 2021-12-14 北京金山云网络技术有限公司 Cross-domain mirror image generation method, mirror image installation method, device and electronic equipment
CN113867746A (en) * 2021-12-06 2021-12-31 杭州优云科技有限公司 Bare metal server deployment method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547250A (en) * 2017-06-26 2018-01-05 新华三云计算技术有限公司 The method and apparatus that database is disposed in cloud computing management platform
CN108429768A (en) * 2018-05-29 2018-08-21 新华三云计算技术有限公司 Cloud data analysis service management system, method and cloud server
WO2020207267A1 (en) * 2019-04-08 2020-10-15 阿里巴巴集团控股有限公司 Network system, mirror image management method, device and storage medium
CN111090439A (en) * 2019-12-13 2020-05-01 苏州浪潮智能科技有限公司 Method, device and device for generating Linux system image of bare metal server
CN113791796A (en) * 2021-11-15 2021-12-14 北京金山云网络技术有限公司 Cross-domain mirror image generation method, mirror image installation method, device and electronic equipment
CN113867746A (en) * 2021-12-06 2021-12-31 杭州优云科技有限公司 Bare metal server deployment method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115509563A (en) * 2022-11-15 2022-12-23 济南浪潮数据技术有限公司 Image file production method, device, equipment and medium
CN115509563B (en) * 2022-11-15 2023-02-28 济南浪潮数据技术有限公司 Mirror image file manufacturing method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN106528224B (en) Content updating method, server and system for Docker container
US10237118B2 (en) Efficient application build/deployment for distributed container cloud platform
US9459856B2 (en) Effective migration and upgrade of virtual machines in cloud environments
CN110138577B (en) Cluster creation method, first server and readable storage medium
CN112445579B (en) Zero terminal data processing system and file copying method and device thereof
WO2017049828A1 (en) Method, device and system for data processing based on linux
CN110795278B (en) System and method for providing file-level recovery
CN112445578B (en) Zero terminal data processing system and file copying method and device thereof
US12032952B2 (en) Service upgrade method, apparatus, and system
CN112015448A (en) System upgrading method and device based on over-the-air technology
CN113590169B (en) Application deployment method, application deployment system, and computer-readable storage medium
WO2019199441A1 (en) Systems and methods for in-application content management
TW201303615A (en) System and method for configuring a client device
TWI507889B (en) Management node , method , machine 一accessible medium and system for reservation and execution image writing of native computing devices
CN114356357A (en) Image file processing method, device and electronic device
CN111698558A (en) Television software upgrading method, television terminal and computer readable storage medium
CN114995852A (en) Device upgrade method, device and computer-readable storage medium
WO2025112897A1 (en) Method and apparatus for displaying boot mode of pcie device, and device and medium
WO2017096889A1 (en) Method and device for upgrading and downgrading system
CN113515290B (en) Data processing method, device and system
CN114338645B (en) Complete machine mirror image manufacturing method, mirror image installation device and electronic equipment
CN109101253B (en) Management method and device for host in cloud computing system
CN113590033A (en) Information synchronization method and device of super-fusion system
CN114860350B (en) Data processing method and device based on cloud diskless tree-like mirror image
TWI796904B (en) Recovery method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载