CN110519086A - A kind of method and apparatus of the fast quick-recovery storage cluster NAS business based on CTDB - Google Patents
A kind of method and apparatus of the fast quick-recovery storage cluster NAS business based on CTDB Download PDFInfo
- Publication number
- CN110519086A CN110519086A CN201910728065.0A CN201910728065A CN110519086A CN 110519086 A CN110519086 A CN 110519086A CN 201910728065 A CN201910728065 A CN 201910728065A CN 110519086 A CN110519086 A CN 110519086A
- Authority
- CN
- China
- Prior art keywords
- node
- business
- client
- ctdb
- nas
- 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.)
- Withdrawn
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols 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]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/143—Termination or inactivation of sessions, e.g. event-controlled end of session
- H04L67/145—Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
Abstract
The present invention provides a kind of method of fast quick-recovery storage cluster NAS business based on CTDB, comprising the following steps: by the CTDB on host node in storage cluster to the business IP of each node distribution carrying NAS business;Whether with client connection is established by the business IP that this node is distributed in the CTDB cyclic check on each node;It establishes and connect with client in response to the business IP on this node, other nodes that the corresponding relationship of the business IP of this node and corresponding client ip are recorded in the CTDB, and are synchronized in the storage cluster;In response to establishing the nodes break down of connection with client, by the CTDB on the host node will distribute to described in the business IP of the NAS business of node that breaks down reallocate and give other normal nodes, and reconnect client and the business IP according to the corresponding relationship of preservation by the CTDB on the node of the reallocation.The present invention can reduce the time of NAS traffic failure switching, improve working efficiency.
Description
Technical field
The present invention relates to computer fields, and more particularly, to a kind of fast quick-recovery storage cluster based on CTDB
The method and apparatus of NAS business.
Background technique
NAS (Network Attached Storage, network attached storage) is based on computer network with standard network protocol and realizes that data pass
Defeated, the computer for various different operating systems such as Windows/Linux/Mac OS in network provides file-sharing and data
Backup.
In today's society, as distributed NAS storage is more and more widely used, to the reliability of distributed NAS storage
Also require it is higher and higher, it is traditional trigger client by Transmission Control Protocol and establish connection with business IP again need to rely on TCP association
The time-out time of view, TCP are the unstable scene of compatible network, the usual time can be arranged it is long, so if by
The time after will lead to client traffic a very long time, could restore;When delay machine inside the plan or outside the plan occurs,
It is desirable in a short period of time, by NAS service switching to additionally being able to normally to provide the NAS node of service, continue to provide clothes
Business;To reduce the influence to the business of client.
Summary of the invention
In consideration of it, the purpose of the embodiment of the present invention is to propose a kind of under fault scenes, the fast quick-recovery based on CTDB
The method of storage cluster NAS business quickly re-establishes connection actively to trigger client.
Based on above-mentioned purpose, the one side of the embodiment of the present invention provides a kind of fast quick-recovery storage cluster based on CTDB
The method of NAS business, comprising the following steps:
S101, the business IP for carrying NAS business to the distribution of each node by the CTDB on host node in storage cluster;
Whether S102, the business IP that this node is distributed to by the CTDB cyclic check on each node establish with client
Connection;
S103, it establishes and connect with client in response to the business IP on this node, by the business IP of this node and corresponding
Client ip corresponding relationship other nodes for being recorded in the CTDB, and being synchronized in the storage cluster;
S104, the nodes break down in response to establishing connection with client, will be divided by the CTDB on the host node
The business IP of the NAS business of the node to break down described in dispensing, which reallocates, gives other normal nodes, the node of the reallocation
On CTDB reconnect client and the business IP according to the corresponding relationship of preservation.
In some embodiments, by the CTDB cyclic check on each node distribute to this node business IP whether
Establish connection includes: whether the business IP for checking on the node establishes socket with client and connect with client.
In some embodiments, the nodes break down in response to establishing connection with client, passes through the master
CTDB on node will distribute to described in the business IP of the NAS business of node that breaks down reallocate and give other normal nodes,
And connect client again with the business IP according to the corresponding relationship of preservation by the CTDB on the node of the reallocation
It connects and includes:
According to the corresponding relationship of the business IP and client ip that save in the CTDB on the node of the reallocation, pass through institute
It states business IP and sends RST packet to the client ip.
In some embodiments, the nodes break down in response to establishing connection with client, passes through the master
CTDB on node will distribute to described in the business IP of the NAS business of node that breaks down reallocate and give other normal nodes,
And connect client again with the business IP according to the corresponding relationship of preservation by the CTDB on the node of the reallocation
It connects further include:
Link re-establishment is carried out actively to trigger the client by sending RST packet to the client ip, to complete industry
The switching of business IP.
In some embodiments, it establishes and connect with client in response to the business IP on this node, by this node industry
The corresponding relationship of business IP and corresponding client ip is recorded in the CTDB, and other sections being synchronized in the storage cluster
It puts and includes:
It establishes socket with client in response to the business IP that described node of discovery carries to connect, then described in judgement
Whether the corresponding relationship of this node traffic IP He the client has been saved in CTDB;
In response to not saving, then the corresponding relationship of minute book node traffic IP and relative client IP to the CTDB
In.
In some embodiments, the business IP of this node is distributed in the CTDB cyclic check by each node
Whether establishing connection with client includes:
CTDB in the storage cluster on each node, which is inquired according to the detection cycle of configuration by specified order, is
No have client to establish socket with the business IP that this node carries to connect.
The another aspect of the embodiment of the present invention provides a kind of dress of fast quick-recovery storage cluster NAS business based on CTDB
It sets, comprising:
At least one processor;With
Memory, the memory are stored with the program code that processor can be run, and said program code is by processor
It is implemented the steps of when operation:
By the CTDB on host node in storage cluster to the business IP of each node distribution carrying NAS business;
Whether with client connection is established by the business IP that this node is distributed in the CTDB cyclic check on each node;
It establishes and connect with client in response to the business IP on this node, by the business IP and corresponding client of this node
Other nodes that the corresponding relationship of end IP is recorded in the CTDB, and is synchronized in the storage cluster;
In response to establishing the nodes break down of connection with client, institute will be distributed to by the CTDB on the host node
The business IP for stating the NAS business of the node to break down, which reallocates, gives other normal nodes, and by the node of the reallocation
CTDB reconnect client and the business IP according to the corresponding relationship of preservation.
In some embodiments, by the CTDB cyclic check on each node distribute to this node business IP whether
Establish connection includes: whether the business IP for checking on the node establishes socket with client and connect with client.
In some embodiments, the nodes break down in response to establishing connection with client, passes through the master
CTDB on node will distribute to described in the business IP of the NAS business of node that breaks down reallocate and give other normal nodes,
And connect client again with the business IP according to the corresponding relationship of preservation by the CTDB on the node of the reallocation
It connects and includes:
According to the corresponding relationship of the business IP and client ip that save in the CTDB on the node of the reallocation, pass through institute
It states business IP and sends RST packet to the client ip.
In some embodiments, the nodes break down in response to establishing connection with client, passes through the master
CTDB on node will distribute to described in the business IP of the NAS business of node that breaks down reallocate and give other normal nodes,
And connect client again with the business IP according to the corresponding relationship of preservation by the CTDB on the node of the reallocation
It connects further include:
Link re-establishment is carried out actively to trigger the client by sending RST packet to the client ip, to complete industry
The switching of business IP.
The present invention has following advantageous effects: a kind of fast quick-recovery based on CTDB provided in an embodiment of the present invention is deposited
The method and apparatus of accumulation NAS business can to avoid because by traditional Transmission Control Protocol time-out come trigger client again with industry
Business IP establishes connection, while reducing the time of NAS traffic failure switching, substantially reduces the time of business recovery, improves
Working efficiency.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Other embodiments are obtained according to these attached drawings.
Fig. 1 is a kind of flow chart of the method for fast quick-recovery storage cluster NAS business based on CTDB according to the present invention;
Fig. 2 is a kind of schematic diagram of the method for fast quick-recovery storage cluster NAS business based on CTDB according to the present invention;
Fig. 3 is a kind of hardware knot of the device of fast quick-recovery storage cluster NAS business based on CTDB according to the present invention
Structure schematic diagram.
Specific embodiment
The following describe the embodiment of the present invention.It should be appreciated, however, that the disclosed embodiments are only example, and
Other embodiments can take various alternative forms.The drawings are not necessarily drawn to scale;Certain functions may be exaggerated or minimum
Change the details to show particular elements.Therefore, specific structure and function details disclosed herein are not necessarily to be construed as restrictive,
And it is merely possible to for instructing those skilled in the art to use representative basis of the invention in various ways.As this field is general
It is logical the skilled person will understand that, the various features with reference to shown or described by any one attached drawing can with it is one or more other
Feature shown in the drawings is combined to produce the embodiment for not being explicitly illustrated or describing.The group of shown feature is combined into typical case
Provide representative embodiment.However, the various combinations and modification of the feature consistent with the teachings of the present invention are for certain spies
Fixed application or embodiment may be desired.
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with specific embodiment, and reference
The embodiment of the present invention is further described in attached drawing.
CTDB is a cluster TDB database, can be by Samba or others using storing data is carried out, to deposit
Accumulation provides High Availabitity characteristic (such as the switching of monitoring nodes, node, IP switching).
Based on above-mentioned purpose, on the one hand the embodiment of the present invention proposes a kind of fast quick-recovery storage cluster based on CTDB
The method of NAS business, as shown in Figure 1, comprising the following steps:
Step S101: by the CTDB on host node in storage cluster to the business of each node distribution carrying NAS business
IP;
Step S102: by the CTDB cyclic check on each node distribute to this node business IP whether with client
Establish connection;
Step S103: establishing with client in response to the business IP on this node and connect, by the business IP of this node and
The corresponding relationship of corresponding client ip is recorded in the CTDB, and other sections being synchronized in the storage cluster
Point;
Step S104: the nodes break down in response to establishing connection with client passes through the CTDB on the host node
The business IP of the NAS business of the node to break down described in distributing to, which reallocates, gives other normal nodes, the reallocation
CTDB on node reconnects client and the business IP according to the corresponding relationship of preservation.
In some embodiments, the business IP on the node establishes socket with client and connect.It is each in storage cluster
CTDB on a node, cyclic check distribute to this node business IP whether bearer service, can by inquiry whether have visitor
Family end establishes socket with the business IP that this node carries and connect.
In some embodiments, the CTDB in the storage cluster on each node, according to the detection cycle of configuration, at this
It is connect on node by the way that whether specified order inquiry has client to establish socket with the business IP that this node carries.
In some embodiments, if it find that the business IP of this node carrying establishes socket with client and connect, then
Judge the corresponding relationship for whether having saved node traffic IP He the client in the CTDB, is repeated if having saved
Above-mentioned query steps;If do not saved, the corresponding relationship of the node traffic IP and relative client IP is recorded described in
In CTDB, and the CTDB for other nodes being synchronized in storage cluster.
In some embodiments, as shown in Fig. 2, after a certain nodes break down, CTDB will can distribute to originally the section
The NAS business IP of point distributes to other normal nodes, to guarantee that the business of client of connection business IP can continue to carry out,
Business IP i.e. on the node can be floated in other normal nodes.
In some embodiments, it on the node that the business IP is floated to, is saved according in the CTDB on the node
Business IP and client ip corresponding relationship, by the business IP on the node, the visitor that is saved in Xiang Suoshu CTDB
Family end IP sends RST packet.In some embodiments, RST packet is sent come actively by the client ip saved into the CTDB
The client progress link re-establishment is triggered to allow client that can continue to use normal node with the switching of finishing service IP and mention
The NAS of confession is serviced.
Technically in feasible situation, it can be combined with each other above in relation to technical characteristic cited by different embodiments,
Or change, add and omit etc., to form the additional embodiment in the scope of the invention.
From above-described embodiment as can be seen that a kind of fast quick-recovery storage cluster based on CTDB provided in an embodiment of the present invention
The method of NAS business can establish connection with business IP again to trigger client to avoid because of the traditional Transmission Control Protocol time-out of dependence,
The time for reducing the switching of NAS traffic failure simultaneously, the time of business recovery is substantially reduced, is improved work efficiency.
Based on above-mentioned purpose, the other side of the embodiment of the present invention proposes a kind of fast quick-recovery based on CTDB and deposits
The device of accumulation NAS business, comprising:
At least one processor;With
Memory, the memory are stored with the program code that processor can be run, and said program code is by processor
It is implemented the steps of when operation:
By the CTDB on host node in storage cluster to the business IP of each node distribution carrying NAS business;
Whether with client connection is established by the business IP that this node is distributed in the CTDB cyclic check on each node;
It establishes and connect with client in response to the business IP on this node, by the business IP and corresponding client of this node
Other nodes that the corresponding relationship of end IP is recorded in the CTDB, and is synchronized in the storage cluster;
In response to establishing the nodes break down of connection with client, institute will be distributed to by the CTDB on the host node
The business IP for stating the NAS business of the node to break down, which reallocates, gives other normal nodes, and by the node of the reallocation
CTDB reconnect client and the business IP according to the corresponding relationship of preservation.
In some embodiments, by the CTDB cyclic check on each node distribute to this node business IP whether with
Client establishes connection includes: whether the business IP for checking on the node establishes socket with client and connect.
In some embodiments, the step further include: the business IP after the nodes break down, on the node
It can float in other normal nodes, on the node that the business IP is floated to, be saved according in the CTDB on the node
Business IP and client ip corresponding relationship, by the business IP on the node, the visitor that is saved in Xiang Suoshu CTDB
Family end IP sends RST packet.
As shown in figure 3, one of the device for the fast quick-recovery storage cluster NAS business provided by the invention based on CTDB
The hardware structural diagram of embodiment.
It include processor 301 and memory in the computer equipment by taking computer equipment as shown in Figure 3 as an example
302, and can also include: input unit 303 and output device 304.
Processor 301, memory 302, input unit 303 and output device 304 can pass through bus or other modes
It connects, in Fig. 3 for being connected by bus.
Memory 302 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey
Sequence, non-volatile computer executable program and module, the fast quick-recovery as described in the embodiment of the present application based on CTDB
Corresponding program instruction/the module of the method for storage cluster NAS business.Processor 301 is stored in the memory 302 by operation
Non-volatile software program, instruction and module are realized thereby executing the various function application and data processing of server
The method of the fast quick-recovery storage cluster NAS business based on CTDB of above method embodiment.
Memory 302 may include storing program area and storage data area, wherein storing program area can store operation system
Application program required for system, at least one function;Storage data area can be stored according to the fast quick-recovery storage collection based on CTDB
The data etc. that the method for group's NAS business is created.It, can be in addition, memory 302 may include high-speed random access memory
Including nonvolatile memory, for example, at least a disk memory, flush memory device or other non-volatile solid state memories
Part.In some embodiments, it includes the memory remotely located relative to processor 301 that memory 302 is optional, these are remotely deposited
Reservoir can pass through network connection to local module.The example of above-mentioned network includes but is not limited to internet, intranet, office
Domain net, mobile radio communication and combinations thereof.
Input unit 303 can receive the number or character information of input, and generates and deposit with the fast quick-recovery based on CTDB
The related key signals input of the user setting and function control of the computer equipment of the method for accumulation NAS business.Output dress
Setting 304 may include that display screen etc. shows equipment.
The corresponding program of method of one or more of fast quick-recovery storage cluster NAS business based on CTDB refers to
Order/module is stored in the memory 302, when being executed by the processor 301, is executed in above-mentioned any means embodiment
The fast quick-recovery storage cluster NAS business based on CTDB method.
The computer equipment of the method for fast quick-recovery storage cluster NAS business described in the execution based on CTDB it is any
One embodiment can achieve the identical or similar effect of corresponding aforementioned any means embodiment.
Finally, it should be noted that those of ordinary skill in the art will appreciate that realizing the whole in above-described embodiment method
Or part process, related hardware can be instructed to complete by computer program, the program can be stored in computer can
It reads in storage medium, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, described to deposit
Storage media can be magnetic disk, CD, read-only memory (ROM) or random access memory (RAM) etc..
In addition, typically, it can be various electric terminal equipments, example that the embodiment of the present invention, which discloses described device, equipment etc.,
Such as mobile phone, personal digital assistant (PDA), tablet computer (PAD), smart television, are also possible to large-scale terminal device, such as service
Device etc., therefore protection scope disclosed by the embodiments of the present invention should not limit as certain certain types of device, equipment.The present invention is real
Apply example disclose the client can be applied to the combining form of electronic hardware, computer software or both it is above-mentioned any
In a kind of electric terminal equipment.
In addition, disclosed method is also implemented as the computer program executed by CPU according to embodiments of the present invention, it should
Computer program may be stored in a computer readable storage medium.When the computer program is executed by CPU, the present invention is executed
The above-mentioned function of being limited in method disclosed in embodiment.
In addition, above method step and system unit also can use controller and for storing so that controller is real
The computer readable storage medium of the computer program of existing above-mentioned steps or Elementary Function is realized.
In addition, it should be appreciated that computer readable storage medium (for example, memory) as described herein can be it is volatile
Property memory or nonvolatile memory, or may include both volatile memory and nonvolatile memory.As example
And not restrictive, nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable to son
ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory.Volatile memory may include arbitrary access
Memory (RAM), the RAM can serve as external cache.As an example and not restrictive, RAM can be with more
Kind form obtains, such as synchronous random access memory (DRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate SDRAM
(DDR SDRAM), enhancing SDRAM (ESDRAM), synchronization link DRAM (SLDRAM) and directly Rambus RAM (DRRAM).
The storage equipment of disclosed aspect is intended to the memory of including but not limited to these and other suitable type.
Those skilled in the art will also understand is that, various illustrative logical blocks, mould in conjunction with described in disclosure herein
Block, circuit and algorithm steps may be implemented as the combination of electronic hardware, computer software or both.It is hard in order to clearly demonstrate
This interchangeability of part and software, with regard to various exemplary components, square, module, circuit and step function to its into
General description is gone.This function is implemented as software and is also implemented as hardware depending on concrete application and application
To the design constraint of whole system.Those skilled in the art can realize described in various ways for every kind of concrete application
Function, but this realization decision should not be interpreted as causing a departure from range disclosed by the embodiments of the present invention.
Various illustrative logical blocks, module and circuit, which can use, in conjunction with described in disclosure herein is designed to
The following component of function described here is executed to realize or execute: general processor, digital signal processor (DSP), dedicated collection
At circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, divide
Any combination of vertical hardware component or these components.General processor can be microprocessor, but alternatively, processing
Device can be any conventional processors, controller, microcontroller or state machine.Processor also may be implemented as calculating equipment
Combination, for example, the combination of DSP and microprocessor, multi-microprocessor, one or more microprocessors combination DSP and/or any
Other this configurations.
The step of method in conjunction with described in disclosure herein or algorithm, can be directly contained in hardware, be held by processor
In capable software module or in combination of the two.Software module may reside within RAM memory, flash memory, ROM storage
Device, eprom memory, eeprom memory, register, hard disk, removable disk, CD-ROM or known in the art it is any its
In the storage medium of its form.Illustrative storage medium is coupled to processor, enables a processor to from the storage medium
Information is written to the storage medium in middle reading information.In an alternative, the storage medium can be with processor collection
At together.Pocessor and storage media may reside in ASIC.ASIC may reside in user terminal.It is replaced at one
In scheme, it is resident in the user terminal that pocessor and storage media can be used as discrete assembly.
In one or more exemplary designs, the function can be real in hardware, software, firmware or any combination thereof
It is existing.If realized in software, can be stored in using the function as one or more instruction or code computer-readable
It is transmitted on medium or by computer-readable medium.Computer-readable medium includes computer storage media and communication media,
The communication media includes any medium for helping for computer program to be transmitted to another position from a position.Storage medium
It can be any usable medium that can be accessed by a general purpose or special purpose computer.As an example and not restrictive, the computer
Readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disc memory apparatus, disk storage equipment or other magnetic
Property storage equipment, or can be used for carry or storage form be instruct or data structure required program code and can
Any other medium accessed by general or specialized computer or general or specialized processor.In addition, any connection is ok
It is properly termed as computer-readable medium.For example, if using coaxial cable, optical fiber cable, twisted pair, digital subscriber line
(DSL) or such as wireless technology of infrared ray, radio and microwave to send software from website, server or other remote sources,
Then above-mentioned coaxial cable, optical fiber cable, twisted pair, DSL or such as wireless technology of infrared ray, radio and microwave are included in
The definition of medium.As used herein, disk and CD include compact disk (CD), laser disk, CD, digital versatile disc
(DVD), floppy disk, Blu-ray disc, wherein disk usually magnetically reproduce data, and CD using laser optics reproduce data.On
The combination for stating content should also be as being included in the range of computer-readable medium.
It should be understood that it is used in the present context, unless the context clearly supports exceptions, singular " one
It is a " it is intended to also include plural form.It is to be further understood that "and/or" used herein refers to including one or one
Any and all possible combinations of a above project listed in association.
It is for illustration only that the embodiments of the present invention disclose embodiment sequence number, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
Above-described embodiment is the possibility example of embodiment, and is mentioned just to be clearly understood that the principle of the present invention
Out.It should be understood by those ordinary skilled in the art that: the discussion of any of the above embodiment is exemplary only, it is not intended that dark
Show that range disclosed by the embodiments of the present invention (including claim) is limited to these examples;Under the thinking of the embodiment of the present invention,
It can also be combined, and exist present invention as described above between technical characteristic in above embodiments or different embodiments
Many other variations of the different aspect of embodiment, for simplicity, they are not provided in details.Therefore, all of the invention real
It applies within the spirit and principle of example, any omission, modification, equivalent replacement, improvement for being made etc. should be included in implementation of the present invention
Within the protection scope of example.
Claims (10)
1. a kind of method of the fast quick-recovery storage cluster NAS business based on CTDB, which comprises the following steps:
By the CTDB on host node in storage cluster to the business IP of each node distribution carrying NAS business;
Whether with client connection is established by the business IP that this node is distributed in the CTDB cyclic check on each node;
It establishes and connect with client in response to the business IP on this node, by the business IP and corresponding client ip of this node
Corresponding relationship other nodes for being recorded in the CTDB, and being synchronized in the storage cluster;
In response to establishing the nodes break down of connection with client, the hair will be distributed to by the CTDB on the host node
The business IP of the NAS business of the node of raw failure, which reallocates, gives other normal nodes, and by the node of the reallocation
CTDB reconnects client and the business IP according to the corresponding relationship of preservation.
2. the method according to claim 1, wherein distributing to this by the CTDB cyclic check on each node
It includes: to check whether business IP on the node establishes with client that whether the business IP of node, which establishes connection with client,
Socket connection.
3. the method according to claim 1, wherein the node in response to establishing connection with client occurs
Failure, by the CTDB on the host node will distribute to described in the business IP of the NAS business of node that breaks down reallocate
Other normal nodes are given, and client and institute are made according to the corresponding relationship of preservation by the CTDB on the node of the reallocation
Stating business IP reconnect includes:
According to the corresponding relationship of the business IP and client ip that save in the CTDB on the node of the reallocation, pass through the industry
Business IP sends RST packet to the client ip.
4. according to the method described in claim 3, it is characterized in that, the node in response to establishing connection with client occurs
Failure, by the CTDB on the host node will distribute to described in the business IP of the NAS business of node that breaks down reallocate
Other normal nodes are given, and client and institute are made according to the corresponding relationship of preservation by the CTDB on the node of the reallocation
State business IP reconnect further include:
Link re-establishment is carried out actively to trigger the client by sending RST packet to the client ip, with finishing service IP
Switching.
5. according to the method described in claim 2, it is characterized in that, being established in response to the business IP on this node with client
Connection, the corresponding relationship of this node traffic IP and corresponding client ip are recorded in the CTDB, and are synchronized to described deposit
Other nodes in accumulation include:
Socket is established with client in response to the business IP that described node of discovery carries to connect, then is judged in the CTDB
Whether the corresponding relationship of this node traffic IP He the client has been saved;
In response to not saving, then the corresponding relationship of minute book node traffic IP and relative client IP are into the CTDB.
6. according to the method described in claim 2, it is characterized in that, the CTDB cyclic check by each node distributes
Include: to whether the business IP of this node establishes connection with client
Whether the CTDB in the storage cluster on each node has according to the detection cycle of configuration by specified order inquiry
Client establishes socket with the business IP that this node carries and connect.
7. a kind of device of the fast quick-recovery storage cluster NAS business based on CTDB characterized by comprising
At least one processor;With
Memory, the memory are stored with the program code that processor can be run, and said program code is run by processor
When implement the steps of:
By the CTDB on host node in storage cluster to the business IP of each node distribution carrying NAS business;
Whether with client connection is established by the business IP that this node is distributed in the CTDB cyclic check on each node;
It establishes and connect with client in response to the business IP on this node, by the business IP and corresponding client ip of this node
Corresponding relationship other nodes for being recorded in the CTDB, and being synchronized in the storage cluster;
In response to establishing the nodes break down of connection with client, the hair will be distributed to by the CTDB on the host node
The business IP of the NAS business of the node of raw failure, which reallocates, gives other normal nodes, and by the node of the reallocation
CTDB reconnects client and the business IP according to the corresponding relationship of preservation.
8. device according to claim 7, which is characterized in that distribute to this by the CTDB cyclic check on each node
It includes: to check whether business IP on the node establishes with client that whether the business IP of node, which establishes connection with client,
Socket connection.
9. device according to claim 7, which is characterized in that the node in response to establishing connection with client occurs
Failure, by the CTDB on the host node will distribute to described in the business IP of the NAS business of node that breaks down reallocate
Other normal nodes are given, and client and institute are made according to the corresponding relationship of preservation by the CTDB on the node of the reallocation
Stating business IP reconnect includes:
According to the corresponding relationship of the business IP and client ip that save in the CTDB on the node of the reallocation, pass through the industry
Business IP sends RST packet to the client ip.
10. device according to claim 9, which is characterized in that the node in response to establishing connection with client is sent out
Raw failure, by the CTDB on the host node will distribute to described in the business IP of the NAS business of node that breaks down divide again
Other normal nodes of dispensing, and by the CTDB on the node of the reallocation according to the corresponding relationship of preservation make client with
The business IP is reconnected further include:
Link re-establishment is carried out actively to trigger the client by sending RST packet to the client ip, with finishing service IP
Switching.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910728065.0A CN110519086A (en) | 2019-08-08 | 2019-08-08 | A kind of method and apparatus of the fast quick-recovery storage cluster NAS business based on CTDB |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910728065.0A CN110519086A (en) | 2019-08-08 | 2019-08-08 | A kind of method and apparatus of the fast quick-recovery storage cluster NAS business based on CTDB |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110519086A true CN110519086A (en) | 2019-11-29 |
Family
ID=68623879
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910728065.0A Withdrawn CN110519086A (en) | 2019-08-08 | 2019-08-08 | A kind of method and apparatus of the fast quick-recovery storage cluster NAS business based on CTDB |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110519086A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111212127A (en) * | 2019-12-29 | 2020-05-29 | 浪潮电子信息产业股份有限公司 | Storage cluster, service data maintenance method, device and storage medium |
CN112328372A (en) * | 2020-11-27 | 2021-02-05 | 新华智云科技有限公司 | Kubernetes node self-healing method and system |
CN112866408A (en) * | 2021-02-09 | 2021-05-28 | 山东英信计算机技术有限公司 | Service switching method, device, equipment and storage medium in cluster |
CN115396296A (en) * | 2022-08-18 | 2022-11-25 | 中电金信软件有限公司 | Service processing method and device, electronic equipment and computer readable storage medium |
-
2019
- 2019-08-08 CN CN201910728065.0A patent/CN110519086A/en not_active Withdrawn
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111212127A (en) * | 2019-12-29 | 2020-05-29 | 浪潮电子信息产业股份有限公司 | Storage cluster, service data maintenance method, device and storage medium |
CN112328372A (en) * | 2020-11-27 | 2021-02-05 | 新华智云科技有限公司 | Kubernetes node self-healing method and system |
CN112866408A (en) * | 2021-02-09 | 2021-05-28 | 山东英信计算机技术有限公司 | Service switching method, device, equipment and storage medium in cluster |
CN115396296A (en) * | 2022-08-18 | 2022-11-25 | 中电金信软件有限公司 | Service processing method and device, electronic equipment and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110519086A (en) | A kind of method and apparatus of the fast quick-recovery storage cluster NAS business based on CTDB | |
WO2018171587A1 (en) | Method for generating network slice template and for applying network slice template, and apparatus | |
CN106331098B (en) | Server cluster system | |
EP3275162B1 (en) | Systems and techniques for web communication | |
CN104995902A (en) | Methods and systems for seamless network communication between IPV4 and IPV6 devices | |
CN111338806B (en) | Service control method and device | |
CN105187464A (en) | Data synchronization method, device and system in distributed storage system | |
CN107666493B (en) | Database configuration method and equipment thereof | |
CN109739435B (en) | File storage and updating method and device | |
CN104468521A (en) | Online migration method, device and system | |
CN105407117A (en) | Distributed data backup method, device and system | |
US10425475B2 (en) | Distributed data management | |
CN111459749A (en) | Prometous-based private cloud monitoring method and device, computer equipment and storage medium | |
CN104506654A (en) | Cloud computing system and backup method of dynamic host configuration protocol server | |
JP2019016042A (en) | Data acquisition program, device, and method | |
CN107517277B (en) | Method and device for realizing sanlock | |
CN110908756B (en) | Cloud desktop real-time fusion switching method and system | |
CN103607429A (en) | Cloud computing service realization method and system thereof | |
CN106357723A (en) | Synchronous system and method for multi-cluster information caching based on cloud host | |
CN113329417A (en) | Network configuration method and device | |
CN110430112A (en) | A kind of method and apparatus for realizing virtual machine network IO priority | |
KR20220048484A (en) | A system for providing accurate communication delay guarantee of request response for distributed services | |
CN101621526B (en) | iSCSI method and apparatus for preventing useless connection from occupying system resources | |
CN109600436A (en) | A kind of distribution iscsi service implementing method, system and relevant apparatus | |
CN105354332A (en) | Method and system for implementing mutual standby of database and middleware based on BCP (Batch Communications Program) |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20191129 |
|
WW01 | Invention patent application withdrawn after publication |