CN111258795A - Samba cluster fault reconnection method, device, equipment and medium - Google Patents
Samba cluster fault reconnection method, device, equipment and medium Download PDFInfo
- Publication number
- CN111258795A CN111258795A CN201911207163.6A CN201911207163A CN111258795A CN 111258795 A CN111258795 A CN 111258795A CN 201911207163 A CN201911207163 A CN 201911207163A CN 111258795 A CN111258795 A CN 111258795A
- Authority
- CN
- China
- Prior art keywords
- samba
- service node
- cluster
- service
- information
- 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.)
- Granted
Links
- 241001362551 Samba Species 0.000 title claims abstract description 238
- 238000000034 method Methods 0.000 title claims abstract description 68
- 238000004590 computer program Methods 0.000 claims description 12
- 230000000977 initiatory effect Effects 0.000 claims description 6
- 230000001360 synchronised effect Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 8
- 238000001514 detection method Methods 0.000 description 4
- 230000002035 prolonged effect Effects 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0706—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
- G06F11/0709—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a distributed system consisting of a plurality of standalone computer nodes, e.g. clusters, client-server systems
-
- 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/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephonic Communication Services (AREA)
Abstract
The application discloses a method, a device, equipment and a medium for reconnecting a samba cluster fault, wherein the method comprises the following steps: acquiring service node fault information in the samba cluster in real time; determining target information according to the service node fault information; and sending the target information to a samba client terminal so that the samba client terminal determines whether a second service node providing file service for the samba client terminal has a fault according to the target information, and performing fault reconnection operation when the second service node has the fault. Therefore, the resource of the samba client terminal can be saved, the node fault information can be found in time, the file service connection can be recovered quickly, the fault reconnection time is saved, and the file operation continuity is ensured.
Description
Technical Field
The present application relates to the field of system communication technologies, and in particular, to a method, an apparatus, a device, and a medium for reconnecting a samba cluster failure.
Background
The samba client terminal provides file service for the samba client terminal by the samba service in the samba cluster node. In the actual operation process, a node providing the samba service may fail due to downtime, power failure, software failure and other reasons, so that the operation of the samba client terminal on the file is interrupted, and if the operation on the original file cannot be restored in time, data loss or even inestimable loss may be caused. In the prior art, the samba client terminal detects the state of a node in a cluster according to an active detection mechanism, and even if the state of the cluster node is not changed for a long time, the samba client terminal continuously detects the state of the cluster node according to a preset time length, so that a large amount of unnecessary queries are generated, and resource waste of the samba client terminal is caused. When a node providing file service in the cluster fails between two detection times, the node needs to wait until the samba client terminal detects the node operation condition again, so that the time for the samba client to initiate reconnection is prolonged, and the continuity of file operation is not maintained.
Disclosure of Invention
In view of this, an object of the present application is to provide a method, an apparatus, a device, and a medium for reconnecting a samba cluster failure, which can save samba client terminal resources, find node failure information in time, recover file service connection quickly, save failure reconnection time, and ensure file operation continuity. The specific scheme is as follows:
in a first aspect, the present application discloses a samba cluster failure reconnection method, applied to a first service node, including:
acquiring service node fault information in the samba cluster in real time;
determining target information according to the service node fault information;
and sending the target information to a samba client terminal so that the samba client terminal determines whether a second service node providing file service for the samba client terminal has a fault according to the target information, and performing fault reconnection operation when the second service node has the fault.
Optionally, before obtaining the failure information of the service node in the samba cluster in real time, the method further includes:
and receiving a service connection request sent by the samba client terminal, and establishing service connection with the samba client terminal.
Optionally, the determining target information according to the service node fault information includes:
determining node information of a fault service node according to the service node fault information;
and determining the node information of the fault service node as target information.
Optionally, before obtaining the failure information of the service node in the samba cluster in real time, the method further includes:
and receiving the synchronous second service node information of the samba client terminal.
Optionally, the determining target information according to the service node fault information includes:
determining whether the second service node has a fault according to the service node fault information and the second service node information;
and if the second service node fails, determining the notification information of the second service node failure as target information.
In a second aspect, the present application discloses a samba cluster failure reconnection method, which is applied to a samba client terminal, and includes:
receiving target information which is sent by a first service node and determined according to service node fault information in a samba cluster acquired in real time;
determining whether a second service node providing file service for the samba client terminal has a fault according to the target information;
if a second service node which provides file service for the samba client terminal fails, the file service connection between the second service node and the samba cluster is disconnected, and a file service request is sent to the samba cluster again, so that the file service connection between the samba cluster and the service node in the normal running state is established, and the file service is recovered.
Optionally, before receiving target information sent by the first service node and determined according to the service node fault information in the samba cluster acquired in real time, the method further includes:
initiating a target service request to the samba cluster through a local first client, and receiving a first service node IP returned by the samba cluster;
establishing a target service connection with the first service node through the local first client according to the first service node IP;
initiating the file service request to the samba cluster through a local second client, and receiving a second service node IP returned by the samba cluster;
and establishing a file service connection with the second service node through the local second client according to the second service node IP.
In a third aspect, the present application discloses a samba cluster failure reconnection device, which is applied to a first service node, and includes:
the information acquisition module is used for acquiring the fault information of the service nodes in the samba cluster in real time;
the target information determining module is used for determining target information according to the service node fault information;
and the information sending module is used for sending the target information to the samba client terminal so that the samba client terminal can determine whether a second service node which is providing file service for the samba client terminal has a fault according to the target information, and when the second service node has the fault, the fault reconnection operation is carried out.
In a fourth aspect, the present application discloses a samba cluster failure reconnection device, including:
a memory and a processor;
wherein the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement the samba cluster failure reconnection method disclosed above.
In a fifth aspect, the present application discloses a computer readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the samba cluster failure reconnection method disclosed in the foregoing.
Therefore, the service node fault information in the samba cluster is obtained in real time; then, determining target information according to the service node fault information; and then sending the target information to a samba client terminal so that the samba client terminal determines whether a second service node providing file service for the samba client terminal has a fault according to the target information, and performing fault reconnection operation when the second service node has the fault. Therefore, the method and the device for file reconnection can obtain service node fault information in the samba cluster in real time, determine target information according to the service node fault information, and then send the target information to the samba client terminal, so that the samba client terminal determines whether a second service node which is providing file service for the samba client terminal has a fault according to the target information, and when the second service node has the fault, fault reconnection operation is carried out, so that resource of the samba client terminal can be saved, node fault information can be found in time, file service connection can be recovered quickly, fault reconnection time is saved, and file operation continuity is guaranteed.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a samba cluster failure reconnection method disclosed in the present application;
fig. 2 is a flowchart of a specific samba cluster failure reconnection method disclosed in the present application;
fig. 3 is a flowchart of a specific samba cluster failure reconnection method disclosed in the present application;
fig. 4 is a flowchart of a samba cluster failure reconnection method disclosed in the present application;
fig. 5 is a flowchart of a specific samba cluster failure reconnection method disclosed in the present application;
fig. 6 is a schematic diagram of a samba cluster structure disclosed in the present application;
fig. 7 is a schematic diagram of a samba cluster failure reconnection disclosed in the present application;
FIG. 8 is a schematic diagram of a samba cluster structure after a samba cluster failure reconnection disclosed in the present application
Fig. 9 is a schematic structural diagram of a samba cluster fault reconnection device disclosed in the present application;
fig. 10 is a structural diagram of a samba cluster failure reconnection device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At present, a samba client terminal detects the state of a node in a cluster according to an active detection mechanism, and even if the state of the cluster node does not change for a long time, the samba client terminal continuously detects the state of the cluster node according to a preset time length, so that a large amount of unnecessary queries are generated, and resource waste of the samba client terminal is caused. When a node providing file service in the cluster fails between two detection times, the node needs to wait until the samba client terminal detects the node operation condition again, so that the time for the samba client to initiate reconnection is prolonged, and the continuity of file operation is not maintained. In view of this, the present application provides a samba cluster failure reconnection method, which can save samba client terminal resources, find node failure information in time, recover file service connection quickly, save failure reconnection time, and ensure file operation continuity.
Referring to fig. 1, an embodiment of the present application discloses a samba cluster failure reconnection method, which is applied to a first service node, and the method includes:
step S11: and acquiring the fault information of the service nodes in the samba cluster in real time.
In this embodiment, the first service node is a service node in a samba cluster, and the first service node and a samba client terminal have service connection therebetween, so as to ensure that the first service node can provide target information for the samba client terminal; the samba client terminal is also connected with a second service node through file service so as to ensure that the second service node provides file service for the samba client terminal, the second service node is also one service node in the samba cluster, and the first service node and the second service node are not the same service node. The first service node needs to acquire the service node fault information in the samba cluster in real time, so that the fault information of the relevant service node can be acquired in time after the fault occurs.
Step S12: and determining target information according to the service node fault information.
In this embodiment, after the service node failure information is obtained in real time, the target information needs to be determined according to the service node failure information, so that after the target information is sent to the samba client terminal, the samba client terminal may determine whether a second service node providing file service for the samba client terminal fails according to the target information.
Step S13: and sending the target information to a samba client terminal so that the samba client terminal determines whether a second service node providing file service for the samba client terminal has a fault according to the target information, and performing fault reconnection operation when the second service node has the fault.
In a specific implementation process, after determining the target information according to the service node failure information, the target information needs to be sent to the samba client terminal, so that after receiving the target information, the samba client terminal determines whether the second service node providing file service for the samba client terminal fails according to the target information, and if the second service node fails, a failure reconnection operation is performed. Specifically, if the second service node fails, the samba client terminal re-initiates a file service request to the samba cluster, after receiving the file service request, the samba cluster synchronizes a file of the second service node to the service node still in a normal operation state, and returns a target service node IP in the normal operation state to the samba client terminal, so that a file service connection is established between the samba client terminal and the target service node, and a file service operation is continued, where the target service node IP cannot be an IP of the first service node.
Therefore, the service node fault information in the samba cluster is obtained in real time; then, determining target information according to the service node fault information; and then sending the target information to a samba client terminal so that the samba client terminal determines whether a second service node providing file service for the samba client terminal has a fault according to the target information, and performing fault reconnection operation when the second service node has the fault. Therefore, the method and the device for file reconnection can obtain service node fault information in the samba cluster in real time, determine target information according to the service node fault information, and then send the target information to the samba client terminal, so that the samba client terminal determines whether a second service node which is providing file service for the samba client terminal has a fault according to the target information, and when the second service node has the fault, fault reconnection operation is carried out, so that resource of the samba client terminal can be saved, node fault information can be found in time, file service connection can be recovered quickly, fault reconnection time is saved, and file operation continuity is guaranteed.
Referring to fig. 2, an embodiment of the present application discloses a specific samba cluster failure reconnection method, which is applied to a first service node, and the method includes:
step S21: and receiving a service connection request sent by the samba client terminal, and establishing service connection with the samba client terminal.
It can be understood that a service connection request sent by the samba client terminal needs to be received first, and a service connection is established with the samba client terminal, so as to send related information to the samba client terminal.
Step S22: and acquiring the fault information of the service nodes in the samba cluster in real time.
Step S23: and determining the node information of the fault service node according to the fault information of the service node.
In a specific implementation process, after the service node failure information is obtained, the node information of a failed service node needs to be determined according to the service node failure information. Wherein the node information includes, but is not limited to, node IP.
Step S24: and determining the node information of the fault service node as target information.
Step S25: and sending the target information to the samba client terminal so that the samba client terminal determines whether a second service node providing file service for the samba client terminal has a fault according to the target information, and performing fault reconnection operation when the second service node has the fault.
In a specific implementation process, after determining node information of the failed service node as target information, sending the target information to the samba client terminal, so that after receiving the target information, the samba client terminal queries whether the target information includes node information of the second service node, if the target information includes the node information of the second service node, it is determined that the second service node fails, and a failure reconnection operation needs to be performed, and if the target information does not include the node information of the second service node, it is determined that the second service node does not fail, and the failure reconnection operation is not performed.
Referring to fig. 3, an embodiment of the present application discloses a specific samba cluster failure reconnection method, which is applied to a first service node, and the method includes:
step S31: and receiving a service connection request sent by the samba client terminal, and establishing service connection with the samba client terminal.
Step S32: and receiving the synchronous second service node information of the samba client terminal.
In a specific implementation process, after the first service node and the samba client terminal establish a service request, the samba client terminal may further synchronize node information of a second service node that is providing file service for the samba client terminal to the first service node, and after the first service node receives the node information of the second service node synchronized by the samba client terminal, the first service node further needs to store the second service node information.
Step S33: and acquiring the fault information of the service nodes in the samba cluster in real time.
Step S34: and determining whether a second service node providing file service for the samba client terminal has a fault or not according to the service node fault information and the second service node information.
It can be understood that after the first service node obtains the service node failure information, it is necessary to determine whether a second service node that is providing file service for the samba client terminal fails according to the service node failure information and the second service node information.
Step S35: and if the second service node fails, determining the notification information of the second service node failure as target information.
In a specific implementation process, if the second service node fails, determining notification information of the second service node failure as target information. And determining whether the second service node has a fault by using the first service node, and sending corresponding notification information to the samba client terminal when the second service node has the fault, so that the pressure of the samba client terminal can be reduced, and fault reconnection can be quickly completed.
Step S36: and sending the target information to a samba client terminal so that the samba client terminal can determine whether the second service node has a fault according to the target information, and performing fault reconnection operation when the second service node has the fault.
It can be understood that after the notification information of the second service node failure is determined as the target information, the target information is sent to the samba client terminal, so that after the samba client terminal receives the target information, it can be determined that the second service node has a failure, and a failure reconnection operation is performed. And if the second service node does not have a fault, the target information does not need to be sent to the samba client terminal.
Referring to fig. 4, an embodiment of the present application discloses a specific samba cluster failure reconnection method, which is applied to a samba client terminal, and the method includes:
step S41: and receiving target information which is sent by the first service node and determined according to the service node fault information in the samba cluster acquired in real time.
In this embodiment, target information sent by the first service node and determined according to the service node failure information in the samba cluster obtained in real time needs to be received, so as to determine whether a failure reconnection operation needs to be performed.
Step S42: and determining whether a second service node providing file service for the samba client terminal has a fault according to the target information.
It can be understood that, after receiving the target information, determining whether a second service node providing file services for the samba client terminal fails according to the target information, so as to determine whether the failure reconnection operation is required.
In a specific implementation manner, if the target information is node information of a failed service node, whether second service node information exists in the target information is queried to determine whether the second service node has a failure.
In another specific implementation, if the target information is notification information of a failure of the second service node, the target information is received, and it may be determined that the second service node has a failure.
Step S43: if a second service node which provides file service for the samba client terminal fails, the file service connection between the second service node and the samba cluster is disconnected, and a file service request is sent to the samba cluster again, so that the file service connection between the samba cluster and the service node in the normal running state is established, and the file service is recovered.
Referring to fig. 5, an embodiment of the present application discloses a specific samba cluster failure reconnection method, which is applied to a samba client terminal, and the method includes:
step S51: and initiating a target service request to the samba cluster through a local first client, and receiving a first service node IP returned by the samba cluster.
In this embodiment, the samba client terminal may specifically include a first client and a second client, and initiate a target service request to the samba cluster through the local first client, and receive a first service node IP returned by the samba cluster, so as to establish a target service connection with the first service node, so as to perform data transmission. The service nodes in the samba cluster may include a first service end and a second service end.
Step S52: and establishing target service connection with the first service node through the local first client according to the IP of the first service node.
It can be understood that the first service node IP returned by the samba cluster is received, and a target service connection is established with the first service node according to the first service node IP, so as to receive target information which is sent by the first service node and is determined according to the service node fault information in the samba cluster acquired in real time. Specifically, the establishing a target service connection with the first service node through the local first client according to the first service node IP includes: and establishing target service connection with a first service end in the first service node through the local first client according to the IP of the first service node.
Step S53: and initiating the file service request to the samba cluster through a local second client, and receiving a second service node IP returned by the samba cluster.
In this embodiment, the file service request is initiated to the samba cluster through a local second client, and a second service node IP returned by the samba cluster is received, so as to establish a file service connection with the second service node, and perform a corresponding file operation.
Step S54: and establishing a file service connection with a second service node through the local second client according to the second service node IP.
In a specific implementation process, after receiving a second service node IP returned by the samba cluster, establishing a file service connection with the second service node through the local second client according to the second service node IP. Specifically, the establishing a file service connection with the second service node through the local second client according to the second service node IP includes: and establishing a file service connection with a second server of the second service node through the local second client according to the second service node IP.
Fig. 6 is a schematic diagram of a samba cluster structure. The samba cluster comprises 3 service nodes, a first service end in the first service node establishes target service connection with a first client end in the samba client terminal, and a second service end in the second service node establishes file service connection with a second client end in the samba client terminal.
Step S55: and receiving target information which is sent by the first service node and determined according to the service node fault information in the samba cluster acquired in real time.
Step S56: and determining whether the second service node has a fault according to the target information.
Step S57: and if the second service node has a fault, disconnecting the file service connection with the second service node, and sending a file service request to the samba cluster again so as to establish the file service connection with the service node in the normal running state and recover the file service.
It can be understood that, if the second service node fails, the file service connection with the second service node is disconnected, and a file service request is sent to the samba cluster again, so that the file service connection with the service node in the normal operation state is established, and the file service is recovered. And if the second service node does not have a fault, the fault reconnection operation is not required.
Fig. 7 is a schematic diagram illustrating a samba cluster failure reconnection. A first service node acquires service node fault information of a samba cluster in real time, determines target information according to the service node fault information, and sends the target information to a samba client terminal, the samba client terminal determines that a second service node which is providing file service for the samba client terminal is in fault according to the target information, then disconnects file service connection with the second service node, and re-initiates a file service request to the samba cluster, then receives a third service node IP returned by the samba cluster, establishes file service connection with a second service node of a third service node, completes fault reconnection, and a structural schematic diagram of the samba cluster after fault reconnection is completed is shown in fig. 8.
Referring to fig. 9, an embodiment of the present application discloses a samba cluster failure reconnection device, which is applied to a first service node, and includes:
the information acquisition module 11 is configured to acquire service node fault information in the samba cluster in real time;
a target information determining module 12, configured to determine target information according to the service node fault information;
and an information sending module 13, configured to send the target information to a samba client terminal, so that the samba client terminal determines whether a second service node that is providing file service for the samba client terminal has a fault according to the target information, and performs a fault reconnection operation when the second service node has a fault.
Therefore, the service node fault information in the samba cluster is obtained in real time; then, determining target information according to the service node fault information; and then sending the target information to a samba client terminal so that the samba client terminal determines whether a second service node providing file service for the samba client terminal has a fault according to the target information, and performing fault reconnection operation when the second service node has the fault. Therefore, the method and the device for file reconnection can obtain service node fault information in the samba cluster in real time, determine target information according to the service node fault information, and then send the target information to the samba client terminal, so that the samba client terminal determines whether a second service node which is providing file service for the samba client terminal has a fault according to the target information, and when the second service node has the fault, fault reconnection operation is carried out, so that resource of the samba client terminal can be saved, node fault information can be found in time, file service connection can be recovered quickly, fault reconnection time is saved, and file operation continuity is guaranteed.
Further, referring to fig. 10, an embodiment of the present application further discloses a samba cluster failure reconnection device, including: a processor 21 and a memory 22.
Wherein the memory 21 is used for storing a computer program; the processor 22 is configured to execute the computer program to implement the samba cluster failure reconnection method disclosed in the foregoing embodiment.
For a specific process of the samba cluster failure reconnection method, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not described herein again.
Further, an embodiment of the present application also discloses a computer-readable storage medium for storing a computer program, where the computer program is executed by a processor to implement the samba cluster failure reconnection method disclosed in the foregoing embodiment.
For a specific process of the samba cluster failure reconnection method, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not described herein again.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of other elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above describes in detail a method, an apparatus, a device, and a medium for reconnection of a samba cluster failure provided by the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (10)
1. A samba cluster fault reconnection method is applied to a first service node and comprises the following steps:
acquiring service node fault information in the samba cluster in real time;
determining target information according to the service node fault information;
and sending the target information to a samba client terminal so that the samba client terminal determines whether a second service node providing file service for the samba client terminal has a fault according to the target information, and performing fault reconnection operation when the second service node has the fault.
2. The samba cluster failure reconnection method as claimed in claim 1, wherein before obtaining the service node failure information in the samba cluster in real time, the method further comprises:
and receiving a service connection request sent by the samba client terminal, and establishing service connection with the samba client terminal.
3. The samba cluster failure reconnection method as claimed in claim 1, wherein the determining target information according to the service node failure information comprises:
determining node information of a fault service node according to the service node fault information;
and determining the node information of the fault service node as target information.
4. The samba cluster failure reconnection method as claimed in claim 1, wherein before obtaining the service node failure information in the samba cluster in real time, the method further comprises:
and receiving the synchronous second service node information of the samba client terminal.
5. The samba cluster failure reconnection method according to claim 4, wherein the determining target information according to the service node failure information comprises:
determining whether the second service node has a fault according to the service node fault information and the second service node information;
and if the second service node fails, determining the notification information of the second service node failure as target information.
6. A samba cluster fault reconnection method is applied to a samba client terminal and comprises the following steps:
receiving target information which is sent by a first service node and determined according to service node fault information in a samba cluster acquired in real time;
determining whether a second service node providing file service for the samba client terminal has a fault according to the target information;
if a second service node which provides file service for the samba client terminal fails, the file service connection between the second service node and the samba cluster is disconnected, and a file service request is sent to the samba cluster again, so that the file service connection between the samba cluster and the service node in the normal running state is established, and the file service is recovered.
7. The samba cluster failure reconnection method as claimed in claim 6, wherein before receiving target information sent by the first service node and determined according to service node failure information in the samba cluster acquired in real time, the method further comprises:
initiating a target service request to the samba cluster through a local first client, and receiving a first service node IP returned by the samba cluster;
establishing a target service connection with the first service node through the local first client according to the first service node IP;
initiating the file service request to the samba cluster through a local second client, and receiving a second service node IP returned by the samba cluster;
and establishing a file service connection with the second service node through the local second client according to the second service node IP.
8. A samba cluster failure reconnection device is applied to a first service node and comprises the following steps:
the information acquisition module is used for acquiring the fault information of the service nodes in the samba cluster in real time;
the target information determining module is used for determining target information according to the service node fault information;
and the information sending module is used for sending the target information to the samba client terminal so that the samba client terminal can determine whether a second service node which is providing file service for the samba client terminal has a fault according to the target information, and when the second service node has the fault, the fault reconnection operation is carried out.
9. A samba cluster failure reconnection device, comprising:
a memory and a processor;
wherein the memory is used for storing a computer program;
the processor, configured to execute the computer program to implement the samba cluster failure reconnection method according to any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the samba cluster failure reconnection method as claimed in any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911207163.6A CN111258795B (en) | 2019-11-29 | 2019-11-29 | Samba cluster fault reconnection method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911207163.6A CN111258795B (en) | 2019-11-29 | 2019-11-29 | Samba cluster fault reconnection method, device, equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111258795A true CN111258795A (en) | 2020-06-09 |
CN111258795B CN111258795B (en) | 2022-06-17 |
Family
ID=70950744
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911207163.6A Active CN111258795B (en) | 2019-11-29 | 2019-11-29 | Samba cluster fault reconnection method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111258795B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112328421A (en) * | 2020-11-05 | 2021-02-05 | 腾讯科技(深圳)有限公司 | System fault processing method and device, computer equipment and storage medium |
CN115866018A (en) * | 2023-02-28 | 2023-03-28 | 浪潮电子信息产业股份有限公司 | Service processing method and device, electronic equipment and computer readable storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006074023A2 (en) * | 2004-12-30 | 2006-07-13 | Xstor Systems, Inc. | Scalable distributed storage and delivery |
CN109032830A (en) * | 2018-07-25 | 2018-12-18 | 广东浪潮大数据研究有限公司 | A kind of fault recovery method of distributed memory system, system and associated component |
-
2019
- 2019-11-29 CN CN201911207163.6A patent/CN111258795B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006074023A2 (en) * | 2004-12-30 | 2006-07-13 | Xstor Systems, Inc. | Scalable distributed storage and delivery |
CN109032830A (en) * | 2018-07-25 | 2018-12-18 | 广东浪潮大数据研究有限公司 | A kind of fault recovery method of distributed memory system, system and associated component |
Non-Patent Citations (2)
Title |
---|
ZHANG HUILI: ""Realization of Files Sharing between Linux and Windows Based on Samba"", 《2008 INTERNATIONAL SEMINAR ON FUTURE BIOMEDICAL INFORMATION ENGINEERING》 * |
林彦宇等: ""提升大规模集群上并行计算软件系统可靠性和服务性的方法与实践"", 《计算机工程与科学》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112328421A (en) * | 2020-11-05 | 2021-02-05 | 腾讯科技(深圳)有限公司 | System fault processing method and device, computer equipment and storage medium |
CN112328421B (en) * | 2020-11-05 | 2022-04-08 | 腾讯科技(深圳)有限公司 | System fault processing method and device, computer equipment and storage medium |
CN115866018A (en) * | 2023-02-28 | 2023-03-28 | 浪潮电子信息产业股份有限公司 | Service processing method and device, electronic equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111258795B (en) | 2022-06-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107465556B (en) | Method, device and system for switching main server and standby server | |
CN107391294B (en) | Method and device for establishing IPSAN disaster recovery system | |
CN107483260B (en) | Fault processing method and device and electronic equipment | |
CN109218349A (en) | A kind of method and device of management server cluster | |
CN111258795B (en) | Samba cluster fault reconnection method, device, equipment and medium | |
CN107040563B (en) | Asynchronous service processing method and server | |
WO2014166265A1 (en) | Method, terminal, cache server and system for updating webpage data | |
CN107276839B (en) | Self-monitoring method and system of cloud platform | |
CN106817387B (en) | Data synchronization method, device and system | |
CN105208058A (en) | Information exchange system based on web session sharing | |
CN112769652A (en) | Node service monitoring method, device, equipment and medium | |
CN105959078A (en) | Cluster time synchronization method, cluster and time synchronization system | |
WO2017071384A1 (en) | Message processing method and apparatus | |
CN107888434B (en) | Network equipment configuration synchronization method and device | |
CN107592199B (en) | Data synchronization method and system | |
CN112671554A (en) | Node fault processing method and related device | |
CN109344202B (en) | Data synchronization method and management node | |
CN113766013A (en) | Session creation method, device, equipment and storage medium | |
CN108009045B (en) | Method and device for processing faults of main and standby databases | |
CN110661651A (en) | SDN controller data management method, system, device and readable storage medium | |
CN107087021B (en) | Master-slave server determination method and device | |
CN109542981A (en) | A kind of system and method, electronic equipment, storage medium that data synchronize | |
CN113271326B (en) | Network protocol address scheduling method and device and electronic equipment | |
CN113806447A (en) | Data synchronization method, device, equipment and medium | |
CN106533717B (en) | Safety check terminal device, safety check network system and safety inspection data transmission method |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |