CN107071043A - The collocation method and device of a kind of network information - Google Patents
The collocation method and device of a kind of network information Download PDFInfo
- Publication number
- CN107071043A CN107071043A CN201710294942.9A CN201710294942A CN107071043A CN 107071043 A CN107071043 A CN 107071043A CN 201710294942 A CN201710294942 A CN 201710294942A CN 107071043 A CN107071043 A CN 107071043A
- Authority
- CN
- China
- Prior art keywords
- destination node
- configuration
- script
- configuration script
- network
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
Abstract
The present invention proposes the collocation method and device of a kind of network information, and the collocation method of the network information includes:Image file is sent to destination node;According to image file, destination node is disposed, and after the completion of destination node deployment, configuration script is sent to destination node, wherein, configuration script includes network configuration information;According to configuration script, network configuration is carried out to destination node.The present invention is by the way that image file is sent to destination node, then according to image file, disposes destination node, and after the completion of destination node deployment, configuration script is sent to destination node, finally according to configuration script, network configuration is carried out to destination node, the configuration script can correctly configure the network information of destination node, to reach the function of cluster configuration, meanwhile, the configuration process simple and fast, the time of cluster configuration is reduced, the efficiency of system deployment is improved.
Description
Technical field
The present invention relates to computer realm, it particularly relates to the collocation method and device of a kind of network information.
Background technology
Cloning system is used for extensive batch and installed, as shown in figure 1, the cloning system is by the way that the system of a template processing machine is entered
Row is cloned and stores mirror image server, and then the image file of the clone is distributed to destination node by mirror image server, is completed
Deployment to destination node, in addition, the cloning system can be various software, in order to preferably describe, below with cloning system
It is described exemplified by Systemimager, wherein, the Systemimager softwares are automatic distributing Linux installations, a software
One of clustered node can be converted into mirror image server by distribution and the software of product allocation, the SystemImager softwares, i.e.,
It is used for the main image for building other all clustered nodes.In addition, for disposing a large amount of group systems, should
Systemimager is a very practical software.
In addition, it is necessary to installed to some after the completion of the deployment of the SystemImager softwares to destination node
Clustered software configured, be that cluster management makes sufficient preparation, existing four kinds of cluster initiated configuration methods such as table 1 below
It is shown.
Table 1
For complicated network, the technology that current cluster configuration approach and Systemimager softwares is taken is in target
After the complete system of node deployment, then activation system carries out the network information by cluster management software batch operation to destination node
Configuration.
But, the drawbacks of configuration storage of the above-mentioned network information has certain, specifically:There is polylith net on destination node
Card, wherein, network interface card is network interface board, also known as network adapter or NIC (network interface controller), and it is one piece and is designed use
Come the computer hardware for allowing computer to be communicated on the computer network, in addition, polylith network interface card is respectively in different Vlan
In (Virtual Local Area Network, VLAN), and the application installed is very high to the dependence of network,
After system is installed, restart and system and then the network information has been configured by cluster management software, in order to be able to allow application software can be with
Normally use, in addition it is also necessary to which some cluster configurations are processed, weighed again such as time synchronized, or after the network information has been configured
Starting system could allow application software normal work.But, due to the Systemimage softwares distribution mirror image after the completion of to network only
Can simply be configured, complicated more configuration informations are not supported, meanwhile, its can not to IB (InfiniBand's
Referred to as, infinite bandwidth technology) card, bridge joint etc. configured.
The problem of in correlation technique, effective solution is not yet proposed at present.
The content of the invention
The problem of in correlation technique, the present invention proposes a kind of collocation method and device of the network information, and it is in system
The network information of batch configuration destination node during deployment, it is not necessary to which system has cluster management software to believe network again after starting
Breath is configured.
The technical proposal of the invention is realized in this way:
According to an aspect of the invention, there is provided a kind of collocation method of the network information.
The collocation method of the network information includes:Image file is sent to destination node;According to image file, mesh is disposed
Node is marked, and after the completion of destination node deployment, configuration script is sent to destination node, wherein, configuration script includes network
Configuration information;According to configuration script, network configuration is carried out to destination node.
According to one embodiment of present invention, configuration script is sent to destination node includes:Pre-set configuration script
With the corresponding relation of destination node;According to configuration script and the corresponding relation of destination node, configuration script is sent to target section
Point.
According to one embodiment of present invention, the corresponding relation of configuration script and destination node includes:The master of each node
Machine name and the title of multiple configuration scripts are corresponded.
According to one embodiment of present invention, according to configuration script, carrying out network configuration to destination node includes:According to
Script is put, multiple network interface cards in destination node are carried out with the setting of IP address.
According to one embodiment of present invention, configuration script is Shell scripts.
There is provided a kind of configuration device of the network information according to another aspect of the present invention.
The configuration device of the network information includes:Sending module, for image file to be sent to destination node;Dispose mould
Block, for according to image file, disposing destination node, and after the completion of destination node deployment, configuration script is sent to target
Node, wherein, configuration script includes network configuration information;Configuration module, for according to configuration script, net to be carried out to destination node
Network is configured.
According to one embodiment of present invention, deployment module includes:Module is pre-set, for pre-setting configuration script
With the corresponding relation of destination node;Sending submodule, for the corresponding relation according to configuration script and destination node, will configure pin
This transmission is to destination node.
According to one embodiment of present invention, the corresponding relation of configuration script and destination node includes:The master of each node
Machine name and the title of multiple configuration scripts are corresponded.
According to one embodiment of present invention, configuration module includes:Setup module, for according to configuration script, to target
Multiple network interface cards in node carry out the setting of IP address.
According to one embodiment of present invention, configuration script is Shell scripts.
The advantageous effects of the present invention are:
The present invention is by the way that image file is sent to destination node, then according to image file, deployment destination node, and
After the completion of destination node deployment, configuration script is sent to destination node, finally according to configuration script, net is carried out to destination node
Network is configured, and the configuration script can correctly configure the network information of destination node, to reach the function of cluster configuration, meanwhile, should
Configuration process simple and fast, reduces the time of cluster configuration, improves the efficiency of system deployment.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to institute in embodiment
The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention
Example, for those of ordinary skill in the art, on the premise of not paying creative work, can also be obtained according to these accompanying drawings
Obtain other accompanying drawings.
Fig. 1 is the operation principle of cloning system of the prior art;
The flow chart of the collocation method of the network information according to embodiments of the present invention Fig. 2;
Fig. 3 is the flow chart installed according to the mirror image of the specific embodiment of the invention;
Fig. 4 is the flow chart of the collocation method of the network information according to the specific embodiment of the invention;
Fig. 5 is the block diagram of the configuration device of the network information according to embodiments of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained belongs to what the present invention was protected
Scope.
There is provided a kind of collocation method of the network information for embodiments in accordance with the present invention.
As shown in Fig. 2 the collocation method of the network information according to embodiments of the present invention includes:
Step 201, image file is sent to destination node;
Step 203, according to image file, destination node is disposed, and after the completion of destination node deployment, configuration script is sent out
Destination node is delivered to, wherein, configuration script includes network configuration information, meanwhile, deployment destination node refers to the behaviour of template processing machine
Make system and software etc. and be installed to the destination node;
Step 205, according to configuration script, network configuration is carried out to destination node.
By the such scheme of the present invention, by the way that image file is sent to destination node, then according to image file, portion
Destination node is affixed one's name to, and after the completion of destination node deployment, configuration script is sent to destination node, finally according to configuration script,
Network configuration is carried out to destination node, the configuration script can correctly configure the network information of destination node, to reach collection flock mating
The function of putting, meanwhile, the configuration process simple and fast reduces the time of cluster configuration, improves the efficiency of system deployment.
According to one embodiment of present invention, configuration script is sent to destination node includes:Pre-set configuration script
With the corresponding relation of destination node;According to configuration script and the corresponding relation of destination node, configuration script is sent to target section
Point.
According to one embodiment of present invention, the corresponding relation of configuration script and destination node includes:The master of each node
Machine name and the title of multiple configuration scripts are corresponded.
According to one embodiment of present invention, according to configuration script, carrying out network configuration to destination node includes:According to
Script is put, multiple network interface cards in destination node are carried out with the setting of IP address.
According to one embodiment of present invention, configuration script is Shell scripts.
In order to preferably describe the present invention, it is described in detail below by a specific embodiment.
With continued reference to Fig. 3, the idiographic flow that mirror image of the invention is installed is as follows:
Step S1, destination node request dhcp address, the assigning process of the DPCH addresses services for destination node to DPCH
Device IP address requesting, subsequent DPCH servers judge whether IP requests are legal, in the case where IP requests are legal, by IP
Distribute to a network interface card A in destination node in address;
Step S2, destination node is obtained after dhcp address, and asks pxelinux.0 files, wherein, the Pxelinux.0
File can explain each configuration item in configuration file default files, and make different reactions according to configuration item, such as
Time, starter background, startup menu for treating etc.;
Step S3, destination node is obtained after pxelinux.0 files, performs pxelinux.0 files;
Step S4, destination node request configuration file pxelinux.cfg or default, below with configuration file
Illustrated exemplified by default;
Step S5, destination node is obtained after configuration file default, kernel and initrd in configuration file,
Ask kernel and initrd;
Step S6, destination node is obtained after kernel and initrd, starts kernel and initrd in internal memory;
Step S7, destination node is downloaded after master files, performs master files, wherein, the master files are certainly
Dynamic installation script is automatically installed client downloads and performed, and performs most of autoinstall procedure, meanwhile, automatic installation script
Title with mirror image name start, with the master ends of file, e.g., my_webserver_image_v1.master.
In addition, the Master scripts are by si_getimage dynamic creations, the script is it is manifestly intended that from mirroring service
Which mirror image is obtained in device, these scripts and $ image.master scripts can be in file/var/lib/systemimager/
Found in scripts;
Step S8, destination node carries out subregion to disk and downloads mirror image;
Step S9, destination node mirror image is installed, after installing, request networking configuration Shell scripts;
Step S10, destination node, which is downloaded, performs Shell scripts after Shell scripts, by Systemimager softwares
Master files carry out cluster configuration, and Configuration network information pass through in the master files of Systemimager softwares
Shell scripts complete the cluster configuration to networking information, in addition, the network configuration refers to set multiple network interface cards in destination node
IP address, wherein, the setting of IP address can be carried out to a network interface card A in multiple network interface cards by step S1 process, then
The IP address of remaining network interface card is configured by step S10, certainly also can be by step S10 to the network interface card A in step S1
IP address modify;
Step S11, destination node has been configured after the network information, is sent and is notified to server, and destination node mirror image is installed
Into;
Step S12, restarts destination node.
In addition, the collocation method in order to preferably describe the network information, with continued reference to Fig. 4, writes network configuration information
Into a Shell script, this Shell script is named with the host name of destination node, after mirror image installation,
Master files can set the host name of destination node when performing cluster configuration, then pass through Http according to host name
(HyperText Transfer Protocol, HTTP) downloads network configuration Shell pin from mirror image server
This, downloads to after destination node and performs the Shell scripts, reach the function of cluster configuration, in addition, the network information of the present invention
There can not be the host name of duplication of name in the cluster network of configuration, i.e. one network configuration shell script of each host name correspondence.
Embodiments in accordance with the present invention, additionally provide a kind of configuration device of the network information.
As shown in figure 5, the configuration device of the network information according to embodiments of the present invention includes:
Sending module 51, for image file to be sent to destination node;
Deployment module 52, for according to image file, disposing destination node, and after the completion of destination node deployment, will match somebody with somebody
Script is put to send to destination node, wherein, configuration script includes network configuration information;
Configuration module 53, for according to configuration script, network configuration to be carried out to destination node.
According to one embodiment of present invention, deployment module 52 includes:Module (not shown) is pre-set, for setting in advance
Put the corresponding relation of configuration script and destination node;Sending submodule (not shown), for according to configuration script and destination node
Corresponding relation, configuration script is sent to destination node.
According to one embodiment of present invention, the corresponding relation of configuration script and destination node includes:The master of each node
Machine name and the title of multiple configuration scripts are corresponded.
According to one embodiment of present invention, configuration module 53 includes:Setup module (not shown), for according to configuration pin
Multiple network interface cards in destination node are carried out the setting of IP address by this.
According to one embodiment of present invention, configuration script is Shell scripts.
In summary, by means of the above-mentioned technical proposal of the present invention, by the way that image file is sent to destination node, then
According to image file, destination node is disposed, and after the completion of destination node deployment, configuration script is sent to destination node, most
Afterwards according to configuration script, network configuration is carried out to destination node, the configuration script can correctly configure the network letter of destination node
Breath, to reach the function of cluster configuration, meanwhile, the configuration process simple and fast reduces the time of cluster configuration, improves and is
The efficiency of system deployment.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
God is with principle, and any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.
Claims (10)
1. a kind of collocation method of the network information, it is characterised in that including:
Image file is sent to destination node;
According to the image file, the destination node is disposed, and after the completion of destination node deployment, configuration script is sent out
The destination node is delivered to, wherein, the configuration script includes network configuration information;
According to the configuration script, network configuration is carried out to the destination node.
2. collocation method according to claim 1, it is characterised in that send configuration script to the destination node bag
Include:
Pre-set the corresponding relation of the configuration script and destination node;
According to the configuration script and the corresponding relation of destination node, configuration script is sent to the destination node.
3. collocation method according to claim 2, it is characterised in that the corresponding relation of the configuration script and destination node
Including:
The host name of each node is corresponded with the title of multiple configuration scripts.
4. collocation method according to claim 1, it is characterised in that according to the configuration script, to the destination node
Carrying out network configuration includes:
According to the configuration script, multiple network interface cards in the destination node are carried out with the setting of IP address.
5. collocation method according to claim 1, it is characterised in that the configuration script is Shell scripts.
6. a kind of configuration device of the network information, it is characterised in that including:
Sending module, for image file to be sent to destination node;
Deployment module, is completed for according to the image file, disposing the destination node, and being disposed in the destination node
Afterwards, configuration script is sent to the destination node, wherein, the configuration script includes network configuration information;
Configuration module, for according to the configuration script, network configuration to be carried out to the destination node.
7. configuration device according to claim 6, it is characterised in that the deployment module includes:
Module is pre-set, the corresponding relation for pre-setting the configuration script and destination node;
Sending submodule, for the corresponding relation according to the configuration script and destination node, configuration script is sent to described
Destination node.
8. configuration device according to claim 7, it is characterised in that the corresponding relation of the configuration script and destination node
Including:
The host name of each node is corresponded with the title of multiple configuration scripts.
9. configuration device according to claim 6, it is characterised in that the configuration module includes:
Setup module, for according to the configuration script, multiple network interface cards in the destination node to be carried out with the setting of IP address.
10. configuration device according to claim 6, it is characterised in that the configuration script is Shell scripts.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710294942.9A CN107071043A (en) | 2017-04-28 | 2017-04-28 | The collocation method and device of a kind of network information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710294942.9A CN107071043A (en) | 2017-04-28 | 2017-04-28 | The collocation method and device of a kind of network information |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107071043A true CN107071043A (en) | 2017-08-18 |
Family
ID=59605127
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710294942.9A Pending CN107071043A (en) | 2017-04-28 | 2017-04-28 | The collocation method and device of a kind of network information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107071043A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107612728A (en) * | 2017-09-14 | 2018-01-19 | 郑州云海信息技术有限公司 | A kind of method of the server ip of two direct network connections of quickly setting |
CN108683556A (en) * | 2018-04-26 | 2018-10-19 | Tcl王牌电器(惠州)有限公司 | Detect the method, apparatus and computer storage media of network interface card functional status |
CN110661655A (en) * | 2019-09-20 | 2020-01-07 | 济南浪潮数据技术有限公司 | Cluster deployment method and system, electronic device and storage medium |
CN110730089A (en) * | 2019-09-02 | 2020-01-24 | 深圳壹账通智能科技有限公司 | Monitoring configuration method and device of block chain network, storage medium and electronic equipment |
CN112468327A (en) * | 2020-11-12 | 2021-03-09 | 苏州浪潮智能科技有限公司 | ICOS cluster-based address change method, device and medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1848787A (en) * | 2006-04-30 | 2006-10-18 | 西安交通大学 | Automatic fast dispositioning method for aggregated server system node |
CN101170423A (en) * | 2007-11-15 | 2008-04-30 | 曙光信息产业(北京)有限公司 | A service-oriented service cluster deployment method |
US20120209937A1 (en) * | 2010-12-14 | 2012-08-16 | International Business Machines Corporation | Method for operating a node cluster system in a network and node cluster system |
CN104394223A (en) * | 2014-12-03 | 2015-03-04 | 浪潮集团有限公司 | Automatic rapid deployment method of large-scale computer cluster system nodes |
CN106302864A (en) * | 2016-10-21 | 2017-01-04 | 用友网络科技股份有限公司 | A kind of IP in order arranges system |
CN106301897A (en) * | 2016-08-05 | 2017-01-04 | 浪潮(北京)电子信息产业有限公司 | A kind of (SuSE) Linux OS installs collocation method and device |
-
2017
- 2017-04-28 CN CN201710294942.9A patent/CN107071043A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1848787A (en) * | 2006-04-30 | 2006-10-18 | 西安交通大学 | Automatic fast dispositioning method for aggregated server system node |
CN101170423A (en) * | 2007-11-15 | 2008-04-30 | 曙光信息产业(北京)有限公司 | A service-oriented service cluster deployment method |
US20120209937A1 (en) * | 2010-12-14 | 2012-08-16 | International Business Machines Corporation | Method for operating a node cluster system in a network and node cluster system |
CN104394223A (en) * | 2014-12-03 | 2015-03-04 | 浪潮集团有限公司 | Automatic rapid deployment method of large-scale computer cluster system nodes |
CN106301897A (en) * | 2016-08-05 | 2017-01-04 | 浪潮(北京)电子信息产业有限公司 | A kind of (SuSE) Linux OS installs collocation method and device |
CN106302864A (en) * | 2016-10-21 | 2017-01-04 | 用友网络科技股份有限公司 | A kind of IP in order arranges system |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107612728A (en) * | 2017-09-14 | 2018-01-19 | 郑州云海信息技术有限公司 | A kind of method of the server ip of two direct network connections of quickly setting |
CN108683556A (en) * | 2018-04-26 | 2018-10-19 | Tcl王牌电器(惠州)有限公司 | Detect the method, apparatus and computer storage media of network interface card functional status |
CN108683556B (en) * | 2018-04-26 | 2021-11-09 | Tcl王牌电器(惠州)有限公司 | Method and device for detecting functional state of network card and computer storage medium |
CN110730089A (en) * | 2019-09-02 | 2020-01-24 | 深圳壹账通智能科技有限公司 | Monitoring configuration method and device of block chain network, storage medium and electronic equipment |
CN110661655A (en) * | 2019-09-20 | 2020-01-07 | 济南浪潮数据技术有限公司 | Cluster deployment method and system, electronic device and storage medium |
CN110661655B (en) * | 2019-09-20 | 2021-06-29 | 济南浪潮数据技术有限公司 | Cluster deployment method and system, electronic device and storage medium |
CN112468327A (en) * | 2020-11-12 | 2021-03-09 | 苏州浪潮智能科技有限公司 | ICOS cluster-based address change method, device and medium |
CN112468327B (en) * | 2020-11-12 | 2022-11-04 | 苏州浪潮智能科技有限公司 | ICOS cluster-based address change method, device and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107071043A (en) | The collocation method and device of a kind of network information | |
US8019835B2 (en) | Automated provisioning of computing networks using a network database data model | |
US7131123B2 (en) | Automated provisioning of computing networks using a network database model | |
US7743147B2 (en) | Automated provisioning of computing networks using a network database data model | |
CN102752137B (en) | The apparatus and method of virtual machine network parameter are initiatively set | |
CN104572372A (en) | System and method for building server performance testing environment | |
CN101820387B (en) | Method for rapidly deploying extensible cluster | |
CN107707687B (en) | Method and device for configuring IP address of virtual machine | |
CN101778136A (en) | Method for installing operating systems for client through remote real-time monitoring of network | |
JP2016522509A (en) | Automatic configuration of access to virtual infrastructure manager by virtual network function manager | |
CN108628716B (en) | Information receiving and managing system, method and device | |
CN102591679A (en) | Quick application software arrangement method for cluster system | |
CN103685496A (en) | Transmission method and device of file data | |
CN104104720A (en) | Server cluster management method and system | |
CN107800580B (en) | Method, server and system for monitoring installation state of large-batch operating systems | |
CN105119732A (en) | Device and method for distributing hosts in cluster environment | |
CN112491630A (en) | Bare computer automatic deployment method and device and cloud environment platform | |
CN114443226A (en) | IDE application on-cloud deployment method and system based on kubernets | |
CN102567050B (en) | The method and apparatus of B/S system remote deploying projects | |
CN115333933B (en) | Automatic management method, medium and equipment for servers on machine room | |
CN103279374A (en) | Operating system distributing technology based on MAC addresses | |
WO2022267646A1 (en) | Pod deployment method and apparatus | |
CN114327757B (en) | Network target range tool delivery method, device, equipment and readable storage medium | |
CN113268254A (en) | Cluster system installation method and device, electronic equipment and storage medium | |
CN112153093B (en) | Cluster-based task scheduling method, device, equipment and readable storage medium |
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 |
Application publication date: 20170818 |
|
RJ01 | Rejection of invention patent application after publication |