CN103412780B - System, device and method for upgrading distributed file system - Google Patents

System, device and method for upgrading distributed file system Download PDF

Info

Publication number
CN103412780B
CN103412780B CN201310361731.4A CN201310361731A CN103412780B CN 103412780 B CN103412780 B CN 103412780B CN 201310361731 A CN201310361731 A CN 201310361731A CN 103412780 B CN103412780 B CN 103412780B
Authority
CN
China
Prior art keywords
server
service
file system
distributed file
upgrading
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
Application number
CN201310361731.4A
Other languages
Chinese (zh)
Other versions
CN103412780A (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 Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing 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 Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201310361731.4A priority Critical patent/CN103412780B/en
Publication of CN103412780A publication Critical patent/CN103412780A/en
Application granted granted Critical
Publication of CN103412780B publication Critical patent/CN103412780B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a system, device and method for upgrading a distributed file system. The system comprises any two paired servers, namely a first server and a second server, in multiple servers, and the first server and the second server are connected with shared storage equipment through a switch. When the first server and the second server are used for upgrading the distributed file system, the service of the distributed file system to be upgraded is switched to the paired servers, and then the distributed file system to be upgraded is upgraded; the service switched to the paired servers is switched back to the upgraded server after upgrading is finished. The distributed file system can be upgraded in an online upgrading mode of a high availability cluster, so that the continuity and reliability of high availability service in a cluster system are guaranteed.

Description

A kind of system that distributed file system is upgraded, device and method
Technical field
The present invention relates in concentrating type storage system distributed file system management, more particularly to based on High Availabitity service Distributed file system upgrade method and device.
Background technology
Computer cluster abbreviation cluster, is a kind of to be coupled together by one group of loose integrated computer hardware and software Closely cooperated by height and complete the computer system of evaluation work.At present, due to a large amount of growths of personal and business data, Concentrating type storage system quickly grows, and system often changes with the change of demand, therefore needs during use, to protect Card security availability, avoids the generation shut down as far as possible.
Generally, if distributed file system does not support online upgrading, it is necessary to before its upgrading, first will collection Whole distributed file system is all cut off in group, then the distributed file system software in each equipment is risen one by one After level, then whole distributed file system in cluster is restarted.Due to this upgrade method need in escalation process by Whole distributed file system is cut off, and cannot continue to provide data, services at all within the time period that system is cut off, therefore must Can so cause longer downtime occur, so as to the seriality for affecting system to use.Especially in some crucial industries, so compared with Long downtime can have a strong impact on the availability of whole group system.
Accordingly, it would be desirable to be directed to the problems referred to above, there is provided a kind of upgrade-system of distributed file system, device and method, energy It is enough that high-availability cluster is upgraded by way of online upgrading to distributed file system, so as to ensure the height of group system The seriality of available service, reliability.
The content of the invention
The technical problem to be solved is to provide a kind of system upgraded to distributed file system, device And method, the seriality that High Availabitity is serviced can be ensured when being upgraded.
In order to solve above-mentioned technical problem, the invention provides a kind of system that distributed file system is upgraded, Including:The first server and second server, first server and second server of any two pairing in multiple servers It is connected with shared storage device by switch, wherein:
First server and second server, for carry out distributed file system upgrade when, the distribution that will upgrade The service of formula file system is switched on the server of pairing, and then the distributed file system to be upgraded is upgraded;Treat After the completion of upgrading, the service being switched on the server of pairing is switched back on the server upgraded.
Further, first server and second server are treated to switch back to the service being switched on the server of pairing After on the server upgraded, the corresponding service of distributed file system of also not upgrading is switched to into promoted server On, then distributed file system again not upgrade on the server of upgrading;After the completion of after to be upgraded, then by respective server Service switchback.
Further, first server and second server are respectively by multiple in switch and shared storage device Each shared memory connection in shared memory.
Further, first server and second server are each provided with respectively the upgrading dress of distributed file system Put, including distributed file system and High Availabitity service module, wherein:
Distributed file system, the upgrading sign on for being transmitted according to High Availabitity service module rises to the system Level, and upgrade successfully information to the transmission of High Availabitity service module after upgrading is completed;
High Availabitity service module, for before the upgrading that need to locally carry out distributed file system, will be local distributed The service of file system is switched on the server of pairing, then to local distributed file system and the height of the server of pairing Available service module transmission upgrading sign on;After the information of upgrading successfully is received, to the High Availabitity service of the server of pairing Module transmission service switchback instruction.
Further, High Availabitity service module will be switched to the service on book server after service switchback instruction is received Switch back on the server of distributed file system upgrading.
In order to solve above-mentioned technical problem, the invention provides a kind of device that distributed file system is upgraded, Including distributed file system and High Availabitity service module, wherein:
Distributed file system, the upgrading sign on for being transmitted according to High Availabitity service module rises to the system Level, and upgrade successfully information to the transmission of High Availabitity service module after upgrading is completed;
High Availabitity service module, for before the upgrading that need to locally carry out distributed file system, will be local distributed The service of file system is switched on the server of pairing, then to local distributed file system and the height of the server of pairing Available service module transmission upgrading sign on;After the information of upgrading successfully is received, to the High Availabitity service of the server of pairing Module transmission service switchback instruction.
Further, High Availabitity service module will be switched to the service on book server after service switchback instruction is received Switch back on the server of distributed file system upgrading.
In order to solve above-mentioned technical problem, the invention provides a kind of method that distributed file system is upgraded, It is related to the server of any two pairing in multiple servers, each server is connected by switch with shared storage device Connect, the method includes:
When to carry out distributed file system upgrading to server, the service of the distributed file system that will upgrade is cut Change on the server of pairing, then to this, the distributed file system to be upgraded is upgraded;After the completion of to be upgraded, will switch Service on the server of pairing is switched back on the server upgraded.
Further, the method also includes:
After the service being switched on the server of pairing is switched back on the server upgraded, will also without distribution The corresponding service of server of formula file system upgrading is switched on the server upgraded, then again come the server of upgrading On not promoted distributed file system;After the completion of after the upgrading, then by the service switchback of respective server.
Further, each server is connected by switch with shared storage device, refers to that each server leads to Cross switch to be connected with each shared memory in the multiple shared memories in shared storage device.
The present invention can be upgraded by way of online upgrading to high-availability cluster to distributed file system, so as to Ensure seriality, the reliability of the High Availabitity service of group system.
Description of the drawings
Fig. 1 is the structural representation of the system embodiment upgraded to distributed file system of the present invention;
Fig. 2 is the apparatus structure schematic diagram in the system embodiment shown in Fig. 1 in each server.
Specific embodiment
Technical scheme is set forth in below in conjunction with accompanying drawing and preferred embodiment.It should be understood that with Under the embodiment enumerated be merely to illustrate and explain the present invention, and do not constitute the restriction to technical solution of the present invention.
As shown in figure 1, being the system embodiment upgraded to distributed file system of the present invention, it includes multiple clothes The server A and server B of any two pairing in business device, server A and server B are by switch and shared storage device Connection, wherein:
Server A and server B, for carry out distributed file system upgrade when, the distributed document that will upgrade The service of system is switched on the server of pairing, and then the distributed file system to be upgraded is upgraded;It is to be upgraded complete Cheng Hou, the service being switched on the server of pairing is switched back on the server upgraded.
In said system embodiment, treat that the service being switched on the server of pairing is switched back to the service upgraded After on device, the service of distributed file system of also not upgrading is switched on promoted server, then again upgrading this The distributed file system do not upgraded on server;After the completion of after to be upgraded, then by the service switchback of respective server.
In said system embodiment, server A and server B are respectively by switch and shared storage device Each shared memory connection in multiple shared memories.
In said system embodiment, server A and server B are each provided with respectively the upgrading of distributed file system Device, its structure as shown in Fig. 2 including distributed file system and High Availabitity service module, wherein:
Distributed file system, the upgrading sign on for being transmitted according to High Availabitity service module rises to the system Level, and upgrade successfully information to the transmission of High Availabitity service module after upgrading is completed;
High Availabitity service module, for before the upgrading that need to locally carry out distributed file system, will be local distributed The service of file system is switched on the server of pairing, then to local distributed file system and the height of the server of pairing Available service module transmission upgrading sign on;After the information of upgrading successfully is received, to the High Availabitity service of the server of pairing Module transmission service switchback instruction.
In said system embodiment,
After service switchback instruction is received, the service on book server that will be switched to is switched back to and divided High Availabitity service module On the server of cloth file system upgrading.
The present invention is directed to said system embodiment, correspondingly additionally provides a kind of upgrade method of distributed file system, It is related to the server of any two pairing in multiple servers, each server is connected by switch with shared storage device Connect, the method includes:
When to carry out distributed file system upgrading to server, the service of the distributed file system that will upgrade is cut Change on the server of pairing, then to this, the distributed file system to be upgraded is upgraded;After the completion of to be upgraded, will switch Service on the server of pairing is switched back on the server upgraded.
Said method embodiment also includes:
After the service being switched on the server of pairing is switched back on the server of promoted mistake, will also without point The corresponding service of server of cloth file system upgrading is switched on the server upgraded, then again come the service of upgrading The distributed file system do not upgraded on device;After the completion of after to be upgraded, then by the service switchback of this server.
So far, the distributed file system updating operation of whole cluster is fully completed.
The said system and method for the present invention is carried out in escalation process in the distributed file system to server, it is to avoid The appearance of the situation that service is shut down, is a kind of unperturbed upgrading mode of smooth rolling, is effectively guaranteed the high availability of system.

Claims (5)

1. a kind of system that distributed file system is upgraded, it is characterised in that include:Any two in multiple servers The first server and second server of pairing, first server and second server are connected by switch with shared storage device Connect, wherein:
First server and second server, for carry out distributed file system upgrade when, the distributed text that will upgrade The service of part system is switched on the server of pairing, and then the distributed file system to be upgraded is upgraded;Treat described After the completion of upgrading, the service being switched on the server of pairing is switched back on the server upgraded;
First server and second server are respectively by multiple shared in the switch and the shared storage device Each shared memory connection in memorizer;
First server and second server are each provided with respectively the update device of distributed file system, including distributed text Part system and High Availabitity service module, wherein:
Distributed file system, the upgrading sign on for being transmitted according to High Availabitity service module is upgraded to the system, And upgrade successfully information to the transmission of High Availabitity service module after upgrading is completed;
High Availabitity service module, for after information is upgraded successfully described in receiving, to the High Availabitity clothes of the server of the pairing Business module transmission service switchback instruction;
High Availabitity service module, is additionally operable to before the upgrading that need to locally carry out distributed file system, by local distributed text The service of part system is switched on the server of the pairing, then to local distributed file system and the service of the pairing The High Availabitity service module of device transmits the upgrading sign on;
The High Availabitity service module switches back to the service being switched on book server after the service switchback instruction is received On the server of distributed file system upgrading.
2. according to the system described in claim 1, it is characterised in that first server and second server are treated to be switched to described After the service on the server of pairing is switched back on the server upgraded, will also not upgrade distributed field system The corresponding service of system is switched on the promoted server, then distribution again not upgrade on the server of upgrading Formula file system;After the completion of after the upgrading, then by the service switchback of respective server.
3. a kind of device that distributed file system is upgraded, it is characterised in that including distributed file system and Gao Ke With service module, wherein:
Distributed file system, the upgrading sign on for being transmitted according to High Availabitity service module is upgraded to the system, And upgrade successfully information to the transmission of High Availabitity service module after upgrading is completed;
High Availabitity service module, for before the upgrading that need to locally carry out distributed file system, by local distributed document The service of system is switched on the server of pairing, then to local distributed file system and the height of the server of the pairing Available service module transmits the upgrading sign on;After information is upgraded successfully described in receiving, to the server of the pairing High Availabitity service module transmission service switchback instruction;
The High Availabitity service module switches back to the service being switched on book server after the service switchback instruction is received On the server of distributed file system upgrading;
The server of the pairing is specifically included:The first server and second service of any two pairing in multiple servers Device, first server and second server are connected by switch with shared storage device.
4. a kind of method that distributed file system is upgraded, it is characterised in that be related to any two in multiple servers The server of pairing, each server is connected by switch with shared storage device, and the method includes:
When to carry out distributed file system upgrading to server, the service of the distributed file system that will upgrade is switched to On the server of pairing, then to this, the distributed file system to be upgraded is upgraded;After the completion for the treatment of the upgrading, will switch Service on the server of the pairing is switched back on the server upgraded;
Each server is connected by switch with shared storage device, refers to each server by the exchange Machine is connected with each shared memory in the multiple shared memories in the shared storage device;
Each server is each provided with respectively the update device of distributed file system, including distributed file system and Gao Ke With service module, wherein:
Distributed file system, upgrades according to the upgrading sign on of High Availabitity service module transmission to the system, and Upgrading completes backward High Availabitity service module transmission and upgrades successfully information;
High Availabitity service module, after information is upgraded successfully described in receiving, to the High Availabitity service mould of the server of the pairing Block transmission service switchback instruction;
High Availabitity service module, is additionally operable to before the upgrading that need to locally carry out distributed file system, by local distributed text The service of part system is switched on the server of the pairing, then to local distributed file system and the service of the pairing The High Availabitity service module of device transmits the upgrading sign on;
The High Availabitity service module switches back to the service being switched on book server after the service switchback instruction is received On the server of distributed file system upgrading.
5. in accordance with the method for claim 4, it is characterised in that also include:Treat to be switched on the server of the pairing The service switch back on the server upgraded after, the server phase that will also upgrade without distributed file system The service answered is switched on the server upgraded, then again come distributed text not promoted on the server of upgrading Part system;After the completion of after the upgrading, then by the service switchback of respective server.
CN201310361731.4A 2013-08-19 2013-08-19 System, device and method for upgrading distributed file system Active CN103412780B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310361731.4A CN103412780B (en) 2013-08-19 2013-08-19 System, device and method for upgrading distributed file system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310361731.4A CN103412780B (en) 2013-08-19 2013-08-19 System, device and method for upgrading distributed file system

Publications (2)

Publication Number Publication Date
CN103412780A CN103412780A (en) 2013-11-27
CN103412780B true CN103412780B (en) 2017-04-12

Family

ID=49605793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310361731.4A Active CN103412780B (en) 2013-08-19 2013-08-19 System, device and method for upgrading distributed file system

Country Status (1)

Country Link
CN (1) CN103412780B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970567A (en) * 2014-04-28 2014-08-06 浪潮电子信息产业股份有限公司 Method for on-line upgrading of cloud storage system firmware
CN105630848B (en) * 2014-11-25 2020-05-22 中兴通讯股份有限公司 Processing method and device of file system
CN105791337B (en) * 2014-12-19 2019-11-12 华为数字技术(苏州)有限公司 A kind of upgrade method, equipment and group system
CN104618487B (en) * 2015-02-06 2018-04-20 新华三技术有限公司 A kind of Internet Protocol stores online upgrade method and device
CN106941420B (en) * 2017-03-16 2019-12-13 北京深思数盾科技股份有限公司 cluster application environment upgrading method and device
CN107273169A (en) * 2017-06-30 2017-10-20 郑州云海信息技术有限公司 The on-line software updating method and system of a kind of storage control cluster
CN109213507A (en) * 2018-08-27 2019-01-15 郑州云海信息技术有限公司 A kind of upgrade method and server

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252464B (en) * 2008-03-17 2011-04-13 华为技术有限公司 Dual system and dual system online upgrading method
CN102360324B (en) * 2011-10-28 2014-04-16 华为技术有限公司 Failure recovery method and equipment for failure recovery
CN102880485A (en) * 2012-08-30 2013-01-16 浪潮(北京)电子信息产业有限公司 Method and system for upgrading double controllers

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
存储区域网络技术的应用;陶以政 等;《电信快报》;20020325;9-12 *

Also Published As

Publication number Publication date
CN103412780A (en) 2013-11-27

Similar Documents

Publication Publication Date Title
CN103412780B (en) System, device and method for upgrading distributed file system
CN104202194B (en) The collocation method and device of PCIe topologys
CN103473141A (en) Method for out-of-band check and modification of BIOS (basic input/output system) setting options
CN103067445B (en) Method and device of software upgrading of distributed system
CN104951308B (en) The management optimization mode and device of Docker Registry
CN103176824A (en) System upgrade method and system upgrade device
CN105446657A (en) Method for monitoring RAID card
CN103607310A (en) Method for arbitration of remote disaster recovery
CN103984768B (en) A kind of data-base cluster manages method, node and the system of data
CN109450676A (en) A kind of switch upgrades method and device, electronic equipment, computer-readable medium
CN109471660A (en) Docking station device, electronic device and MAC address clone method
CN102135894B (en) A kind of online patch method of multinuclear and device
CN109032635A (en) Method for upgrading software, device and the network equipment
CN111008162A (en) Method and system for realizing single PCIE slot supporting multiple PCIE ports
CN111294413A (en) Method, device and readable medium for determining Internet Protocol (IP) address
CN108551395A (en) Upgrade method for communication device, communication equipment and computer storage media
CN109379223A (en) A kind of method and apparatus for realizing network interface card automated setting
CN102937862B (en) System and method for managing mobile terminal by browser
CN103677941B (en) A kind of method and device for realizing smart card operating system module upgrade
CN105446654B (en) Server control method and rack controller
CN106462421B (en) Telecommunication device and method for updating software in a telecommunication device
CN105511808A (en) Data operation method, system and related device
CN108959005A (en) Hard disk management-control method and server with Expander backboard
CN103152405B (en) Application method of high availability cluster for storage pool resource
CN103997528A (en) Distribution network automation terminal and achieving method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant