CN103716188B - The management of Linux server cluster management and maintaining method - Google Patents
The management of Linux server cluster management and maintaining method Download PDFInfo
- Publication number
- CN103716188B CN103716188B CN201310714103.XA CN201310714103A CN103716188B CN 103716188 B CN103716188 B CN 103716188B CN 201310714103 A CN201310714103 A CN 201310714103A CN 103716188 B CN103716188 B CN 103716188B
- Authority
- CN
- China
- Prior art keywords
- management
- server cluster
- linux
- server
- linux server
- 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.)
- Active
Links
Abstract
The management of a kind of Linux server cluster management and maintaining method, including: S1, on the management server installation file installation and deployment bag and Secure Shell host-host protocol;The transmission service of S2, delta file, is delivered to the backup directory of the deployment file of Linux server cluster including configuration management server;Catalogue is disposed in S3, establishment, is delivered to the deployment file of Linux server cluster in order to storage and managenent server;S4, configuration server configuration file, including arranging the IP address of Linux server cluster and the corresponding application service disposed thereof, and specify application service catalogue corresponding to Linux server cluster;S5, management server connect Linux server cluster by IP and the password of Linux server cluster;S6, management server send the compatible language of scripting and perform corresponding operation to Linux server cluster, control Linux server cluster.
Description
Technical field
The present invention relates to the O&M technical field of computer, the management managed particularly to a kind of Linux server cluster
And maintaining method.
Background technology
In existing enterprise Linux server O&M, it is requisite to server maintenance and management.Most services
The server cluster that device is all made up of a series of servers, so safeguarding that server is a troublesome job.Server
Maintenance system mainly provide the on/off of server, server state inspection, application log analysis, application backup/upgrading/
The work such as rollback.
Under the prior art, an engineer needs frequently log on different server every day, to tens the most up to a hundred
Server carries out substantial amounts of repeated work, needs to take considerable time.Even if Jia Pai engineer's staff, repetition work also cannot be exempted
The defect made, and easily make mistakes.
Summary of the invention
The present invention is directed to deficiencies of the prior art, it is provided that the management of Linux server cluster management and dimension
Maintaining method, makes a management server safeguard Linux server cluster, only need to log in management server and just can remotely manage
Linux server cluster, the simplification that working environment becomes, efficiency is greatly improved, and allows server side maintenance engineering be an apprentice of often
It obtains the biggest freeing from repeated work, saves enterprise's maintenance time and maintenance cost.
The present invention is achieved through the following technical solutions:
The management of a kind of Linux server cluster management and maintaining method, dispose a management server, by by increment
File transfer services and Secure Shell host-host protocol are integrated, and the compatible language utilizing scripting is remote by Secure Shell host-host protocol
Cheng Denglu and delta file transmission service encapsulation is completed to realize file transmission, backup, mirror image management, including following step
Rapid:
S1, on the management server installation file installation and deployment bag and Secure Shell host-host protocol;
Delta file transmission service in S2, configuration deploycmd file installation and deployment bag, including configuration management server
It is delivered to the backup directory of the deployment file of Linux server;
Catalogue is disposed in S3, establishment, is delivered to the deployment file of Linux server cluster in order to storage and managenent server;
Server profile in S4, configuration file installation and deployment bag, including the IP ground arranging Linux server cluster
Location and the corresponding application service disposed thereof, and specify application service catalogue corresponding to Linux server cluster;
S5, management server connect Linux server cluster by IP and the password of Linux server cluster;
S6, management server send the compatible language of scripting to Linux server cluster, control Linux server collection
Group performs corresponding operation.
It is also preferred that the left step S6 includes: management server sends service arrangement instruction and takes to Linux server cluster, Linux
Business device cluster is from the file disposed in acquisition deployment file catalogue, and the application service catalogue of correspondence of upgrading.
It is also preferred that the left management server transmission backup instruction is to Linux server cluster, Linux server cluster is by correspondence
Application service catalogue in file backup to backup directory.
It is also preferred that the left the most also include: Linux server cluster is grouped, manage server coupling part
Linux server cluster, in order to be managed the part server in Linux server cluster and to safeguard.
It is also preferred that the left the most also include the IP address backing up Linux server corresponding to all application services.
It is also preferred that the left management server is identical with first three section, the IP address of Linux server cluster, the most also include
Back up the final stage of the IP address of Linux server corresponding to all application services.
Accompanying drawing explanation
Shown in Fig. 1 is the schematic network structure of the present invention;
Shown in Fig. 2 is the workflow diagram of the present invention.
Detailed description of the invention
Below with reference to the accompanying drawing of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete description
And discussion, it is clear that a part of example of the only present invention as described herein, is not whole examples, based on the present invention
In embodiment, the every other enforcement that those of ordinary skill in the art are obtained on the premise of not making creative work
Example, broadly falls into protection scope of the present invention.
For the ease of the understanding to the embodiment of the present invention, make as a example by specific embodiment further below in conjunction with accompanying drawing
Illustrate, and each embodiment does not constitute the restriction to the embodiment of the present invention.
Refer to Fig. 1, the management of a kind of Linux server cluster management and maintaining method, dispose a management server,
By delta file transmission service (rsync) and Secure Shell host-host protocol (SSH2) being integrated, utilize the compatible language of scripting
Speech logged in by SSH2 protocol remote and delta file transmission service rsync encapsulate realize file transmission, back up,
Mirror image manages, and comprises the following steps, can be with reference to Fig. 2:
S1, on the management server installation file installation and deployment bag (deploycmd) and SSH2 agreement.deploycmd
File installation and deployment bag and SSH2 agreement are all existing programs, and the present invention does not repeats at this.
Delta file transmission service rsync in S2, configuration deploycmd file installation and deployment bag, including configuration Linux
The backup directory of server cluster.
S3, establishment dispose catalogue, in order to deposit the deployment file to Linux server cluster.
Management server profile (server) in S4, configuration deploycmd file installation and deployment bag, including arranging
The IP address of Linux server cluster and the corresponding application service disposed thereof, and specify application corresponding to Linux server cluster
Service catalogue.If if partial maintenance, IP address and the correspondence thereof of the Linux server cluster needing maintenance can be only set
The application service disposed, and back up the IP address of Linux server corresponding to all application services.Preferably, pipe can be set
Reason server is identical with first three section, the IP address of Linux server cluster, is backing up the Linux service that all application services are corresponding
The final stage of IP only it is backed up during the IP address of device.
S5, management server connect Linux server cluster by IP and the password of Linux server cluster.Here,
Can be grouped Linux server cluster, management server coupling part Linux server cluster, in order to service Linux
Part server in device cluster is managed and safeguards.
S6, management server send the compatible language of scripting to Linux server cluster, control Linux server collection
Group performs corresponding operation.Specifically comprise the steps that management server sends service arrangement and instructs to Linux server cluster, Linux
Server cluster is from the file disposed in acquisition deployment file catalogue, and the application service catalogue of correspondence of upgrading;Management service
Device transmission backup instruction is to Linux server cluster, and Linux server cluster is by standby for the file in corresponding application service catalogue
Part is to backup directory.
For the ease of artisans understand that, illustrate the most as an example:
S1, on the management server installation deploycmd file installation and deployment bag and SSH2 agreement.Deploycmd literary composition
After the installation of part installation and deployment bag, file is important has:
Executable file: wdcmd (management instrument) wd_backup (backup) wd_restart (restarting) wd_stop (stops
Only) wd_deploy (dispose/install) wd_restore (rollback)
Configuration file: server.conf server.inc.php rsyncd.conf file
S2, in rsyncd.conf configure delta file transmission service rsync, be delivered to including configuration management server
The backup directory of the deployment file of Linux server.
S3, create and dispose catalogue, be delivered to the deployment file of Linux server cluster in order to storage and managenent server:
Mkdir p/data/wd/deployment/webapps---file webapps is used for depositing deployment file
Mkdir p/data/wd/rollback---file rollback is used for depositing backup file
S4, configuration server.conf file:
It is assumed here that in upgrade environments as a example by wd environment, different application servers is assumed application service there are differences
(184 groups of servers have 1 application service;185 groups of servers have 2 application service parts;167 groups of servers have 6 application clothes
Business parts), following operating procedure is all as example:
S5, configuration server.inc.php file:
S6, being disposed by above-mentioned configuration, management server sends the compatible language of scripting to Linux server collection
Group, controls Linux server cluster and performs corresponding operation, such as:
1, cluster server management wdcmd principle is to be extended by SSH2 remotely to manage cluster
Such as
Check all configuration cluster disk space utilization rates
Wdcmd " df-h " checks appointment application server disk space utilization rate
Wdcmd " df-h " host name
Check appointment full group disk space utilization rate
Wdcmd " df-h " wd.group.all etc.
2, server resets principle is by SSH2 extension remotely management cluster and to specify application reset command to cluster weight
Open in wd_restart
Perform to restart whole server or full group to issue orders:
The SSH2 extension that wd_restart wd.group.all cluster management instrument is carried by Linux remotely manages collection
Group
Perform to restart first group of wd server to issue orders:
The SSH2 extension that wd_restart wd.group.1 cluster management instrument is carried by Linux remotely manages cluster
Perform to restart second group of wd server to issue orders:
The SSH2 extension that wd_restart wd.group.2 cluster management instrument is carried by Linux remotely manages cluster
3, service stopping principle is by SSH2 extension remotely management cluster and to specify application reset command to cluster weight
Open in wd_restop
Perform with the whole servers of stopping or the full group of issuing orders:
wd_restop wd.group.all
Perform with first group of wd server of stopping of issuing orders:
wd_restop wd.group.1
Perform with second group of wd server of stopping of issuing orders:
wd_restop wd.group.2
4, Backup service (version file of backup is placed on/catalogue named with current date of data/wd/rollback/
Under) principle by delta file transmission service (rsync)
Perform with backup full dose wd server or the full group of issuing orders:
wd_backup wd.group.all
Perform with first group of wd server of backup of issuing orders:
wd_backup wd.group.1
Perform with second group of wd server of backup of issuing orders:
wd_backup wd.group.2
5, service arrangement (needs before deployment to tie by existing network catalogue under/data/wd/deployment/webapps catalogue
Structure mode upgrade file)
Perform following command deployment/installation full dose wd server:
wd_deploy wd.group.all
Perform first group of wd server of following command deployment:
wd_deploy wd.group.1
Perform second group of wd server of following command deployment:
wd_deploy wd.group.2
6, version rollback, performs with rollback appointed day version of issuing orders:
Execution is with the backup of the whole server of rollback of issuing orders to 2012-06-13:
wd_restore 2012-06-13wd.group.all
Perform with first group of wd server of rollback of issuing orders to the backup of 2012-06-13:
wd_restore 2012-06-13wd.group.1
Perform with second group of wd server of rollback of issuing orders to the backup of 2012-06-13:
wd_restore 2012-06-13wd.group.2
Etc..
The above, the only present invention preferably detailed description of the invention, but protection scope of the present invention is not limited to and this,
Any those familiar with the art in the technical scope that the invention discloses, the change that can readily occur in or replacement,
All should contain within protection scope of the present invention.Therefore, protection scope of the present invention should be with scope of the claims
It is as the criterion.
Claims (6)
1. the management of Linux server cluster management and maintaining method, it is characterised in that disposes one and manage server,
By delta file transmission service and Secure Shell host-host protocol being integrated, the compatible language of scripting is utilized to pass through Secure Shell
Host-host protocol Telnet and delta file transmission service encapsulation is completed to realize file transmission, backup, mirror image management, bag
Include following steps:
S1, on the management server installation file installation and deployment bag and Secure Shell host-host protocol;
Delta file transmission service in S2, configuration file installation and deployment bag, is delivered to Linux clothes including configuration management server
The backup directory of the deployment file of business device cluster;
Catalogue is disposed in S3, establishment, is delivered to the deployment file of Linux server cluster in order to storage and managenent server;
Server profile in S4, configuration file installation and deployment bag, including arrange Linux server cluster IP address and
Its corresponding application service disposed, and specify application service catalogue corresponding to Linux server cluster;
S5, management server connect Linux server cluster by IP and the password of Linux server cluster;
S6, management server send the compatible language of scripting and hold to Linux server cluster, control Linux server cluster
The operation that row is corresponding.
The management of Linux server cluster the most according to claim 1 management and maintaining method, it is characterised in that step
S6 includes: management server sends service arrangement and instructs to Linux server cluster, and Linux server cluster is from disposing catalogue
File in middle acquisition deployment file, and the application service catalogue of correspondence of upgrading.
The management of Linux server cluster the most according to claim 1 management and maintaining method, it is characterised in that management
Server transmission backup instruction is to Linux server cluster, and Linux server cluster is by the literary composition in corresponding application service catalogue
Part backs up to backup directory.
The management of Linux server cluster the most according to claim 1 management and maintaining method, it is characterised in that in step
Rapid S5 also includes: described Linux server cluster is grouped, management server coupling part Linux server cluster,
In order to the part server in Linux server cluster is managed and safeguards.
The management of Linux server cluster the most according to claim 1 management and maintaining method, it is characterised in that in step
Rapid S4 also includes the IP address backing up Linux server corresponding to all application services.
The management of Linux server cluster the most according to claim 5 management and maintaining method, it is characterised in that described
Management server is identical with first three section, the IP address of described Linux server cluster, the most also includes backing up all answering
Final stage with the IP address of the Linux server of service correspondence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310714103.XA CN103716188B (en) | 2013-12-20 | 2013-12-20 | The management of Linux server cluster management and maintaining method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310714103.XA CN103716188B (en) | 2013-12-20 | 2013-12-20 | The management of Linux server cluster management and maintaining method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103716188A CN103716188A (en) | 2014-04-09 |
CN103716188B true CN103716188B (en) | 2016-09-14 |
Family
ID=50408794
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310714103.XA Active CN103716188B (en) | 2013-12-20 | 2013-12-20 | The management of Linux server cluster management and maintaining method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103716188B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104219329A (en) * | 2014-09-28 | 2014-12-17 | 浪潮软件集团有限公司 | Method for deploying service through content distribution in cluster server |
CN104954189A (en) * | 2015-07-07 | 2015-09-30 | 上海斐讯数据通信技术有限公司 | Automatic server cluster detecting method and system |
CN107528708A (en) * | 2016-06-21 | 2017-12-29 | 天脉聚源(北京)科技有限公司 | A kind of method and system for arranging Linux server cluster |
CN108512684B (en) * | 2017-02-28 | 2021-07-27 | 阿里巴巴集团控股有限公司 | Firmware upgrading method and system and firmware upgrading management device |
CN111371571A (en) * | 2018-12-25 | 2020-07-03 | 成都鼎桥通信技术有限公司 | Distributed service deployment method based on micro-service framework |
CN110572365A (en) * | 2019-08-08 | 2019-12-13 | 深圳中电长城信息安全系统有限公司 | multi-protocol server management method, system, terminal device and storage medium |
CN111338617A (en) * | 2020-02-26 | 2020-06-26 | 北京慧博科技有限公司 | Method for centrally controlling linux by using xml and python |
CN116661811B (en) * | 2023-07-31 | 2023-10-20 | 明阳时创(北京)科技有限公司 | Closed-loop containerized controllable service cluster construction method and service cluster device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20030054875A (en) * | 2001-12-26 | 2003-07-02 | 한국전자통신연구원 | Method for automatically installing operating system in linux-based cluster system at remote place |
CN1731738A (en) * | 2005-08-30 | 2006-02-08 | 西安交通大学 | Automated quick deployment method for large-scale computer cluster node |
CN102075358A (en) * | 2010-12-31 | 2011-05-25 | 网宿科技股份有限公司 | System and method for distributing and deploying content of large-scale server cluster |
-
2013
- 2013-12-20 CN CN201310714103.XA patent/CN103716188B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20030054875A (en) * | 2001-12-26 | 2003-07-02 | 한국전자통신연구원 | Method for automatically installing operating system in linux-based cluster system at remote place |
CN1731738A (en) * | 2005-08-30 | 2006-02-08 | 西安交通大学 | Automated quick deployment method for large-scale computer cluster node |
CN102075358A (en) * | 2010-12-31 | 2011-05-25 | 网宿科技股份有限公司 | System and method for distributing and deploying content of large-scale server cluster |
Also Published As
Publication number | Publication date |
---|---|
CN103716188A (en) | 2014-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103716188B (en) | The management of Linux server cluster management and maintaining method | |
CN104487960B (en) | Automated disaster recovery and Data Migration | |
CN102609281B (en) | Distributed software patch update method and system | |
CN102369713B (en) | Automatic removing method and device of system configuration items | |
CN103051469B (en) | Centralized configuring management method under cloud environment | |
CN107885564A (en) | The super fusion cloud desktop system of one kind | |
CN102638566B (en) | BLOG system running method based on cloud storage | |
CN103853585B (en) | A kind of implementation method for managing version concentratedly by high in the clouds | |
CN105553741A (en) | Automatic deployment method for application system based on cloud computing | |
CN103188088A (en) | Equipment information acquisition system and equipment information acquisition method | |
CN1407441A (en) | System and method for automatic management computer service and programmable device | |
JP2012248184A (en) | Method for accessing automated system, and system to operate based on the same method | |
CN102437938A (en) | Large-scale network monitoring oriented virtual deployment system and method | |
CN102624919A (en) | Distributed service integrated system for service-oriented architecture and application method thereof | |
CN101924775A (en) | Android application component transparent loading method and system | |
JP6847145B2 (en) | Building support with concealed electronic components for structures | |
CN105808274A (en) | Software upgrading method and system as well as corresponding clients and servers | |
CN102664758B (en) | Method for binding and automatically recovering network configuration | |
CN104219329A (en) | Method for deploying service through content distribution in cluster server | |
CN103685463A (en) | Access control method and system in cloud computing system | |
CN105094961A (en) | Task scheduling management system based on quartz frame and method thereof | |
CN103117874A (en) | Blade server management network rapid configuration method | |
CN106569845A (en) | Universal software installation system and universal software installation method under Windows domain authority management | |
CN105430096A (en) | Automatic installation method and device for parallel file system | |
CN102087599A (en) | J2EE-based Web application system development method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |