CN109274521A - A kind of automatically updating method and device of distributed memory system mode - Google Patents

A kind of automatically updating method and device of distributed memory system mode Download PDF

Info

Publication number
CN109274521A
CN109274521A CN201810975596.5A CN201810975596A CN109274521A CN 109274521 A CN109274521 A CN 109274521A CN 201810975596 A CN201810975596 A CN 201810975596A CN 109274521 A CN109274521 A CN 109274521A
Authority
CN
China
Prior art keywords
clustered node
mode
osd
file
memory 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
CN201810975596.5A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810975596.5A priority Critical patent/CN109274521A/en
Publication of CN109274521A publication Critical patent/CN109274521A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • 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/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention provides the automatically updating method and device of a kind of distributed memory system mode, wherein method includes: configuration mode upgrade script, the script is used for: stopping the cluster service of distributed memory system, and the mode type of change clustered node configuration file, and the mode type of change clustered node OSD storage class file, and change clustered node OSD configuration information, and upgrading rpm packet;Under memory module upgrade script to the User Catalog of clustered node;Execution pattern upgrade script, and export the mode updating result of clustered node.The automatically updating method of distributed memory system mode proposed by the present invention substantially increases the efficiency and accuracy rate of the upgrading of distributed memory system mode, while avoiding the wasting of resources of distributed memory system, has broad application prospects.

Description

A kind of automatically updating method and device of distributed memory system mode
Technical field
The present invention relates to distributed memory system fields, and in particular to a kind of automatic upgrading of distributed memory system mode Method and device.
Background technique
Distributed memory system is to carry out the integration of block data cluster by the IPSAN of software definition, can pass through virtual bottom Node layer memory space externally provides unified block data access, reaches high broadband, high IOPS (Input/ by IP network Output Operations Per Second) polymerizing power, meet current IT enterprises, cloud computing, big data, virtual The large complicated operational application such as desktop, to improve the resource utilization of IT system, and before guaranteeing that service class is horizontal Putting reduces cost, while increasing the agility of business, accelerates the on-line time of new business.Distributed memory system is meeting day While the block data traffic requirement that benefit increases, more inexpensive, more efficiently good service is provided for user.
There are various modes for distributed memory system, usually pass through the shape of manual modification clustered node configuration file at this stage Formula carries out mode upgrading, and distributed storage cluster maximum can support 120 nodes, extremely be expended by way of upgrading manually Time, while easily there is mistake in the form upgraded manually, and then influences the normal use of distributed memory system, on solving Problem is stated, the present invention proposes the automatically updating method and device of a kind of distributed memory system mode.
Summary of the invention
It is an object of the present invention to the automatically updating method and device of a kind of distributed memory system mode be proposed, with solution Certainly above-mentioned technical problem.
In a first aspect, the present invention provides a kind of automatically updating method of distributed memory system mode, comprising:
Configuration mode upgrade script, the script are used for: stopping the cluster service of distributed memory system;And change collection The mode type of group node configuration file;And the mode type of change clustered node OSD storage class file;And change collection Group node OSD configuration information;And upgrading rpm packet;
Under memory module upgrade script to the User Catalog of clustered node;
Execution pattern upgrade script, and export the mode updating result of clustered node.
Further, the cluster service for stopping distributed cluster file system, comprising:
The descending sequence of the session quantity of foundation clustered node connection, configures in order clustered node IP;
The sequence ascending according to clustered node IP successively stops tgtd service.
Further, the mode type of clustered node configuration file is changed, comprising: ascending according to clustered node IP Sequence successively change the mode type of configuration file.
Further, change clustered node OSD storage class file mode type, comprising: according to clustered node IP by The small mode type that OSD storage class file is successively changed to big sequence.
Further, the mode type of the change clustered node OSD storage class file, further includes: according to cluster section Point IP ascending sequence successively checks whether the mode type of change OSD storage class file succeeds, if not changing success, Then report an error.
Further, the change clustered node OSD configuration information, comprising:
OSD configuration information file folder is created, and creates OSD configuration information file in file;
Changing is distributed memory system belonging to the permission of OSD configuration information file folder.
Further, the OSD configuration information file includes:
OSD caching storage path file;
OSD metadata stores path file;
OSD back-end data base type file.
Second aspect, the present invention provide a kind of automatic update device of distributed memory system mode, comprising:
Script configuration module: being used for configuration mode upgrade script, and the script is used for: stopping the collection of distributed memory system Group's service;And the mode type of change clustered node configuration file;And the mould of change clustered node OSD storage class file Formula type;And change clustered node OSD configuration information;And upgrading rpm packet;
Script memory module: under the User Catalog for memory module upgrade script to clustered node;
Script execution module: it is used for execution pattern upgrade script, and exports the mode updating result of clustered node.
The present invention provides a kind of automatically updating method of distributed memory system mode, by configuration mode upgrade script, It is specifically used for: stops the cluster service of distributed memory system, and the mode type of change clustered node configuration file, and Change the mode type of clustered node OSD storage class file, and change clustered node OSD configuration information, and upgrading rpm Packet;Under memory module upgrade script to the User Catalog of clustered node;Execution pattern upgrade script, and export the mould of clustered node The mode of formula updating result completes the automatic upgrading of distributed memory system mode, avoids distributed memory system at this stage Mode upgrade manually and expend the time and it is error-prone the problems such as.The present invention provide a kind of distributed memory system mode from Dynamic upgrade method substantially increases the efficiency and accuracy rate of the upgrading of distributed memory system mode, while avoiding distribution and depositing The wasting of resources of storage system, has broad application prospects.
A kind of beneficial effect of the automatic update device of distributed memory system mode provided by the invention is not as described above, It repeats and repeats.
Detailed description of the invention
Illustrate the embodiment of the present invention in order to clearer, attached drawing needed in the embodiment is done into simple Jie below It continues, it is clear that, drawings in the following description are only some embodiments of the invention, for those of ordinary skill in the art For, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow chart of the automatically updating method of distributed memory system mode in the embodiment of the present invention 1.
Fig. 2 is the schematic diagram of the automatic update device of distributed memory system mode in the embodiment of the present invention 1.
Specific embodiment
With reference to the attached drawing in the embodiment of the present invention, clear and complete retouch is carried out to the technical solution in inventive embodiments It states, it is clear that described embodiment is only a part of the embodiments of the present invention, rather than whole embodiments.Based on the present invention In embodiment, those of ordinary skill in the art without making creative work, every other implementation obtained Example, belongs to the scope of the present invention.
In order to make those skilled in the art better understand the present invention program, with reference to the accompanying drawings and detailed description The present invention is described in further detail.
Embodiment 1
This implementation provides a kind of automatically updating method of distributed memory system mode, as shown in Figure 1, it specifically includes:
SS1, configuration mode upgrade script, the script are used for: stopping the cluster service of distributed memory system;And more Change the mode type of clustered node configuration file;And change clustered node OSD (deposit by Object Storage Device, object Store up equipment) storage class file mode type;And change clustered node OSD configuration information;And upgrading rpm packet;
SS2, memory module upgrade script to clustered node User Catalog under;
SS3, execution pattern upgrade script, and export the mode updating result of clustered node.
In the present embodiment, stop the cluster service of distributed memory system in step SS1, specifically include: according to cluster section The descending sequence of the session quantity of point connection, configures in order clustered node IP;It is ascending according to clustered node IP Sequence successively stops tgtd service.
In the present embodiment, the mode type of clustered node configuration file is changed in step SS1, is specifically included: according to cluster The ascending sequence of node IP successively changes the mode type of configuration file.
In the present embodiment, the mode type of clustered node OSD storage class file is changed in step SS1, is specifically included: according to The mode type of OSD storage class file is successively changed according to clustered node IP ascending sequence;According to clustered node IP by Whether the small mode type that change OSD storage class file is successively checked to big sequence succeeds, if not changing success, reports It is wrong.
In the present embodiment, clustered node OSD configuration information is changed in step SS1, comprising: creation OSD configuration information file Folder, and OSD configuration information file is created in file;It is deposited belonging to the permission of change OSD configuration information file folder for distribution Storage system.Above-mentioned OSD configuration information specifically includes: OSD caching storage path file, OSD metadata store path file, OSD Back-end data base type file.
The present embodiment also provides a kind of automatic update device of distributed memory system mode, as shown in Figure 2, comprising:
Script configuration module: being used for configuration mode upgrade script, and the script is used for: stopping the collection of distributed memory system Group's service;And the mode type of change clustered node configuration file;And the mould of change clustered node OSD storage class file Formula type;And change clustered node OSD configuration information;And upgrading rpm packet;
Script memory module: under the User Catalog for memory module upgrade script to clustered node;
Script execution module: it is used for execution pattern upgrade script, and exports the mode updating result of clustered node.
Embodiment 2
This implementation provides a kind of automatically updating method of distributed memory system mode, is applied particularly to icfs (ISONE Cluster File System) upgrade newstore mode automatically as turbostore mode, specifically includes the following steps:
SS1, configuration mode upgrade script, are specifically used for:
(1) stop icfs cluster service: the descending sequence of the session quantity of foundation clustered node connection, successively Clustered node IP is configured, such as configures clustered node IP from 100.7.40.173-100.7.40.174, according to clustered node IP by small Successively stop tgtd service to big sequence (for providing icfs High Availabitity IPSAN service).
Script is as follows:
(2) changing the mode type " newstore " of clustered node configuration file is " turbostore ", and according to cluster The mode type " newstore " that the ascending sequence of node IP successively changes configuration file is " turbostore ".
Script is as follows:
(3) mode type of clustered node OSD storage class file, i.e. change/var/lib/icfs/osd/ are changed Mode type " newstore " in icfs-x/type file is " turbostore ", is specifically included: according to clustered node IP by The small mode type " newstore " in big sequence successively change/var/lib/icfs/osd/icfs-x/type file For " turbostore ";The sequence ascending according to clustered node IP successively checks/var/lib/icfs/osd/icfs-x/ Whether the mode type in type file succeeds, if change is failed, reports an error.
Script is as follows:
(4) clustered node OSD configuration information is changed, comprising:
OSD configuration information file folder/var/lib/icfs/osd/icfs-x/config is created, is created in file OSD configuration information file, the file include:
OSD caching storage path file cache_path, file content is /var/lib/icfs/osd/cache-x, Middle x is osdid;
OSD metadata stores path file db_path file, and file content is /var/lib/icfs/osd/cache- x/meta;
OSD back-end data base type file kvbackend file, file content rocksdb.
Changing belonging to the permission of OSD configuration information file folder is distributed memory system, so that icfs can have it Permission executes operation, specific to be are as follows: by recurrence modification config text under OSD catalogue/var/lib/icfs/osd/icfs-x/ It is chgrp-R icfs conf that part, which presss from both sides affiliated group,.
Script is as follows:
(5) upgrade rpm packet.
SS2, memory module upgrade script to clustered node User Catalog/usr/home under.
SS3, execution pattern upgrade script, and the mode updating result of clustered node is exported to output.txt.
The present embodiment also provides a kind of automatic update device of distributed memory system mode, is applied particularly to icfs (ISONE ClusterFile System) upgrading newstore mode is turbostore mode automatically, which includes:
Script configuration module: being used for configuration mode upgrade script, and the script is used for: stopping icfs cluster service;And The mode type " newstore " for changing clustered node configuration file is " turbostore ";And change clustered node OSD is deposited The mode type " newstore " for storing up type file is " turbostore ";And change clustered node OSD configuration information;And Upgrade rpm packet;
Script memory module: under the User Catalog for memory module upgrade script to clustered node;
Script execution module: it is used for execution pattern upgrade script, and exports the mode updating result of clustered node.
The automatically updating method and device of a kind of distributed memory system mode disclosed by the invention have been carried out in detail above It is thin to introduce.Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For system disclosed in embodiment Speech, since it is corresponded to the methods disclosed in the examples, what is described is relatively simple, and correlation can go out referring to method part illustration ?.The above is only a preferred embodiment of the present invention, it should be pointed out that: those skilled in the art are come It says, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications also should be regarded as Protection scope of the present invention.

Claims (8)

1. a kind of automatically updating method of distributed memory system mode characterized by comprising
Configuration mode upgrade script, the script are used for:
Stop the cluster service of distributed memory system;And
Change the mode type of clustered node configuration file;And
Change the mode type of clustered node OSD storage class file;And
Change clustered node OSD configuration information;And
Upgrade rpm packet;
Under memory module upgrade script to the User Catalog of clustered node;
Execution pattern upgrade script, and export the mode updating result of clustered node.
2. the automatically updating method of distributed memory system mode according to claim 1, which is characterized in that the stopping The cluster service of distributed cluster file system, comprising:
The descending sequence of the session quantity of foundation clustered node connection, configures in order clustered node IP;
The sequence ascending according to clustered node IP successively stops tgtd service.
3. the automatically updating method of distributed memory system mode according to claim 2, which is characterized in that change cluster The mode type of node profile, comprising:
The sequence ascending according to clustered node IP successively changes the mode type of configuration file.
4. the automatically updating method of distributed memory system mode according to claim 2, which is characterized in that change cluster The mode type of node OSD storage class file, comprising:
The sequence ascending according to clustered node IP successively changes the mode type of OSD storage class file.
5. the automatically updating method of distributed memory system mode according to claim 4, which is characterized in that the change The mode type of clustered node OSD storage class file, further includes:
According to the ascending sequence of clustered node IP successively check change OSD storage class file mode type whether at Function reports an error if not changing success.
6. the automatically updating method of distributed memory system mode according to claim 1, which is characterized in that the change Clustered node OSD configuration information, comprising:
OSD configuration information file folder is created, and creates OSD configuration information file in file;
Changing is distributed memory system belonging to the permission of OSD configuration information file folder.
7. the automatically updating method of distributed memory system mode according to claim 6, which is characterized in that the OSD Configuration information file includes:
OSD caching storage path file;
OSD metadata stores path file;
OSD back-end data base type file.
8. a kind of automatic update device of distributed memory system mode characterized by comprising
Script configuration module: being used for configuration mode upgrade script, and the script is used for:
Stop the cluster service of distributed memory system;And
Change the mode type of clustered node configuration file;And
Change the mode type of clustered node OSD storage class file;And
Change clustered node OSD configuration information;And
Upgrade rpm packet;
Script memory module: under the User Catalog for memory module upgrade script to clustered node;
Script execution module: it is used for execution pattern upgrade script, and exports the mode updating result of clustered node.
CN201810975596.5A 2018-08-24 2018-08-24 A kind of automatically updating method and device of distributed memory system mode Pending CN109274521A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810975596.5A CN109274521A (en) 2018-08-24 2018-08-24 A kind of automatically updating method and device of distributed memory system mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810975596.5A CN109274521A (en) 2018-08-24 2018-08-24 A kind of automatically updating method and device of distributed memory system mode

Publications (1)

Publication Number Publication Date
CN109274521A true CN109274521A (en) 2019-01-25

Family

ID=65154401

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810975596.5A Pending CN109274521A (en) 2018-08-24 2018-08-24 A kind of automatically updating method and device of distributed memory system mode

Country Status (1)

Country Link
CN (1) CN109274521A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101677276A (en) * 2008-09-16 2010-03-24 华为技术有限公司 Method, device and system of managing execution environment (EE)
CN102957562A (en) * 2011-08-16 2013-03-06 中国石油化工股份有限公司 Linux cluster system remote automatic maintenance method and maintenance system
CN103607462A (en) * 2013-11-22 2014-02-26 曙光信息产业股份有限公司 Cluster NAS deployment system and deployment method thereof
CN104243515A (en) * 2013-06-13 2014-12-24 中兴通讯股份有限公司 Method and device for processing configuration information
US20160162283A1 (en) * 2013-12-02 2016-06-09 Qbase, LLC Dependency manager for databases
CN106953746A (en) * 2017-02-28 2017-07-14 努比亚技术有限公司 Clustered node upgrade-system and method
CN107818104A (en) * 2016-09-13 2018-03-20 腾讯科技(深圳)有限公司 A kind of database portion arranging method, database deployment device, control device and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101677276A (en) * 2008-09-16 2010-03-24 华为技术有限公司 Method, device and system of managing execution environment (EE)
CN102957562A (en) * 2011-08-16 2013-03-06 中国石油化工股份有限公司 Linux cluster system remote automatic maintenance method and maintenance system
CN104243515A (en) * 2013-06-13 2014-12-24 中兴通讯股份有限公司 Method and device for processing configuration information
CN103607462A (en) * 2013-11-22 2014-02-26 曙光信息产业股份有限公司 Cluster NAS deployment system and deployment method thereof
US20160162283A1 (en) * 2013-12-02 2016-06-09 Qbase, LLC Dependency manager for databases
CN107818104A (en) * 2016-09-13 2018-03-20 腾讯科技(深圳)有限公司 A kind of database portion arranging method, database deployment device, control device and system
CN106953746A (en) * 2017-02-28 2017-07-14 努比亚技术有限公司 Clustered node upgrade-system and method

Similar Documents

Publication Publication Date Title
US20100115070A1 (en) Method for generating manipulation requests of an initialization and administration database of server cluster, data medium and corresponding a server cluster, data medium and corresponding service cluster
CN111857873A (en) Method for realizing cloud native container network
CN103605570A (en) Automatic application deployment method and system based on virtual machine template
CN105103506A (en) Network function virtualization method and device
CN102035669B (en) Function calling system and method
CN106953910A (en) A kind of Hadoop calculates storage separation method
CN102508693A (en) Web server capacity expansion system based on virtual machine
CN110727738B (en) Global routing system based on data fragmentation, electronic equipment and storage medium
CN112398936B (en) Kubernetes-based multi-network card container implementation method and system
CN102983996A (en) Dynamic allocation method and system for high-availability cluster resource management
CN101478445B (en) General monitoring model technique used for information system monitoring
CN104954458A (en) Configuration method of cloud operating system based on Loongson platform
CN105007311A (en) System and method for resource management based on cloud platform and cloud computing
CN111770130B (en) Method for efficient collaborative multiplexing of software and hardware resources in block chain distributed networking
CN103577122A (en) Method and device for achieving migration of distributed application systems between platforms
US11025688B1 (en) Automated streaming data platform
CN114844788B (en) Network data analysis method, system, equipment and storage medium
CN109302494A (en) A kind of configuration method of network store system, device, equipment and medium
CN112073499A (en) Dynamic service method of multi-machine type cloud physical server
CN109274521A (en) A kind of automatically updating method and device of distributed memory system mode
CN108763471A (en) The method and system of HTTP file servers in a kind of deployment cluster
CN106933600A (en) A kind of method for upgrading system and device
CN115834689A (en) Micro-service distribution method, electronic equipment and storage medium
CN113347046A (en) Network access method and device
US7062426B1 (en) Method for calculating memory requirements for thin client sizing tool

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: 20190125

RJ01 Rejection of invention patent application after publication