CN107479888A - Operating system mirror image deployment services device method, system, equipment and storage medium - Google Patents

Operating system mirror image deployment services device method, system, equipment and storage medium Download PDF

Info

Publication number
CN107479888A
CN107479888A CN201710687792.8A CN201710687792A CN107479888A CN 107479888 A CN107479888 A CN 107479888A CN 201710687792 A CN201710687792 A CN 201710687792A CN 107479888 A CN107479888 A CN 107479888A
Authority
CN
China
Prior art keywords
new demand
demand servicing
script
servicing device
operating system
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
CN201710687792.8A
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.)
Ctrip Travel Information Technology Shanghai Co Ltd
Original Assignee
Ctrip Travel Information Technology Shanghai 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 Ctrip Travel Information Technology Shanghai Co Ltd filed Critical Ctrip Travel Information Technology Shanghai Co Ltd
Priority to CN201710687792.8A priority Critical patent/CN107479888A/en
Publication of CN107479888A publication Critical patent/CN107479888A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]

Abstract

The invention provides a kind of operating system mirror image deployment services device method, system, equipment and storage medium, this method, which is included in operating system image file, sets initializtion script;When receiving new demand servicing device request to create, generation one treats that carry to the configuration equipment of new demand servicing device, obtains the metadata corresponding to new demand servicing device and stored into configuration equipment;New demand servicing device is generated, operating system image file is stored in new demand servicing device;New demand servicing device performs the initializtion script in operating system image file.The present invention is directed to utilize injects metadata during diversity operation system image deployment services device by the way of carry configures equipment, during deployment services device, the initialization start self-triggered program of server internal, the configuration equipment of carry can be identified, the metadata in configuration equipment is obtained, and initial work is carried out to server with metadata is read;Server metadata greatly reduces when injecting waits outside dependence to network request, lifts automatically dispose server efficiency.

Description

Operating system mirror image deployment services device method, system, equipment and storage medium
Technical field
The present invention relates to server disposition technical field in cloud computing, more particularly to a kind of operating system mirror image deployment services Device method, system, equipment and storage medium.
Background technology
With the popularization of internet, there are the automatically dispose server system of oneself in many enterprises, to support server Cluster dynamic capacity-expanding.And many enterprises can utilize the Internet model to expand own service flow, in order to tackle the business of sharp increase Flow, enterprise can constantly expand data center, it is desirable to rapid automatized deployment services device, to respond the needs of business.
Automated server deployment system can be disposed using diversity operation system image, the server internal disposed Unified initialization operation, such as change server name, the configuration server network information, execution customization script etc. are may require that, The more common method of industry is independent deployment meta data server at present, and the server newly disposed out is due to internal network information No initializtion by DHCP (Dynamic Host Configuration Protocol, DHCP), it is necessary to obtain Network is taken, then by fixed http request address, the ID of itself is issued to send to meta data server and asked, metadata takes Business device returns to the metadata information of the server, and the information that newly deployed server returns according to request carries out Initialize installation.
However, existing in actual scene, DHCP service is unstable, DHCP can not have found what non-Dynamic Host Configuration Protocol server had used The problems such as address, in addition when the same network segment has multiple Dynamic Host Configuration Protocol server, a Dynamic Host Configuration Protocol server can not be found by it The IP address that his server is leased, DHCP can not communicate across route with client computer, because DHCP a variety of failures can cause newly There is no initial network inside deployment services device, and then request failure is sent to meta data server, cause in new deployment services device Portion's initialization failure.Sent in addition to meta data server when asking, request easily by external interference, as network communication terminal, Meta data server is delayed machine etc..This generic way causes metadata injection stability very poor, also largely effects on automatically dispose Server success rate.
The content of the invention
For the problems of the prior art, it is an object of the invention to provide a kind of operating system mirror image deployment services device side Method, system, equipment and storage medium, metadata is injected by way of carry configures equipment, reduce and DHCP service, network are asked The outside dependence asked, efficiently and stably to deployment when server inject metadata.
The embodiment of the present invention provides a kind of operating system mirror image deployment services device method, and methods described comprises the following steps:
Initializtion script is set in operating system image file, and the initializtion script includes carry equipment script and obtained Getting carries the metadata script under device path;
When receiving new demand servicing device request to create, generation one treats that carry to the configuration equipment of the new demand servicing device, obtains new Metadata corresponding to server is simultaneously stored into the configuration equipment;
New demand servicing device is generated, the operating system image file is stored in the new demand servicing device;
The new demand servicing device performs the initializtion script in the operating system image file, and equipment is configured simultaneously described in carry Obtain the metadata in the configuration equipment.
Alternatively, the new demand servicing device performs the initializtion script in the operating system image file, including following step Suddenly:
The new demand servicing device configures equipment according to the carry equipment script carry;
The new demand servicing device is obtained in the configuration equipment according to the metadata script under the acquisition carry device path Metadata.
Alternatively, the initializtion script also includes performing metadata script;
The new demand servicing device performs the initializtion script in the operating system image file, in addition to the new demand servicing device The step of server initiation is carried out according to the execution metadata script.
Alternatively, the title of the metadata corresponding to the new demand servicing device including new demand servicing device, User Defined script and The network information;
The new demand servicing device carries out server initiation according to the execution metadata script, comprises the following steps:
The title of new demand servicing device carries out title setting in new demand servicing device metadata corresponding to;
The network information of new demand servicing device carries out network information setting in new demand servicing device metadata corresponding to;
User Defined script in metadata corresponding to the new demand servicing device execution.
Alternatively, the initializtion script also includes releasing equipment carry script;
The new demand servicing device performs the initializtion script in the operating system image file, also comprises the following steps:
The new demand servicing device is finished after the execution metadata script, calls the releasing equipment carry script;
The new demand servicing device releases equipment carry according to the releasing equipment carry script.
Alternatively, methods described, which is additionally included in operating system image file, sets the step of checking script;It is described initial Changing script also includes calling checking script;
It is the step of methods described also includes checking initializtion script implementing result, described that initializtion script is performed As a result checked, comprised the following steps:
The new demand servicing device is finished after the execution metadata script, calls the inspection script;
The new demand servicing device is checked new demand servicing device initialization result according to the inspection script, and generates inspection knot Fruit.
Alternatively, the initializtion script is arranged to automatic start journey of starting shooting in the operating system image file Sequence;
After generating the new demand servicing device, when the new demand servicing device starts, perform first in the operating system image file Beginningization script.
Alternatively, obtaining the metadata corresponding to new demand servicing device includes:
When receiving the newly-increased server request of user, generation new demand servicing device creates demand, and obtains the new of user's upload Server name and User Defined script corresponding to server;
The network information is distributed for new demand servicing device.
Alternatively, the network information includes network address, gateway information and the domain name system letter corresponding to new demand servicing device Breath.
Alternatively, the configuration equipment is the configuration equipment or network disk equipment of new demand servicing device itself.
Alternatively, the server includes physical machine and/or virtual machine.
The embodiment of the present invention also provides a kind of operating system mirror image deployment services device system, for realizing described operation system System mirror image deployment services device method, the operating system mirror image deployment services device system include:
Mirror module, for setting initializtion script in operating system image file, the initializtion script includes hanging Carry equipment script and obtain the metadata script under carry device path;
Meta data server, for storing the metadata corresponding to new demand servicing device;
Deployment module, for when receiving new demand servicing device request to create, generation one to treat carry to the new demand servicing device Equipment is configured, the metadata corresponding to new demand servicing device is obtained from the meta data server and stores to the configuration equipment;With And generation new demand servicing device, the operating system image file is stored in the new demand servicing device.
Alternatively, in addition to scheduler module and mixed-media network modules mixed-media, the metadata include the server corresponding to new demand servicing device Title, User Defined script and the network information;
When the scheduler module receives the newly-increased server demands of user, obtain user upload server name and from Script is defined, and new demand servicing device request to create is sent to the deployment module;
The deployment module sends metadata to the meta data server according to the new demand servicing device request to create and obtained Request;
The mixed-media network modules mixed-media is that the new demand servicing device distributes the network information;
The meta data server obtains the server name and use corresponding to the new demand servicing device from the scheduler module Family custom script, the network information corresponding to the new demand servicing device is obtained from the mixed-media network modules mixed-media.
The embodiment of the present invention also provides a kind of operating system mirror image deployment services device equipment, including:
Processor;
Memory, wherein being stored with the executable instruction of the processor;
Wherein, the processor is configured to perform described operating system mirror image portion via the executable instruction is performed The step of affixing one's name to player method.
The embodiment of the present invention also provides a kind of computer-readable recording medium, and for storage program, described program is performed The step of operating system mirror image deployment services device method described in Shi Shixian.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not The disclosure can be limited.
Operating system mirror image deployment services device method, platform and storage medium provided by the present invention have following advantages:
The present invention is directed to utilize to be injected during diversity operation system image deployment services device by the way of carry configures equipment Metadata, during deployment services device, the initialization start self-triggered program of server internal, the configuration equipment of carry can be identified, is obtained The metadata in configuration equipment is taken, and initial work is carried out to server with metadata is read;Server metadata is noted It is fashionable greatly reduce to DHCP service, network request etc. it is outside rely on, server is noted when realizing efficiently and stably to deployment Enter metadata, lift automatically dispose server efficiency, reduce manual intervention and artificial troubleshooting cost, greatly improve Automation Affix one's name to the success rate of server.
Brief description of the drawings
The detailed description made by reading with reference to the following drawings to non-limiting example, further feature of the invention, Objects and advantages will become more apparent upon.
Fig. 1 is the flow chart of the operating system mirror image deployment services device method of one embodiment of the invention;
Fig. 2 is the flow chart of the execution initializtion script of one embodiment of the invention;
Fig. 3 is that the execution metadata script of one embodiment of the invention carries out the flow chart of server initiation;
Fig. 4 be one embodiment of the invention execution metadata script after perform check script flow chart;
Fig. 5 is the structural representation of the operating system mirror image deployment services device system of one embodiment of the invention;
Fig. 6 is the schematic diagram of the operating system mirror image deployment services device working-flow of one embodiment of the invention;
Fig. 7 is the structural representation of the operating system mirror image deployment services device equipment of one embodiment of the invention;
Fig. 8 is the structural representation of the computer-readable recording medium of one embodiment of the invention.
Embodiment
Example embodiment is described more fully with referring now to accompanying drawing.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, these embodiments are provided so that the disclosure will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot Structure or characteristic can be incorporated in one or more embodiments in any suitable manner.
In addition, accompanying drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical accompanying drawing mark in figure Note represents same or similar part, thus will omit repetition thereof.Some block diagrams shown in accompanying drawing are work( Can entity, not necessarily must be corresponding with physically or logically independent entity.These work(can be realized using software form Energy entity, or these functional entitys are realized in one or more hardware modules or integrated circuit, or at heterogeneous networks and/or place These functional entitys are realized in reason device device and/or microcontroller device.
The present invention is directed to the problems of the prior art, it is proposed that member when a kind of more efficient more stable deployment services device is disposed The solution of data injection.Server when the problems of the prior art essentially consist in the operating system mirror image deployment applied at present Inside relies on network injection metadata.In operating system mirror image deployment services device member is injected by the way of carry configures equipment Data, server metadata can greatly reduce the dependence to DHCP networks when injecting, would not also there is ip when applying DHCP The problem of address error, carry configure equipment by way of efficiently and stably to deployment when server inject metadata, improve The success rate of automatically dispose service.
As shown in figure 1, the operating system mirror image deployment services device method comprises the following steps:
S1:Initializtion script is set in operating system image file, and the initializtion script includes carry equipment script With the metadata script under acquisition carry device path;So when generating new demand servicing device below, by operating system image file It is passed in new demand servicing device, initializtion script has just also been passed to new demand servicing device;
Initializtion script can be a general script herein, that is, pre-set carry equipment all carries in server Same subregion, for the new demand servicing device of each carry configuration equipment, the path for reading carry equipment is all identical.Cause This, same initializtion script may apply to the foundation of multiple new demand servicing devices, without repeating to set.
S2:When receiving new demand servicing device request to create, generation one treats that carry to the configuration equipment of the new demand servicing device, obtains Metadata corresponding to new demand servicing device is simultaneously stored into the configuration equipment;A blank disc device file is firstly generated, The configuration equipment can be the configuration equipment or network disk equipment one of both of new demand servicing device itself, by corresponding to new demand servicing device Metadata store into the blank disc device file;
New demand servicing device request to create herein can be derived from user, and user needs to dispose new service in business expansion It during device, can initiate to create the request of new demand servicing device, the establishment and deployment of new demand servicing device are carried out by the method for the present invention;
S3:New demand servicing device is generated, the operating system image file is stored in the new demand servicing device, described will be grasped Make the initializtion script in system image file to be also stored into the new demand servicing device;
S4:The new demand servicing device performs the initializtion script in the operating system image file, matches somebody with somebody described in carry and installs It is standby and obtain it is described configuration equipment in metadata.
The numbering of each step is intended merely to distinguish each step herein, and is performed between not indicating that each step suitable Sequence, in actual applications, the order between each step can be adjusted as needed, such as step S3 is first carried out, raw Into new demand servicing device, step S2 generation disk units etc. are then performed, are belonged within protection scope of the present invention.
Therefore, server of the invention can be carried out during deployment by way of performing the initializtion script The initial work of server itself, i.e., automatic carry configuration equipment, and metadata is read from configuration equipment, without logical DHCP network request meta data servers are crossed, therefore, relieve dependence of the server to DHCP networks in configuration process, also gram The defects of DHCP network design servers are used in conventional art has been taken, has which thereby enhanced operating system mirror image deployment services device Success rate.
Present invention could apply in the method for diversity operation system image deployment services device, wherein the new demand servicing device disposed Can be that physical machine can also be virtual machine.It will be understood, however, that the application not limited to this of the present invention, other kinds of behaviour In the method for making system image deployment services device, can also apply the present invention method, belong to protection scope of the present invention it It is interior.
As shown in Fig. 2 further, the new demand servicing device performs the initialization pin in the operating system image file This, comprises the following steps:
S41:The new demand servicing device configures equipment according to the carry equipment script carry, and the carry mode is to pass through Perform carry equipment script to carry out automatically, without manual operation, without passing through network connection;
S42:The new demand servicing device is matched somebody with somebody according to obtaining the metadata script under the acquisition carry device path to be installed Metadata in standby, thus new demand servicing device directly can obtain metadata from configuration equipment, without being connected by DHCP networks Connect meta data server.
In order that new demand servicing device more easily performs the initializtion script in the operating system image file, preferably in institute State in operating system image file and the initializtion script is arranged to automatic Starting of starting shooting;So generating the new clothes It is engaged in after device, when the new demand servicing device starts, i.e., can performs the initializtion script in the operating system image file automatically.So And, it will be understood that, other modes are also allowed, such as node is set in operating system image file, are transported in server Initializtion script is performed automatically when row is to corresponding node, or manually boots server and performs initializtion script etc., can The purpose for carrying out metadata injection in the present invention by carry equipment is realized, therefore is belonged within protection scope of the present invention.
Further, the initializtion script can also include performing metadata script;
As shown in Fig. 2 the new demand servicing device performs the initializtion script in the operating system image file, in addition to S43:The step of new demand servicing device carries out server initiation according to the execution metadata script.
Alternatively, the metadata corresponding to the new demand servicing device can include title, the User Defined pin of new demand servicing device Sheet and the network information.Wherein User Defined script is user when creating the demand of new demand servicing device generation, self-defining Some need the script corresponding to the service that server performs.User, can be when creating the demand of new demand servicing device generation simultaneously Upload the title and User Defined script of new demand servicing device.And the network information can be then some networks distributed by mixed-media network modules mixed-media Information, such as the network information such as network address, gateway, DNS (Domain Name System, domain name system).
Therefore, alternatively, in the step S2, obtaining the metadata corresponding to new demand servicing device includes:
When receiving the newly-increased server request of user, generation new demand servicing device creates demand, and obtains the new of user's upload Server name and User Defined script corresponding to server;
The network information is distributed for new demand servicing device.
Further, as shown in figure 3, the new demand servicing device is initial according to the execution metadata script progress server Change, comprise the following steps:
S431:The title of new demand servicing device carries out title setting in new demand servicing device metadata corresponding to;
S432:The network information progress network information of new demand servicing device is set in new demand servicing device metadata corresponding to Put;
S433:User Defined script in metadata corresponding to the new demand servicing device execution.
It will be appreciated that the numbering of above-mentioned several steps is also only used for distinguishing each step, and it is not offered as each step Between execution sequence, for example, can first carry out the step S432 network informations setting, then carry out step S431 titles set etc. Deng being possible, belong within protection scope of the present invention.In addition, at the beginning of the execution metadata script carries out server Beginningization, however it is not limited to above-mentioned several steps, other can also be included and set for the information of server in itself, can be according to user Need to be selected and increased, belonged within protection scope of the present invention.
Alternatively, as shown in Fig. 2 the initializtion script also includes releasing equipment carry script;
The new demand servicing device performs the initializtion script in the operating system image file, also comprises the following steps S44: The step of de-provision equipment carry, the specific carry that releases include following sub-step:
The new demand servicing device is finished after the execution metadata script, calls the releasing equipment carry script;
The new demand servicing device releases equipment carry according to the releasing equipment carry script.
Alternatively, as shown in figure 4, methods described is additionally included in the step for being set in operating system image file and checking script Suddenly;The initializtion script also includes calling checking script;
The step of methods described also includes checking initializtion script implementing result, specifically comprise the following steps:
S51:The new demand servicing device is finished after the execution metadata script, calls the inspection script;Specifically, It can be after new demand servicing device is finished and performs metadata script, before equipment carry is released, call and check script, It can be after carry equipment is released, call and check script, be possible;
S52:The new demand servicing device is checked new demand servicing device initialization result according to the inspection script, and generates inspection Come to an end fruit.
I.e. described new demand servicing device can generate the result data of an execution, return after the initializtion script that is finished The result data returned can accordingly include the title, the network information of current new demand servicing device and current new clothes of current new demand servicing device The User Defined script that business device includes.When calling inspection script to be checked, the name of current new demand servicing device can be checked Claim, in the network information and metadata of the current new demand servicing device network of server whether identical with the title of server in metadata Whether information is identical, and whether fully and completely etc. the User Defined script that current new demand servicing device includes, is then back to one Individual inspection result, it can show which partly runs succeeded in inspection result, if having the step of execution failure, facilitate user Later stage checks.
As shown in figure 5, the embodiment of the present invention also provides a kind of operating system mirror image deployment services device system, for realizing The operating system mirror image deployment services device method stated, the system include:
Mirror module 100, for setting initializtion script in operating system image file, the initializtion script includes Metadata script under carry equipment script and acquisition carry device path;
Meta data server 200, for storing the metadata corresponding to new demand servicing device;
Deployment module 300, for when receiving new demand servicing device request to create, generation one to treat carry to the new demand servicing device Configuration equipment, obtain the metadata corresponding to new demand servicing device from the meta data server 200 and store to described with installing It is standby;And generation new demand servicing device, the operating system image file is stored in the new demand servicing device.
New demand servicing device is generated in the deployment module 300, and operating system image file is stored in the new demand servicing After in device, operating system image file is stored with new demand servicing device, is also stored with initializtion script, therefore new demand servicing device can be with The initializtion script is performed, i.e., configures equipment according to carry equipment script carry, according under acquisition carry device path Metadata script obtain metadata from the configuration equipment of carry.
The operating system mirror image deployment services device system of the embodiment, in operating system mirror image deployment services device using extension The mode for carrying configuration equipment injects metadata, and server metadata can greatly reduce the dependence to DHCP networks when injecting, Would not have the problem of ip address errors when apply DHCP, by way of carry configures equipment efficiently and stably to disposing when Server injects metadata, improves the success rate of automatically dispose service.
Further, as shown in fig. 6, the operating system mirror image deployment services device system can also include scheduler module 400 and mixed-media network modules mixed-media 500, the metadata includes server name, User Defined script and the net corresponding to new demand servicing device Network information;
When the scheduler module 400 receives the newly-increased server demands of user, the server name that user uploads is obtained And custom script, and new demand servicing device request to create is sent to the deployment module 300;
The deployment module 300 sends first number according to the new demand servicing device request to create to the meta data server 200 Asked according to obtaining;
The mixed-media network modules mixed-media 500 is that the new demand servicing device distributes the network information;
The meta data server 200 from the scheduler module obtain server name corresponding to the new demand servicing device and User Defined script, the network information corresponding to the new demand servicing device is obtained from the mixed-media network modules mixed-media.Taken in the metadata After business device 200 gets metadata, the deployment module 300 can obtain metadata simultaneously from the meta data server 200 And storage is into newly-generated configuration equipment.
Wherein, mirror module 100, deployment module 300, scheduler module 400 and mixed-media network modules mixed-media 500 can use server To realize, but not limited to this.
Show and used in a specific embodiment of the invention in Fig. 6, the work of operating system mirror image deployment services device system Flow chart.Details are as follows for wherein each step:
A, mirror module 100 installs initializtion script inside operating system image file and checks script, initializes pin This major function includes reading carry equipment script, the meta data file script under acquisition carry disk path, performs first number According to script, equipment carry script and calling inspection script are released, wherein the function of performing metadata script specifically includes progress more Rename the network informations such as title, setting network address, network, DNS, execution customization script etc., and by script inside mirror image It is arranged to auto-programming of starting shooting, checks that script is responsible for the result inspection performed to metadata, and by inspection result write-back to deployment Module 400;
B, after scheduler module 400 receives the newly-increased server instruction of user, the request for creating new demand servicing device can be generated, and And the title and User Defined script of the new demand servicing device that user uploads are obtained, then the request of the establishment new demand servicing device is sent To deployment module 300;
C, deployment module 300 sends to meta data server 200 after the request for creating new demand servicing device is got and obtains member The request of data;
D, meta data server 200 obtains the title and User Defined script of new demand servicing device from scheduler module 400;
E, meta data server 200 obtains the network configuration of new demand servicing device from mixed-media network modules mixed-media 500;
F, the metadata corresponding to new demand servicing device is returned to deployment module 300 by meta data server 200;
H, injection meta-data unit can be further added in deployment module 300, and whether setting is injected metadata and opened Configuration item, the generation one of deployment module 300 it is new wait be mounted to the configuration equipment of the new demand servicing device, pass through and open injection metadata Configuration item, BootLoader configuration equipment mode inject meta-data function;
I. deployment module 300 generates a new demand servicing device, and the input operation system image file in new demand servicing device;
J. new demand servicing device on startup, started working by the start self-triggered program pre-set, and automatic carry, which is matched somebody with somebody, to be installed It is standby, metadata is read from configuration equipment, then according to metadata information, change server name is performed respectively, server is set Network configuration (including network address, gateway, DNS etc.), User Defined script is performed, complete new demand servicing device internal initialization Operate, then the carry of de-provision equipment;
K. new demand servicing device, which can perform, checks that script is checked the result of above-mentioned initialization operation, and by inspection result Write-back is to deployment module 300.
A kind of workflow diagram of optional operating system mirror image deployment services device system is listed herein, wherein each step Rapid numbering is served only for distinguishing each step, rather than represents the order between each step, in actual applications, Ge Gebu Order between rapid can be adjusted as needed, such as deployment module 300 obtains operating system image file first, then Metadata is sent to meta data server 200 again and obtain request etc., can realize in the present invention and be transmitted by carry equipment The mode of metadata carries out the purpose of server disposition, therefore belongs within protection scope of the present invention.
The embodiment of the present invention also provides a kind of operating system mirror image deployment services device equipment, including processor;Memory, its In be stored with the executable instruction of the processor;Wherein, the processor is configured to next via the executable instruction is performed The step of performing described operating system mirror image deployment services device method.
As described above, the operating system mirror image deployment services device equipment of the embodiment, is using computing device memory In instruction when, in operating system mirror image deployment services device using carry configure equipment by the way of inject metadata, server Metadata can greatly reduce dependence to DHCP networks when injecting, would not also there is asking for ip address errors when applying DHCP Topic, carry configure equipment by way of efficiently and stably to deployment when server inject metadata, improve automatically dispose clothes The success rate of business.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be implemented as following form, i.e.,:It is complete hardware embodiment, complete The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.), or hardware and software, can unite here Referred to as " circuit ", " module " or " platform ".
The electronic equipment 600 according to the embodiment of the invention is described referring to Fig. 7.The electronics that Fig. 7 is shown Equipment 600 is only an example, should not bring any restrictions to the function and use range of the embodiment of the present invention.
As shown in fig. 7, electronic equipment 600 is showed in the form of universal computing device.The component of electronic equipment 600 can wrap Include but be not limited to:At least one processing unit 610, at least one memory cell 620, (including the storage of connection different platform component Unit 620 and processing unit 610) bus 630, display unit 640 etc..
Wherein, the memory cell is had program stored therein code, and described program code can be held by the processing unit 610 OK so that the processing unit 610 perform described in the above-mentioned electronic prescription circulation processing method part of this specification according to this The step of inventing various illustrative embodiments.For example, the step of processing unit 610 can perform as shown in fig. 1.
The memory cell 620 can include the computer-readable recording medium of volatile memory cell form, such as random access memory Unit (RAM) 6201 and/or cache memory unit 6202, it can further include read-only memory unit (ROM) 6203.
The memory cell 620 can also include program/practical work with one group of (at least one) program module 6205 Tool 6204, such program module 6205 includes but is not limited to:Operating system, one or more application program, other programs Module and routine data, the realization of network environment may be included in each or certain combination in these examples.
Bus 630 can be to represent the one or more in a few class bus structures, including memory cell bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures Local bus.
Electronic equipment 600 can also be with one or more external equipments 700 (such as keyboard, sensing equipment, bluetooth equipment Deng) communication, the equipment communication interacted with the electronic equipment 600 can be also enabled a user to one or more, and/or with causing Any equipment that the electronic equipment 600 can be communicated with one or more of the other computing device (such as router, modulation /demodulation Device etc.) communication.This communication can be carried out by input/output (I/O) interface 650.Also, electronic equipment 600 can be with By network adapter 660 and one or more network (such as LAN (LAN), wide area network (WAN) and/or public network, Such as internet) communication.Network adapter 660 can be communicated by bus 630 with other modules of electronic equipment 600.Should Understand, although not shown in the drawings, can combine electronic equipment 600 uses other hardware and/or software module, including it is but unlimited In:Microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and number According to backup storage platform etc..
The embodiment of the present invention also provides a kind of computer-readable recording medium, and for storage program, described program is performed The step of operating system mirror image deployment services device method described in Shi Shixian.It is of the invention in some possible embodiments Various aspects are also implemented as a kind of form of program product, and it includes program code, when described program product is set in terminal During standby upper operation, described program code is used to make the terminal device perform the above-mentioned electronic prescription circulation processing method of this specification Described in part according to the step of various illustrative embodiments of the invention.
As it appears from the above, the program of the computer-readable recording medium of the embodiment is upon execution, in operating system mirror image portion Metadata is injected by the way of carry configures equipment, server metadata can greatly reduce pair when injecting when affixing one's name to server The dependence of DHCP networks, would not also there is the problem of ip address errors when applying DHCP, by way of carry configures equipment Server injects metadata when efficiently and stably to deployment, improves the success rate of automatically dispose service.
With reference to shown in figure 8, the program product for being used to realize the above method according to the embodiment of the present invention is described 800, it can use portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device, Such as run on PC.However, the program product not limited to this of the present invention, in this document, readable storage medium storing program for executing can be with Be it is any include or the tangible medium of storage program, the program can be commanded execution system, device either device use or It is in connection.
Described program product can use any combination of one or more computer-readable recording mediums.Computer-readable recording medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any combination above.The more specifically example of readable storage medium storing program for executing is (non exhaustive List) include:It is electrical connection, portable disc, hard disk, random access memory (RAM) with one or more wires, read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
The computer-readable recording medium can include believing in a base band or as the data that a carrier wave part is propagated Number, wherein carrying readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetism Signal, optical signal or above-mentioned any appropriate combination.Readable storage medium storing program for executing can also be any beyond readable storage medium storing program for executing Computer-readable recording medium, the computer-readable recording medium can send, propagate either transmit for being used by instruction execution system, device or device or Person's program in connection.The program code included on readable storage medium storing program for executing can be transmitted with any appropriate medium, bag Include but be not limited to wireless, wired, optical cable, RF etc., or above-mentioned any appropriate combination.
Can being combined to write the program operated for performing the present invention with one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., include routine Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user Perform on computing device, partly perform on a user device, the software kit independent as one performs, is partly calculated in user Its upper side point is performed or performed completely in remote computing device or server on a remote computing.It is remote being related to In the situation of journey computing device, remote computing device can pass through the network of any kind, including LAN (LAN) or wide area network (WAN) user calculating equipment, is connected to, or, it may be connected to external computing device (such as utilize ISP To pass through Internet connection).
Operating system mirror image deployment services device method, platform and storage medium provided by the present invention have following advantages:
The present invention is directed to utilize to be injected during diversity operation system image deployment services device by the way of carry configures equipment Metadata, during deployment services device, the initialization start self-triggered program of server internal, the configuration equipment of carry can be identified, is obtained The metadata in configuration equipment is taken, and initial work is carried out to server with metadata is read;Server metadata is noted It is fashionable greatly reduce to DHCP service, network request etc. it is outside rely on, server is noted when realizing efficiently and stably to deployment Enter metadata, lift automatically dispose server efficiency, reduce manual intervention and artificial troubleshooting cost, greatly improve Automation Affix one's name to the success rate of server.
Above content is to combine specific preferred embodiment further description made for the present invention, it is impossible to is assert The specific implementation of the present invention is confined to these explanations.For general technical staff of the technical field of the invention, On the premise of not departing from present inventive concept, some simple deduction or replace can also be made, should all be considered as belonging to the present invention's Protection domain.

Claims (15)

  1. A kind of 1. operating system mirror image deployment services device method, it is characterised in that comprise the following steps:
    Initializtion script is set in operating system image file, and the initializtion script includes carry equipment script and obtained to hang Carry the metadata script under device path;
    When receiving new demand servicing device request to create, generation one treats that carry to the configuration equipment of the new demand servicing device, obtains new demand servicing Metadata corresponding to device is simultaneously stored into the configuration equipment;
    New demand servicing device is generated, the operating system image file is stored in the new demand servicing device;
    The new demand servicing device performs the initializtion script in the operating system image file, and equipment is configured described in carry and is obtained Metadata in the configuration equipment.
  2. 2. operating system mirror image deployment services device method according to claim 1, it is characterised in that the new demand servicing device is held Initializtion script in the row operating system image file, comprises the following steps:
    The new demand servicing device configures equipment according to the carry equipment script carry;
    The new demand servicing device obtains the member in the configuration equipment according to the metadata script under the acquisition carry device path Data.
  3. 3. operating system mirror image deployment services device method according to claim 2, it is characterised in that the initializtion script Also include performing metadata script;
    The new demand servicing device performs the initializtion script in the operating system image file, in addition to the new demand servicing device according to The step of execution metadata script carries out server initiation.
  4. 4. operating system mirror image deployment services device method according to claim 3, it is characterised in that the new demand servicing device institute Corresponding metadata includes title, User Defined script and the network information of new demand servicing device;
    The new demand servicing device carries out server initiation according to the execution metadata script, comprises the following steps:
    The title of new demand servicing device carries out title setting in new demand servicing device metadata corresponding to;
    The network information of new demand servicing device carries out network information setting in new demand servicing device metadata corresponding to;
    User Defined script in metadata corresponding to the new demand servicing device execution.
  5. 5. operating system mirror image deployment services device method according to claim 4, it is characterised in that the initializtion script Also include releasing equipment carry script;
    The new demand servicing device performs the initializtion script in the operating system image file, also comprises the following steps:
    The new demand servicing device is finished after the execution metadata script, calls the releasing equipment carry script;
    The new demand servicing device releases equipment carry according to the releasing equipment carry script.
  6. 6. operating system mirror image deployment services device method according to claim 4, it is characterised in that methods described also includes The step of checking script is set in operating system image file;The initializtion script also includes calling checking script;
    It is the step of methods described also includes checking initializtion script implementing result, described to initializtion script implementing result Checked, comprised the following steps:
    The new demand servicing device is finished after the execution metadata script, calls the inspection script;
    The new demand servicing device is checked new demand servicing device initialization result according to the inspection script, and generates inspection result.
  7. 7. operating system mirror image deployment services device method according to claim 1, it is characterised in that in the operating system The initializtion script is arranged to automatic Starting of starting shooting in image file;
    After generating the new demand servicing device, when the new demand servicing device starts, the initialization in the operating system image file is performed Script.
  8. 8. operating system mirror image deployment services device method according to claim 1, it is characterised in that obtain new demand servicing device institute Corresponding metadata includes:
    When receiving the newly-increased server request of user, generation new demand servicing device creates demand, and obtains the new demand servicing of user's upload Server name and User Defined script corresponding to device;
    The network information is distributed for new demand servicing device.
  9. 9. operating system mirror image deployment services device method according to claim 8, it is characterised in that the network information bag Include network address, gateway information and the domain name system information corresponding to new demand servicing device.
  10. 10. operating system mirror image deployment services device method according to claim 1, it is characterised in that the configuration equipment For the configuration equipment or network disk equipment of new demand servicing device itself.
  11. 11. operating system mirror image deployment services device method according to claim 1, it is characterised in that the server bag Include physical machine and/or virtual machine.
  12. A kind of 12. operating system mirror image deployment services device system, for realizing the operation any one of claim 1 to 11 System image deployment services device method, it is characterised in that the operating system mirror image deployment services device system includes:
    Mirror module, for setting initializtion script in operating system image file, the initializtion script is set including carry Metadata script under standby script and acquisition carry device path;
    Meta data server, for storing the metadata corresponding to new demand servicing device;
    Deployment module, for when receiving new demand servicing device request to create, configuration of the carry to the new demand servicing device to be treated in generation one Equipment, obtain the metadata corresponding to new demand servicing device from the meta data server and store to the configuration equipment;It is and raw Into new demand servicing device, the operating system image file is stored in the new demand servicing device.
  13. 13. operating system mirror image deployment services device system according to claim 12, it is characterised in that also include scheduling mould Block and mixed-media network modules mixed-media, the metadata include server name, User Defined script and the network letter corresponding to new demand servicing device Breath;
    When the scheduler module receives the newly-increased server demands of user, the server name and self-defined that user uploads is obtained Script, and new demand servicing device request to create is sent to the deployment module;
    The deployment module sends metadata to the meta data server according to the new demand servicing device request to create and obtains request;
    The mixed-media network modules mixed-media is that the new demand servicing device distributes the network information;
    Server name and user corresponding to the meta data server from the scheduler module acquisition new demand servicing device are certainly Script is defined, the network information corresponding to the new demand servicing device is obtained from the mixed-media network modules mixed-media.
  14. A kind of 14. operating system mirror image deployment services device equipment, it is characterised in that including:
    Processor;
    Memory, wherein being stored with the executable instruction of the processor;
    Wherein, the processor is configured to come any one of 1 to 11 institute of perform claim requirement via the execution executable instruction The step of operating system mirror image deployment services device method stated.
  15. 15. a kind of computer-readable recording medium, for storage program, it is characterised in that power is realized when described program is performed Profit requires the step of operating system mirror image deployment services device method any one of 1 to 11.
CN201710687792.8A 2017-08-11 2017-08-11 Operating system mirror image deployment services device method, system, equipment and storage medium Pending CN107479888A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710687792.8A CN107479888A (en) 2017-08-11 2017-08-11 Operating system mirror image deployment services device method, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710687792.8A CN107479888A (en) 2017-08-11 2017-08-11 Operating system mirror image deployment services device method, system, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN107479888A true CN107479888A (en) 2017-12-15

Family

ID=60599483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710687792.8A Pending CN107479888A (en) 2017-08-11 2017-08-11 Operating system mirror image deployment services device method, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107479888A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984215A (en) * 2018-07-02 2018-12-11 郑州云海信息技术有限公司 A kind of method, apparatus, equipment and the storage medium of automatic carry NFS
CN110677505A (en) * 2019-08-14 2020-01-10 苏州浪潮智能科技有限公司 Method and device for configuring static IP in batch
CN110851144A (en) * 2019-09-06 2020-02-28 北京京东尚科信息技术有限公司 Cloud host deployment method and device and computer storage medium
CN112486508A (en) * 2019-09-12 2021-03-12 中移(苏州)软件技术有限公司 Deployment method of operating system, server and computer storage medium
CN113849354A (en) * 2021-08-26 2021-12-28 中兴通讯股份有限公司 Connection checking method, connection checking device, server and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101788917A (en) * 2010-02-26 2010-07-28 浪潮(北京)电子信息产业有限公司 Deployment method of utility software and the system thereof
CN103167041A (en) * 2013-03-28 2013-06-19 广州中国科学院软件应用技术研究所 System and method for supporting cloud environment application cluster automation deployment
CN104580475A (en) * 2015-01-13 2015-04-29 华为技术有限公司 Remote control method, terminal equipment, management server and remote control system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101788917A (en) * 2010-02-26 2010-07-28 浪潮(北京)电子信息产业有限公司 Deployment method of utility software and the system thereof
CN103167041A (en) * 2013-03-28 2013-06-19 广州中国科学院软件应用技术研究所 System and method for supporting cloud environment application cluster automation deployment
CN104580475A (en) * 2015-01-13 2015-04-29 华为技术有限公司 Remote control method, terminal equipment, management server and remote control system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984215A (en) * 2018-07-02 2018-12-11 郑州云海信息技术有限公司 A kind of method, apparatus, equipment and the storage medium of automatic carry NFS
CN110677505A (en) * 2019-08-14 2020-01-10 苏州浪潮智能科技有限公司 Method and device for configuring static IP in batch
CN110851144A (en) * 2019-09-06 2020-02-28 北京京东尚科信息技术有限公司 Cloud host deployment method and device and computer storage medium
CN110851144B (en) * 2019-09-06 2023-09-29 北京京东尚科信息技术有限公司 Cloud host deployment method and device and computer storage medium
CN112486508A (en) * 2019-09-12 2021-03-12 中移(苏州)软件技术有限公司 Deployment method of operating system, server and computer storage medium
CN112486508B (en) * 2019-09-12 2023-04-07 中移(苏州)软件技术有限公司 Deployment method of operating system, server and computer storage medium
CN113849354A (en) * 2021-08-26 2021-12-28 中兴通讯股份有限公司 Connection checking method, connection checking device, server and storage medium

Similar Documents

Publication Publication Date Title
CN107479888A (en) Operating system mirror image deployment services device method, system, equipment and storage medium
CN108984784B (en) Application implementation method, device, equipment and storage medium based on block chain network
JP7421511B2 (en) Methods and apparatus, electronic devices, readable storage media and computer programs for deploying applications
CN104580519B (en) A kind of method of rapid deployment openstack cloud computing platforms
CN109656686A (en) The upper deployment container cloud method of OpenStack, storage medium, electronic equipment and system
US20140280805A1 (en) Two-Sided Declarative Configuration for Cloud Deployment
EP3103023B1 (en) Private cloud connected device cluster architecture
CN106663013B (en) Step is adjusted for the dynamic of service upgrade
CN106850621A (en) A kind of method based on container cloud fast construction Hadoop clusters
CN105099706A (en) Data communication method, user equipment and server
CN109564527A (en) The security configuration of cloud computing node
US9847903B2 (en) Method and apparatus for configuring a communication system
CN113645071B (en) Cluster deployment method, system, medium and electronic terminal
CN105450759A (en) System mirror image management method and device
CN108667639A (en) A kind of method for managing resource under privately owned cloud environment and management server
CN107665141B (en) Database configuration method and equipment thereof
CN109799998A (en) OpenStack cluster configuration and batch dispositions method and system
CN115248692A (en) Device and method for supporting cloud deployment of multiple deep learning framework models
JP2021131897A (en) Scheduling method, device, equipment, storage equipment, and program
CN104219097A (en) Rapid configuration method of distributed system
CN110365524B (en) Mirror image upgrading method and system for server node firmware
CN110673898B (en) Equipment management method, first equipment and interaction system
Mocevicius CoreOS Essentials
CN110096543A (en) Data manipulation method, device, server and the medium of application program
CN103200260A (en) Resource transmission method, device 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171215