Distributed storage service processing method and device and distributed storage system

By monitoring node status and redistributing virtual addresses in the distributed storage system, the problem of storage node NFS service anomalies is solved, ensuring normal response of user services and high availability of the system.

CN118677755APending Publication Date: 2024-09-20ZHENGZHOU INSPUR DATA TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410815416.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

In existing distributed storage systems, NFS service abnormalities of storage nodes cannot be discovered and repaired in time, affecting user business response.

Method used

By sending monitoring commands to each storage node of the distributed storage system, the node status information is obtained to determine whether there is an abnormality in the network file system service. If abnormal, virtual address reallocation and NFS service rebinding are performed.

Benefits of technology

It realizes the timely discovery and repair of storage node anomalies, ensures the normal response of user services, and improves the reliability and high availability of the distributed storage system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118677755A
    Figure CN118677755A
Patent Text Reader

Abstract

The invention relates to the technical field of distributed storage, and discloses a distributed storage service processing method and device and a distributed storage system.The distributed storage service processing method comprises the steps that a monitoring command is sent to each storage node in the distributed storage system, so that each storage node responds to the monitoring command to feed back node state information; according to a network file system service abnormal condition represented by node state information fed back by the storage node, judging whether the storage node is an abnormal node meeting a network file system service configuration requirement or not; if yes, virtual address redistribution processing is carried out on the abnormal node, and binding between the virtual address and the network file system service is carried out on the abnormal node again. By monitoring the state information of each storage node in the distributed storage system and reallocating the virtual address when the state information represents that the network file system service of the storage node is abnormal, the abnormal fault of the storage node is eliminated in time, so that the normal response of the storage node to the user service is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of distributed storage technology, and in particular to a distributed storage service processing method, device and distributed storage system. Background Art

[0002] In the current big data era, distributed storage systems have been widely used in various fields. Since distributed storage systems are composed of multiple storage nodes, how to coordinate various storage nodes to provide high-performance, high-availability, and high-load-balanced storage services has always been a key research topic.

[0003] In the related art, a network file system service is usually configured for each storage node in a distributed storage system. The network file system service is referred to as the NFS service. The network file system service is bound to the virtual IP address of the storage node. The storage node starts the NFS service based on any virtual IP address to enable users to access data in user mode without frequent interaction with the kernel.

[0004] However, in the actual operation of the distributed storage system, the NFS service of the storage node may be abnormal due to network fluctuations and hardware failures of the storage node. If the abnormality cannot be discovered and repaired in time, it will affect the storage node's response to user services. Summary of the invention

[0005] The present application provides a distributed storage service processing method, device and distributed storage system to solve the defects of related technologies such as the inability to timely discover and repair NFS service anomalies of storage nodes, which is not conducive to ensuring the normal response of storage nodes to user services.

[0006] The first aspect of the present application provides a distributed storage service processing method, including:

[0007] Sending a monitoring command to each storage node in the distributed storage system, so that each storage node feeds back node status information in response to the monitoring command;

[0008] For any of the storage nodes, judging whether the storage node is an abnormal node that meets the network file system service configuration requirements according to the network file system service abnormality represented by the node status information fed back by the storage node;

[0009] When it is determined that the storage node is an abnormal node that meets the configuration requirements of the network file system service, a virtual address reallocation process is performed on the abnormal node, and the virtual address of the abnormal node is re-bound to the network file system service.

[0010] In an optional implementation, sending a monitoring command to each storage node in the distributed storage system so that each storage node feeds back node status information in response to the monitoring command includes:

[0011] According to a preset cycle, a network file system service process monitoring command and a network card monitoring command are sent to each storage node in the distributed storage system by running monitoring events; wherein the monitoring command includes the network file system service process monitoring command and the network card monitoring command;

[0012] The storage node responds to the network file system service process monitoring command and feeds back network file system service process existence information and network file system service process status information;

[0013] The storage node responds to the network card monitoring command and feeds back the network card status information;

[0014] The node status information includes the network file system service process existence information, network file system service process status information and network card status information.

[0015] In an optional implementation, for any of the storage nodes, judging whether the storage node is an abnormal node that meets the network file system service configuration requirement according to the network file system service abnormality represented by the node status information fed back by the storage node includes:

[0016] For any of the storage nodes, judging whether a network file system service process exists on the storage node according to the network file system service process existence information in the node status information fed back by the storage node;

[0017] In the case where it is determined that the storage node has a network file system service process, judging whether the network file system service process of the storage node is in an abnormal state according to the network file system service process state information in the node state information fed back by the storage node;

[0018] When it is determined that the network file system service process of the storage node does not exist or the network file system service process is in an abnormal state, and the network card status information of the storage node indicates that the network card is in a normal state, starting a preset verification service at the storage node;

[0019] Determine whether the preset verification service is running normally on the storage node;

[0020] If the preset verification service runs normally on the storage node, determining that the storage node is an abnormal node that meets the network file system service configuration requirements;

[0021] When it is determined that the network file system service process of the storage node exists and the network file system service process status is normal, but the network card status information of the storage node indicates that the network card status is abnormal, or when the preset verification service does not operate normally on the storage node, the storage node is determined to be a configuration fault node;

[0022] Wherein, the preset verification service is a single network file system service.

[0023] In an optional embodiment, the method further includes:

[0024] Allocating the remaining virtual addresses configured on the failed node to the target storage node in the distributed storage system;

[0025] A binding between the remaining virtual address and a network file system service is established on the target storage node.

[0026] In an optional embodiment, the method further includes:

[0027] In the network file system service startup phase of any storage node in the distributed storage system, a preset verification service is started at the storage node; wherein the storage node is not assigned a virtual address in the network file system service startup phase;

[0028] Determine whether the preset verification service is running normally on the storage node;

[0029] When the preset verification service runs normally on the storage node, a virtual address is allocated to the storage node, and binding between the virtual address and the network file system service is performed.

[0030] In an optional implementation, when the preset verification service runs normally on the storage node, allocating a virtual address to the storage node and binding the virtual address to the network file system service include:

[0031] When the preset verification service is running normally on the storage node, suspending the preset verification service running on the storage node;

[0032] According to the business scenario of the storage node, a corresponding number of virtual addresses are allocated;

[0033] Binding between the virtual address and the network file system service is performed according to the corresponding relationship between each business type of the storage node and the virtual address and the network file system service.

[0034] A second aspect of the present application provides a distributed storage service processing device, including:

[0035] A monitoring module, used to send a monitoring command to each storage node in the distributed storage system, so that each storage node feeds back node status information in response to the monitoring command;

[0036] A judgment module, for judging, for any of the storage nodes, whether the storage node is an abnormal node that meets the network file system service configuration requirements according to the network file system service abnormality represented by the node status information fed back by the storage node;

[0037] The processing module is used to, when determining that the storage node is an abnormal node that meets the configuration requirements of the network file system service, perform virtual address reallocation processing on the abnormal node and rebind the virtual address of the abnormal node with the network file system service.

[0038] A third aspect of the present application provides a distributed storage system, comprising: a plurality of storage nodes supporting a network file system service;

[0039] Any of the storage nodes acts as a cluster management node and uses the method described in the first aspect and various possible designs of the first aspect to perform network file system service processing on each of the storage nodes.

[0040] A fourth aspect of the present application provides an electronic device, comprising: at least one processor and a memory;

[0041] The memory stores computer-executable instructions;

[0042] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method described in the first aspect and various possible designs of the first aspect.

[0043] A fifth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the method described in the first aspect and various possible designs of the first aspect are implemented.

[0044] The sixth aspect of the present application provides a computer program product, including computer instructions, which are used to enable a computer to execute the method described in the first aspect and various possible designs of the first aspect.

[0045] The technical solution of this application has the following advantages:

[0046] The present application provides a distributed storage service processing method, device and distributed storage system, the method comprising: sending a monitoring command to each storage node in the distributed storage system, so that each storage node responds to the monitoring command to feedback node status information; for any storage node, judging whether the storage node is an abnormal node that meets the network file system service configuration requirements according to the abnormal network file system service represented by the node status information fed back by the storage node; in the case of determining that the storage node is an abnormal node that meets the network file system service configuration requirements, reallocating the virtual address of the abnormal node, and rebinding the virtual address of the abnormal node to the network file system service. The method provided by the above scheme monitors the status information of each storage node in the distributed storage system, and reallocates the virtual address when the status information represents that the storage node has a network file system service abnormality, so as to timely eliminate the abnormal failure of the storage node, thereby ensuring the normal response of the storage node to the user's business. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the following is a brief introduction to the drawings required for use in the embodiments or the related technical descriptions. Obviously, the drawings described below are some embodiments of the present application, and a person skilled in the art can also obtain other drawings based on these drawings.

[0048] Figure 1 This is a schematic diagram of the structure of the distributed storage service processing system on which the embodiment of the present application is based;

[0049] Figure 2 A flowchart of a distributed storage service processing method provided in an embodiment of the present application;

[0050] Figure 3 A schematic diagram of the structure of a distributed storage service processing device provided in an embodiment of the present application;

[0051] Figure 4 A schematic diagram of the structure of a distributed storage system provided in an embodiment of the present application;

[0052] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0053] The above drawings have shown clear embodiments of the present application, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0055] In addition, the terms "first", "second", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. In the description of the following embodiments, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.

[0056] In the relevant technology, the storage system is an important part of the computer system. In the current era of big data, higher requirements are placed on the performance of the storage system. Cluster NAS (network attached storage) is one of the indispensable technologies in the storage system. It is a loosely coupled computing node collection composed of multiple nodes, which work together to provide high-performance, high-availability, and high-load-balanced NAS storage services. Usually, the distributed storage system will bind multiple physical network cards together, and their bandwidth can be merged to improve the network transmission speed of the server. At the same time, when one of the network cards fails, the other network cards can automatically take over, improving the reliability of the network. However, after the network cards are bonded, it is actually uncontrollable to which network traffic is specifically allocated. There is often a problem of unbalanced load between several network ports of the bonded network cards, and this unbalanced network port traffic will affect the performance of the NFS service. Multi-NFS service is a solution that does not require the physical network cards to be bonded, but starts multiple NFS services to improve performance. Multi-NFS service is to bind the service to the virtual IP, and an NFS service can be started based on each virtual IP. There are multiple NFS services on a node with multiple virtual IPs. However, during the actual operation of multiple NFS service distributed storage systems, due to network fluctuations, hardware failures, NFS service failures and other issues, customer business interruptions lasted for a long time or even ended.

[0057] In response to the above problems, the embodiments of the present application provide a distributed storage service processing method, device and distributed storage system, the method comprising: sending a monitoring command to each storage node in the distributed storage system, so that each storage node responds to the monitoring command to feedback node status information; for any storage node, judging whether the storage node is an abnormal node that meets the network file system service configuration requirements based on the abnormal network file system service represented by the node status information fed back by the storage node; in the case where it is determined that the storage node is an abnormal node that meets the network file system service configuration requirements, reallocating the virtual address of the abnormal node, and rebinding the virtual address of the abnormal node to the network file system service. The method provided by the above scheme monitors the status information of each storage node in the distributed storage system, and reallocates the virtual address when the status information represents that the storage node has a network file system service abnormality, so as to timely eliminate the abnormal failure of the storage node, thereby ensuring the normal response of the storage node to the user's business.

[0058] The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.

[0059] First, the structure of the distributed storage service processing system on which this application is based is described:

[0060] The distributed storage service processing method, device and distributed storage system provided in the embodiments of the present application are suitable for monitoring and handling abnormalities of the network file system service of the storage node in the distributed storage system. Figure 1 As shown, it is a structural diagram of the distributed storage service processing system based on the embodiment of the present application, which mainly includes a distributed storage system and a distributed storage service processing device. The distributed storage service processing device establishes a connection with each storage node in the distributed storage system to perform operations such as abnormal monitoring and abnormal processing on the network file system service of the storage node in the distributed storage system based on the distributed storage service processing device.

[0061] The embodiment of the present application provides a distributed storage service processing method for monitoring and handling exceptions of a network file system service of a storage node in a distributed storage system. The execution subject of the embodiment of the present application is an electronic device, such as a server, a desktop computer, a laptop computer, a tablet computer, and other electronic devices that can be used to monitor and handle exceptions of a network file system service of a storage node in a distributed storage system.

[0062] like Figure 2 FIG. 1 is a flow chart of a distributed storage service processing method provided in an embodiment of the present application, the method comprising:

[0063] Step 201: Send a monitoring command to each storage node in the distributed storage system, so that each storage node feeds back node status information in response to the monitoring command.

[0064] Specifically, based on cluster management technologies such as CTDB, a monitoring command may be sent to each storage node in the distributed storage system, so that each storage node feeds back node status information in response to the monitoring command.

[0065] Among them, CTDB is a cluster implementation of Samba, NFS, HTTPD, ISCSI, WINBIND, etc. using the TDB database. It provides cluster functions on the top level of the cluster's file system, manages node members, performs recovery / failover, IP reallocation, and monitors the status of management services. CTDB provides cluster functions on the top level of the distributed storage system, manages node members, performs recovery / failover, reallocates virtual IP addresses, and monitors the status of management services. The operation process of CTDB is mainly divided into the startup phase, the virtual IP address acquisition phase, the monitor monitoring phase, the virtual IP address release phase, and the stop event exit phase. The acquisition of node status information is carried out in the monitor monitoring phase of CTDB.

[0066] Specifically, in one embodiment, in order to improve the reliability of the obtained node status information and to further improve the accuracy of the node abnormality judgment results, the network file system service process monitoring commands and the network card monitoring commands can be sent to each storage node in the distributed storage system by running monitoring events according to a preset period.

[0067] Among them, the monitoring command includes a network file system service process monitoring command and a network card monitoring command; the storage node responds to the network file system service process monitoring command and feeds back the network file system service process existence information and the network file system service process status information; the storage node responds to the network card monitoring command and feeds back the network card status information.

[0068] The node status information includes network file system service process existence information, network file system service process status information and network card status information.

[0069] Specifically, CTDB runs a monitor event (monitoring event) according to a preset cycle, such as every 5 seconds. This event runs periodically. By running the monitoring event, it periodically sends network file system service process monitoring commands and network card monitoring commands to each storage node in the distributed storage system to achieve real-time monitoring of the network file system service process existence information, network file system service process status information and network card status information of the storage node.

[0070] Step 202: for any storage node, based on the abnormal situation of the network file system service represented by the node status information fed back by the storage node, determine whether the storage node is an abnormal node that meets the configuration requirements of the network file system service.

[0071] Specifically, first, based on the node status information fed back by the storage node, determine whether the storage node has a network file system service anomaly. If it is determined that a network file system service anomaly exists, further determine whether the storage node meets the network file system service configuration requirements. If the network file system service configuration requirements are met, the storage node is determined to be an abnormal node.

[0072] Step 203: when it is determined that the storage node is an abnormal node that meets the configuration requirements of the network file system service, a virtual address reallocation process is performed on the abnormal node, and the virtual address of the abnormal node is re-bound to the network file system service.

[0073] It should be noted that if a service exception occurs in a storage node that meets the network file system service configuration requirements, it is generally caused by a virtual address exception. In order to eliminate the exception as soon as possible, the embodiment of the present application, when determining that the storage node is an abnormal node that meets the network file system service configuration requirements, performs virtual address reallocation processing on the abnormal node, and further rebinds the virtual address and the network file system service, so that the storage node can quickly restore the network file system service, thereby ensuring the normal response of the storage node to user services.

[0074] On the basis of the above embodiments, in order to improve the accuracy of abnormal node judgment results, to further improve the pertinence of storage node abnormal fault elimination, and to avoid waste of fault elimination resources, as an implementable method, in one embodiment, for any storage node, according to the network file system service abnormality represented by the node status information fed back by the storage node, it is judged whether the storage node is an abnormal node that meets the network file system service configuration requirements, including:

[0075] Step 2021: for any storage node, judging whether there is a network file system service process on the storage node according to the network file system service process existence information in the node status information fed back by the storage node;

[0076] Step 2022: if it is determined that the storage node has a network file system service process, determine whether the network file system service process of the storage node is in an abnormal state according to the network file system service process state information in the node state information fed back by the storage node;

[0077] Step 2023, when it is determined that the network file system service process of the storage node does not exist or the network file system service process is in an abnormal state, and the network card status information of the storage node indicates that the network card is in a normal state, start a preset verification service at the storage node;

[0078] Step 2024, determining whether the preset verification service is running normally on the storage node;

[0079] Step 2025, if the preset verification service is running normally on the storage node, the storage node is determined to be an abnormal node that meets the network file system service configuration requirements;

[0080] Step 2026, when it is determined that the network file system service process of the storage node exists and the network file system service process status is normal, but the network card status information of the storage node indicates that the network card status is abnormal, or when the preset verification service does not operate normally on the storage node, the storage node is determined to be a configuration fault node.

[0081] Among them, the preset verification service is a single network file system service.

[0082] It should be noted that the network file system service in the embodiment of the present application is a multi-network file system service (multi-NFS), and multi-NFS means that NFS is bound to a virtual IP address. There can be multiple virtual IP addresses on a storage node, and multiple NFS services are started. Each NFS service is independent of each other, and each NFS service can provide sharing services to the outside world. NFS is a user-state file server that supports the NFS protocol (NFSv3 / NFSv4, NFSv4.1). It provides a FUSE (Filesystem in Userspace) compatible interface FSAL (File System Abstraction Layer) for Unix and Unix-like operating systems. In this way, users can access their own storage devices through the NFS Client. The NFS-NFS service allows users to access data in user state through FSAL without frequent interaction with the kernel, greatly reducing the response time of data reading.

[0083] Specifically, when it is determined that the storage node has a network file system service process based on the network file system service process existence information, it is further determined whether the network file system service process of the storage node is in an abnormal state based on the network file system service process status information, and the abnormal state includes process stuck, network abnormality, and access connection abnormality. If it is determined through judgment that the network file system service process of the storage node does not exist or the network file system service process is in an abnormal state, and the network card status information of the storage node indicates that the network card is in a normal state, the preset verification service is started at the storage node. If the preset verification service can run normally at the storage node, the storage node is determined to be an abnormal node that meets the network file system service configuration requirements. Accordingly, when it is determined that the network file system service process of the storage node exists or the network file system service process is in a normal state, but the network card status information of the storage node indicates that the network card is in an abnormal state, or when the preset verification service does not run normally at the storage node, the storage node is determined to be a configuration failure node.

[0084] Furthermore, in one embodiment, since the faulty node cannot restore the network file system service by reallocating the virtual address, corresponding fault information can be generated in combination with the current configuration information of the faulty node to remind relevant technical personnel to repair the faulty node according to the fault information.

[0085] Furthermore, in one embodiment, for a failed node, the remaining virtual addresses configured on the failed node may be allocated to a target storage node in the distributed storage system; and a binding between the remaining virtual addresses and a network file system service is established on the target storage node.

[0086] Specifically, CTDB can suspend all network file system service processes on the faulty node by running a release virtual IP address event, and allocate the remaining virtual addresses on the faulty node to the target storage node in the distributed storage system, and then restart the network file system service bound to these remaining virtual addresses on the target storage node to establish a binding between the remaining virtual addresses and the network file system service on the target storage node.

[0087] Specifically, if you want to remove a faulty node in a distributed storage system, CTDB can run an exit stop event, which is run when the CTDB process exits. When the CTDB process exits, the services it manages need to be stopped. At this time, the NFS service of the node will be closed.

[0088] On the basis of the above embodiment, in order to further improve the reliability of the entire distributed storage system, as an implementable manner, in one embodiment, the method further includes:

[0089] Step 301, in the network file system service startup phase of any storage node in the distributed storage system, a preset verification service is started at the storage node; wherein the storage node is not assigned a virtual address in the network file system service startup phase;

[0090] Step 302, determining whether the preset verification service is running normally on the storage node;

[0091] Step 303: when the preset verification service is running normally on the storage node, a virtual address is allocated to the storage node, and binding between the virtual address and the network file system service is performed.

[0092] Specifically, during the startup phase of the network file system service of any storage node in the distributed storage system, the startup phase startup event of CTDB can be started. This event is an event executed by the CTDB service during the startup process. This event is mainly responsible for starting its multi-management services, such as the NFS service (network file system service) when the CTDB service is started. However, at this time, the CTDB service is only a service process that is starting, and the virtual IP address allocation event of CTDB has not yet been performed. The storage node has not yet obtained the virtual IP address, and the multiple NFS services are bound to the virtual IP, so the multiple NFS services cannot be started at this time. At this stage, a single NFS service (preset verification service) can be started to ensure that the storage node can start the NFS service, the node status is normal, and the storage node meets the network file system service configuration requirements, in preparation for the need to start multiple NFS services after CTDB obtains the virtual IP address.

[0093] Accordingly, in one embodiment, if the preset verification service cannot operate normally in the storage node during the startup phase, the storage node is determined to be a faulty node, fault information is generated, and subsequent virtual address allocation work is suspended to avoid resource waste in the distributed storage system during the startup phase.

[0094] Specifically, in one embodiment, when the preset verification service is running normally on the storage node, the preset verification service running on the storage node can be suspended; a corresponding number of virtual addresses are allocated according to the business scenarios of the storage node; and binding between the virtual addresses and the network file system service is performed based on the correspondence between each business type of the storage node and the virtual addresses and the network file system service.

[0095] Specifically, after determining that CTDB has completed startup, the virtual address is allocated to the storage node by running the event of obtaining the virtual IP address. At this time, CTDB checks whether there is a single NFS service (preset verification service) on the node. If the single NFS service exists, the single NFS service is stopped, that is, the preset verification service running on the storage node is suspended. Then, the corresponding multi-NFS service is pulled up according to the allocated virtual IP address. If the node has multiple virtual IPs, the node starts multiple multi-NFS services bound to these virtual IPs.

[0096] The number of virtual addresses allocated to each storage node is determined according to the business scenario of the storage node. If the storage node is busy, a larger number of virtual addresses can be allocated. Then, according to the correspondence between the business types of the storage node and the virtual addresses and the network file system services, the virtual addresses and the network file system services are bound.

[0097] The distributed storage service processing method provided in the embodiment of the present application sends a monitoring command to each storage node in the distributed storage system so that each storage node responds to the monitoring command to feedback the node status information; for any storage node, according to the abnormal network file system service represented by the node status information fed back by the storage node, it is judged whether the storage node is an abnormal node that meets the configuration requirements of the network file system service; in the case of determining that the storage node is an abnormal node that meets the configuration requirements of the network file system service, the virtual address of the abnormal node is reallocated, and the virtual address of the abnormal node is re-bound to the network file system service. The method provided by the above scheme monitors the status information of each storage node in the distributed storage system, and when the status information represents that the storage node has an abnormal network file system service, the virtual address is reallocated to timely eliminate the abnormal fault of the storage node, thereby ensuring the normal response of the storage node to the user's business. In addition, CTDB is used to monitor the operation of multiple NFS in real time, and faults are found and faults are immediately handled to ensure that the client's business is not affected by the fault, thereby achieving high availability of multiple NFS in the distributed storage system.

[0098] An embodiment of the present application provides a distributed storage service processing device, which is used to execute the distributed storage service processing method provided in the above embodiment.

[0099] like Figure 3 FIG. 2 is a schematic diagram of the structure of a distributed storage service processing device provided in an embodiment of the present application. The distributed storage service processing device 30 includes: a monitoring module 301 , a judgment module 302 and a processing module 303 .

[0100] Among them, the monitoring module is used to send monitoring commands to each storage node in the distributed storage system, so that each storage node can feedback node status information in response to the monitoring command; the judgment module is used to determine whether any storage node is an abnormal node that meets the network file system service configuration requirements based on the network file system service abnormality represented by the node status information fed back by the storage node; the processing module is used to reallocate the virtual address of the abnormal node when it is determined that the storage node is an abnormal node that meets the network file system service configuration requirements, and re-bind the virtual address of the abnormal node with the network file system service.

[0101] Regarding the distributed storage service processing device in this embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0102] The distributed storage service processing device provided in the embodiment of the present application is used to execute the distributed storage service processing method provided in the above embodiment. Its implementation method and principle are the same and will not be repeated here.

[0103] An embodiment of the present application provides a distributed storage system for executing the distributed storage service processing method provided in the above embodiment.

[0104] like Figure 4 FIG. 1 is a schematic diagram of the structure of a distributed storage system provided in an embodiment of the present application. The distributed storage system includes a plurality of storage nodes supporting network file system services.

[0105] Wherein, any storage node acts as a cluster management node and uses the method provided in the above embodiment to perform network file system service processing on each storage node.

[0106] Specifically, Figure 4 As shown, the system also includes multiple clients, each of which accesses the network file system service in the storage node through a virtual address. Each storage node is configured with a CTDB function to enable CTDB messages to be transmitted between storage nodes, so that any storage node in the system can be used as a cluster management node. Figure 4 Storage node 2 in the cluster serves as the cluster management node.

[0107] Regarding the distributed storage system in this embodiment, its specific implementation has been described in detail in the embodiment of the method, and will not be elaborated here.

[0108] The distributed storage system provided in the embodiment of the present application is used to execute the distributed storage service processing method provided in the above embodiment. Its implementation method and principle are the same and will not be repeated here.

[0109] An embodiment of the present application provides an electronic device for executing the distributed storage service processing method provided in the above embodiment.

[0110] like Figure 5 FIG. 5 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 50 includes: at least one processor 51 and a memory 52.

[0111] The memory stores computer-executable instructions; at least one processor executes the computer-executable instructions stored in the memory, so that at least one processor executes the distributed storage service processing method provided in the above embodiment.

[0112] The electronic device provided in the embodiment of the present application is used to execute the distributed storage service processing method provided in the above embodiment. Its implementation method and principle are the same and will not be repeated here.

[0113] An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, a distributed storage service processing method provided in any of the above embodiments is implemented.

[0114] The storage medium containing computer executable instructions provided in the embodiments of the present application can be used to store computer executable instructions of the distributed storage service processing method provided in the aforementioned embodiments. Its implementation method and principle are the same and will not be repeated here.

[0115] An embodiment of the present application provides a computer program product, including computer instructions, which are used to enable a computer to execute the distributed storage service processing method provided in the aforementioned embodiment.

[0116] The embodiment of the present application provides a computer program product that can be used to execute computer instructions of the distributed storage service processing method provided in the aforementioned embodiment. Its implementation method and principle are the same and will not be repeated here.

[0117] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0118] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0119] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0120] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0121] A part of the present application may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.

[0122] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0123] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A distributed storage service processing method, characterized in that: include: Sending a monitoring command to each storage node in the distributed storage system, so that each storage node feeds back node status information in response to the monitoring command; For any of the storage nodes, judging whether the storage node is an abnormal node that meets the network file system service configuration requirements according to the network file system service abnormality represented by the node status information fed back by the storage node; When it is determined that the storage node is an abnormal node that meets the configuration requirements of the network file system service, a virtual address reallocation process is performed on the abnormal node, and the virtual address of the abnormal node is re-bound to the network file system service.

2. The method according to claim 1, characterized in that The sending of a monitoring command to each storage node in the distributed storage system so that each storage node feeds back node status information in response to the monitoring command includes: According to a preset cycle, a network file system service process monitoring command and a network card monitoring command are sent to each storage node in the distributed storage system by running monitoring events; wherein the monitoring command includes the network file system service process monitoring command and the network card monitoring command; The storage node responds to the network file system service process monitoring command and feeds back network file system service process existence information and network file system service process status information; The storage node responds to the network card monitoring command and feeds back the network card status information; The node status information includes the network file system service process existence information, network file system service process status information and network card status information.

3. The method according to claim 2, characterized in that The step of determining, for any of the storage nodes, whether the storage node is an abnormal node that meets the network file system service configuration requirements according to the network file system service abnormality represented by the node status information fed back by the storage node, includes: For any of the storage nodes, judging whether a network file system service process exists on the storage node according to the network file system service process existence information in the node status information fed back by the storage node; In the case where it is determined that the storage node has a network file system service process, judging whether the network file system service process of the storage node is in an abnormal state according to the network file system service process state information in the node state information fed back by the storage node; When it is determined that the network file system service process of the storage node does not exist or the network file system service process is in an abnormal state, and the network card status information of the storage node indicates that the network card is in a normal state, starting a preset verification service at the storage node; Determine whether the preset verification service is running normally on the storage node; If the preset verification service runs normally on the storage node, determining that the storage node is an abnormal node that meets the network file system service configuration requirements; When it is determined that the network file system service process of the storage node exists and the network file system service process status is normal, but the network card status information of the storage node indicates that the network card status is abnormal, or when the preset verification service does not operate normally on the storage node, it is determined that the storage node is a configuration fault node; Wherein, the preset verification service is a single network file system service.

4. The method according to claim 3, characterized in that The method further comprises: Allocating the remaining virtual addresses configured on the failed node to the target storage node in the distributed storage system; A binding between the remaining virtual address and a network file system service is established on the target storage node.

5. The method according to claim 1, characterized in that The method further comprises: In the network file system service startup phase of any storage node in the distributed storage system, a preset verification service is started at the storage node; wherein the storage node is not assigned a virtual address in the network file system service startup phase; Determine whether the preset verification service is running normally on the storage node; When the preset verification service runs normally on the storage node, a virtual address is allocated to the storage node, and binding between the virtual address and the network file system service is performed.

6. The method according to claim 5, characterized in that When the preset verification service is operating normally on the storage node, a virtual address is allocated to the storage node, and binding between the virtual address and the network file system service is performed, including: When the preset verification service is running normally on the storage node, suspending the preset verification service running on the storage node; According to the business scenario of the storage node, a corresponding number of virtual addresses are allocated; Binding between the virtual address and the network file system service is performed according to the corresponding relationship between each business type of the storage node and the virtual address and the network file system service.

7. A distributed storage service processing device, characterized in that: include: A monitoring module, used to send a monitoring command to each storage node in the distributed storage system, so that each storage node feeds back node status information in response to the monitoring command; A judgment module, for judging, for any of the storage nodes, whether the storage node is an abnormal node that meets the network file system service configuration requirements according to the network file system service abnormality represented by the node status information fed back by the storage node; The processing module is used to, when determining that the storage node is an abnormal node that meets the configuration requirements of the network file system service, perform virtual address reallocation processing on the abnormal node and rebind the virtual address of the abnormal node with the network file system service.

8. A distributed storage system, characterized in that: include: Multiple storage nodes supporting network file system services; Any of the storage nodes is used as a cluster management node, and the method described in any one of claims 1 to 6 is used to perform network file system service processing on each of the storage nodes.

9. An electronic device, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method according to any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Fault processing method, program product, electronic device and storage medium

    CN120448177A

  • Troubleshooting methods, software products, electronic devices and storage media

    CN120448177B