CN104834546A - 一种网络升级集群系统的方法 - Google Patents

一种网络升级集群系统的方法 Download PDF

Info

Publication number
CN104834546A
CN104834546A CN201510239409.3A CN201510239409A CN104834546A CN 104834546 A CN104834546 A CN 104834546A CN 201510239409 A CN201510239409 A CN 201510239409A CN 104834546 A CN104834546 A CN 104834546A
Authority
CN
China
Prior art keywords
network
nfs
server
node
cluster
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
CN201510239409.3A
Other languages
English (en)
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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201510239409.3A priority Critical patent/CN104834546A/zh
Publication of CN104834546A publication Critical patent/CN104834546A/zh
Pending legal-status Critical Current

Links

Abstract

本发明公开了一种网络升级集群系统的方法,利用网络存储,通过grub引导的方式远程升级操作系统,实现过程包括:搭建网络环境、物理环境;配置NFS服务器;修改grub引导,增加一个引导项并到第一位;测试;编写复制相关配置文件的shell脚本放在NFS服务器上。本发明方法通过简单的NFS架设,实现集群的远程升级,具有统一管理、免职守、方便快捷的特点。

Description

一种网络升级集群系统的方法
技术领域
本发明涉及Linux集群操作系统技术领域,具体涉及一种网络升级集群系统的方法,适用于各种Linux集群环境中,实现对集群节点单个或整体的系统快速升级,统一管理。
背景技术
在各种网络服务普遍应用的今天,随着网络速度的提高以及用户的增加、性能的不断提高,高可用性、高可靠性、可管理性、价格有效性的网络技术成为网络服务的主导。集群(cluster)技术得到大多数网络服务商的青睐,Linux系统由于免费、安全、高扩展性,成为集群系统的首选操作系统。
集群(cluster)系统一般通过两台或多台节点服务器系统通过相应的硬件及软件互连,每个群集节点都是运行其自己进程的独立服务器。当前最简单的一套高性能集群也是几十个节点互联,对集群管理来说,高效性十分重要。
对linux集群的部署升级方式有很多,minimal安装、光盘安装、kickstart安装、U盘安装等等,以上都得一台一台安装,pxe网络安装的方式也要一台一台的修改首选启动为网络启动。
发明内容
本发明要解决的技术问题是:本发明提出一种网络升级集群系统的方法,利用NFS加grub引导的方式,快速便捷地升级集群。
本发明所采用的技术方案为:
一种网络升级集群系统的方法,利用网络存储,通过grub引导的方式远程升级操作系统,所述方法实现过程如下:
1)搭建网络环境;
2)搭建物理环境;
3)配置NFS服务器;
4)将升级的系统镜像放在NFS服务器上共享给集群的每个节点,解压系统镜像文件到/NFS/OS下;
5)选一个测试安装节点,将/NFS/OS/images/pxeboot/目录下的mlinux和initrd.img文件复制到该节点的/boot/目录下;
6)在node1的/boot/下创建ks.cfg,内容包括:安装NFS信息;配置网卡信息;系统配置;选定需要安装的包;
7)修改grub引导,增加一个引导项并到第一位;
8)测试,重启该节点,远程打开vncviewer,查看安装界面;等待安装完成;
9)编写复制相关配置文件的shell脚本放在NFS服务器上。
所述网络环境为以太局域网络或者IB网络。
所述物理环境的硬件架构包括一套linux集群服务器,一台NFS存储服务器;
操作系统为Redhat、SUSE或ContOS等系统镜像文件;
文件系统为NFS。
本发明的有益效果为:
本发明通过简单的NFS架设,实现集群的远程升级,具有统一管理、免职守、方便快捷的特点。
说明书附图
    图1为本发明集群架构示意图。
具体实施方式
下面根据说明书附图,结合具体实施方式对本发明进一步说明:
一种网络升级集群系统的方法,利用网络存储,通过grub引导的方式远程升级操作系统,所述方法实现过程如下:
1)搭建网络环境:以太局域网络或者IB网络;
2)搭建物理环境:
硬件架构:
一套linux集群服务器,一台NFS存储服务器,如图1所示;
操作系统:Redhat、SUSE、ContOS等系统镜像文件;
文件系统:NFS;
3)配置细节:
1、配置NFS服务器,将升级的如ContOS系统镜像放在NFS服务器上共享给集群的每个节点,假设NFS服务器IP为192.168.10.100,解压系统镜像文件到/NFS/OS下;
2、选一个测试安装节点,如node1,将/NFS/OS/images/pxeboot/目录下的mlinux和initrd.img文件复制到node1节点的/boot/目录下;
3、在node1的/boot/下创建ks.cfg,内容如下:
install
#NFS信息
nfs --server=192.168.10.100 --dir=/public/OS
lang en_US.UTF-8
keyboard us
#配置网卡信息
network --onboot yes --device eth0 --bootproto static --ip 192.168.10.1 --netmask 255.255.255.0 --gateway 192.168.10.254 --hostname node1
#系统配置
rootpw --iscrypted $1$WqFpKWVr$L.l7cjkSmENinoIlMTzXz0
firewall –disabled
selinux –disabled
timezone --utc Asia/Shanghai
bootloader --location=mbr --driveorder=sda --append="crashkernel=auto rhgb quiet"
clearpart --linux --drives=sdaautopart
repo --name="CentOS"  --baseurl=nfs:192.168.10.100:/public/OS --cost=100
reboot
#选定需要安装的包
%packages
core
server-policy
openssh-clients-5.3p1-81.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
……
%end
4、修改grub引导,增加一个引导项并到第一位:
title reinstall
root (hd0,0)
kernel /vmlinuz ks=hd:sda1/ks.cfg vnc
initrd /initrd.img
5、测试,重启node1,远程打开vncviewer,输入node1:1查看安装界面;等待安装完成;
6、编写复制相关配置文件的shell脚本放在NFS服务器上。
以上实施方式仅用于说明本发明,而并非对本发明的限制,有关技术领域的普通技术人员,在不脱离本发明的精神和范围的情况下,还可以做出各种变化和变型,因此所有等同的技术方案也属于本发明的范畴,本发明的专利保护范围应由权利要求限定。

Claims (3)

1.一种网络升级集群系统的方法,其特征在于:利用网络存储,通过grub引导的方式远程升级操作系统,所述方法实现过程如下:
1)搭建网络环境;
2)搭建物理环境;
3)配置NFS服务器;
4)将升级的系统镜像放在NFS服务器上共享给集群的每个节点,解压系统镜像文件到/NFS/OS下;
5)选一个测试安装节点,将/NFS/OS/images/pxeboot/目录下的mlinux和initrd.img文件复制到该节点的/boot/目录下;
6)在node1的/boot/下创建ks.cfg,内容包括:安装NFS信息;配置网卡信息;系统配置;选定需要安装的包;
7)修改grub引导,增加一个引导项并到第一位;
8)测试,重启该节点,远程打开vncviewer,查看安装界面;等待安装完成;
9)编写复制相关配置文件的shell脚本放在NFS服务器上。
2.根据权利要求1所述的一种网络升级集群系统的方法,其特征在于:所述网络环境为以太局域网络或者IB网络。
3.根据权利要求1所述的一种网络升级集群系统的方法,其特征在于:所述物理环境的硬件架构包括一套linux集群服务器,一台NFS存储服务器;
操作系统为Redhat、SUSE或ContOS系统镜像文件;
文件系统为NFS。
CN201510239409.3A 2015-05-12 2015-05-12 一种网络升级集群系统的方法 Pending CN104834546A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510239409.3A CN104834546A (zh) 2015-05-12 2015-05-12 一种网络升级集群系统的方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510239409.3A CN104834546A (zh) 2015-05-12 2015-05-12 一种网络升级集群系统的方法

Publications (1)

Publication Number Publication Date
CN104834546A true CN104834546A (zh) 2015-08-12

Family

ID=53812455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510239409.3A Pending CN104834546A (zh) 2015-05-12 2015-05-12 一种网络升级集群系统的方法

Country Status (1)

Country Link
CN (1) CN104834546A (zh)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106550014A (zh) * 2016-10-09 2017-03-29 华为数字技术(成都)有限公司 服务器集群中的节点升级方法及装置
CN107135120A (zh) * 2017-04-24 2017-09-05 曙光信息产业(北京)有限公司 一种用于hpc集群的自动测试方法和装置
CN107508708A (zh) * 2017-08-30 2017-12-22 郑州云海信息技术有限公司 一种Linux系统下网卡名定制方法及系统
CN109840096A (zh) * 2019-01-02 2019-06-04 紫光华山信息技术有限公司 操作系统的安装方法及装置
CN110377314A (zh) * 2019-07-19 2019-10-25 苏州浪潮智能科技有限公司 一种分布式存储系统的系统升级方法、装置、设备及介质
CN112015459A (zh) * 2020-10-14 2020-12-01 湖南新云网科技有限公司 一种镜像文件的升级方法、装置、终端及可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739263A (zh) * 2008-11-11 2010-06-16 英业达股份有限公司 在多机集群系统中实现操作系统升级的方法及装置
CN101789980A (zh) * 2010-03-05 2010-07-28 武汉烽火网络有限责任公司 一种基于集群网络批量升级的方法
US20110029964A1 (en) * 2009-07-31 2011-02-03 Fujitsu Limited Method and system for updating programs in a multi-cluster system
US8151021B1 (en) * 2010-03-31 2012-04-03 Emc Corporation Upgrading software on a cluster of computerized devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739263A (zh) * 2008-11-11 2010-06-16 英业达股份有限公司 在多机集群系统中实现操作系统升级的方法及装置
US20110029964A1 (en) * 2009-07-31 2011-02-03 Fujitsu Limited Method and system for updating programs in a multi-cluster system
CN101789980A (zh) * 2010-03-05 2010-07-28 武汉烽火网络有限责任公司 一种基于集群网络批量升级的方法
US8151021B1 (en) * 2010-03-31 2012-04-03 Emc Corporation Upgrading software on a cluster of computerized devices

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ZOKIE: "集群通过网络升级安装系统", 《HTTP://BLOG.CSDN.NET/ZOKIE/ARTICLE/DETAILS/41118527》 *
秦洪全: "基于以太网HPC集群免光驱快速部署Linux OS方法", 《科技浪潮》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106550014A (zh) * 2016-10-09 2017-03-29 华为数字技术(成都)有限公司 服务器集群中的节点升级方法及装置
CN107135120A (zh) * 2017-04-24 2017-09-05 曙光信息产业(北京)有限公司 一种用于hpc集群的自动测试方法和装置
CN107135120B (zh) * 2017-04-24 2020-11-03 曙光信息产业(北京)有限公司 一种用于hpc集群的自动测试方法和装置
CN107508708A (zh) * 2017-08-30 2017-12-22 郑州云海信息技术有限公司 一种Linux系统下网卡名定制方法及系统
CN109840096A (zh) * 2019-01-02 2019-06-04 紫光华山信息技术有限公司 操作系统的安装方法及装置
CN109840096B (zh) * 2019-01-02 2023-02-07 新华三信息技术有限公司 操作系统的安装方法及装置
CN110377314A (zh) * 2019-07-19 2019-10-25 苏州浪潮智能科技有限公司 一种分布式存储系统的系统升级方法、装置、设备及介质
CN110377314B (zh) * 2019-07-19 2022-12-23 苏州浪潮智能科技有限公司 一种分布式存储系统的系统升级方法、装置、设备及介质
CN112015459A (zh) * 2020-10-14 2020-12-01 湖南新云网科技有限公司 一种镜像文件的升级方法、装置、终端及可读存储介质

Similar Documents

Publication Publication Date Title
CN104834546A (zh) 一种网络升级集群系统的方法
US8327350B2 (en) Virtual resource templates
US10713183B2 (en) Virtual machine backup using snapshots and current configuration
EP2786246B1 (en) Deployment and updating of applications and drivers on a client device using and extensible markup language (xml) configuration file
US8612516B2 (en) Deployment of a driver or an application on a client device having a write-filter
US9965307B2 (en) Building virtual appliances
EP2019358A1 (en) A method and a system for the creation and deployment of a virtual machine appliance on virtualised servers
US11086662B2 (en) Method and system of migrating applications to a cloud-computing environment
US11032213B1 (en) Centralized management of computing resources across service provider networks
CN103297504A (zh) 一种云数据中心中物理裸机快速部署操作系统的方法
US9032394B1 (en) Deploying drivers for an operating system on a computing device
US10216510B2 (en) Silent upgrade of software with dependencies
WO2013081681A1 (en) Creation or installation of a disk image for a target device having one of a plurality of hardware platforms
US9893959B1 (en) Resource modeling language to specify and control the placement of resources in a cloud environment
US20150277884A1 (en) Extensions for deployment patterns
US20190188049A1 (en) Apparatus and method to select services for executing a user program based on a code pattern included therein
US20170192764A1 (en) Automated application installation
De Alfonso et al. Infrastructure deployment over the cloud
US10114677B2 (en) Method and system for workload recommendations on information handling systems
US10540452B1 (en) Automated translation of applications
US11392361B2 (en) Software release orchestration for continuous delivery of features in a cloud platform based data center
US7882232B2 (en) Rapid resource provisioning with automated throttling
US9733918B2 (en) Using cloud patterns for installation on unmanaged physical machines and appliances
EP4182786A1 (en) Configuration files for multiple devices
US11113186B1 (en) Testing and publishing of resource handlers in a cloud environment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate 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: 20150812