CN115665178A - Management method, system, equipment and storage medium of distributed storage system - Google Patents

Management method, system, equipment and storage medium of distributed storage system Download PDF

Info

Publication number
CN115665178A
CN115665178A CN202211295513.0A CN202211295513A CN115665178A CN 115665178 A CN115665178 A CN 115665178A CN 202211295513 A CN202211295513 A CN 202211295513A CN 115665178 A CN115665178 A CN 115665178A
Authority
CN
China
Prior art keywords
distributed storage
storage system
node
virtual
configuration file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211295513.0A
Other languages
Chinese (zh)
Inventor
吴双艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Jinan data Technology Co ltd
Original Assignee
Inspur Jinan data Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Jinan data Technology Co ltd filed Critical Inspur Jinan data Technology Co ltd
Priority to CN202211295513.0A priority Critical patent/CN115665178A/en
Publication of CN115665178A publication Critical patent/CN115665178A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a management method, a system, equipment and a storage medium of a distributed storage system, which are applied to the technical field of distributed storage and in MMC, and comprise the following steps: setting a virtual IP for the distributed storage system, and connecting the distributed storage system through the virtual IP; when the operation aiming at the distributed storage system is executed on the connected nodes, the operation information is saved in a configuration file; synchronizing the configuration file to each node in the distributed storage system; and when the node connected currently fails, switching the nodes, and automatically executing corresponding operation aiming at the distributed storage system based on the configuration file stored in the node after switching. By applying the scheme of the application, the management of the distributed storage system can be effectively carried out, and after the node connected with the MMC breaks down, the operation executed before can be conveniently and effectively recovered on the new node connected with the MMC.

Description

Management method, system, equipment and storage medium of distributed storage system
Technical Field
The present invention relates to the field of distributed storage technologies, and in particular, to a management method, a management system, a management device, and a storage medium for a distributed storage system.
Background
NAS (Network Attached Storage) literally means a device connected to a Network and having a data Storage function, and is also called a "Network Storage", which is a dedicated data Storage server, and uses data as a center to completely separate Storage devices from the server and centrally manage the data, thereby releasing bandwidth, improving performance, reducing total ownership cost, protecting investment, and having a cost far lower than that of using a conventional server for data Storage and a efficiency far higher than that of the conventional server.
In practical applications, in a NAS application scenario of medium or large scale, there are usually multiple NAS servers, and these servers may be from different vendors. When performing daily management work, NAS administrators are very inefficient and prone to errors if they log in the management interface of each NAS server to perform the management work. The MMC (Microsoft Management Console) is a Management platform, and can provide a unified and normative Management interface and an operation platform for an administrator, that is, the NAS administrator can uniformly manage the NAS servers by using the MMC.
Currently, when a NAS administrator connects a distributed storage system through an MMC, operations such as creating a share, deleting a share, and the like are performed on the MMC, and these operations can only be effective on a single storage node to which the MMC is connected. In an actual using process, due to the situations of network failure, node server failure and the like, after a node connected to the MMC fails, the MMC needs to replace other storage nodes for connection, and for operations such as creating sharing, deleting sharing and the like which are previously performed on the failed node, an administrator needs to perform the operations again on a new node connected to the MMC.
To sum up, how to more effectively manage the distributed storage system is a technical problem that those skilled in the art are urgently required to solve, and after a node connected to the MMC fails, an operation executed before can be conveniently and effectively recovered on a new node connected to the MMC.
Disclosure of Invention
The present invention provides a method, a system, a device and a storage medium for managing a distributed storage system, so as to more effectively manage the distributed storage system, and after a node connected to an MMC fails, the previously executed operation can be conveniently and effectively recovered on a new node connected to the MMC.
In order to solve the technical problems, the invention provides the following technical scheme:
a management method of a distributed storage system is applied to MMC and comprises the following steps:
setting a virtual IP for the distributed storage system, and connecting the distributed storage system through the virtual IP;
when the operation aiming at the distributed storage system is executed on the connected nodes, the operation information is saved in a configuration file;
synchronizing the configuration file to each node in the distributed storage system;
and when the node connected currently fails, performing node switching, and automatically executing corresponding operation aiming at the distributed storage system based on the configuration file stored in the node after switching.
Preferably, when it is determined that the currently connected node fails, the node switching includes:
and when the node connected at present is determined to be in fault, switching the nodes without sensing of the client side through the drift of the virtual IP.
Preferably, the determining that the currently connected node fails includes:
and when connection timeout or connection failure occurs, determining that the currently connected node fails.
Preferably, the executing, on the connected node, an operation for the distributed storage system includes:
performing a share creation operation, a share deletion operation, or a share configuration operation for the distributed storage system on the connected nodes.
Preferably, after determining that the currently connected node fails, the method further includes:
when the connection with the node is restored, determining that the node is restored to normal and adding the node back to the distributed storage cluster.
Preferably, after determining that the currently connected node fails, the method further includes:
and recording and storing the fault event.
Preferably, the setting of the virtual IP for the distributed storage system includes:
virtual IP is set for the distributed storage system through the CTDB service.
A management system of a distributed storage system is applied to MMC and comprises the following components:
the virtual IP connection module is used for setting a virtual IP for the distributed storage system and connecting the distributed storage system through the virtual IP;
the configuration file storage module is used for storing the operation information in a configuration file when the operation aiming at the distributed storage system is executed on the connected nodes;
the configuration file synchronization module is used for synchronizing the configuration files to all nodes in the distributed storage system;
and the node switching execution module is used for switching the nodes when the fault of the currently connected node is determined, and automatically executing corresponding operation aiming at the distributed storage system based on the configuration file stored in the switched node.
A management apparatus of a distributed storage system, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the management method of the distributed storage system as described above.
A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the management method of a distributed storage system as described above.
By applying the technical scheme provided by the embodiment of the invention, the management method of the distributed storage system can be applied to MMC and comprises the following steps: setting a virtual IP for the distributed storage system, and connecting the distributed storage system through the virtual IP; when the operation aiming at the distributed storage system is executed on the connected nodes, the operation information is saved in a configuration file; synchronizing the configuration file to each node in the distributed storage system; and when the node connected currently fails, switching the nodes, and automatically executing corresponding operation aiming at the distributed storage system based on the configuration file stored in the node after switching.
Specifically, in the scheme of the present application, through setting of the virtual IP and synchronization of the configuration file, after a node connected to the MMC fails, the operation executed before can be conveniently and effectively recovered on a new node connected to the MMC.
In the scheme of the application, the virtual IP can be set for the distributed storage system, the distributed storage system is connected through the virtual IP, and due to the fact that the virtual IP is set, when the node connected at present is determined to be in fault, node switching can be automatically carried out, manual execution of workers is not needed, and therefore work efficiency is favorably improved. When the operation for the distributed storage system is executed on the connected node, the operation information is stored in the configuration file, that is, each operation executed before can be effectively reflected through the configuration file. And, the present application synchronizes the configuration file to each node in the distributed storage system. Therefore, when it is determined that the currently connected node fails, after the node is switched, based on the configuration file stored in the node after switching, the corresponding operation for the distributed storage system can be automatically executed. It can be seen that when the operation executed before is recovered on the new node connected with the MMC, the operation is automatically executed based on the configuration file in the node, so that the operation is convenient and efficient, and the working efficiency is effectively improved.
To sum up, the scheme of the application can effectively manage the distributed storage system, and after the node connected with the MMC breaks down, the operation executed before can be conveniently and effectively recovered on the new node connected with the MMC.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flowchart illustrating an embodiment of a method for managing a distributed storage system according to the present invention;
FIG. 2 is a schematic diagram of a management system of a distributed storage system according to the present invention;
fig. 3 is a schematic structural diagram of a management device of a distributed storage system according to the present invention.
Detailed Description
The core of the invention is to provide a management method of a distributed storage system, which can effectively manage the distributed storage system and can conveniently and effectively recover the previously executed operation on a new node connected with an MMC after the node connected with the MMC has a fault.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It should be apparent that the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating an implementation of a management method of a distributed storage system according to the present invention, where the management method of the distributed storage system can be applied to an MMC, and includes the following steps:
step S101: and setting a virtual IP for the distributed storage system, and connecting the distributed storage system through the virtual IP.
Specifically, it is considered that the purpose of the present application is to automatically resume operations executed before on a new node connected to the MMC after a node connected to the MMC fails, so that after the node connected to the MMC fails, switching of the node should be automatically performed to improve the execution efficiency of the scheme and reduce the workload of related workers. In order to effectively perform automatic switching of nodes in subsequent steps, the nodes are connected by using the virtual IP. And setting a virtual IP for the distributed storage system, and connecting the distributed storage system through the virtual IP.
In a specific embodiment of the present invention, the setting of a virtual IP for a distributed storage system described in step S101 may specifically include:
virtual IP is set for the distributed storage system through the CTDB service.
In this embodiment, considering that in the current distributed storage system, a CTDB (Cluster Trivial Database) service is usually disposed on each node, and the CTDB may support Cluster implementation using databases such as Samba, NFS, HTTPD, ISCSI, WINBIND, and the like, and may provide a Cluster function on the top level of the file system of the Cluster, manage node members, perform recovery/failover, IP reallocation, and monitor the state of the management service. Therefore, in such an embodiment, the virtual IP can be conveniently and efficiently provided through the CTDB service, that is, the virtual IP can be conveniently set for the distributed storage system through the CTDB service.
Of course, in other embodiments, other manners besides the CTDB service may be adopted as long as the virtual IP can be effectively set for the distributed storage system, so that the MMC is connected to the distributed storage system through the virtual IP, and the implementation of the present invention is not affected.
Step S102: when an operation for the distributed storage system is performed on the connected node, the operation information is saved in a configuration file.
When an operation for the distributed storage system is performed on a connected node, the operation information needs to be saved in a configuration file.
For example, in a specific embodiment of the present invention, the performing the operation on the connected node in step S102 for the distributed storage system may specifically include:
a share creation operation, a share deletion operation, or a share configuration operation for the distributed storage system is performed on the connected nodes.
The operation of the share creation means data sharing for the distributed storage system, and it is understood that information such as specific shared data content, user level permitted to access the shared data, and the like may be set when the share creation operation is performed. And the shared deletion operation means that the created shared is deleted. The sharing configuration operation means that the configuration is adjusted for the created share, for example, the adjustment of the user level allowed to access the share is performed in a specific occasion, for example, the user access of any level is allowed before the adjustment, and only the high-level user is allowed to access after the adjustment.
Of course, in other specific embodiments, besides the share creation operation, the share deletion operation, and the share configuration operation, other types of operations for the distributed storage system may be executed on the connected nodes, and the operations may be set and selected according to actual needs, without affecting the implementation of the present invention.
When an operation for the distributed storage system is performed on a connected node, operation information needs to be saved in a configuration file, that is, each time an operation is performed, an update of the configuration file needs to be performed. For example, in a case where a share creation operation for the distributed storage system is performed on a connected node, for example, a share a is created, after the share a is created, the operation needs to be recorded in a configuration file. For example, if the sharing B is created later, after the sharing B is created, the operation also needs to be recorded in the configuration file, that is, the configuration file at this time may reflect that the MMC performs 2 times of sharing creation operations for the distributed storage system on the connected node, and creates the sharing a and the sharing B respectively.
Step S103: the configuration file is synchronized to each node in the distributed storage system.
In step S102, the operation information is stored in a configuration file, that is, a configuration file of a node to which the MMC is currently connected is stored, so that after the node switching is performed, other nodes can reproduce an operation that was previously performed on the failed node, and thus the scheme of the present application performs synchronization of the configuration file. That is, the configuration file is synchronized to each node other than the node to which the MMC is currently connected, so that the configuration file is stored in each node in the distributed storage system.
When the configuration file is synchronized to each node in the distributed storage system, the synchronization of the configuration file may be generally performed periodically, that is, the synchronization of the configuration file is triggered at intervals. For example, in an embodiment of the present invention, it may be selected that the synchronization of the configuration file is performed once each time the node to which the MMC is currently connected performs an update of the configuration file.
Step S104: and when the node connected currently fails, switching the nodes, and automatically executing corresponding operation aiming at the distributed storage system based on the configuration file stored in the node after switching.
When it is determined that the currently connected node has a fault, the node needs to be switched. As described above, the present application is directed to automatically resume operations executed before on a new node connected to an MMC after a failure occurs in the node connected to the MMC, so that after the failure occurs in the node connected to the MMC, node switching should be automatically performed to improve the execution efficiency of a scheme and reduce the workload of related workers.
In the foregoing step, in order to enable the automatic switching of the nodes in step S104, the nodes are connected using virtual IP. And setting a virtual IP for the distributed storage system, and connecting the distributed storage system through the virtual IP.
Because the distributed storage system is connected through the virtual IP, when the node connected at present is determined to be in fault, the node switching without perception of the client can be carried out through the drift of the virtual IP. That is, in an embodiment of the present invention, when it is determined that the currently connected node fails, the node switching performed in step S104 may specifically include: and when the node connected at present is determined to be in fault, switching the nodes without sensing of the client side through the drift of the virtual IP.
Due to the drift of the virtual IP, the node switching without sensing of the client can be carried out, so that the use experience of a user is improved.
In addition, it should be noted that, when performing the node switching without client perception through the drift of the virtual IP, the virtual IP may be kept unchanged, and only the corresponding relationship between the virtual IP and the corresponding node needs to be changed, for example, the MMC is originally connected to the node a of the distributed storage system through the virtual IP, and after the node a fails, the virtual IP drifts to the node B, and then the MMC may be connected to the node B of the distributed storage system through the virtual IP.
When the node connected currently is determined to be in fault, after the node is switched, due to the operation of synchronizing the previous configuration files, each node in the distributed storage system stores the configuration files, so that the corresponding operation aiming at the distributed storage system can be automatically executed based on the configuration files stored in the switched nodes. Namely, each operation originally executed in the fault node by the MMC is reproduced in the node after switching, and the process is automatically performed based on the configuration file in the node after switching, so that manual operation of workers is not needed, errors are not easy to occur, and the work efficiency is favorably ensured.
For example, in an embodiment of the present invention, determining that the node currently connected to the MMC has a fault may specifically include:
and when the connection timeout or connection failure occurs, determining that the currently connected node fails.
In this embodiment, if a connection timeout occurs or a connection failure occurs, it indicates that a network failure may occur or a node server itself fails, and therefore, both the cases may be considered as a node failure, that is, when a connection timeout occurs or a connection failure occurs, it may be determined that a node currently connected fails.
The detection of connection timeout or connection failure is simple and convenient, so the implementation mode is also a detection and judgment mode of node faults which is commonly used in practical application. Of course, in other embodiments, other types of node fault detection and determination manners may be used according to actual needs, and the implementation of the present invention is not affected. For example, in a specific situation, the node server itself has a certain fault detection function, and when the node server finds itself abnormal through self-detection, a prompt message can be output, so that the MMC regards the node as a faulty node, and can inform a worker to perform abnormal processing in time.
In an embodiment of the present invention, after determining that the currently connected node fails, the method may further include:
and when the connection with the node is restored again, determining that the node is restored to be normal and adding the node back to the distributed storage cluster.
In the embodiment, it is considered that when a node failure occurs in some occasions, the MMC determines that the currently connected node fails due to temporary reasons such as network fluctuation and the like instead of the failure of the node server, so that if the connection with the node is restored again, it can be determined that the node is restored to be normal in the embodiment, and the node can be added back to the distributed storage cluster, so as to effectively guarantee the performance of the distributed storage cluster.
Further, in an embodiment of the present invention, after determining that the currently connected node fails, the method may further include: and recording and storing the fault event. For example, the occurrence time of the fault event and the information such as the serial number of the fault server can be recorded, so that the subsequent maintenance work of the staff is facilitated, and the related records of the fault event are also beneficial to assisting the staff to perform the work such as analysis, troubleshooting and the like of the fault reason.
The management method of the distributed storage system provided by the embodiment of the invention can be applied to MMC and comprises the following steps: setting a virtual IP for the distributed storage system, and connecting the distributed storage system through the virtual IP; when the operation aiming at the distributed storage system is executed on the connected nodes, the operation information is saved in a configuration file; synchronizing the configuration file to each node in the distributed storage system; and when the node connected currently fails, switching the nodes, and automatically executing corresponding operation aiming at the distributed storage system based on the configuration file stored in the node after switching.
Specifically, in the scheme of the present application, through setting of the virtual IP and synchronization of the configuration file, after a node connected to the MMC fails, an operation executed before the node connected to the MMC can be conveniently and effectively recovered on a new node connected to the MMC.
In the scheme of the application, the virtual IP can be set for the distributed storage system, the distributed storage system is connected through the virtual IP, and due to the fact that the virtual IP is set, when the node connected at present is determined to be in fault, node switching can be automatically carried out, manual execution of workers is not needed, and therefore work efficiency is favorably improved. When the operation for the distributed storage system is executed on the connected node, the operation information is stored in the configuration file, that is, each operation executed before can be effectively reflected through the configuration file. And, the present application synchronizes the configuration file to each node in the distributed storage system. Therefore, when it is determined that the currently connected node fails, after the node is switched, based on the configuration file stored in the node after switching, the corresponding operation for the distributed storage system can be automatically executed. It can be seen that when the operation executed before is recovered on a new node connected by the MMC, the operation is automatically executed based on the configuration file in the node, so that the operation is convenient and efficient, and the working efficiency is effectively improved.
To sum up, the scheme of the application can effectively manage the distributed storage system, and after the node connected with the MMC breaks down, the operation executed before can be conveniently and effectively recovered on the new node connected with the MMC.
Corresponding to the above method embodiment, an embodiment of the present invention further provides a management system of a distributed storage system, and a management system of a distributed storage system described below and a management method of a distributed storage system described above may be referred to correspondingly.
Referring to fig. 2, a schematic structural diagram of a management system of a distributed storage system according to the present invention is applied to an MMC, and includes the following modules:
a virtual IP connection module 201, configured to set a virtual IP for the distributed storage system, and connect the distributed storage system through the virtual IP;
a configuration file saving module 202, configured to save the operation information in a configuration file when an operation for the distributed storage system is executed on a connected node;
a configuration file synchronization module 203, configured to synchronize configuration files to nodes in the distributed storage system;
and the node switching executing module 204 is configured to perform node switching when it is determined that the currently connected node fails, and automatically execute a corresponding operation for the distributed storage system based on a configuration file stored in the node after the node switching.
In a specific embodiment of the present invention, when determining that a node currently connected fails, the node switching performing module 204 performs node switching, including:
and when the node connected at present is determined to be in fault, switching the nodes without sensing of the client side through the drift of the virtual IP.
In a specific embodiment of the present invention, the determining, by the node switching execution module 204, that the currently connected node has a fault includes:
and when the connection timeout or connection failure occurs, determining that the currently connected node fails.
In a specific embodiment of the present invention, the configuration file saving module 202 executes operations on the connected nodes for the distributed storage system, including:
a share creation operation, a share deletion operation, or a share configuration operation for the distributed storage system is performed on the connected nodes.
In an embodiment of the present invention, after determining that the currently connected node fails, the node switching execution module 204 is further configured to:
and when the connection with the node is restored again, determining that the node is restored to be normal and adding the node back to the distributed storage cluster.
In an embodiment of the present invention, after determining that the currently connected node fails, the node switching execution module 204 is further configured to:
and recording and storing the fault event.
In an embodiment of the present invention, the virtual IP connection module 201 sets a virtual IP for the distributed storage system, including:
virtual IP is set for the distributed storage system through the CTDB service.
The management method of the distributed storage system provided by the embodiment of the invention can be applied to MMC and comprises the following steps: a virtual IP connection module 201, configured to set a virtual IP for the distributed storage system, and connect the distributed storage system through the virtual IP; a configuration file saving module 202, configured to save operation information in a configuration file when an operation for the distributed storage system is executed on a connected node; a configuration file synchronization module 203, configured to synchronize configuration files to nodes in the distributed storage system; and the node switching execution module 204 is configured to, when it is determined that the currently connected node fails, perform node switching, and automatically execute a corresponding operation for the distributed storage system based on a configuration file stored in the node after the switching.
Specifically, in the scheme of the present application, through setting of the virtual IP and synchronization of the configuration file, after a node connected to the MMC fails, an operation executed before the node connected to the MMC can be conveniently and effectively recovered on a new node connected to the MMC. In the scheme of this application, can set up virtual IP for distributed storage system to through virtual IP connection distributed storage system, owing to set up virtual IP, consequently when determining the node trouble that connects at present, can carry out the node switch automatically, need not staff's manual execution, consequently be favorable to improving work efficiency. When the operation for the distributed storage system is executed on the connected node, the operation information is stored in the configuration file, that is, each operation executed before can be effectively reflected through the configuration file. And, the present application synchronizes the configuration file to each node in the distributed storage system. Therefore, when it is determined that the currently connected node fails, after the node is switched, based on the configuration file stored in the node after switching, the corresponding operation for the distributed storage system can be automatically executed. It can be seen that when the operation executed before is recovered on the new node connected with the MMC, the operation is automatically executed based on the configuration file in the node, so that the operation is convenient and efficient, and the working efficiency is effectively improved. To sum up, the scheme of the application can effectively manage the distributed storage system, and after the node connected with the MMC breaks down, the operation executed before can be conveniently and effectively recovered on the new node connected with the MMC.
Corresponding to the above embodiments of the management method of the distributed storage system and the management system of the distributed storage system, the embodiments of the present invention further provide a management apparatus of the distributed storage system and a computer-readable storage medium, and a management apparatus of the distributed storage system and a computer-readable storage medium described below, which may be referred to in correspondence with the above described management method and system of the distributed storage system.
The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the management method of the distributed storage system as in any of the embodiments described above. The computer-readable storage medium referred to herein may include 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.
Referring to fig. 3, a schematic structural diagram of a management device of a distributed storage system according to the present invention is shown, where the management device of the distributed storage system may include:
a memory 301 for storing a computer program;
a processor 302 for executing a computer program for implementing the steps of the management method of the distributed storage system as in any of the embodiments described above.
By applying the management device and the computer readable storage medium of the distributed storage system provided by the embodiment of the invention, the management of the distributed storage system can be effectively carried out, and after the node connected with the MMC has a fault, the operation executed before can be conveniently and effectively recovered on a new node connected with the MMC.
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 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 phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
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 system, the device and the storage medium disclosed by the embodiment correspond 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. Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The principle and the embodiment of the present invention are explained by applying specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present invention. It should be noted that, for those skilled in the art, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall into the protection scope of the present invention.

Claims (10)

1. A management method of a distributed storage system is applied to MMC and is characterized by comprising the following steps:
setting a virtual IP for a distributed storage system, and connecting the distributed storage system through the virtual IP;
when the operation aiming at the distributed storage system is executed on the connected nodes, the operation information is saved in a configuration file;
synchronizing the configuration file to each node in the distributed storage system;
and when the node connected currently fails, switching the nodes, and automatically executing corresponding operation aiming at the distributed storage system based on the configuration file stored in the node after switching.
2. The method for managing a distributed storage system according to claim 1, wherein the performing a node switch when it is determined that the currently connected node has a failure comprises:
and when the fault of the node connected currently is determined, switching the nodes which are not sensed by the client through the drift of the virtual IP.
3. The method for managing a distributed storage system according to claim 1, wherein said determining that the currently connected node is faulty comprises:
and when connection timeout or connection failure occurs, determining that the currently connected node fails.
4. The method for managing a distributed storage system according to claim 1, wherein the performing, on the connected node, an operation for the distributed storage system includes:
performing a share creation operation, a share deletion operation, or a share configuration operation for the distributed storage system on the connected nodes.
5. The method for managing a distributed storage system according to claim 1, further comprising, after determining that the currently connected node has failed:
when the connection with the node is restored, determining that the node is restored to normal and adding the node back to the distributed storage cluster.
6. The method for managing a distributed storage system according to claim 1, further comprising, after determining that the currently connected node has failed:
and recording and storing the fault event.
7. The method for managing the distributed storage system according to any one of claims 1 to 6, wherein the setting of the virtual IP for the distributed storage system includes:
virtual IP is set for the distributed storage system through the CTDB service.
8. The management system of a distributed storage system, applied in MMC, comprises:
the virtual IP connection module is used for setting a virtual IP for the distributed storage system and connecting the distributed storage system through the virtual IP;
the configuration file storage module is used for storing the operation information in a configuration file when the operation aiming at the distributed storage system is executed on the connected nodes;
the configuration file synchronization module is used for synchronizing the configuration files to all nodes in the distributed storage system;
and the node switching execution module is used for switching the nodes when the node connected currently is determined to be in fault, and automatically executing corresponding operation aiming at the distributed storage system based on the configuration file stored in the switched node.
9. A management apparatus of a distributed storage system, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the management method of the distributed storage system according to any of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the management method of the distributed storage system according to any one of claims 1 to 7.
CN202211295513.0A 2022-10-21 2022-10-21 Management method, system, equipment and storage medium of distributed storage system Pending CN115665178A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211295513.0A CN115665178A (en) 2022-10-21 2022-10-21 Management method, system, equipment and storage medium of distributed storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211295513.0A CN115665178A (en) 2022-10-21 2022-10-21 Management method, system, equipment and storage medium of distributed storage system

Publications (1)

Publication Number Publication Date
CN115665178A true CN115665178A (en) 2023-01-31

Family

ID=84990307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211295513.0A Pending CN115665178A (en) 2022-10-21 2022-10-21 Management method, system, equipment and storage medium of distributed storage system

Country Status (1)

Country Link
CN (1) CN115665178A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140025770A1 (en) * 2012-07-17 2014-01-23 Convergent.Io Technologies Inc. Systems, methods and devices for integrating end-host and network resources in distributed memory
CN105554130A (en) * 2015-12-18 2016-05-04 深圳中兴网信科技有限公司 Distributed storage system-based NameNode switching method and switching device
CN110493060A (en) * 2019-08-28 2019-11-22 北京浪潮数据技术有限公司 A kind of virtual IP address distribution method and relevant apparatus
CN111858076A (en) * 2020-07-14 2020-10-30 苏州浪潮智能科技有限公司 Target daemon process synchronization method and device
CN113315845A (en) * 2021-07-28 2021-08-27 阿里云计算有限公司 Data transmission method and device and distributed storage system
CN113760843A (en) * 2021-08-18 2021-12-07 福建天泉教育科技有限公司 Site deployment method and terminal
CN114553900A (en) * 2022-02-18 2022-05-27 苏州浪潮智能科技有限公司 Distributed block storage management system and method and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140025770A1 (en) * 2012-07-17 2014-01-23 Convergent.Io Technologies Inc. Systems, methods and devices for integrating end-host and network resources in distributed memory
CN105554130A (en) * 2015-12-18 2016-05-04 深圳中兴网信科技有限公司 Distributed storage system-based NameNode switching method and switching device
CN110493060A (en) * 2019-08-28 2019-11-22 北京浪潮数据技术有限公司 A kind of virtual IP address distribution method and relevant apparatus
CN111858076A (en) * 2020-07-14 2020-10-30 苏州浪潮智能科技有限公司 Target daemon process synchronization method and device
CN113315845A (en) * 2021-07-28 2021-08-27 阿里云计算有限公司 Data transmission method and device and distributed storage system
CN113760843A (en) * 2021-08-18 2021-12-07 福建天泉教育科技有限公司 Site deployment method and terminal
CN114553900A (en) * 2022-02-18 2022-05-27 苏州浪潮智能科技有限公司 Distributed block storage management system and method and electronic equipment

Similar Documents

Publication Publication Date Title
KR100491541B1 (en) A contents synchronization system in network environment and a method therefor
CN107291787B (en) Main and standby database switching method and device
US9785691B2 (en) Method and apparatus for sequencing transactions globally in a distributed database cluster
US7770057B1 (en) System and method for customized disaster recovery reports
US10216589B2 (en) Smart data replication recoverer
GB2478625A (en) Deleting snapshot backups for unstable virtual machine configurations
US7987394B2 (en) Method and apparatus for expressing high availability cluster demand based on probability of breach
US7506117B2 (en) Data recovery method for computer system
WO2020088533A1 (en) Disaster recovery method and apparatus for virtualization platform
CN110659158A (en) Influx DB data backup method based on dual-computer hot standby environment
CN111177122A (en) Database backup method, device, equipment and computer readable storage medium
US7152075B2 (en) System and method for removing rules from a data administration system
CN111176900A (en) Distributed storage system and data recovery method, device and medium thereof
US7401256B2 (en) System and method for highly available data processing in cluster system
CN110972497A (en) Disaster recovery method and device for virtualization platform
JP2006185108A (en) Management computer for managing data of storage system, and data management method
JP5154843B2 (en) Cluster system, computer, and failure recovery method
CN115098300B (en) Database backup method, disaster recovery method, device and equipment
CN115665178A (en) Management method, system, equipment and storage medium of distributed storage system
CN111367711A (en) Safety disaster recovery method based on super fusion data
CN113987065A (en) Database drifting method, system, electronic device and storage medium
Cisco Database Administration
Cisco Database Administration
Cisco Database Administration
Cisco Database Administration

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