A distributed storage cluster deployment method, device, equipment and storage medium

By collecting and configuring disk information and deploying distributed storage clusters based on global names, the stability problem of distributed storage clusters is solved, the stability and reliability of the system are improved, and configuration chaos and failures are prevented.

CN118349192BActive Publication Date: 2024-10-15SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410780968.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-10-15
Estimated Expiration
2044-06-18

AI Technical Summary

Technical Problem

Distributed storage clusters can easily lead to system instability when faced with environmental fluctuations and hardware failures, leading to data migration and performance degradation, affecting service availability.

Method used

By collecting the initial information of the disk, we obtain the configuration instructions that match the business requirements, determine the disk status based on the global name, and deploy it to form a stable distributed storage cluster to prevent configuration chaos and reduce system failures.

Benefits of technology

It improves the stability and reliability of distributed storage clusters, reduces system failures, and ensures data integrity and system operation security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118349192B_ABST
    Figure CN118349192B_ABST
Patent Text Reader

Abstract

The present application discloses a distributed storage cluster deployment method, device, equipment and storage medium, which relates to the field of computer technology and is applied to deployment tools, including: collecting initial disk information of several disks; the initial disk information includes a global universal name; obtaining configuration instructions to configure the initial disk information to obtain target disk configuration information; wherein the configuration instructions are instructions for the initial disk information that match preset business requirements; determining the current disk status of the disk corresponding to the target disk configuration information based on the global universal name, and marking the disk as a target disk when the current disk status characterizes that it is not occupied; performing deployment operations on the target disk based on the global universal name and the target disk configuration information to obtain a distributed storage cluster. In this way, the present application deploys a distributed storage cluster based on the global universal name of the disk, which can prevent configuration confusion, reduce system failures, and improve stability and reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a distributed storage cluster deployment method, device, equipment and storage medium. Background Art

[0002] The large scale of distributed storage clusters increases the sensitivity of the system to environmental fluctuations. Even small changes may cause major security risks. In this context, it is particularly important to ensure the stability of data disks. The stability of data disks involves two aspects: hardware and software. Although the hardware level depends largely on the manufacturer's technology and quality, there is still a huge space for exploration in software management and policy optimization. For software level optimization, achieving efficient migration of small-scale data has become one of the key strategies to improve cluster stability. The currently commonly used deployment method that relies on disk drive letters is prone to unnecessary large-scale data migration when the operating system restarts or disk mapping changes. This not only increases the instability of the system, but also may cause a sharp decline in system performance when encountering emergencies such as hard disk failures, which is manifested as operation delays. In severe cases, it may even cause I / O (Input / Output) blocking, directly hindering users' data read and write operations, seriously affecting service availability, and posing a major production accident hazard.

[0003] It can be seen that how to improve the stability of the distributed storage cluster is a problem to be solved in this field. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a distributed storage cluster deployment method, device, equipment and storage medium. Deploying a distributed storage cluster based on the global universal name of the disk can prevent configuration confusion, reduce system failures, and improve stability and reliability. The specific scheme is as follows:

[0005] In a first aspect, the present application provides a distributed storage cluster deployment method, which is applied to a deployment tool, including:

[0006] Collecting initial disk information of a plurality of disks; the initial disk information includes a global universal name;

[0007] Acquire a configuration instruction for the initial disk information, configure the initial disk information based on the configuration instruction, and obtain corresponding target disk configuration information; wherein the configuration instruction is an instruction for the initial disk information that matches the preset business requirements;

[0008] Determining the current disk status of a plurality of disks corresponding to the target disk configuration information based on the global universal name, and marking the corresponding disk as a target disk when the current disk status indicates that it is not occupied;

[0009] A deployment operation is performed on the target disk based on the global universal name and the target disk configuration information to obtain a distributed storage cluster matching the target disk configuration information.

[0010] Optionally, the collecting of initial disk information of a plurality of disks includes:

[0011] Collecting first initial disk information of disks corresponding to each node configuration information according to node configuration information of a preset storage node;

[0012] The first initial disk information of the plurality of disks corresponding to the node configuration information is integrated to obtain second initial disk information for the plurality of disks in a YAML format.

[0013] Optionally, the obtaining of a configuration instruction for the initial disk information includes:

[0014] The second initial disk information is displayed through a preset human-computer interaction page to obtain configuration instructions for the second initial disk information input by relevant personnel.

[0015] Optionally, before determining the current disk status of the plurality of disks corresponding to the target disk configuration information based on the global universal name, the method further includes:

[0016] Verify the target disk configuration information based on preset verification rules to obtain corresponding verification results; the preset verification rules include integrity verification rules and rationality verification rules;

[0017] If the verification result indicates that the verification has failed, a verification alarm operation is triggered to remind relevant personnel to reconfigure the target disk configuration information.

[0018] Optionally, determining the current disk status of a plurality of disks corresponding to the target disk configuration information based on the global universal name, and marking the corresponding disk as a target disk when the current disk status indicates that it is not occupied, includes:

[0019] If the verification result indicates that the verification is successful, collecting first current disk states of the plurality of disks;

[0020] Comparing the target disk configuration information and the first current disk status based on the global universal name to determine the second current disk status of the plurality of disks corresponding to the target disk configuration information;

[0021] The related disk represented by the second current disk status which is not occupied is marked as a target disk.

[0022] Optionally, the performing a deployment operation on the target disk based on the global universal name and the target disk configuration information to obtain a distributed storage cluster matching the target disk configuration information includes:

[0023] Based on the batch processing technology, the target disk is deployed according to the global universal name and the target disk configuration information to obtain a distributed storage cluster matching the target disk configuration information.

[0024] Optionally, after obtaining the distributed storage cluster matching the target disk configuration information, the method further includes:

[0025] The distributed storage cluster is troubleshooted based on the global universal name at a preset time period to locate the related faulty disk.

[0026] In a second aspect, the present application provides a distributed storage cluster deployment device, which is applied to a deployment tool, including:

[0027] An information collection module, used for collecting initial disk information of a plurality of disks; the initial disk information includes a global universal name;

[0028] An information adjustment module, used for obtaining a configuration instruction for the initial disk information, so as to configure the initial disk information based on the configuration instruction to obtain corresponding target disk configuration information; wherein the configuration instruction is an instruction for the initial disk information that matches a preset business requirement;

[0029] a disk marking module, configured to determine the current disk status of a plurality of disks corresponding to the target disk configuration information based on the global universal name, and mark the corresponding disk as a target disk when the current disk status indicates that the disk is not occupied;

[0030] A deployment module is used to perform a deployment operation on the target disk based on the global universal name and the target disk configuration information to obtain a distributed storage cluster matching the target disk configuration information.

[0031] In a third aspect, the present application provides an electronic device, including:

[0032] Memory, used to store computer programs;

[0033] A processor is used to execute the computer program to implement the distributed storage cluster deployment method as described above.

[0034] In a fourth aspect, the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the distributed storage cluster deployment method as described above.

[0035] It can be seen that the deployment tool in this application first collects the initial disk information of several disks; the initial disk information includes a global universal name; then obtains the configuration instructions for the initial disk information, and configures the initial disk information based on the configuration instructions to obtain the corresponding target disk configuration information; wherein the configuration instructions are instructions for the initial disk information that match the preset business requirements; based on the global universal name, the current disk status of several disks corresponding to the target disk configuration information is determined, and the corresponding disk is marked as a target disk when the current disk status representation is not occupied; the target disk is deployed based on the global universal name and the target disk configuration information to obtain a distributed storage cluster that matches the target disk configuration information. In this way, the present application uses the global universal name of the disk as a unique identifier to improve accuracy and efficiency in the process of deploying a distributed storage cluster; and the distributed storage cluster finally deployed based on the global universal name can effectively prevent configuration confusion, reduce system failures, and improve the stability and reliability of the distributed storage cluster. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0037] Figure 1 A flow chart of a distributed storage cluster deployment method disclosed in this application;

[0038] Figure 2 A specific disk information collection flow chart disclosed in this application;

[0039] Figure 3 A specific distributed storage cluster deployment method flow chart disclosed in this application;

[0040] Figure 4 A schematic diagram of the structure of a distributed storage cluster deployment device disclosed in this application;

[0041] Figure 5 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0043] See also Figure 1 As shown, an embodiment of the present invention discloses a distributed storage cluster deployment method, which is applied to a deployment tool, including:

[0044] Step S11, collecting initial disk information of a number of disks; the initial disk information includes a global universal name.

[0045] In an embodiment of the present application, during the deployment of a distributed storage cluster, the deployment tool first needs to perform an environmental scan to collect information about all disks. In a specific embodiment, the collection of initial disk information of several disks may include: collecting the first initial disk information of each disk corresponding to the node configuration information according to the node configuration information of the preset storage node; integrating the first initial disk information of several disks corresponding to the node configuration information to obtain the second initial disk information for several disks in YAML format. Specifically, when scanning the surrounding environment, a scan may be performed according to the preset storage node to collect information about the disk corresponding to the relevant node configuration information; the collected disk information includes but is not limited to the disk's WWNID (World Wide Name Identifier, global universal name), type (distinguishing between solid-state hard disks and mechanical hard disks), capacity size, and drive letter and other key information to obtain the first initial disk information. Further, in order to facilitate the relevant personnel to view, the first initial disk information can be processed and integrated into a structured YAML (language for writing configuration files) format file, i.e., the second initial disk information.

[0046] In a specific embodiment, Figure 2 As shown in the figure, in the process of generating the YAML format file of the disk, the node IP of all storage nodes is first obtained, and the configuration details of the storage nodes can be pre-set; then, each storage node is traversed in turn based on the node IP to obtain the disk's WWNID, disk size, drive letter and other information; after collecting the disk information of all storage nodes, the results are summarized; by cleaning, deduplicating and standardizing these data, the deployment tool automatically generates a YAML format configuration file, which fully records all disk resource configuration details.

[0047] Step S12, obtaining configuration instructions for the initial disk information, configuring the initial disk information based on the configuration instructions, and obtaining corresponding target disk configuration information; wherein the configuration instructions are instructions for the initial disk information that match preset business requirements.

[0048] In this embodiment, the deployment tool can obtain the configuration instruction for the second initial disk information of the above embodiment; then configure the second initial disk information based on the configuration instruction to obtain the target disk configuration information for deploying the distributed storage cluster. The configuration instruction is a configuration instruction for the disk information input by the staff according to the preset business requirements or actual business requirements.

[0049] In a specific embodiment, obtaining the configuration instructions for the initial disk information may include: displaying the second initial disk information through a preset human-computer interaction page to obtain the configuration instructions for the second initial disk information input by relevant personnel. Specifically, after obtaining the relevant disk information through the above steps, the obtained second initial disk information can be displayed through a preset human-computer interaction page, and the relevant staff can input the configuration instructions for the disk information after viewing the second initial disk information. In a specific embodiment, the relevant staff can configure the disk information required for deploying a distributed storage cluster according to actual business needs or resource planning. Accordingly, the staff can edit the YAML file to remove unnecessary disk entries to ensure the effective use of resources.

[0050] Step S13: determining the current disk status of several disks corresponding to the target disk configuration information based on the global universal name, and marking the corresponding disk as a target disk when the current disk status indicates that it is not occupied.

[0051] In an embodiment of the present application, after the corresponding target disk configuration information is obtained through the configuration instruction configuration through the above steps, the current disk status of several disks corresponding to the target disk configuration information can be determined according to the global universal name of the disk; by judging the current disk status, the disk that is not occupied can be marked as the target disk.

[0052] In a specific embodiment, before determining the current disk status of several disks corresponding to the target disk configuration information based on the global universal name, it may also include: verifying the target disk configuration information based on preset verification rules to obtain corresponding verification results; the preset verification rules include integrity verification rules and rationality verification rules; if the verification result indicates that the verification has failed, a verification alarm operation is triggered to remind relevant personnel to reconfigure the target disk configuration information. Specifically, in order to ensure the accuracy of the target disk configuration information processed by the configuration instruction, the target disk configuration information can be verified by preset verification rules to verify the logical integrity of the target disk configuration information and detect the rationality of the disk allocation. Furthermore, if the verification result indicates that the verification has failed, a corresponding alarm operation can be triggered to remind relevant staff to handle the target disk configuration information in a timely manner.

[0053] In a specific embodiment, determining the current disk status of several disks corresponding to the target disk configuration information based on the global universal name, and marking the corresponding disk as a target disk when the current disk status indicates that it is not occupied, can include: if the verification result indicates that the verification is successful, collecting the first current disk status of several disks; comparing the target disk configuration information and the first current disk status based on the global universal name to determine the second current disk status of several disks corresponding to the target disk configuration information; marking the relevant disks whose second current disk status indicates that they are not occupied as target disks. Specifically, if the target disk configuration information is verified successfully, the first current disk status of several local disks can be collected, and the first current disk status includes whether the disk has a file system, partition status or logical volume configuration, etc.; then comparing the target disk configuration information and the collected first current disk status according to the global universal name of the disk, confirming the consistency of the disk identity, and determining the second current disk status of several disks corresponding to the target disk configuration information; selecting a disk in an unoccupied or initialized state from the second current disk status as a target disk for deploying a distributed storage cluster.

[0054] Step S14: performing a deployment operation on the target disk based on the global universal name and the target disk configuration information to obtain a distributed storage cluster matching the target disk configuration information.

[0055] In this embodiment, the target disk and target disk configuration information ultimately used to deploy a distributed storage cluster can be obtained through the above steps; then, based on the target disk configuration information and the global universal name of the disk, the storage layout of the relevant target disk can be configured, the relevant RAID (Redundant Array of Independent Disk) structure can be established, and the storage pool can be allocated, etc., and finally a distributed storage cluster matching the target disk configuration information can be formed.

[0056] In a specific embodiment, the deployment operation is performed on the target disk based on the global universal name and the target disk configuration information to obtain a distributed storage cluster that matches the target disk configuration information, including: based on batch processing technology, the deployment operation is performed on the target disk according to the global universal name and the target disk configuration information to obtain a distributed storage cluster that matches the target disk configuration information. Specifically, the deployment tool can use a batch processing method based on the disk information and configuration information obtained in the above steps to automatically perform the deployment operation of the distributed storage cluster on the relevant disks, which can reduce manual intervention and improve the stability of the distributed storage cluster finally deployed.

[0057] In another specific embodiment, after obtaining the distributed storage cluster matching the target disk configuration information, the method may further include: troubleshooting the distributed storage cluster based on the global universal name at a preset time period to locate the related faulty disk. Specifically, after the distributed storage cluster is deployed, troubleshooting may be performed based on the global universal name of the disk at a preset time period, so that the problem disk can be quickly located and the troubleshooting time can be shortened.

[0058] It can be seen that in this way, this application uses the disk's global universal name as a unique identifier to improve accuracy and efficiency in the process of deploying a distributed storage cluster; and the distributed storage cluster finally deployed based on the global universal name can effectively prevent configuration confusion, reduce system failures, and improve the stability and reliability of the distributed storage cluster. At the same time, the WWNID precise matching mechanism embedded in the deployment tool ensures that each step of the operation is based on accurate disk identity recognition, further strengthening the integrity of the data and the stability of the system operation, and providing strong support for building a safe and efficient storage environment.

[0059] like Figure 3 As shown, the embodiment of the present application discloses a distributed storage cluster deployment method, which is applied to a deployment tool, including:

[0060] In the embodiment of the present application, the relevant staff (user) can view the YAML format configuration file that records the resource configuration details of all disks, customize the configuration strategy of the database disk and the data disk according to their own business needs and future expansion plans, and enter the configuration instructions containing WWNID and disk information. In this process, the user fully considers the performance indicators, capacity and expected workload of the disk to ensure high-speed access to the database and high reliability of data storage. For disks that are considered not to meet the current deployment requirements or performance standards after evaluation, the user has full autonomy to identify and remove them from the configuration list; this can optimize the disk resource ratio and avoid unnecessary resource idleness, thereby maximizing the efficiency and economic benefits of the storage infrastructure. After that, the user can finally customize the disk configuration plan (target disk configuration information); the deployment tool can review and start the verification process, which includes but is not limited to verifying the logical integrity of the configuration, detecting the rationality of the disk allocation, and confirming the latest and availability of the selected disk status. This series of response and comparison operations can ensure that the user's configuration instructions not only meet the technical specifications, but also seamlessly connect with the actual status of the current storage node, avoiding deployment failures or performance bottlenecks caused by mismatching or omissions.

[0061] It should be noted that in a specific embodiment, the deployment tool can also analyze the differences between the user configuration and the collected disk information through intelligent algorithms, and proactively prompt any potential conflicts or optimization suggestions, such as pointing out that certain high-load applications may be affected by insufficient allocated disk I / O performance, or suggesting rebalancing storage resources based on data access patterns. Through such an interactive feedback mechanism, it can be ensured that the entire deployment plan not only meets business requirements but also makes full use of storage resources.

[0062] Furthermore, in the initial stage of deploying a distributed storage cluster, when the deployment tool obtains the target disk configuration information, it immediately starts a built-in disk information acquisition process. This process involves communication with all storage nodes, aiming to collect the latest and detailed status information of the disks installed on these nodes in real time. This collection includes all the basic attributes of the disk, such as capacity, model, and current usage status. Subsequently, the deployment tool uses a comparison algorithm to use the disk's WWNID to match the WWNID listed in the user's target disk configuration information with the disk WWNID collected from the storage node in real time to achieve an accurate match. On the basis of ensuring the consistency of WWNID, the deployment tool further implements strict screening criteria to select those disks that meet the identification matching conditions and are not occupied by any form of partition, logical volume (LV) configuration or file system. These disks are regarded as pure resources and are suitable as the basis for the newly deployed service. Through this series of careful comparisons and screening, the deployment tool finally compiles a list of deployment candidate disks, each of which represents a disk resource that is ready to carry new deployment tasks and is not occupied by other data structures.

[0063] Accordingly, during the deployment phase of the distributed storage cluster, after summarizing and verifying all the disk details collected in the early stage, the deployment tool automatically performs a series of complex configuration operations on all disks that have been screened and meet the deployment standards based on batch processing technology. This automated deployment process deeply covers the planning and setting of the disk storage architecture, including carefully designing the storage area layout of the disk to optimize data distribution and access efficiency; and reasonably allocating storage pools to ensure dynamic balance and efficient use of resources, providing storage space that can be expanded on demand for various applications. Under this orderly operation, the originally scattered disk resources are integrated into a highly coordinated and highly available distributed storage cluster. This cluster can not only resist single point failures, ensure data persistence and service continuity, but also effectively support the needs of large-scale data processing and high concurrent access through intelligent resource management and load balancing strategies, laying a solid infrastructure foundation for the stable operation and future development of the business.

[0064] In this way, this application deploys a distributed storage cluster through the disk's WWNID and target disk configuration information, which can improve the efficiency and accuracy of the deployment process, ensure the optimal configuration and utilization of resources, avoid potential system conflicts or resource waste caused by improper configuration, and lay a solid foundation for building a stable and efficient distributed storage cluster. The entire deployment process is highly automated, which greatly reduces the burden of manual operation and maintenance operations and reduces the risk of configuration errors caused by human errors.

[0065] like Figure 4As shown, the embodiment of the present application discloses a distributed storage cluster deployment device, which is applied to a deployment tool, including:

[0066] The information collection module 11 is used to collect initial disk information of a number of disks; the initial disk information includes a global universal name;

[0067] The information adjustment module 12 is used to obtain a configuration instruction for the initial disk information, so as to configure the initial disk information based on the configuration instruction to obtain corresponding target disk configuration information; wherein the configuration instruction is an instruction for the initial disk information that matches the preset business requirements;

[0068] A disk marking module 13, configured to determine the current disk status of a plurality of disks corresponding to the target disk configuration information based on the global universal name, and mark the corresponding disk as a target disk when the current disk status indicates that the disk is not occupied;

[0069] The deployment module 14 is configured to perform a deployment operation on the target disk based on the global universal name and the target disk configuration information to obtain a distributed storage cluster matching the target disk configuration information.

[0070] It can be seen that this application uses the global universal name of the disk as a unique identifier to improve accuracy and efficiency in the process of deploying a distributed storage cluster; and the distributed storage cluster ultimately deployed based on the global universal name can effectively prevent configuration confusion, reduce system failures, and improve the stability and reliability of the distributed storage cluster.

[0071] In a specific embodiment, the information collection module 11 may include:

[0072] A first information collection unit, configured to collect first initial disk information of disks corresponding to each node configuration information according to node configuration information of a preset storage node;

[0073] The information integration unit is used to integrate the first initial disk information of the plurality of disks corresponding to the node configuration information to obtain the second initial disk information for the plurality of disks in a YAML format.

[0074] In a specific embodiment, the information adjustment module 12 may include:

[0075] An instruction acquisition unit is used to display the second initial disk information through a preset human-computer interaction page to obtain configuration instructions for the second initial disk information input by relevant personnel.

[0076] In a specific embodiment, the device may further include:

[0077] An information verification unit, used to verify the target disk configuration information based on preset verification rules to obtain corresponding verification results; the preset verification rules include integrity verification rules and rationality verification rules;

[0078] The alarm unit is used to trigger a verification alarm operation when the verification result indicates a verification failure, so as to remind relevant personnel to reconfigure the target disk configuration information.

[0079] In a specific embodiment, the disk marking module 13 may include:

[0080] A second information collection unit is used to collect first current disk states of a plurality of disks if the verification result indicates that the verification is successful;

[0081] an information comparison unit, configured to compare the target disk configuration information and the first current disk state based on the global universal name to determine second current disk states of the plurality of disks corresponding to the target disk configuration information;

[0082] The related disk represented by the second current disk status which is not occupied is marked as a target disk.

[0083] In a specific embodiment, the deployment module 14 may include:

[0084] The disk deployment unit is used to perform a deployment operation on the target disk according to the global universal name and the target disk configuration information based on batch processing technology to obtain a distributed storage cluster matching the target disk configuration information.

[0085] In another specific embodiment, the device may further include:

[0086] The fault detection unit is used to perform fault detection on the distributed storage cluster based on the global universal name according to a preset time period, so as to locate the relevant faulty disk.

[0087] Furthermore, the present application also discloses an electronic device. Figure 5 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.

[0088] Figure 5A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the distributed storage cluster deployment method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0089] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0090] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0091] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the distributed storage cluster deployment method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.

[0092] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the distributed storage cluster deployment method disclosed above is implemented. For the specific steps of the method, reference may be made to the corresponding contents disclosed in the above embodiments, and no further description will be given here.

[0093] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0094] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0095] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0096] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0097] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A distributed storage cluster deployment method, characterized in that: Applicable to deployment tools, including: Collecting initial disk information of a plurality of disks; the initial disk information includes a global universal name; Acquire a configuration instruction for the initial disk information, configure the initial disk information based on the configuration instruction, and obtain corresponding target disk configuration information; wherein the configuration instruction is an instruction for the initial disk information that matches the preset business requirements; Determining the current disk status of a plurality of disks corresponding to the target disk configuration information based on the global universal name, and marking the corresponding disk as a target disk when the current disk status indicates that it is not occupied; Performing a deployment operation on the target disk based on the global universal name and the target disk configuration information to obtain a distributed storage cluster matching the target disk configuration information; The step of performing a deployment operation on the target disk based on the global universal name and the target disk configuration information includes: Collecting real-time status information of the target disk based on the global universal name; Perform difference analysis on the real-time status information and the target disk configuration information based on a preset intelligent algorithm, and actively output disk deployment optimization suggestions for the corresponding analysis results, so as to remind relevant staff to adjust the deployment process of relevant disks based on the disk deployment optimization suggestions; Before determining the current disk status of the plurality of disks corresponding to the target disk configuration information based on the global universal name, the method further includes: Verify the target disk configuration information based on preset verification rules to obtain corresponding verification results; the preset verification rules include integrity verification rules and rationality verification rules; If the verification result indicates that the verification has failed, a verification alarm operation is triggered to remind relevant personnel to reconfigure the target disk configuration information; The step of determining the current disk status of the plurality of disks corresponding to the target disk configuration information based on the global universal name, and marking the corresponding disks as target disks when the current disk status indicates that the disks are not occupied, includes: If the verification result indicates that the verification is successful, collecting first current disk states of the plurality of disks; Comparing the target disk configuration information and the first current disk status based on the global universal name to determine the second current disk status of the plurality of disks corresponding to the target disk configuration information; The related disk represented by the second current disk status which is not occupied is marked as a target disk.

2. The distributed storage cluster deployment method according to claim 1, characterized in that: The collecting of initial disk information of a plurality of disks includes: Collecting first initial disk information of disks corresponding to each node configuration information according to node configuration information of a preset storage node; The first initial disk information of the plurality of disks corresponding to the node configuration information is integrated to obtain second initial disk information for the plurality of disks in a YAML format.

3. The distributed storage cluster deployment method according to claim 2, characterized in that: The obtaining of configuration instructions for the initial disk information includes: The second initial disk information is displayed through a preset human-computer interaction page to obtain configuration instructions for the second initial disk information input by relevant personnel.

4. The distributed storage cluster deployment method according to claim 1, characterized in that: The deploying operation on the target disk based on the global universal name and the target disk configuration information to obtain a distributed storage cluster matching the target disk configuration information includes: Based on the batch processing technology, the target disk is deployed according to the global universal name and the target disk configuration information to obtain a distributed storage cluster matching the target disk configuration information.

5. The distributed storage cluster deployment method according to any one of claims 1 to 4, characterized in that: After obtaining the distributed storage cluster matching the target disk configuration information, the method further includes: The distributed storage cluster is troubleshooted based on the global universal name at a preset time period to locate the related faulty disk.

6. A distributed storage cluster deployment device, characterized in that: Applicable to deployment tools, including: An information collection module, used for collecting initial disk information of a plurality of disks; the initial disk information includes a global universal name; An information adjustment module, used for obtaining a configuration instruction for the initial disk information, so as to configure the initial disk information based on the configuration instruction to obtain corresponding target disk configuration information; wherein the configuration instruction is an instruction for the initial disk information that matches a preset business requirement; a disk marking module, configured to determine the current disk status of a plurality of disks corresponding to the target disk configuration information based on the global universal name, and mark the corresponding disk as a target disk when the current disk status indicates that the disk is not occupied; A deployment module, configured to perform a deployment operation on the target disk based on the global universal name and the target disk configuration information, so as to obtain a distributed storage cluster matching the target disk configuration information; The deployment module performs deployment operations on the target disk based on the global universal name and the target disk configuration information, including: collecting real-time status information of the target disk based on the global universal name; performing difference analysis on the real-time status information and the target disk configuration information based on a preset intelligent algorithm, and actively outputting disk deployment optimization suggestions for corresponding analysis results, so as to remind relevant staff to adjust the deployment process of relevant disks based on the disk deployment optimization suggestions; Wherein, the device further comprises: An information verification unit, used to verify the target disk configuration information based on preset verification rules to obtain corresponding verification results; the preset verification rules include integrity verification rules and rationality verification rules; An alarm unit, used to trigger a verification alarm operation when the verification result indicates a verification failure, so as to remind relevant personnel to reconfigure the target disk configuration information; Wherein, the disk marking module includes: A second information collection unit is used to collect first current disk states of a plurality of disks if the verification result indicates that the verification is successful; An information comparison unit is used to compare the target disk configuration information and the first current disk state based on the global universal name to determine the second current disk state of several disks corresponding to the target disk configuration information; and mark the unoccupied related disk represented by the second current disk state as the target disk.

7. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the distributed storage cluster deployment method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: Used to store a computer program, which, when executed by a processor, implements the distributed storage cluster deployment method according to any one of claims 1 to 5.