PXE heterogeneous cluster installation method based on cloud computing platform
1. A PXE heterogeneous cluster installation method based on a cloud computing platform is characterized by comprising the following steps: the method comprises the following steps:
s1, applying for a DHCP cloud service instance;
s2, applying for an HTTP cloud service instance;
s3, building a PXE service;
s4, downloading a guide file to finish system installation;
and S5, building an infrastructure, and finishing cluster installation.
2. The cloud computing platform-based PXE heterogeneous cluster installation method of claim 1, characterized in that: in step S1, the DHCP service is used to automatically allocate network resources to the servers within the lan.
3. The cloud computing platform-based PXE heterogeneous cluster installation method of claim 2, characterized in that: the method comprises the steps of automatically creating a cloud host based on a CentOS cloud host service interface provided by a cloud computing platform, automatically installing a DHCP server based on yum source files provided by the cloud computing platform, and injecting addressing configuration of DHCP into a dhcp.conf template file through a predefined configuration file network.
4. The cloud computing platform-based PXE heterogeneous cluster installation method of claim 3, characterized in that: in step S2, the HTTP service is used to provide a network file storage capability to a server in a network-reachable environment.
5. The PXE heterogeneous cluster installation method based on the cloud computing platform as claimed in claim 4, characterized in that: the cloud host is automatically created based on a CentOS cloud host service interface provided by the cloud computing platform, and the automatic installation of an apache http server is realized based on yum source files provided by the cloud computing platform and is automatically started.
6. The cloud computing platform-based PXE heterogeneous cluster installation method of claim 5, characterized in that: in step S3, building the PXE service includes building a TFTP server, uploading an operating system, and automatically acquiring a network dynamic IP.
7. The cloud computing platform-based PXE heterogeneous cluster installation method of claim 6, characterized in that: in step S4, the boot file is downloaded from the PXE server, and the PXE client completes the installation of the operating system according to the script of ks.
8. The cloud computing platform-based PXE heterogeneous cluster installation method of claim 7, characterized in that: step S5 includes installing an anchor and cluster installation, where the anchor is installed based on a predefined cluster template, generating an anchor cluster installation playbook script file, and completing installation of the cluster according to the script.
Background
With the deep application of cloud computing technology in informatization, a unified cloud computing platform is built by taking a data center as a unit, and the self-service cloud service provided for governments and enterprises and public institutions on demand becomes an increasingly urgent need, and mass aggregation, analysis, mining and sharing of data are urgent.
The informationization of each industry develops for years, certain informationized assets exist, but the demand of the informationized development can not be met, the establishment of a unified cloud computing platform becomes the trend of the informationized development of each industry, the establishment of the unified cloud computing platform firstly needs to solve the problems of data storage and calculation which are increased in an expansion mode, the calculation and storage resources are rapidly added into a cloud computing resource pool, and the resources such as calculation, storage, network and the like are provided for the informationization of each industry.
The unified cloud computing platform needs to unify technical frameworks of various industries and also needs to meet business requirements of the various industries, and in the process of construction, not only needs to follow the construction framework standard of cloud computing, but also needs to provide different services such as object storage service, file storage service, real-time computing, offline computing and the like for various businesses, so that when a resource pool is built, the unified cloud computing platform needs to comprise a virtualization cluster, a big data cluster, a bare metal cluster, a key computing cluster and the like, various clusters are formed by various server clusters, and different operating systems, different disk raid schemes and network card bond schemes are installed in different server clusters. In the traditional mode, most of the installation and deployment of the servers are implemented by using media such as a U disk, a DVD and the like on each server and installing the servers one by operation and maintenance personnel, the mode is time-consuming, labor-consuming and high in personnel investment, and the installation effect is different due to manual participation in the installation process.
Disclosure of Invention
The technical task of the invention is to provide a PXE heterogeneous cluster installation method based on a cloud computing platform, which can reduce delivery cost, shorten construction period and effectively promote urban informatization process, aiming at the problems.
In order to achieve the purpose, the invention provides the following technical scheme:
a PXE heterogeneous cluster installation method based on a cloud computing platform comprises the following steps:
s1, applying for a DHCP cloud service instance;
s2, applying for an HTTP cloud service instance;
s3, building a PXE service;
s4, downloading a guide file to finish system installation;
and S5, building an infrastructure, and finishing cluster installation.
Preferably, in step S1, the DHCP service is used to automatically allocate network resources to the servers within the lan.
Preferably, the cloud host is automatically created based on a service interface of a centros cloud host provided by a cloud computing platform, the automatic installation of a DHCP server is realized based on yum source files provided by the cloud computing platform, and the addressing configuration of the DHCP is injected into a DHCP.
Preferably, in step S2, the HTTP service is used to provide a network file storage capability to a server in a network-reachable environment.
Preferably, the cloud host is automatically created based on a CentOS cloud host service interface provided by the cloud computing platform, and the automatic installation of the apache http server is realized based on yum source files provided by the cloud computing platform and is automatically started.
Preferably, in step S3, the building of the PXE service includes building a TFTP server, uploading an operating system, and automatically acquiring a network dynamic IP.
The TFTP server provides Bootstrap files, configuration files, a Linux kernel and a Linux root file system for the installation of an operating system; wherein the Bootstrap file is an executable program; when the PXE client is started in a network mode, downloading a Linux kernel and a Linux root file system which are prepared in advance on the TFTP server through a control interface.
And issuing an installation tree of the linux operating system through an Http service, and copying the files of the system disk image to a shared directory address provided by an apache Http server.
In the PXE client starting process, a network boot mode is entered through a BIOS, a corresponding network card is selected to conduct system network boot, and a built DHCP server is used for automatically acquiring a network dynamic IP.
Preferably, in step S4, the boot file is downloaded from the PXE server, and the PXE client completes the installation of the operating system in accordance with the script of ks.
And downloading a boot file from the PXE server, and automatically downloading a system software installation package configured in a ks.cfg file in a corresponding shared directory of the HTTP server through a KickStart configuration file ks.cfg provided by the boot file.
And (5) completing the installation of the operating system by the PXE client according to the script of ks.
Preferably, step S5 includes installing an anchor and a cluster installation, where the anchor is installed based on a predefined cluster template, generating an anchor cluster installation playbook script file, and completing installation of the cluster according to the script.
Based on a predefined cluster role template, the cluster role template comprises management nodes, a master node, working nodes and the like, wherein the management nodes are mainly used for installing cluster installation and monitoring tools. The anchor service is installed at the management node using the post module in the KickStart.
And generating an interrupt cluster installation playbook script file by the interrupt based on script contents predefined by a post module of the KickStart, and completing the installation and the starting of the cluster according to the script.
Compared with the prior art, the PXE heterogeneous cluster installation method based on the cloud computing platform has the following outstanding beneficial effects:
the method comprises the steps that firstly, a cloud computing platform is used as a basis, DHCP and HTTP are served, DHCP and HTTP services are quickly built according to a service instance mode, all clusters and software sources needed by operating system installation are provided based on the cloud computing platform, and operating systems and script installed by the clusters are customized; cluster installation is carried out in batch by using an automatic operation and maintenance tool and a network mirror image mode;
the installation of DHCP and HTTP is carried out in a cloud service mode, the cluster software installation is based on a YUM packet management tool and an alarm automatic operation and maintenance tool, the automatic response is carried out through a KickStart script, and the method has good popularization and application values;
and (III) longitudinally opening the server, the operating system and the cluster software, transversely integrating various heterogeneous resources under the cloud computing framework, realizing large-scale and intensive construction of a unified cloud computing platform resource pool, improving the standardization and automation degree of the resource pool construction, shortening the informatization construction period and accelerating the urban informatization process.
Detailed Description
The cloud computing platform-based PXE heterogeneous cluster installation method of the present invention will be further described in detail with reference to the following embodiments.
Examples
The invention discloses a PXE heterogeneous cluster installation method based on a cloud computing platform, which comprises the following steps:
and S1, applying for a DHCP cloud service instance.
The DHCP service is used to automatically allocate network resources to servers within the local area network. The method and the system automatically create the cloud host based on a CentOS cloud host service interface provided by a cloud computing platform, realize the automatic installation of a DHCP server based on yum source files provided by the cloud computing platform, and inject the addressing configuration of the DHCP into a dhcp.conf template file through a predefined configuration file network.
And S2, applying for an HTTP cloud service instance.
The HTTP service is used to provide network file storage capability to servers in a network-accessible environment. The method and the system automatically create the cloud host based on a CentOS cloud host service interface provided by the cloud computing platform, realize the automatic installation of the apache http server based on yum source files provided by the cloud computing platform, and automatically start the apache http server.
And S3, building a PXE service.
(1) And building a TFTP server. The TFTP server provides Bootstrap files, configuration files, a Linux kernel and a Linux root file system for the installation of an operating system; wherein the Bootstrap file is an executable program; when the PXE client is started in a network mode, downloading a Linux kernel and a Linux root file system which are prepared in advance on the TFTP server through a control interface;
(2) and uploading the operating system. And issuing an installation tree of the linux operating system through an Http service, and copying the files of the system disk image to a shared directory address provided by an apache Http server.
(3) In the PXE client starting process, a network boot mode is entered through a BIOS, a corresponding network card is selected to conduct system network boot, and a built DHCP server is used for automatically acquiring a network dynamic IP.
And S4, downloading the guide file to finish system installation.
(1) Downloading a boot file from a PXE server, and automatically downloading a system software installation package configured in a ks.cfg file in a corresponding shared directory of an HTTP server through a KickStart configuration file ks.cfg provided by the boot file;
(2) and (5) completing the installation of the operating system by the PXE client according to the script of ks.
And S5, building an infrastructure, and finishing cluster installation.
(1) And installing an anchor. Based on a predefined cluster role template, the cluster role template comprises management nodes, a master node, working nodes and the like, wherein the management nodes are mainly used for installing cluster installation and monitoring tools. The anchor service is installed at the management node using the post module in the KickStart.
(2) And (5) cluster installation. And generating an interrupt cluster installation playbook script file by the interrupt based on script contents predefined by a post module of the KickStart, and completing the installation and the starting of the cluster according to the script.
The above-described embodiments are merely preferred embodiments of the present invention, and general changes and substitutions by those skilled in the art within the technical scope of the present invention are included in the protection scope of the present invention.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:一种部署应用的方法和装置