A method and system for configuring raid parameters

By understanding the user's storage priorities, constructing a RAID parameter space, and providing non-technical explanations and slider adjustments, the problem of non-professional users having difficulty configuring RAID parameters is solved, enabling independent and confident storage configuration and improving the user experience.

CN120687030BActive Publication Date: 2025-12-09BEIJING WEIYE ZECHENG CLOUD COMPUTING CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510681395.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-26
Publication Date
2025-12-09
Estimated Expiration
2045-05-26

AI Technical Summary

Technical Problem

Non-professional users may find it difficult to understand and configure RAID parameters, which could lead to choosing an inappropriate configuration scheme, or even data loss or poor performance.

Method used

By obtaining the user's storage focus, determining the utility function weights, constructing the RAID parameter space, providing non-technical solution explanations and slider adjustments, updating the recommended solution until the user is satisfied, and performing RAID creation and formatting operations.

Benefits of technology

It reduces the difficulty of configuration, enabling users to independently and confidently complete the storage configuration that meets their needs, avoiding misoperation and poor performance, and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120687030B_ABST
    Figure CN120687030B_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of computers and discloses a RAID parameter configuration method and system, which acquires a storage emphasis direction selected by a user, determines a utility function weight, determines a RAID parameter space according to the number of hard disks, searches for an optimal RAID parameter combination, generates a non-technical solution explanation and displays the same to the user, provides a sliding bar to adjust the weight, updates a recommended solution and the explanation, and finally executes RAID creation and formatting, solves the problems that non-professional users cannot understand RAID technical parameters, lack in-depth non-technical explanations and convenient adjustment methods in the prior art, reduces the configuration difficulty, enables the user to independently complete storage configuration, has the advantages of reducing the difficulty for non-professional users to configure a multi-hard-disk network storage device and enabling the user to independently and confidently complete storage configuration meeting the requirements of the user.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, in particular, to a RAID parameter configuration method and system. BACKGROUND

[0002] Currently, network storage devices (NAS) are widely used due to their convenient data storage and sharing functions. Such devices have multiple hard disk installation slots, allowing users to improve the capacity, performance or data security of storage by configuring RAID. However, for ordinary users without professional storage technology background, the concepts and parameters involved in RAID technology are difficult to understand. Traditional storage device configuration interfaces directly present these technical parameters, requiring users to make professional judgments and selections, which brings significant difficulties to non-professional users, and may lead them to choose inappropriate configuration schemes, or even cause data loss or low performance due to misoperation.

[0003] In order to reduce the configuration threshold, some network storage devices will provide a configuration wizard when first started, trying to guide the user through non-technical questions. For example, asking the user about the number of hard disks planned to be installed, and the user's main focus on storage. According to the user's preliminary input, the system may generate a preliminary RAID configuration recommendation scheme according to the preset rules.

[0004] Although the recommended scheme may try to describe it using non-technical language, the user may still feel strange and confused when seeing technical names such as "RAID6". They may not be sure whether this recommended scheme fully meets their actual needs, or want to know how the recommended scheme specifically performs in terms of capacity and performance compared to other possible schemes, and the trade-off relationship between different characteristics. Users usually want to be able to understand the meaning and impact of the recommended scheme more deeply, and to be able to fine-tune according to their actual feelings or further thinking, to find a balance point suitable for themselves.

[0005] In view of the above problems, the prior art needs to be improved. SUMMARY

[0006] The purpose of the present application is to provide a RAID parameter configuration method and system, which has the advantages of reducing the difficulty of non-professional users in configuring multi-hard disk network storage devices, and enabling users to independently and confidently complete storage configuration that meets their needs.

[0007] The present application provides a RAID parameter configuration method for scheduling a garbage truck fleet in an urban area, the steps of the method comprising

[0008] A1. Obtain a user-selected storage focus direction, used to determine an initial weight set of each performance score item in a utility function from a mapping rule library; the storage focus direction comprises data security, storage capacity and access speed; the utility function is used to evaluate the pros and cons of different RAID parameter combinations;

[0009] A2. Determine a set of feasible RAID levels according to the number of hard disks installed on the network storage device, and preset a strip size range and a set of cache strategy options for each RAID level, to form a RAID parameter space;

[0010] A3. In the RAID parameter space, search for a RAID parameter combination that maximizes the function value of the utility function after determining the initial weight set, to obtain a recommended RAID scheme;

[0011] A4. According to the recommended RAID scheme, extract the corresponding language description from the non-technical description template library, and calculate the scheme performance index data to generate a non-technical scheme explanation;

[0012] A5. Display the non-technical scheme explanation to the user in the form of text and illustrations, and provide a sliding bar control for adjusting the weights of data security, storage capacity and access speed;

[0013] A6. When the user adjusts the sliding bar control, adjust the weights of different items in the utility function according to the sliding bar position, to update the recommended RAID scheme, and repeat steps A4 and A5 to update the displayed non-technical scheme explanation;

[0014] A7. When receiving a user confirmation instruction on the recommended RAID scheme, perform RAID creation and formatting operations, and display the progress in non-technical text.

[0015] Further, the present application also proposes that step A1 comprises:

[0016] A101. Obtain a user-selected storage focus direction;

[0017] A102. Present refinement options associated with the user-selected storage focus direction; the refinement options include backup frequency, data recovery speed, acceptable data loss amount, storage file type, expected storage growth speed, concurrent access user number and single file maximum size;

[0018] A103. Collect the user's selection results for the refinement options;

[0019] A104. According to the user's selection results for the refinement options, adjust the initial weights of each performance score item in the utility function to obtain the utility function after determining the initial weight set; the performance score items include data security score, storage capacity score and access speed score.

[0020] Further, the present application also proposes that step A2 comprises:

[0021] A201. Obtain the number of currently installed hard disks of the network storage device as the effective number of hard disks;

[0022] A202. According to the effective number of hard disks, query the preset correspondence table of RAID level and hard disk number to determine the RAID level set supported by the effective number of hard disks;

[0023] A203. For each RAID level in the determined RAID level set, extract the corresponding stripe size range of the RAID level from the preset stripe size range lookup table, and determine the cache strategy option set supported by the RAID level according to the preset cache strategy option table;

[0024] A204. Take the obtained RAID level set, stripe size range and cache strategy option set as the final RAID parameter space.

[0025] Further, the present application also proposes that after step A201 and before step A02, it further comprises:

[0026] A205. If the user selects to start the future hard disk expansion planning, extract the predicted maximum number of hard disks in the future hard disk expansion planning to correct the effective number of hard disks.

[0027] Further, the present application also proposes that step A3 comprises:

[0028] A301. For each RAID parameter combination in the RAID parameter space, calculate the performance score of the RAID parameter combination in the three dimensions of data security, storage capacity and access speed according to the preset performance evaluation model, and obtain a performance score vector;

[0029] A302. According to the determined initial weight set, perform weighted summation on the calculated performance score vector to obtain the utility function value of the RAID parameter combination;

[0030] A303. Compare the utility function values of all RAID parameter combinations in the RAID parameter space, and determine the RAID parameter combination with the maximum utility function value as the recommended RAID scheme; the recommended RAID scheme contains specific RAID level, stripe size and cache strategy parameters.

[0031] Further, the present application also proposes that step A4 comprises:

[0032] A401. According to the user's historical operation data, device usage habits and feedback information, evaluate the user's understanding ability level;

[0033] A402. Select a non-technical description template sub-library matching the user's understanding ability level from a hierarchical non-technical description template library; the hierarchical non-technical description template library is divided into multiple non-technical description template sub-libraries according to user understanding ability levels, and each non-technical description template sub-library contains non-technical description templates of different levels of detail and expression;

[0034] A403. Extract the language description corresponding to the recommended RAID scheme from the selected non-technical description template sub-library, and according to the recommended RAID scheme, call the preset performance calculation module to calculate the available capacity, fault tolerance capability and read-write performance indicators to obtain scheme performance indicator data;

[0035] A404. Combine the extracted language description and scheme performance indicator data to generate a non-technical scheme explanation according to the scheme explanation generation rule matching the user's understanding ability level; wherein the scheme explanation generation rule includes adjusting the complexity of the diagram and the frequency of use of professional terms for users with different understanding ability levels.

[0036] Further, the present application also proposes that step A404 includes:

[0037] Obtain the complexity level of the diagram and the frequency level of the use of professional terms matching the user's understanding ability level;

[0038] According to the complexity level of the diagram, select a diagram of corresponding complexity from a preset diagram library; the diagram library contains RAID scheme diagrams, data read-write flowcharts and performance comparison diagrams of different complexity levels;

[0039] According to the frequency level of the use of professional terms, adjust the frequency of use of professional terms in the extracted language description;

[0040] Combine the selected diagram and the adjusted language description, and the calculated scheme performance indicator data to generate a non-technical scheme explanation.

[0041] Further, the present application also proposes that step A6 includes:

[0042] A601. Monitor the user's adjustment operation on the slider control to obtain the current position value of the slider in the three dimensions of data security, storage capacity and access speed;

[0043] A602. According to the current position value of the slider, combine a preset weight mapping function to calculate new values of the data security weight, storage capacity weight and access speed weight in the utility function; the weight mapping function is a piecewise linear function that maps the slider position value to a weight value between 0 and 1, different segments correspond to different mapping slopes to control the sensitivity of weight adjustment;

[0044] A603. Based on the newly calculated weight value and the recommended RAID scheme parameter combination obtained by the last search, a local RAID parameter search space is constructed; the local search space is realized by limiting the adjustment range of the stripe size and the cache strategy, and the size of the adjustment range is proportional to the moving distance of the sliding bar;

[0045] A604. In the local RAID parameter search space, the RAID parameter combination that maximizes the function value of the new utility function is re-searched to obtain the updated recommended RAID scheme; the new utility function refers to the utility function applied to the newly calculated weight value;

[0046] A605. For the updated recommended RAID scheme, steps A4 and A5 are repeated to update the non-technical scheme explanation displayed.

[0047] Further, the present application also proposes that step A7 comprises:

[0048] A701. After receiving the user's confirmation instruction for the recommended RAID scheme, lock the user interface and prohibit modification operations;

[0049] A702. According to the RAID level, stripe size and cache strategy of the recommended RAID scheme, execute the RAID array creation, monitor the creation state in the background, and obtain the creation progress;

[0050] A703. Convert the RAID creation progress into non-technical text and display it in real time on the user interface, and dynamically update the creation progress bar according to the creation progress;

[0051] A704. After the RAID array creation is completed, format the RAID array, monitor the formatting state in the background, and obtain the formatting progress;

[0052] A705. Convert the formatting progress into non-technical text and display it in real time on the user interface, and dynamically update the formatting progress bar according to the formatting progress;

[0053] A706. After the RAID array formatting is completed, unlock the user interface, prompt that the configuration is completed, and display the available capacity and health status of the RAID array.

[0054] Further, the present application also proposes a RAID parameter configuration system for guiding non-professional users to complete storage configuration during the initialization of a multi-hard disk network storage device, which comprises:

[0055] The weight determination module is configured to obtain a storage emphasis direction selected by a user, to determine an initial weight set of each performance score item in the utility function from the mapping rule library; the storage emphasis direction comprises data security, storage capacity and access speed; and the utility function is used to evaluate the pros and cons of different RAID parameter combinations.

[0056] The parameter space determination module is configured to determine a feasible RAID level set according to the number of hard disks installed on the network storage device, and preset a strip size range and a cache strategy option set for each RAID level to form a RAID parameter space.

[0057] The scheme search module is configured to search for a RAID parameter combination that maximizes the function value of the utility function after the initial weight set is determined in the RAID parameter space, to obtain a recommended RAID scheme.

[0058] The scheme explanation module is configured to extract a corresponding language description from a non-technical description template library according to the recommended RAID scheme, and calculate scheme performance index data to generate a non-technical scheme explanation.

[0059] The scheme display module is configured to display the non-technical scheme explanation to the user in the form of text and graphics, and provide a sliding bar control for adjusting the weights of data security, storage capacity and access speed.

[0060] The weight adjustment module is configured to adjust the weights of different items in the utility function according to the position of the sliding bar when the user adjusts the sliding bar control, to update the recommended RAID scheme, and to cause the scheme explanation module and the scheme display module to repeatedly perform corresponding operations, so as to update the displayed non-technical scheme explanation.

[0061] The configuration execution module is configured to execute RAID creation and formatting operations to display the configuration progress in non-technical text when a confirmation instruction of the recommended RAID scheme is received from the user.

[0062] Advantages: The RAID parameter configuration method and system provided by the present application determines the weights of the utility function by obtaining the storage emphasis direction selected by the user, determines the RAID parameter space according to the number of hard disks, searches for the best RAID parameter combination, generates a non-technical scheme explanation and displays it to the user, adjusts the weights by using the sliding bar, updates the recommended scheme and the explanation, and finally executes the RAID creation and formatting, thereby solving the problems in the prior art that non-professional users cannot understand the RAID technical parameters, lack in-depth non-technical explanations and convenient adjustment methods, reducing the configuration difficulty, enabling the user to independently complete the storage configuration, and having the advantages of reducing the difficulty of non-professional users in configuring the multi-hard disk network storage device, enabling the user to independently and confidently complete the storage configuration meeting the user's requirements. BRIEF DESCRIPTION OF DRAWINGS

[0063] Figure 1 The flow chart of the RAID parameter configuration method provided by the embodiment of the present application.

[0064] Figure 2 The structural schematic diagram of the RAID parameter configuration system provided by the embodiment of the present application.

[0065] Label explanation: 1, weight determination module; 2, parameter space determination module; 3, scheme search module; 4, scheme interpretation module; 5, scheme display module; 6, weight adjustment module; 7, configuration execution module. DETAILED DESCRIPTION

[0066] The technical solutions in the present application will be described clearly and completely below in combination with the drawings in the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. The components of the present application described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0067] It should be noted that: similar labels and letters represent similar items in the following drawings, therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. Meanwhile, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

[0068] Reference Figure 1 The present application proposes a RAID parameter configuration method for scheduling of garbage transport vehicle fleet in urban areas, the steps of the method include

[0069] A1. Obtain the storage emphasis direction selected by the user, to determine the initial weight set of each performance score item in the utility function from the mapping rule library; the storage emphasis direction includes data security, storage capacity and access speed; the utility function is used to evaluate the pros and cons of different RAID parameter combinations;

[0070] A2. Determine the set of feasible RAID levels according to the number of hard disks installed on the network storage device, and preset the strip size range and the set of cache strategy options for each RAID level, to constitute the RAID parameter space;

[0071] A3. In the RAID parameter space, search for the RAID parameter combination that maximizes the function value of the utility function after determining the initial weight set, to obtain the recommended RAID scheme;

[0072] A4. According to the recommended RAID scheme, extract the corresponding language description from the non-technical description template library, and calculate the scheme performance indicator data to generate the non-technical scheme explanation;

[0073] A5. Display the non-technical scheme explanation in the form of text and illustrations to the user, and provide a sliding bar control for adjusting the weights of data security, storage capacity, and access speed;

[0074] A6. When the user adjusts the sliding bar control, adjust the weights of different terms in the utility function according to the sliding bar position to update the recommended RAID scheme, and repeat steps A4 and A5 to update the displayed non-technical scheme explanation;

[0075] A7. When receiving the user's confirmation instruction on the recommended RAID scheme, perform RAID creation and formatting operations to display the progress in non-technical text.

[0076] Wherein, the storage focus direction refers to the user's priority preference for the storage scheme in the three dimensions of data security, storage capacity, and access speed, which can be realized by preset option list, questionnaire survey or natural language input, etc., such as through a single selection button for the user to select "data security priority", "storage capacity priority" or "access speed priority", which is mainly used to obtain the user's preliminary configuration intention to provide an initial direction for subsequent scheme recommendation.

[0077] Wherein, the utility function refers to a mathematical model for quantitatively evaluating the pros and cons of different RAID parameter combinations, which can be realized by weighted summation model, multi-objective optimization model or rule-based scoring model, etc., such as adding data security score, storage capacity score and access speed score with different weights, which is mainly used for quantitative evaluation of potential RAID configuration schemes to select the optimal scheme.

[0078] Wherein, the RAID parameter space refers to a set containing all feasible RAID configuration schemes determined according to the device hardware conditions, each scheme consisting of RAID level, stripe size and cache strategy, etc., which can be realized by pre-computed lookup table, dynamically generated parameter list or constraint condition-based parameter combination generator, etc., such as listing all supported RAID levels and their corresponding stripe size range and cache strategy options according to the number of hard drives, which is mainly used to limit the scope of scheme search to ensure the feasibility of the recommended scheme.

[0079] The non-technical description template library refers to a pre-stored text collection for converting technical RAID schemes into user-friendly language, which can be implemented in the form of structured text templates, natural language sentence libraries or rule-based text generation systems, for example, template sentences describing the characteristics of different RAID levels and the meanings of performance indicators, which are mainly used to generate user-friendly scheme explanations and reduce the difficulty for users to understand technical schemes.

[0080] The sliding bar control refers to a graphical user interface element that allows users to adjust numerical values or proportions by dragging the slider. In this case, it is used to adjust the weight proportions of data security, storage capacity and access speed. It can be implemented in the form of a sliding bar component provided by a standard GUI library, a custom drag-and-drop control or a touch gesture-based adjustment interface. It is mainly used to provide an intuitive and convenient way for users to fine-tune the recommended scheme and achieve personalized configuration.

[0081] The non-technical text display configuration progress refers to the process of converting technical background operation status and progress information into user-friendly text descriptions during RAID creation and formatting. It can be implemented in the form of pre-set progress description sentences, a mapping table of status codes and texts or an event-triggered text update mechanism, for example, displaying "Creating RAID array (25%)" and "Formatting complete". It is mainly used to provide real-time feedback on the status of the configuration process to the user and alleviate their anxiety.

[0082] The core innovation of the present application is to introduce a utility function based on user focus direction for initial scheme search, combined with non-technical scheme explanation and interactive weight adjustment mechanism based on sliding bar control, thereby guiding non-professional users to configure RAID parameters and allowing users to intuitively and iteratively fine-tune the scheme, achieving the effect of significantly reducing the configuration threshold and improving user experience.

[0083] Specifically, the method first acquires the user's preliminary focus direction on storage and converts it into the initial weight of the performance term in the utility function. At the same time, according to the number of hard disks installed on the device, all feasible RAID levels, striping size ranges, and cache strategy options are determined to build a complete RAID parameter space. Then, in this parameter space, the RAID parameter combination that can maximize the utility function value of the application initial weight is searched to obtain the preliminary recommended solution. In order to let the user understand the solution, the system converts the technical recommended solution into non-technical language description and performance index data for display, supplemented by illustrations. The key is that the system provides a sliding bar control to allow the user to intuitively adjust the weight between data security, storage capacity, and access speed. When the user adjusts the sliding bar, the system will dynamically adjust the weight of the corresponding term in the utility function according to the sliding bar position, and re-search the optimal solution in the local parameter space based on the new weight, and then immediately update the non-technical solution explanation displayed to the user. This process can be iterated until the user finds a satisfactory solution. Finally, after the user confirms the recommended solution, the system performs the actual RAID creation and formatting operation, and displays the configuration progress in real time to the user in the form of non-technical text. The whole process hides the complex RAID technical parameters under the user-friendly interactive interface and intelligent recommendation logic, guiding the user to complete the configuration step by step.

[0084] Through the above scheme, the problem that non-professional users have difficulty in completing appropriate RAID parameter configuration when initializing a multi-hard disk network storage device is effectively solved. The method converts complex RAID technical parameters into concepts and intuitive adjustment methods that users can easily understand through a guided and non-technical interaction mode, significantly reducing the configuration threshold. Users can make preliminary selection and subsequent fine-tuning according to their actual needs, so as to more easily obtain a storage solution that meets their expectations, avoid performance degradation or data loss caused by misoperation or improper selection, and improve user experience and configuration success rate.

[0085] In some embodiments, step A1 includes:

[0086] A101. Acquire the user's selected storage focus direction;

[0087] A102. Present refinement options associated with the user's selected storage focus direction; the refinement options include backup frequency, data recovery speed, acceptable data loss amount, storage file type, expected storage growth speed, number of concurrent access users, and maximum single file size;

[0088] A103. Collect the user's selection results for the refinement options;

[0089] A104. According to the selection results of the user on the refinement options, adjust the initial weights of the performance score items in the utility function to obtain the utility function after the initial weight set is determined; the performance score items include data security score, storage capacity score and access speed score.

[0090] wherein the refinement options refer to a series of more specific and detailed selection items provided to further understand the specific needs of the user in a specific storage focus direction, which can be realized in the form of a pre-set question list or an interactive questionnaire. Adjusting the initial weights of the performance score items in the utility function refers to correcting the weights of the numerical values representing the importance of data security, storage capacity and access speed according to the user's input on the refinement options, so as to more accurately reflect the user's personalized preferences, which can be realized by consulting a pre-set mapping table, applying a calculation formula or inferring based on a machine learning model.

[0091] Specifically, the scheme first obtains the storage focus direction preliminarily selected by the user, such as data security, storage capacity or access speed. Then, the system presents a series of refinement options related to the focus direction selected by the user to the user in a targeted manner. These refinement options aim to further explore the specific demand details of the user in this focus direction from multiple dimensions. For example, if the user focuses on data security, the system can ask the user about the requirements for backup frequency, data recovery speed and acceptable data loss amount; if the user focuses on storage capacity, the system can ask about the expected storage growth rate and storage file type; if the user focuses on access speed, the system can ask about the number of concurrent access users and the maximum size of a single file. The system collects the specific selection results of the user on these refinement options. Finally, the system adjusts the initial weights of the corresponding data security score, storage capacity score and access speed score in the utility function according to the selection results of the user on these refinement options. In this way, the user's more refined demand preferences are converted into corrections of the weights of the utility function, so that the utility function can more accurately evaluate the applicability of different RAID parameter combinations to the user. Thus, in the subsequent RAID parameter search process, the system can find a RAID scheme that better meets the actual expectations of the user based on this utility function that more accurately reflects the user's needs. This scheme effectively improves the individualization and accuracy of the initial recommended scheme by adding the steps of collecting refined requirements and adjusting weights based on the preliminary focus direction, solving the problem of recommendation deviation caused by relying only on broad focus directions.

[0092] By the above scheme, the personalized needs of the user can be more accurately captured by introducing refined options and adjusting the initial weights of the performance score items in the utility function according to the selection of the user, the deficiency of determining the initial weights only by relying on the broad storage emphasis direction is overcome, the system can generate an initial RAID scheme recommendation that is more in line with the actual expectations of the user, and the accuracy of the configuration and the user satisfaction are improved.

[0093] In some embodiments, step A2 comprises:

[0094] A201. Obtain the number of hard disks currently installed in the network storage device as the number of effective hard disks;

[0095] A202. According to the number of effective hard disks, query the preset correspondence table of RAID level and hard disk number, and determine the RAID level set supported by the number of effective hard disks;

[0096] A203. For each RAID level in the determined RAID level set, extract the corresponding strip size range of the RAID level from the preset strip size range lookup table, and determine the cache strategy option set supported by the RAID level according to the preset cache strategy option table;

[0097] A204. Take the obtained RAID level set, strip size range and cache strategy option set as the final RAID parameter space.

[0098] wherein the effective number of hard disks refers to the number of hard disks used to build a RAID array, which can be determined by obtaining the current number of hard disks installed in the device, or can be modified by considering the user's future expansion plan. The pre-set RAID level and number of hard disks correspondence table refers to a lookup table that stores the minimum and maximum number of hard disks required or supported by different RAID levels, which can be implemented by a database, a configuration file or a hard-coded data structure. The RAID level set refers to a list of RAID levels that can be built under the current hardware configuration, which is filtered from the correspondence table according to the effective number of hard disks, such as RAID0, RAID1, RAID5, etc. The pre-set stripe size range lookup table refers to a lookup table that stores the recommended or allowed stripe size value range for different RAID levels, which can be implemented by a database or a configuration file. The stripe size range refers to a set of stripe sizes recommended or allowed for a particular RAID level by the system for the user to select, such as {16KB, 32KB, 64KB, 128KB}. The pre-set cache policy option table refers to a lookup table that stores the recommended or allowed cache policy options for different RAID levels or application scenarios, which can be implemented by a database or a configuration file. The cache policy option set refers to a set of cache policies recommended or allowed for a particular RAID level by the system for the user to select, such as {Write-back, Write-through}. The RAID parameter space is a set of all feasible RAID parameter combinations formed by the determined RAID level set, the stripe size range corresponding to each RAID level, and the cache policy option set, which provides a basis for subsequent scheme search.

[0099] Through the above scheme, the present application provides a systematic method to build a RAID parameter space. Based on the current hardware configuration (number of hard disks) and the pre-set compatibility and recommended parameter information, all feasible RAID levels and reasonable stripe size ranges and cache policy options under each level are determined. This effectively narrows down the range of potential configuration options, eliminating incompatible or non-recommended parameter combinations, thereby building a structured, meaningful and searchable parameter space. This parameter space provides a clear input for subsequent intelligent search algorithms, enabling the system to find an optimized RAID configuration scheme for non-professional users under the premise of meeting hardware constraints and technical specifications, reducing the complexity and possibility of errors of user configuration.

[0100] In some preferred embodiments, after step A201 and before step A02, the method further comprises:

[0101] A205. If the user selects to start the future hard disk expansion plan, the expected maximum number of hard disks in the future hard disk expansion plan is extracted to modify the effective number of hard disks.

[0102] The future hard disk expansion plan refers to a plan or expectation of the user about the possible increase in the number of hard disks in the future. The plan can be achieved by manually inputting the maximum number of hard disks expected in the future by the user in a configuration interface, or can be automatically generated by the system according to the historical purchase records, device usage habits or preset expansion templates of the user. The maximum number of hard disks expected refers to the total number of hard disks expected to be installed in the device after the expansion in the future. The number is used to adjust the number of hard disks as the basis for determining the set of RAID levels. The corrected number of effective hard disks refers to adjusting or replacing the number of effective hard disks originally determined based on the number of currently installed hard disks according to the maximum number of hard disks expected in the future hard disk expansion plan selected by the user, so that the subsequent RAID level determination process can take into account the future hard disk configuration.

[0103] Specifically, the correction takes into account the user's future expansion intention while taking into account the current system state, making the initial configuration more flexible and adaptive. The combination of the scheme of determining the set of feasible RAID levels according to the number of hard disks installed in the network storage device, and the set of preset strip size ranges and cache strategy options for each RAID level, constitutes the RAID parameter space, so that the determination of the parameter space is not only based on the current hardware, but also takes into account the future hardware configuration, so that more adaptive RAID schemes for future expansion can be recommended in the subsequent scheme search. Avoiding the need for the user to reconfigure the RAID array after increasing the hard disk improves the flexibility of the configuration and the user experience.

[0104] In some embodiments, step A3 comprises:

[0105] A301. For each RAID parameter combination in the RAID parameter space, calculate the performance score of the RAID parameter combination in the three dimensions of data security, storage capacity and access speed according to the preset performance evaluation model, to obtain a performance score vector;

[0106] A302. According to the initial weight set determined, perform weighted summation on the calculated performance score vector to obtain the utility function value of the RAID parameter combination;

[0107] A303. Compare the utility function values of all RAID parameter combinations in the RAID parameter space, and determine the RAID parameter combination with the maximum utility function value as the recommended RAID scheme; the recommended RAID scheme includes specific RAID level, strip size and cache strategy parameters.

[0108] The RAID parameter combination refers to a specific configuration option in the RAID parameter space, including a specific RAID level, a selected stripe size, and a selected cache strategy. It can be represented by a tuple or object containing the RAID level identifier, the stripe size value, and the cache strategy identifier. The preset performance evaluation model refers to a calculation rule or algorithm for quantitatively evaluating the performance of the RAID parameter combination in different performance dimensions. It can be implemented based on a theoretical calculation formula, simulation results, or a lookup table of actual test data. The performance score vector refers to a numerical vector whose components represent the quantitative scores of a specific RAID parameter combination in the preset performance dimensions such as data security, storage capacity, and access speed. It can be represented by an array or list containing multiple floating-point values. The determined initial weight set refers to a set of initial weight values determined according to the user's selection of the storage focus direction, used to measure the importance of different performance dimensions. It can be represented by a numerical vector containing weight values corresponding to data security, storage capacity, and access speed. The utility function value refers to the calculated value of the utility function. For the case where the utility function is the sum of data security score, storage capacity score, and access speed score with different weights, the single numerical value obtained by weighted sum of the performance score vector of the RAID parameter combination is the utility function value, which is used to comprehensively measure the pros and cons of the combination considering user preferences. It can be represented by a floating-point value. The recommended RAID scheme refers to the RAID parameter combination in the RAID parameter space that has the maximum utility function value, representing the optimal storage configuration recommendation under the current user preference. It can be represented by a structured data containing specific RAID level, stripe size, and cache strategy parameters.

[0109] The scheme, combined with the steps of determining the parameter space and obtaining the user preference, enables the system to find a scheme that meets the hardware conditions and best meets the user's needs among all feasible configurations, thereby overcoming the problem of insufficient personalization of the recommended scheme or difficulty for users to understand and adjust in the prior art. Through the above scheme, the present application provides a systematic method for finding the optimal RAID parameter combination in the determined RAID parameter space based on the preset performance evaluation model and the user's personalized weight setting. This method can automatically identify the RAID configuration that best meets the user's requirements in terms of data security, storage capacity, and access speed through quantitative evaluation, weighted synthesis, and comparison selection, thereby solving the problem of non-professional users' difficulty in understanding and selecting appropriate RAID schemes, simplifying the storage configuration process, and improving the relevance and effectiveness of the configuration results.

[0110] In some embodiments, step A4 includes:

[0111] A401. According to the historical operation data, device usage habits and feedback information of the user, the understanding ability level of the user is evaluated;

[0112] A402. According to the user understanding ability level, a non-technical description template sub-library matched with the user understanding ability level is selected from a hierarchical non-technical description template library; the hierarchical non-technical description template library is divided into a plurality of non-technical description template sub-libraries according to the user understanding ability level, and each non-technical description template sub-library contains non-technical description templates with different detailed levels and expression manners;

[0113] A403. From the selected non-technical description template sub-library, the language description corresponding to the recommended RAID scheme is extracted, and according to the recommended RAID scheme, a preset performance calculation module is called to calculate the available capacity, fault tolerance capability and read-write performance indicators to obtain scheme performance indicator data;

[0114] A404. The extracted language description and scheme performance indicator data are combined to generate a non-technical scheme explanation according to the scheme explanation generation rule matched with the user understanding ability level; wherein the scheme explanation generation rule includes adjusting the complexity of the diagram and the frequency of using professional terms for users with different understanding ability levels.

[0115] In step A401, evaluating the understanding ability level of the user means judging the understanding degree or cognitive level of the user on technical concepts by analyzing the behavior mode of the user in the system, the usage habits of the device functions and the feedback information provided by the user actively or passively, which can be realized by using rule-based analysis, machine learning model or user questionnaire survey, etc.

[0116] In step A402, the hierarchical non-technical description template library refers to a collection of texts explaining various RAID schemes, which are organized and classified according to different user understanding levels. It can be stored in a database, file system, or memory structure. The non-technical description template sub-library refers to a subset of the hierarchical non-technical description template library corresponding to a specific user understanding level, which contains description templates with appropriate detail level and expression for that level. It can be organized using directory structure, tag classification, or indexing mechanism. The non-technical description template sub-library matching the user understanding level refers to the subset of the hierarchical non-technical description template library selected based on the specific user understanding level obtained from the evaluation, which contains the most suitable description templates for users of that level. The non-technical description templates with different detail levels and expression methods refer to multiple explanations of the same RAID scheme or technical concept, some providing basic concept introduction, some providing more technical details, some using simple analogy, and some using more rigorous language, which differ in information quantity, use of professional terms, sentence structure complexity, etc.

[0117] In step A403, the pre-set performance calculation module refers to a software or hardware unit that outputs quantitative indicators of the RAID scheme in terms of available capacity, fault tolerance, and read-write performance based on the input RAID scheme parameters and pre-determined calculation models or formulas. It can be implemented as a separate calculation service, library function call, or hardware acceleration unit. The scheme performance indicator data refers to the specific numerical values or evaluation results of the recommended RAID scheme in terms of available capacity, fault tolerance, and read-write performance obtained through the performance calculation module.

[0118] In step A404, the scheme explanation generation rule matching the user understanding level refers to a set of logic or algorithms for guiding how to combine the extracted language description and calculated performance indicator data into the final scheme explanation. This set of rules adjusts the presentation of the explanation according to the user's understanding level, which can be implemented using conditional judgment logic, template filling algorithm, or content organization strategy. Adjusting the complexity of the diagram and the frequency of using professional terms refers to selecting different detailed level of schematic diagram or flowchart for display and controlling the number of professional technical terms used in the text description or whether to explain based on the user's understanding level during the generation of the scheme explanation.

[0119] Specifically, the scheme aims at the problem of user understanding ability differentiation. By evaluating the user understanding ability level and selecting appropriate description templates and generation rules according to the evaluation results, a more user-demand-oriented scheme explanation is provided. First, the user's understanding ability level is evaluated through the user's historical operation data, device usage habits and feedback information. This evaluation method can understand the actual cognitive level of the user, and provide a basis for subsequent differentiated explanation. Second, according to the user understanding ability level, the matching sub-library is selected from the hierarchical non-technical description template library. The design of the hierarchical template library ensures that users with different understanding abilities can obtain explanation content that is suitable for their cognitive level, avoiding the problems of information overload or information deficiency. Then, the language description corresponding to the recommended RAID scheme is extracted from the selected template sub-library, and the scheme performance index data is calculated. This step ensures the accuracy and completeness of the scheme explanation, providing comprehensive information for the user. Finally, the extracted language description and performance index data are combined according to the scheme explanation generation rule matched with the user's understanding ability level. The scheme explanation generation rule, especially the adjustment of the complexity of the diagram and the frequency of the use of professional terms, is the key to realizing differentiated explanation. For users with weak understanding ability, simpler diagrams and fewer professional terms can reduce the difficulty of understanding; while for users with strong understanding ability, more detailed diagrams and more professional terms can meet their needs for in-depth understanding of the details of the scheme. As part of the RAID parameter configuration method, the scheme is combined with the step of determining the recommended RAID scheme in the method, so that the entire configuration process not only provides an optimized recommended scheme for the user, but also clearly explains the meaning, performance and trade-off of the scheme in a way that the user can understand, thereby significantly improving the success rate and satisfaction of non-professional users in completing complex storage configuration, and solving the problem in the prior art that users are difficult to configure independently due to not understanding technical details.

[0120] Through the above scheme, the present application can provide customized RAID scheme explanation according to the actual understanding ability of the user, so that non-professional users can more accurately and deeply understand the meaning, performance characteristics and trade-off between different schemes of the recommended scheme, thereby helping users make storage configuration decisions that are more in line with their own needs, reducing the risk of user misoperation or selecting inappropriate schemes due to not understanding technical details, and improving user experience and configuration efficiency.

[0121] Further, step A404 can include:

[0122] obtaining a diagram complexity level and a professional term usage frequency level matched with the user understanding ability level;

[0123] According to the illustration complexity level, select the corresponding complexity illustration from the preset illustration library; the illustration library contains different complexity levels of RAID scheme diagrams, data read-write flowcharts and performance comparison diagrams;

[0124] According to the professional term frequency level, adjust the frequency of professional terms in the extracted language description;

[0125] Combine the selected illustration and the adjusted language description, and the calculated scheme performance index to generate a non-technical scheme explanation.

[0126] Among them, the illustration complexity level refers to the amount of information, the degree of detail and the degree of use of professional symbols contained in the illustration used to describe the RAID scheme, which can be represented by a plurality of preset complexity levels (for example: low, medium, high), each level corresponds to a set of illustrations of different styles and contents in the illustration library. The professional term frequency level refers to the number or proportion of professional technical terms allowed to appear in the language description of the non-technical scheme explanation, which can be controlled by a percentage threshold or a preset frequency level (for example: very low, low, medium, high). The preset illustration library refers to a collection of various visual materials prepared in advance for explaining the RAID scheme, the illustrations in the library are stored according to different complexity levels, which can include static pictures, dynamic illustrations or interactive charts. Adjusting the frequency of professional terms in the extracted language description refers to the process of post-processing the original language description text extracted from the template sub-library, identifying the professional terms therein, and replacing, deleting or explanatory supplementing according to the target frequency level, which can be achieved by using natural language processing technology, synonym dictionary or preset term replacement rules.

[0127] Specifically, the scheme aims to make more refined adjustments to the generated non-technical scheme explanation to better match the user's understanding ability. It is not simply a matter of selecting a template sub-library, but rather a more fine-grained control in the dimensions of illustration complexity and frequency of professional terminology use. First, obtain the illustration complexity level and the frequency level of professional terminology use that match the user's understanding ability level, which is the premise of fine-tuning. Different user understanding ability levels correspond to different illustration complexity and professional terminology use preferences, which provides the basis for subsequent adjustments. Second, according to the illustration complexity level, select the illustration of corresponding complexity from the pre-set illustration library. The illustration library contains RAID scheme diagrams of different complexity, data read-write flowcharts and performance comparison charts, which provides rich resources for selecting appropriate illustrations. By selecting an illustration that matches the user's understanding ability, confusion caused by overly complex or overly simple illustrations can be avoided. Then, according to the frequency level of professional terminology use, adjust the frequency of professional terminology use in the extracted language description. This means that, based on the already extracted language description, the use of professional terminology is further adjusted to adapt to the user's understanding ability. Finally, combine the selected illustration and the adjusted language description, as well as the calculated scheme performance indicator data to generate a non-technical scheme explanation. This means that the final scheme explanation presented to the user is fine-tuned, containing both illustrations that match the user's understanding ability and adjusted language descriptions, thereby better meeting the user's needs. This scheme, combined with the step of selecting a template sub-library based on the user's understanding ability level, forms a hierarchical and progressive non-technical explanation generation mechanism. Based on the initial explanation framework based on the template sub-library, this scheme further optimizes the matching degree of scheme explanation and user understanding ability by making more detailed adjustments to the illustrations and language descriptions. This combination enables the system to generate a scheme explanation that not only meets the overall understanding ability level, but also is easy to digest in detail, thereby improving the user's understanding of the recommended scheme and their acceptance of it.

[0128] Through the above scheme, the present application can fine-tune the illustration complexity and professional terminology use in non-technical scheme explanation according to the user's specific understanding ability, thereby generating a scheme explanation that is easier for the user to understand, improving the user's understanding of the recommended RAID scheme and reducing the difficulty of non-professional users in storage configuration.

[0129] In some embodiments, step A6 comprises:

[0130] A601. Monitor the user's adjustment operation on the slider control and obtain the current position value of the slider in the three dimensions of data security, storage capacity and access speed;

[0131] A602. According to the current position value of the sliding bar, combined with the preset weight mapping function, the new values of the data security weight, the storage capacity weight and the access speed weight in the utility function are calculated; the weight mapping function is a piecewise linear function, which maps the sliding bar position value to the weight value between 0 and 1, different segments correspond to different mapping slopes, and the sensitivity of weight adjustment is controlled;

[0132] A603. Based on the newly calculated weight values and the parameter combination of the recommended RAID scheme obtained by the last search, a local RAID parameter search space is constructed; the local search space is realized by limiting the adjustment range of the stripe size and the cache strategy, and the size of the adjustment range is proportional to the moving distance of the sliding bar;

[0133] A604. In the local RAID parameter search space, the RAID parameter combination that maximizes the function value of the new utility function is searched again to obtain the updated recommended RAID scheme; the new utility function refers to the utility function applied to the newly calculated weight values;

[0134] A605. For the updated recommended RAID scheme, steps A4 and A5 are repeated to update the non-technical scheme explanation displayed.

[0135] Among them, the current position value of the sliding bar in the three dimensions of data security, storage capacity and access speed refers to the index value corresponding to the position of the slider on the three sliding bars representing data security, storage capacity and access speed.

[0136] Among them, the weight mapping function refers to a mathematical relationship or lookup table that converts input values (here, sliding bar position values) into output values (here, weight values), which can be implemented using a piecewise linear function, that is, the input range is divided into multiple intervals, and different linear formulas are used for mapping in each interval, thereby achieving fine control of mapping sensitivity.

[0137] Among them, the local RAID parameter search space refers to a RAID parameter set with a limited range, which is a subset of the entire RAID parameter space, and its construction can be realized by limiting the value range of parameters such as stripe size and cache strategy, and the size of the range can be associated with the moving distance of the sliding bar, for example, the greater the moving distance, the greater the allowed adjustment range.

[0138] Specifically, the scheme first monitors the user's adjustment of the slider bar, obtaining the user's real-time preference input in the three dimensions of data security, storage capacity and access speed. These inputs are represented in the form of slider position values. Then, according to these position values, the system calculates new values of the performance weights in the utility function using a pre-set piecewise linear weight mapping function. The use of piecewise linear function makes the change of weight with the position of the slider bar present non-uniform sensitivity, for example, when the user's preference is in the middle, the change is slow, and when the preference is extreme, the change is fast, thereby avoiding the dramatic fluctuation of weight caused by small adjustments. Based on these newly calculated weight values and the parameters of the last recommended RAID scheme, the system constructs a local RAID parameter search space. This local space is not searched in the entire possible RAID parameter combination, but is centered on the parameters of the last recommended scheme, limiting the adjustment range of parameters such as strip size and cache strategy. The size of the adjustment range is proportional to the distance of the user's slider movement, which means that when the user makes a small adjustment, the search space is small and the system only considers options very close to the current scheme; when the user makes a large adjustment, the search space will be appropriately expanded, allowing the system to explore further parameter combinations. This way of constructing a local search space significantly reduces the search range and reduces the computational load. Subsequently, the system searches for the RAID parameter combination that maximizes the utility function value in this local search space using the utility function with the new weights, thereby obtaining the updated recommended RAID scheme (for details, refer to step A3). Finally, the system repeats the steps of generating and displaying non-technical scheme explanations according to the updated recommended scheme, presenting the new scheme and its impact in a way that is easy for the user to understand. In this way, the system can quickly respond and provide a smooth transition of the recommended scheme when the user adjusts the preference, significantly improving the user experience. This scheme, combined with the previous steps of establishing the initial utility function, determining the parameter space, performing the first search and displaying the non-technical explanation, forms a complete RAID configuration process that supports iterative adjustment by the user. This scheme provides the ability to dynamically adjust and optimize, allowing the user to make fine adjustments based on the initial recommended scheme through intuitive interaction and find the final configuration that better meets their needs.

[0139] Through the above scheme, the present application realizes that when the user adjusts the slider bar, the system can quickly update the recommended RAID scheme according to the user's preference change, and because of the use of piecewise linear weight mapping and local search space construction based on movement distance, the change process of the recommended scheme is smoother and more continuous, avoiding the dramatic jump of the scheme in adjacent adjustments, thereby significantly improving the interactive experience and satisfaction of non-professional users in RAID configuration.

[0140] In some embodiments, step A7 comprises:

[0141] A701. After receiving the user's confirmation instruction on the recommended RAID scheme, lock the user interface and prohibit modification operations;

[0142] A702. According to the RAID level, stripe size and cache policy of the recommended RAID scheme, execute RAID array creation, monitor the creation status in the background and obtain the creation progress;

[0143] A703. Convert the RAID creation progress into non-technical text and display it in real time on the user interface, and dynamically update the creation progress bar according to the creation progress;

[0144] A704. After the RAID array creation is completed, format the RAID array, monitor the formatting status in the background and obtain the formatting progress;

[0145] A705. Convert the formatting progress into non-technical text and display it in real time on the user interface, and dynamically update the formatting progress bar according to the formatting progress;

[0146] A706. After the RAID array formatting is completed, unlock the user interface, prompt that the configuration is completed, and display the available capacity and health status of the RAID array.

[0147] Wherein, converting the RAID creation progress into non-technical text refers to converting the creation progress information obtained in the background, which is usually expressed in percentage or technical status code, into natural language description that is easy for users to understand. It can be realized by using a mapping table of preset progress stages and text descriptions, for example, mapping 0%-10% to "preparing hard disks" and mapping 10%-50% to "creating storage space". Dynamically updating the creation progress bar refers to displaying a graphical progress bar element on the user interface, and the filling degree or state of the element will be updated in real time with the change of the creation progress obtained in the background. It can be realized by using the progress bar control provided by the graphical interface library, and the current progress value is set through the programming interface. Converting the formatting progress into non-technical text and dynamically updating the formatting progress bar are similar to the above creation process, which presents the progress information of the formatting process in a user-friendly manner.

[0148] Specifically, the technical solution aims to solve the problem that users cannot understand the configuration progress during the RAID creation and formatting process. Through the display of non-technical text and dynamic progress bar, the user experience is improved. First, after the user confirms the recommended RAID solution, the user interface is locked and modification operations are prohibited to avoid user misoperation during the configuration process and ensure smooth configuration. Then, according to the RAID level, stripe size and cache strategy of the recommended RAID solution, RAID array creation is performed, the creation state is monitored in the background, and the creation progress is obtained. This is the core step of the configuration process, which directly affects the creation result of the RAID array. By monitoring the creation state in the background, the creation progress can be obtained in real time, providing data support for subsequent progress display. Next, the RAID creation progress is converted into non-technical text and displayed in real time on the user interface, and the creation progress bar is dynamically updated according to the creation progress. This is the key point of this solution, which converts professional terms into non-technical text, allowing users to understand the configuration status and eliminating user anxiety. At the same time, the dynamic update of the progress bar can visually display the configuration progress, further improving user experience. After the RAID array creation is completed, the RAID array is formatted, the formatting state is monitored in the background, and the formatting progress is obtained. Formatting is a necessary step for RAID array creation, and by monitoring the formatting state in the background, the formatting progress can be obtained in real time, providing data support for subsequent progress display. The formatting progress is converted into non-technical text and displayed in real time on the user interface, and the formatting progress bar is dynamically updated according to the formatting progress. Similar to the RAID creation progress display, by converting professional terms into non-technical text, users can understand the formatting status and eliminate user anxiety. At the same time, the dynamic update of the progress bar can visually display the formatting progress, further improving user experience. Finally, after the RAID array formatting is completed, the user interface is unlocked, the configuration is prompted to be completed, and the available capacity and health status of the RAID array are displayed. Unlocking the user interface allows users to start using the RAID array. Prompting the completion of the configuration allows users to understand that the configuration process has ended. Displaying the available capacity and health status of the RAID array allows users to understand the basic information of the RAID array, making it easier for users to perform subsequent operations. This solution, combined with the method of providing a recommended RAID solution and explaining the solution in non-technical text, forms a complete and user-friendly configuration process from solution recommendation and understanding to execution feedback, significantly reducing the threshold for non-professional users to configure multi-hard disk network storage devices.

[0149] Through the above solution, the user can clearly understand the current configuration status during the RAID creation and formatting process, avoiding confusion and anxiety caused by not understanding professional terms. Through real-time feedback of non-technical text and dynamic progress bar, the user experience is improved, allowing non-professional users to more confidently and smoothly complete the storage configuration of multi-hard disk network storage devices.

[0150] Reference Figure 2 The application also proposes a RAID parameter configuration system for guiding non-professional users to complete storage configuration during the initialization of a multi-hard disk network storage device, which comprises:

[0151] A weight determination module 1 is configured to obtain a user-selected storage emphasis direction, so as to determine an initial weight set of each performance score item in the utility function from a mapping rule library; the storage emphasis direction comprises data security, storage capacity and access speed; the utility function is used to evaluate the pros and cons of different RAID parameter combinations (for details, refer to step A1 in the foregoing description);

[0152] A parameter space determination module 2 is configured to determine a feasible RAID level set according to the number of hard disks installed in the network storage device, and preset a strip size range and a cache strategy option set for each RAID level, to form a RAID parameter space (for details, refer to step A2 in the foregoing description);

[0153] A scheme search module 3 is configured to search for a RAID parameter combination that maximizes the function value of the utility function after the initial weight set is determined in the RAID parameter space, to obtain a recommended RAID scheme (for details, refer to step A3 in the foregoing description);

[0154] A scheme explanation module 4 is configured to extract a corresponding language description from a non-technical description template library according to the recommended RAID scheme, and calculate scheme performance index data, to generate a non-technical scheme explanation (for details, refer to step A4 in the foregoing description);

[0155] A scheme display module 5 is configured to display the non-technical scheme explanation to the user in the form of text and illustrations, and provide a sliding bar control for adjusting the weights of data security, storage capacity and access speed (for details, refer to step A5 in the foregoing description);

[0156] A weight adjustment module 6 is configured to adjust the weights of different items in the utility function according to the sliding bar position when the user adjusts the sliding bar control, to update the recommended RAID scheme, and make the scheme explanation module 4 and the scheme display module 5 repeatedly execute corresponding operations, so as to update the displayed non-technical scheme explanation (for details, refer to step A6 in the foregoing description);

[0157] A configuration execution module 7 is configured to execute RAID creation and formatting operations to display the configuration progress in non-technical text when a user confirmation instruction for the recommended RAID scheme is received (for details, refer to step A7 in the foregoing description).

[0158] As an embodiment, the scheme of the present application is implemented as follows: the system can be implemented as a software application running on the main processor of a network storage device. The weight determination module 1, the parameter space determination module 2, the scheme search module 3, the scheme interpretation module 4, the scheme display module 5, the weight adjustment module 6 and the configuration execution module 7 can be implemented as different classes or functions in the software. The mapping rule library and the non-technical description template library can be stored as JSON files on the internal storage of the device or entries in the SQLite database. The utility function can be implemented as a calculation function in the software code. The parameter space determination module 2 can call the operating system interface to obtain the number of hard disks, and consult the preset configuration data structure to determine the feasible RAID parameter range. The scheme search module 3 can traverse each parameter combination in the parameter space, call the utility function to calculate its score, and select the combination with a high score as the recommended scheme. The scheme interpretation module 4 can select the corresponding text segment from the template library according to the parameters of the recommended scheme, and call the performance calculation function to calculate the available capacity, fault tolerance and other indicators, and then combine the text and indicator data to generate an interpretation string. The scheme display module 5 can be implemented as a Web server that provides a configuration interface to the user's browser through the HTTP protocol, and the interface includes text areas, picture display areas, and slider bars, etc. HTML elements. The weight adjustment module 6 can be implemented by front-end JavaScript code, which listens to the onchange event of the slider bar, sends the slider bar position to the back-end, and the back-end updates the weight according to the position, re-triggers the scheme search and interpretation process, and sends the updated interpretation back to the front-end for display. The configuration execution module 7 can call the RAID management tools (such as the mdadm command under the Linux system) and file system tools (such as the mkfs command) provided by the device operating system to perform creation and formatting operations, and parse the output information of these tools, convert it into non-technical text and progress percentage, and send it to the front-end interface in real time through Websocket or other means for display.

[0159] The above only describes the embodiments of the present application and is not used to limit the protection scope of the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A RAID parameter configuration method for guiding non-professional users to complete storage configuration during the initialization of a multi-hard drive network storage device, characterized in that, The method comprises: A1. Obtain a user-selected storage emphasis direction to determine an initial weight set of each performance score item in the utility function from a mapping rule library; the storage emphasis direction comprises data security, storage capacity and access speed; the utility function is used to evaluate the pros and cons of different RAID parameter combinations; the performance score item comprises a data security score, a storage capacity score and an access speed score; A2. Determine a set of feasible RAID levels according to the number of hard disks installed on the network storage device, and preset a strip size range and a set of cache strategy options for each RAID level to form a RAID parameter space; A3. In the RAID parameter space, search for a RAID parameter combination that maximizes the function value of the utility function after the initial weight set is determined to obtain a recommended RAID scheme; A4. According to the recommended RAID scheme, extract the corresponding language description from the non-technical description template library, and calculate the scheme performance index data to generate a non-technical scheme explanation; A5. Display the non-technical scheme explanation in the form of text and diagrams to the user, and provide a sliding bar control for adjusting the weights of data security, storage capacity and access speed; A6. When the user adjusts the sliding bar control, adjust the weights of different items in the utility function according to the sliding bar position to update the recommended RAID scheme, and repeat steps A4 and A5 to update the displayed non-technical scheme explanation; A7. When receiving a user confirmation instruction for the recommended RAID scheme, perform RAID creation and formatting operations to display the configuration progress in non-technical text.

2. The method of claim 1, wherein, Step A1 comprises: A101. Obtain a user-selected storage emphasis direction; A102. Present refinement options associated with the user-selected storage emphasis direction; the refinement options include backup frequency, data recovery speed, acceptable data loss amount, storage file type, expected storage growth speed, concurrent access user number and maximum single file size; A103. Collect the user's selection results for the refinement options; A104. Adjust the initial weights of each performance score item in the utility function according to the user's selection results for the refinement options to obtain the utility function after the initial weight set is determined.

3. The method of claim 1, wherein, Step A2 comprises: A201. Obtain the number of currently installed hard disks of the network storage device as the effective number of hard disks; A202. According to the effective number of hard disks, query the preset correspondence table of RAID levels and hard disk numbers to determine the set of RAID levels supported by the effective number of hard disks; A203. For each RAID level in the determined set of RAID levels, extract the strip size range corresponding to the RAID level from the preset strip size range lookup table, and determine the set of cache strategy options supported by the RAID level according to the preset cache strategy option table; A204. Take the obtained set of RAID levels, strip size range and cache strategy option set as the final RAID parameter space.

4. The method of claim 3, wherein, After step A201 and before step A02, it further comprises: A205.If the user selects to start the future hard disk expansion plan, the predicted maximum hard disk quantity in the future hard disk expansion plan is extracted to correct the effective hard disk quantity.

5. The method of claim 3, wherein, Step A3 comprises: A301.For each RAID parameter combination in the RAID parameter space, the performance score of the RAID parameter combination in the three dimensions of data security, storage capacity and access speed is calculated according to the preset performance evaluation model, and a performance score vector is obtained; A302.According to the initial weight set determined, the performance score vectors obtained are weighted and summed to obtain the utility function value of the RAID parameter combination; A303.The utility function values of all RAID parameter combinations in the RAID parameter space are compared, and the RAID parameter combination with the maximum utility function value is determined as the recommended RAID scheme; the recommended RAID scheme includes specific RAID level, stripe size and cache strategy parameters.

6. The method of claim 1, wherein, Step A4 comprises: A401.According to the historical operation data, device usage habits and feedback information of the user, the understanding ability level of the user is evaluated; A402.According to the user understanding ability level, a non-technical description template sub-library matched with the user understanding ability level is selected from the hierarchical non-technical description template library; the hierarchical non-technical description template library is divided into a plurality of non-technical description template sub-libraries according to the user understanding ability level, and each non-technical description template sub-library contains non-technical description templates with different detailed levels and expression manners; A403.From the selected non-technical description template sub-library, the language description corresponding to the recommended RAID scheme is extracted, and according to the recommended RAID scheme, the preset performance calculation module is called to calculate the available capacity, fault tolerance capability and read-write performance indicators to obtain scheme performance indicator data; A404.The extracted language description and scheme performance indicator data are combined to generate a non-technical scheme explanation according to the scheme explanation generation rule matched with the user understanding ability level; wherein the scheme explanation generation rule includes adjusting the complexity of the diagram and the frequency of use of professional terms for users with different understanding ability levels.

7. The method of claim 6, wherein, Step A404 comprises: Obtain the diagram complexity level and professional term usage frequency level matched with the user understanding ability level; According to the diagram complexity level, select the diagram with corresponding complexity from the preset diagram library; the diagram library contains RAID scheme schematic diagram, data read-write flowchart and performance comparison diagram with different complexity levels; According to the professional term usage frequency level, adjust the usage frequency of professional terms in the extracted language description; The selected diagram and the adjusted language description, and the calculated scheme performance indicator data are combined to generate a non-technical scheme explanation.

8. The method of claim 1, wherein, Step A6 comprises: A601.Monitor the user's adjustment operation on the slider control to obtain the current position value of the slider in the three dimensions of data security, storage capacity and access speed; A602. According to the current position value of the sliding bar, a new value of the data security weight, the storage capacity weight and the access speed weight in the utility function is calculated in combination with a preset weight mapping function; the weight mapping function is a piecewise linear function, which maps the sliding bar position value to a weight value between 0 and 1, different segments correspond to different mapping slopes, and the sensitivity of weight adjustment is controlled; A603. Based on the newly calculated weight value and the parameter combination of the recommended RAID scheme obtained in the last search, a local RAID parameter search space is constructed; the local search space is realized by limiting the adjustment range of the stripe size and the cache strategy, and the size of the adjustment range is proportional to the moving distance of the sliding bar; A604. In the local RAID parameter search space, a RAID parameter combination that maximizes the function value of the new utility function is searched again to obtain an updated recommended RAID scheme; the new utility function refers to the utility function applied to the newly calculated weight value; A605. For the updated recommended RAID scheme, steps A4 and A5 are repeatedly executed to update the non-technical scheme explanation displayed.

9. The method of claim 1, wherein, Step A7 includes: A701. After receiving the confirmation instruction of the user on the recommended RAID scheme, the user interface is locked and the modification operation is prohibited; A702. According to the RAID level, the stripe size and the cache strategy of the recommended RAID scheme, the RAID array creation is executed, the creation state is monitored in the background, and the creation progress is obtained; A703. The RAID creation progress is converted into non-technical text, which is displayed in real time on the user interface, and the creation progress bar is dynamically updated according to the creation progress; A704. After the RAID array creation is completed, the RAID array is formatted, the formatting state is monitored in the background, and the formatting progress is obtained; A705. The formatting progress is converted into non-technical text, which is displayed in real time on the user interface, and the formatting progress bar is dynamically updated according to the formatting progress; A706. After the RAID array formatting is completed, the user interface is unlocked, it is prompted that the configuration is completed, and the available capacity and the health status of the RAID array are displayed.

10. A RAID parameter configuration system for guiding a non-expert user through a storage configuration at initialization of a multi-hard-disk network storage device, characterized in that, The system comprises: A weight determination module configured to obtain a storage emphasis direction selected by a user, and determine an initial weight set of each performance score item in a utility function from a mapping rule library according to the storage emphasis direction; the storage emphasis direction comprises data security, storage capacity and access speed; the utility function is used to evaluate the pros and cons of different RAID parameter combinations; the performance score item comprises a data security score, a storage capacity score and an access speed score; A parameter space determination module configured to determine a feasible RAID level set according to the number of hard disks installed on a network storage device, and preset a stripe size range and a cache strategy option set for each RAID level to form a RAID parameter space; A scheme search module configured to search, in the RAID parameter space, a RAID parameter combination that maximizes the function value of the utility function after the initial weight set is determined, and obtain a recommended RAID scheme; The scheme explanation module is configured to extract a corresponding language description from the non-technical description template library according to the recommended RAID scheme, and calculate scheme performance index data to generate a non-technical scheme explanation. The scheme display module is configured to display the non-technical scheme explanation in the form of text and illustrations to the user, and provide a sliding bar control for adjusting the weights of data security, storage capacity and access speed. The weight adjustment module is configured to adjust the weights of different items in the utility function according to the sliding bar position when the user adjusts the sliding bar control, update the recommended RAID scheme, and enable the scheme explanation module and the scheme display module to repeatedly perform corresponding operations, so as to update the displayed non-technical scheme explanation. The configuration execution module is configured to perform RAID creation and formatting operations to display the configuration progress in the form of non-technical text when a confirmation instruction of the recommended RAID scheme is received from the user.

Citation Information

Patent Citations

  • Method and device for establishing redundant array of independent hard disks and medium

    CN113870938A

  • Automatic parameter generation method and device in RAID verification and storage medium

    CN115587556A