Disk parameter configuration method and device

Through semantic analysis and weight grading of user demand text, RAID configuration solution score is calculated, RAID configuration complexity and multi-objective balance problems are solved, and intelligent RAID configuration is realized.

CN120276683AInactive Publication Date: 2025-07-08INSPUR SUZHOU INTELLIGENT TECH CO LTD

Patent Information

Application Number
CN202510750344.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-06
Publication Date
2025-07-08
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing RAID configuration process is complicated, and it is difficult for non-professional users to choose appropriate parameters, resulting in data errors and the dynamic balance between multiple goals cannot be achieved.

Method used

By obtaining the user's natural language requirements text, conducting semantic analysis, determining the requirements information and priorities, assigning weight values, calculating the score of the disk parameter configuration scheme, and selecting the most suitable RAID configuration scheme.

Benefits of technology

It realizes that non-professional users can configure appropriate RAID parameters without understanding the details of RAID, achieving a dynamic balance between safety, performance and cost, and meeting multi-dimensional needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120276683A_ABST
    Figure CN120276683A_ABST
Patent Text Reader

Abstract

The invention discloses a disk parameter configuration method and device. The method comprises the steps of obtaining an initial demand text input by a user; performing semantic analysis on the initial demand text, and determining at least one piece of demand information and a priority among the at least one piece of demand information; determining a target dimension corresponding to the at least one piece of demand information; determining a demand degree corresponding to the target dimension according to the priority; determining a demand weight value corresponding to the target dimension according to the demand degree; according to the demand weight value corresponding to the target dimension, respectively calculating a target score of at least one pre-stored disk parameter configuration scheme; determining a target disk parameter configuration scheme according to the target score of the at least one disk parameter configuration scheme; and performing configuration according to the target disk parameter configuration scheme. A user does not need to understand technical details of the RAID in advance, dynamic balance among multiple dimensions such as safety, performance and cost is achieved based on weights, analysis and accurate quantification of RAID configuration requirements are achieved, and dynamic balance among multiple targets can be met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of RAID configuration, and particularly to a method and device for disk parameter configuration. Background Art

[0002] Redundant Array of Independent Disks (RAID) realizes data redundancy, performance optimization and capacity expansion through multi-disk collaboration. With the growth of storage requirements, the RAID levels have gradually become richer, and users need to select configuration parameters according to the number of disks, redundancy requirements and performance goals, which is difficult for non-professionals and may lead to data errors due to incorrect parameter selection; in addition, the current RAID custom configuration may not be able to meet the dynamic balance between multiple goals. Therefore, how to achieve intelligent RAID configuration has become an urgent problem to be solved currently. Summary of the Invention

[0003] This application provides a method and device for disk parameter configuration to at least solve the problem of how to achieve intelligent RAID configuration.

[0004] This application provides a method for disk parameter configuration, including: obtaining an initial requirement text input by a user; performing semantic analysis on the initial requirement text to determine at least one requirement information and the priority between at least one requirement information; determining the target dimension corresponding to at least one requirement information respectively, where the target dimension includes at least one of a security dimension, a performance dimension and a cost dimension; determining the degree of requirement corresponding to the target dimension according to the priority; determining the requirement weight value corresponding to the target dimension according to the degree of requirement; calculating the target scores of at least one pre-stored disk parameter configuration scheme respectively according to the requirement weight value corresponding to the target dimension; determining a target disk parameter configuration scheme according to the target scores of at least one disk parameter configuration scheme; performing configuration according to the target disk parameter configuration scheme.

[0005] This application also provides a disk parameter configuration device, including: an obtaining module, configured to obtain an initial requirement text input by a user; a processing module, configured to perform semantic analysis on the initial requirement text to determine at least one requirement information and the priority between at least one requirement information; the processing module is further configured to determine the target dimension corresponding to at least one requirement information respectively, where the target dimension includes at least one of a security dimension, a performance dimension and a cost dimension; The processing module is further configured to determine the requirement degree corresponding to the target dimension according to the priority; The processing module is further configured to determine the requirement weight value corresponding to the target dimension according to the requirement degree; The processing module is further configured to calculate the target scores of at least one pre-stored disk parameter configuration scheme respectively according to the requirement weight value corresponding to the target dimension; The processing module is further configured to determine the target disk parameter configuration scheme according to the target scores of at least one disk parameter configuration scheme; The configuration module is configured to perform configuration according to the target disk parameter configuration scheme.

[0006] This application also provides an electronic device, including: a memory for storing a computer program; a processor for implementing the steps of any of the above disk parameter configuration methods when executing the computer program.

[0007] This application also provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps of any of the above disk parameter configuration methods are implemented.

[0008] This application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of any of the above disk parameter configuration methods are implemented.

[0009] Through this application, an initial requirement text input by a user is obtained; semantic analysis is performed on the initial requirement text to determine at least one requirement information and the priority between at least one requirement information; the target dimensions respectively corresponding to at least one requirement information are determined, and the target dimensions include at least one of a security dimension, a performance dimension, and a cost dimension; according to the priority, the requirement degree corresponding to the target dimension is determined; the requirement weight value corresponding to the target dimension is determined according to the requirement degree; the target scores of at least one pre-stored disk parameter configuration scheme are calculated respectively according to the requirement weight value corresponding to the target dimension; the target disk parameter configuration scheme is determined according to the target scores of at least one disk parameter configuration scheme; configuration is performed according to the target disk parameter configuration scheme. In this solution, the user does not need to understand the RAID technical details in advance and only needs to input natural language to elaborate the requirements. Through semantic analysis, the specific technical requirement indicators of the user for RAID configuration are determined, and based on weight grading, dynamic balance among multiple dimensions such as the security dimension, the performance dimension, and the cost dimension is achieved, so as to select the RAID configuration scheme that best matches the requirements in multiple dimensions, realizing the parsing and precise quantification of fuzzy RAID configuration requirements, and the dynamic balance that can meet multiple objectives. Description of the Drawings

[0010] To more clearly illustrate the embodiments of the present application, the accompanying drawings required for the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.

[0011] Figure 1 Flow chart of a disk parameter configuration method provided by an embodiment of the present application Figure 1 ; Figure 2 Flow chart of a disk parameter configuration method provided by an embodiment of the present application Figure 2 ; Figure 3 Structural diagram of a disk parameter configuration device provided by an embodiment of the present application; Figure 4 Structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0012] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the protection scope of the present application.

[0013] It should be noted that in the description of the present application, the terms "including", "comprising" 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 not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article or device. The terms "first", "second", etc. in the present application are used to distinguish similar objects, rather than to describe a specific order or sequence.

[0014] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Rather, the use of words such as "exemplary" or "for example" is intended to present relevant concepts in a specific manner.

[0015] Redundant Array of Independent Disks (RAID) is a technology that combines multiple physical disks into a logical unit to improve the reliability, performance, or both of data storage. RAID achieves its goals through three core mechanisms: striping, mirroring, and parity. Striping: Distribute data across multiple disks to improve performance through parallel read and write operations. Mirroring: Completely replicate data to multiple disks to provide redundancy protection. Parity: Achieve fault tolerance by calculating the check information of data blocks and recover data in case of partial disk failures. RAID can improve data read and write performance through striping or parallel access, enhance data reliability through mirroring or parity, and also flexibly expand capacity.

[0016] Currently, in practical applications, the interaction method for RAID configuration mainly relies on the graphical user interface (GUI) or command-line operations. The operation steps are complex and lack scenario-based guidance, making it difficult for non-professional users to get started and prone to data risks due to incorrect parameter selection. In addition, there is a lack of multi-objective trade-off capabilities (such as the quantitative balance between performance and cost) when configuring RAID currently.

[0017] In related technologies, it is possible to obtain the detailed information of the logical disk classification of a server; determine the hard disk requirements for each logical disk based on the detailed information of the logical disk classification; for any logical disk, filter the target hard disks in the server according to the hard disk requirements of the logical disk; and create the logical disk based on the target hard disks to obtain an independent redundant disk array composed of several logical disks. The method provided by the above solution realizes the automatic creation of logical disks by analyzing the hard disk requirements of logical disks, thus improving the RAID creation efficiency of the server. However, this solution is limited to predefined scenarios and static rules and cannot handle undefined scenarios; at the same time, users still need to understand technical indicators such as "redundancy level" and "IOPS threshold", and the problem of fuzzy requirement input has not been solved. For example, users cannot clearly define the "redundancy level" but require "high security".

[0018] In the related art, a parameter configuration table can be preset in the firmware of a RAID card. The parameter configuration table stores the correspondence between multiple disk parameters, RAID array types, and RAID array control parameters. During the process of forming a RAID array, the RAID array type and the disk parameters that make up the RAID array are obtained and saved in the parameter configuration table. In response to the update of the RAID array type and / or disk parameters in the parameter configuration table, the background matching of the RAID array control parameters is automatically performed based on the correspondence. In response to the matching of the corresponding RAID array control parameters, the RAID array control parameters are automatically saved as the current configuration. The method of the present invention can simplify the parameter configuration process of the RAID array and give full play to the performance of the RAID array. However, although this solution simplifies the RAID parameter configuration through a preset parameter table and dynamic matching, its core still relies on static rules and manually predefined data and cannot parse fuzzy requirements. In addition, after the above patent automatically matches the parameters, it directly applies them without providing a configuration basis.

[0019] Since the RAID technology was proposed in 1987, it has achieved data redundancy, performance optimization, and capacity expansion through multi-disk collaboration. With the growth of storage requirements, RAID is divided into multiple levels according to the implementation method, and each level has its own emphasis on performance, capacity, and fault tolerance (such as the non-redundant high speed of RAID 0, the mirror security of RAID 1, the distributed parity of RAID 5, the dual fault tolerance of RAID 6, etc.). Users need to select configuration parameters according to the number of disks, redundancy requirements, and performance goals, which is difficult for non-professionals and may cause data errors due to incorrect parameter selection. In addition, the current RAID custom configuration may not be able to meet the dynamic balance between multiple goals. Therefore, how to achieve intelligent RAID configuration has become an urgent problem to be solved at present.

[0020] In order to enable those skilled in the art of the present technology to better understand the solution of the present application, the following further detailed description of the present application will be given in conjunction with the accompanying drawings and specific embodiments.

[0021] As Figure 1 shown, Figure 1 is a flowchart of a disk parameter configuration method provided by an embodiment of the present application. The method may include the following steps: 101. Obtain the initial requirement text input by the user.

[0022] In the embodiment of the present application, the initial requirement text input by the user can be used to represent the user's requirements for RAID configuration. The initial requirement text input by the user can be text information input by the user through text on the screen, or text information converted from voice information input by the user through voice, or text information selected by the user from preset configuration options on the screen, etc. The embodiment of the present application does not make specific limitations.

[0023] It should be noted that since the user may not be a professional in the field and is not familiar with the professional terms of RAID configuration, the initial requirement text can be a fuzzy requirement, and only needs to express the specific requirements in simple and clear words, which can also be understood as plain language, such as "fast reading and writing and secure", "cost saving", etc.

[0024] 102. Perform semantic analysis on the initial requirement text to determine at least one requirement information and the priority between at least one requirement information.

[0025] 103. Determine the target dimensions corresponding to at least one requirement information respectively.

[0026] 104. Determine the requirement degree corresponding to the target dimension according to the priority.

[0027] In the embodiments of the present application, since the user may not input professional requirement information, but specific technical indicators are required for calculation to select a suitable configuration during calculation, it is necessary to convert the user's initial requirement text into a professional requirement situation.

[0028] It should be noted that for the characteristics of the RAID configuration scenario, it can be divided into three dimensions of "security / performance / cost" for synonymous analogy judgment. Therefore, a natural language parsing function can be integrated. This natural language parsing function is based on a semantic parsing model to parse the user's requirements and convert fuzzy requirements into professional technical indicators. For example, "not easily broken", "secure" can be parsed as related to redundancy; "fast", "high speed", "fast reading and writing" can be parsed as related to read and write performance; "save disk", "large space", "do not waste storage space" can be parsed as related to disk utilization rate.

[0029] In the embodiments of the present application, when the user inputs the initial requirement text, the user may input text data related to at least one dimension, and also input degree data corresponding to each dimension. It can also be understood that the user will input the requirements that want to be met for which dimensions, and which dimension is considered the most important and which dimension is not very necessary. Therefore, after performing semantic analysis on the initial requirement text, the target dimension and the requirement degree corresponding to the target dimension can be extracted from the initial requirement text.

[0030] In some embodiments, since the user can input the initial requirement text by directly saying a sentence, when performing semantic analysis on the initial requirement text, the initial requirement text can be first split into texts, that is, the initial requirement text is split into multiple words, and then it is determined whether each word is a word related to the target dimension and whether it is a word related to the requirement degree, so as to determine the target dimension and the requirement degree corresponding to the target dimension.

[0031] In some embodiments, the semantic analysis of the initial requirement text can be implemented by a semantic analysis model, which can be pre-trained with a large amount of data. That is, a large amount of text input by users, as well as the RAID configuration requirements and the degree of requirements needed by the users, are obtained in advance, so as to train the model, enabling the model to learn the corresponding relationship between the text input by users, the configuration requirements, and the degree of requirements, thus obtaining the semantic analysis model.

[0032] In the embodiments of the present application, when a user inputs their configuration requirements for RAID, they may put forward at least one requirement. The at least one requirement can correspond to at least one target dimension, and the target dimension can include at least one of the security dimension, the performance dimension, and the cost dimension; there may also be a sequence order among the at least one requirement, and this sequence order can be understood as the priority among the requirement information. The requirement stated earlier by the user can be considered to have a higher priority, and the requirement stated later by the user can be considered to have a lower priority. Then, according to the requirement information, the corresponding target dimension can be determined, and according to the priority, the degree of requirement corresponding to the target dimension can be determined.

[0033] Exemplarily, assume that the initial requirement text input by the user is "I want a configuration solution with high security and then save money". Then, after semantic analysis of the initial requirement text, two requirement information, "high security" and "save money", expressed by the user can be extracted. In addition, the user said "high security" first and then "save money". Therefore, it can be obtained that the target dimensions include the security dimension and the cost dimension, and the degree of requirement for the security dimension is necessary, while the degree of requirement for the cost dimension is general.

[0034] In this solution, the text input by the user may include requirements for multiple dimensions. Then, according to the sequence order of each dimension by the user, the priority of the user's requirements for each dimension can be reflected, which can reflect the user's requirements in a personalized manner and make the finally obtained configuration solution more adaptable.

[0035] 105. Determine the requirement weight value corresponding to the target dimension according to the degree of requirement.

[0036] In the embodiments of the present application, since the degree of requirement can represent the priority among each requirement information, the higher the degree of requirement of a dimension, the more important it indicates. Then, when assigning the weight value, the weight can be increased; the lower the degree of requirement of a dimension, the less important it indicates. Then, when assigning the weight value, the weight can be decreased.

[0037] In this solution, the requirement weight value can be determined according to the requirement degree corresponding to the target dimension, and this requirement degree is obtained after semantic analysis of the user's initial requirement text. It can be seen from this that the requirement weight value can effectively reflect the user's requirements for each dimension, and thus be reflected in the weight value. Then, through subsequent scoring calculations, the solution that best fits the user's requirements can be determined, effectively improving the matching degree of the configuration solution.

[0038] 106. Calculate the target scores of at least one pre-stored disk parameter configuration solution respectively according to the requirement weight value corresponding to the target dimension.

[0039] In the embodiments of the present application, the disk parameter configuration solution is the RAID configuration solution. In the related art, the types of RAID levels are already very rich. For example: RAID 0, RAID 1, RAID 5, RAID 6, RAID 10, etc. Each RAID level can be understood as a disk parameter configuration solution. In addition, different RAID configuration parameters (such as: stripe size, cache policy, array initialization method, etc.) in each RAID level can form different disk parameter configuration solutions. Therefore, multiple disk parameter configuration solutions can be pre-stored. And each disk parameter configuration solution will have a certain impact on the three dimensions of security, performance, and cost. Therefore, after determining the requirement weight value corresponding to the target dimension of the RAID configuration required by the user, the target scores of at least one disk parameter configuration solution can be determined according to the requirement weight value corresponding to the target dimension. The target score can be used to indicate the effect of the disk parameter configuration solution in multiple dimensions, and can also be understood as the degree of adaptation to the user's requirements. The higher the target score, the more suitable the disk parameter configuration solution is for the user's requirements.

[0040] In some embodiments, Table 1 below shows several common RAID levels and their characteristics.

[0041] Table 1 RAID Levels and Their Characteristics

[0042] In some embodiments, Table 2 below shows several common configuration parameters corresponding to the RAID levels.

[0043] Table 2 RAID Configuration Parameters

[0044] 107. Determine the target disk parameter configuration solution according to the target scores of at least one disk parameter configuration solution.

[0045] In the embodiments of the present application, after calculating the corresponding target scores for at least one disk parameter configuration scheme, the target disk parameter configuration scheme can be selected from at least one disk parameter configuration scheme according to the target scores of the disk parameter configuration scheme. The target disk parameter configuration scheme can be understood as the configuration scheme that best suits the user's needs.

[0046] 108. Configure according to the target disk parameter configuration scheme.

[0047] In the embodiments of the present application, after determining the target disk parameter configuration scheme, the RAID can be configured according to the specific parameters included in the target disk parameter configuration scheme.

[0048] In the embodiments of the present application, obtain the initial requirement text input by the user; perform semantic analysis on the initial requirement text to determine at least one requirement information and the priority between at least one requirement information; determine the target dimension corresponding to each at least one requirement information, and the target dimension includes at least one of the security dimension, the performance dimension, and the cost dimension; determine the degree of requirement corresponding to the target dimension according to the priority; determine the requirement weight value corresponding to the target dimension according to the degree of requirement; calculate the target scores of at least one pre-stored disk parameter configuration scheme respectively according to the requirement weight value corresponding to the target dimension; determine the target disk parameter configuration scheme according to the target scores of at least one disk parameter configuration scheme; configure according to the target disk parameter configuration scheme. In this solution, the user does not need to understand the technical details of RAID in advance, and only needs to input natural language to elaborate the requirements. Through semantic analysis, the specific technical requirement indicators for RAID configuration by the user are determined, and based on weight grading, dynamic balance among multiple dimensions such as the security dimension, the performance dimension, and the cost dimension is achieved, so as to select the RAID configuration scheme that best adapts to the requirements in multiple dimensions, realizing the parsing and precise quantification of fuzzy RAID configuration requirements, and the dynamic balance that can meet multiple objectives.

[0049] As Figure 2 shown, Figure 2 Another flowchart of the disk parameter configuration method provided by the embodiments of the present application is as follows. The method may include the following steps: 201. Obtain the initial requirement text input by the user.

[0050] In some embodiments, some preprocessing may be performed on the initial requirement text input by the user first, such as: denoising, text splitting, voice enhancement, etc.

[0051] 202. Perform semantic analysis on the initial requirement text to determine at least one requirement information and the priority between at least one requirement information.

[0052] 203. Determine the target dimension corresponding to each at least one requirement information.

[0053] 204. Determine the requirement degree corresponding to the target dimension according to the priority.

[0054] 205. Determine the requirement weight value corresponding to the target dimension according to the requirement degree.

[0055] In the embodiments of the present application, for the descriptions of steps 201 to 205, please refer to the detailed descriptions of steps 101 to 105 in the above embodiments, and the embodiments of the present application will not be elaborated herein.

[0056] 206. Calculate the security sub-score of the first disk parameter configuration scheme according to the first weight value of the security dimension.

[0057] In the embodiments of the present application, when the target dimension includes the security dimension, the security sub-score needs to be calculated first when calculating the target score. The security score can be determined according to the security capability of the disk parameter configuration scheme and the first weight value corresponding to the security dimension. When calculating the security sub-score, each disk parameter configuration scheme needs to be calculated. The first disk parameter configuration scheme can be any one of at least one disk parameter configuration scheme.

[0058] In some embodiments, the first weight value of the security dimension can be obtained by analyzing the initial requirement text input by the user, and the security capability representing the disk parameter configuration scheme is determined according to the configuration parameters of the disk parameter configuration scheme. Specifically, it can include: obtaining the redundant data corresponding to at least one disk parameter configuration scheme respectively; sorting at least one disk parameter configuration scheme according to the redundant data to obtain the first sorting result; determining the security score of the first disk parameter configuration scheme according to the first sorting result; calculating the security sub-score of the first disk parameter configuration scheme according to the first weight value of the security dimension and the security score.

[0059] It should be noted that the security dimension is mainly to reflect the fault tolerance ability of the disk parameter configuration scheme after the disk fails. If it has a certain fault tolerance ability, the score of the security dimension of the disk parameter configuration scheme can be relatively high. That is to say, if the number of disks is large, even if some disks fail, it will not affect the overall operation. Therefore, when calculating the security sub-score, the redundant data corresponding to each disk parameter configuration scheme can be determined. The redundant data can refer to the redundancy ability in Table 1 above. Sort the redundant data corresponding to each disk parameter configuration scheme, and determine the high and low situation of the redundancy ability of each disk parameter configuration scheme according to the sorting result. Then, score each disk parameter configuration scheme according to the sorting result, and the security score of the first disk parameter configuration scheme can be obtained. Finally, combining the security score of the first disk parameter configuration scheme and the first weight value of the security dimension, the security sub-score of the first disk parameter configuration scheme can be obtained.

[0060] Exemplarily, assume that the first weight value of the security dimension is 0.8, and the available disk parameter configuration schemes include RAID 6 and RAID 10. Among them, RAID 6 has four disks supporting dual-disk fault tolerance, and RAID 10 has four disks supporting dual-disk fault tolerance, but they need to be distributed in different mirror groups. Therefore, the ranking of RAID 6 takes precedence over RAID 10. Thus, it can be considered that the security score of RAID 6 is 0.9, and the security score of RAID 10 is 0.8. At this time, the security sub-scores of RAID 6 and RAID 10 are calculated respectively as 0.9 * 0.8 = 0.72 and 0.8 * 0.8 = 0.64.

[0061] 207. Calculate the performance sub-score of the first disk parameter configuration scheme according to the second weight value of the performance dimension.

[0062] In the embodiments of the present application, when the target dimension includes the performance dimension, the performance sub-score needs to be calculated first when calculating the target score. The performance score can be determined according to the read-write performance of the disk parameter configuration scheme and the second weight value corresponding to the performance dimension. When calculating the performance sub-score, each disk parameter configuration scheme needs to be calculated. The first disk parameter configuration scheme can be any one of at least one disk parameter configuration scheme.

[0063] In some embodiments, the second weight value of the performance dimension can be obtained by analyzing the initial requirement text input by the user, and the read-write performance representing the disk parameter configuration scheme is determined according to the configuration parameters of the disk parameter configuration scheme. Specifically, it may include: obtaining the read-write performance data corresponding to at least one disk parameter configuration scheme respectively; sorting at least one disk parameter configuration scheme according to the read-write performance data to obtain a second sorting result; determining the performance score of the first disk parameter configuration scheme according to the second sorting result; calculating the performance sub-score of the first disk parameter configuration scheme according to the second weight value of the performance dimension and the performance score.

[0064] It should be noted that the read and write performance can respectively represent the read performance and write performance of the disk parameter configuration scheme. The read and write performance can be determined according to the specific disk characteristics and strip characteristics in the disk parameter configuration scheme. When calculating the performance sub-score, the read and write performance corresponding to each disk parameter configuration scheme can be determined. The read and write performance can refer to the read and write performance in Table 1 above. Sort the read and write performance corresponding to each disk parameter configuration scheme, and determine the high and low situation of the read and write performance of each disk parameter configuration scheme according to the sorting result. Then, score each disk parameter configuration scheme according to the sorting result to obtain the score of the first disk parameter configuration scheme. Finally, combine the performance score of the first disk parameter configuration scheme and the second weight value of the performance dimension to obtain the performance sub-score of the first disk parameter configuration scheme.

[0065] Exemplarily, assume that the second weight value of the performance dimension is 0.6. The available disk parameter configuration schemes include RAID 6 and RAID 10. Among them, RAID 6 requires verification calculation overhead, and RAID 10 supports high-speed striping. Therefore, the sorting of RAID 10 takes precedence over RAID 6. Therefore, it can be considered that the performance score of RAID 6 is 0.6, and the security score of RAID 10 is 0.8. At this time, calculate the performance sub-score of RAID 6 as 0.6 * 0.6 = 0.36, and the performance sub-score of RAID 10 as 0.8 * 0.6 = 0.48.

[0066] 208. Calculate the cost sub-score of the first disk parameter configuration scheme according to the third weight value of the cost dimension.

[0067] In the embodiments of the present application, when the target dimension includes the cost dimension, the cost sub-score needs to be calculated first when calculating the target score. The cost score can be determined according to the disk utilization rate of the disk parameter configuration scheme and the third weight value corresponding to the cost dimension. When calculating the cost sub-score, each disk parameter configuration scheme needs to be calculated. The first disk parameter configuration scheme can be any one of at least one disk parameter configuration scheme.

[0068] In some embodiments, the third weight value of the cost dimension can be obtained by analyzing the initial requirement text input by the user, and the disk utilization rate of the disk parameter configuration scheme is a fixed value of the disk parameter configuration scheme. Specifically, it can include: obtaining the capacity utilization rate data corresponding to each of at least one disk parameter configuration scheme; determining the cost score of the first disk parameter configuration scheme according to the capacity utilization rate data; calculating the cost sub-score of the first disk parameter configuration scheme according to the third weight value of the cost dimension and the cost score.

[0069] It should be noted that some disk parameter configuration schemes have a certain redundancy capacity. That is to say, if the number of disks in the disk parameter configuration scheme is relatively large, it can tolerate faults. Then, during normal operation, some disks are not utilized. While for the disk parameter configuration scheme without redundancy capacity and without fault tolerance, all disks are fully utilized. Therefore, when calculating the cost sub-score, the capacity utilization rate data corresponding to each disk parameter configuration scheme can be determined. This capacity utilization rate data can refer to the capacity utilization rate in Table 1 above and can be jointly calculated based on the number of disks and redundancy capacity in the disk parameter configuration scheme. Since the capacity utilization rate data corresponding to each disk parameter configuration scheme is a fixed percentage value, the value of this capacity utilization rate data can be directly determined as the cost score of this disk parameter configuration scheme. Finally, by combining the cost score of the first disk parameter configuration scheme and the third weight value of the cost dimension, the cost sub-score of the first disk parameter configuration scheme can be obtained.

[0070] Exemplarily, assume that the third weight value of the cost dimension is 0.7, and the available disk parameter configuration schemes include RAID 6 and RAID 10. Among them, the capacity utilization rate data of RAID 6 is 75%, and the capacity utilization rate data of RAID 10 is 50%. Therefore, it can be considered that the cost score of RAID 6 is 0.75, and the cost score of RAID 10 is 0.5. At this time, the cost sub-score of RAID 6 is calculated as 0.75 * 0.7 = 0.525, and the cost sub-score of RAID 10 is 0.5 * 0.7 = 0.35.

[0071] In some embodiments, since the pre-stored disk parameter configuration schemes may include many types, and of course, it is possible that not all schemes meet the user's requirements. Therefore, the quantization index threshold can be determined according to the user's requirement information, and screening can be performed through this quantization index threshold, and then the scoring calculation is performed on the screened disk parameter configuration schemes. Therefore, before calculating the security sub-score, performance sub-score, and cost sub-score, at least one disk parameter configuration scheme can be screened first, and the scoring calculation is performed on the screened disk parameter configuration schemes. Specifically, the threshold for the security dimension can be set as "redundancy level ≥ 1", the threshold for the performance dimension can be set as "IOPS ≥ 5000", and the threshold for the cost dimension can be set as "disk utilization rate ≥ 70%", etc. For example: when the user inputs "secure and disk-saving", the fuzzy requirement is transformed into a quantization index of "redundancy level ≥ 1, disk utilization rate ≥ 70%", and the scoring is calculated for the disk parameter configuration schemes that meet the above conditions.

[0072] 209. Obtain the target score of the first disk parameter configuration scheme according to the security sub-score, performance sub-score, and cost sub-score.

[0073] In an embodiment of the present application, when the target dimensions simultaneously include the security dimension, the performance dimension, and the cost dimension, the target score of the first disk parameter configuration scheme can be obtained by jointly calculating the security sub-score, the performance sub-score, and the cost sub-score.

[0074] In some embodiments, the security sub-score, the performance sub-score, and the cost sub-score can be added together to obtain the target score of the first disk parameter configuration scheme.

[0075] Exemplarily, assume that for RAID 10, the security sub-score is 0.8 (four disks support dual-disk fault tolerance but need to be distributed in different mirror groups), the performance sub-score is 0.8 (high-speed striping), and the cost sub-score is 0.5 (disk utilization rate of 50%); while for RAID 6, the security sub-score is 0.9 (dual-disk fault tolerance), the performance sub-score is 0.6 (checksum calculation overhead), and the cost sub-score is 0.75 (utilization rate of 75%). When the user requirement weights are security 0.8, performance 0.6, and cost 0.7, the target score of RAID 6 is 0.8×0.9 + 0.6×0.6 + 0.7×0.75 = 1.605, and the target score of RAID 10 is 0.8×0.8 + 0.6×0.8 + 0.7×0.5 = 1.47.

[0076] In this solution, an optimized implementation method is proposed through the above steps, that is, the score calculation of the configuration scheme is performed for the three dimensions of security, performance, and cost. In this way, it is possible to comprehensively evaluate from which perspectives whether each configuration scheme meets the user's requirements, so that the matching degree of the finally obtained scheme is the highest, achieving a dynamic balance among the three dimensions of security, performance, and cost.

[0077] 210. Determine the target disk parameter configuration scheme according to the target scores of at least one disk parameter configuration scheme.

[0078] In some embodiments, the disk parameter configuration scheme with the highest target score can be determined as the target disk parameter configuration scheme.

[0079] It should be noted that the higher the target score, the more the disk parameter configuration scheme meets the user's requirements. Therefore, the disk parameter configuration scheme with the highest target score can be determined as the target disk parameter configuration scheme.

[0080] 211. Configure according to the target disk parameter configuration scheme.

[0081] In some embodiments, after the target disk parameter configuration scheme is determined, the scheme can be confirmed with the user first. Since the user may not be a professional, if only the target disk parameter configuration scheme is output to the user, the user may not be clear about the specific configuration situation. Therefore, it can specifically include: outputting the target disk parameter configuration scheme to the user, and outputting the configuration description information corresponding to the target disk parameter configuration scheme; when receiving the configuration confirmation information fed back by the user, configuring according to the target disk parameter configuration scheme.

[0082] It should be noted that the target disk parameter configuration scheme and the corresponding configuration description information are output to the user at the same time, so that the user can clearly understand the configuration scheme through the description information. If the user confirms the configuration scheme, then after receiving the configuration confirmation information fed back by the user, the configuration can be performed according to the target disk parameter configuration scheme.

[0083] For example, assuming that the target disk parameter configuration scheme is RAID 6, enter the following recommendation reason: "RAID 6 is recommended: it supports {redundancy level} hard disk fault tolerance (meets your '{user original words snippet}' requirement), and can achieve {disk utilization}% storage utilization under {number of disks} hard disk configuration, which is {advantage percentage}% higher than similar solutions, but please note {potential risk warning}". At the same time, you can fill in data such as quantitative technical parameters (such as redundancy level = 2), hardware status data (such as detecting that SSD accounts for 60%), and strategy comparison results (such as RAID 6 reduces the cost of RAID 10 by 25%) into the template.

[0084] In this solution, technical decisions are converted into user-understandable recommendation reasons and interpretable output for users to make judgments, allowing non-technical personnel to quickly understand the trade-offs of complex strategies, thereby improving trust in automated configuration and controllability of decisions.

[0085] In some embodiments, after determining the target disk parameter configuration scheme, it is also possible to first detect whether the current hardware situation can meet the configuration scheme, so it can specifically include: obtaining the hardware configuration information of the current system; when it is detected that the hardware configuration information meets the target disk parameter configuration scheme, configuring according to the target disk parameter configuration scheme.

[0086] It should be noted that some configuration plans may have hardware quantity requirements. If the hardware does not meet the requirements, the configuration plan cannot be configured normally. Therefore, only when the current hardware configuration information meets the target disk parameter configuration plan, the configuration is performed according to the target disk parameter configuration plan.

[0087] Exemplarily, assume that the target disk parameter configuration scheme is RAID 6, which requires at least 4 disks. If it is detected through the hardware configuration information that there are currently 6 disks in the available state, meeting the minimum requirements for RAID 6 configuration, then the configuration can be performed according to RAID 6. However, if it is detected through the hardware configuration information that there are currently only 3 disks in the available state, not meeting the minimum requirements for RAID 6 configuration, then the current unsuitable RAID 6 configuration will be excluded and other solutions will be sought.

[0088] In some embodiments, when the hardware configuration information does not meet the target disk parameter configuration scheme, other solutions need to be sought, and this other solution can also be determined through the target score. The target disk parameter configuration scheme is determined according to the target scores of at least one disk parameter configuration scheme, which may specifically include: determining the target disk parameter configuration scheme and at least one alternative disk parameter configuration scheme according to the target scores of at least one disk parameter configuration scheme; when it is detected that the hardware configuration information does not meet the target disk parameter configuration scheme, configure according to at least one alternative disk parameter configuration scheme.

[0089] It should be noted that after calculating the target scores of at least one disk parameter configuration scheme, the disk parameter configuration scheme with the highest target score can be selected in sequence as the target disk parameter configuration scheme, and then the disk parameter configuration scheme with the second highest target score can be determined as the alternative disk parameter configuration scheme. Of course, the number of such alternative disk parameter configuration schemes can be set by oneself, or the schemes with the second highest, third highest, fourth highest, etc. target scores can be selected as alternatives. If the hardware configuration information does not meet the target disk parameter configuration scheme, selection can be made from the alternative disk parameter configuration schemes until a scheme that meets the hardware configuration information is selected for configuration.

[0090] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented through hardware, but in many cases, the former is a better implementation method.

[0091] As Figure 3 shown, an embodiment of the present application also provides a disk parameter configuration device, which may include: an acquisition module 301, configured to acquire an initial requirement text input by a user; a processing module 302, configured to perform semantic analysis on the initial requirement text to determine at least one requirement information and the priority between at least one requirement information; The processing module 302 is further configured to determine the target dimensions respectively corresponding to at least one requirement information, and the target dimensions include at least one of a security dimension, a performance dimension, and a cost dimension; The processing module 302 is further configured to determine the degree of demand corresponding to the target dimension according to the priority; The processing module 302 is further configured to determine the demand weight value corresponding to the target dimension according to the degree of demand; The processing module 302 is further configured to calculate the target scores of at least one pre-stored disk parameter configuration scheme respectively according to the demand weight value corresponding to the target dimension; The processing module 302 is further configured to determine the target disk parameter configuration scheme according to the target scores of at least one disk parameter configuration scheme; The configuration module 303 is configured to perform configuration according to the target disk parameter configuration scheme.

[0092] In some embodiments, the processing module 302 is specifically configured to calculate the security sub-score of the first disk parameter configuration scheme according to the first weight value of the security dimension; The processing module 302 is specifically configured to calculate the performance sub-score of the first disk parameter configuration scheme according to the second weight value of the performance dimension; The processing module 302 is specifically configured to calculate the cost sub-score of the first disk parameter configuration scheme according to the third weight value of the cost dimension; The processing module 302 is specifically configured to obtain the target score of the first disk parameter configuration scheme according to the security sub-score, the performance sub-score and the cost sub-score; Wherein, the first disk parameter configuration scheme is any one of at least one disk parameter configuration scheme.

[0093] In some embodiments, the obtaining module 301 is specifically configured to obtain the redundant data respectively corresponding to at least one disk parameter configuration scheme; The processing module 302 is specifically configured to sort at least one disk parameter configuration scheme according to the redundant data to obtain a first sorting result; The processing module 302 is specifically configured to determine the security score of the first disk parameter configuration scheme according to the first sorting result; The processing module 302 is specifically configured to calculate the security sub-score of the first disk parameter configuration scheme according to the first weight value of the security dimension and the security score.

[0094] In some embodiments, the obtaining module 301 is specifically configured to obtain the read-write performance data respectively corresponding to at least one disk parameter configuration scheme; The processing module 302 is specifically configured to sort at least one disk parameter configuration scheme according to the read-write performance data to obtain a second sorting result; The processing module 302 is specifically configured to determine the performance score of the first disk parameter configuration scheme according to the second sorting result; The processing module 302 is specifically configured to calculate the performance sub-score of the first disk parameter configuration scheme according to the second weight value of the performance dimension and the performance score.

[0095] In some embodiments, the obtaining module 301 is specifically configured to obtain the capacity utilization data respectively corresponding to at least one disk parameter configuration scheme; The processing module 302 is specifically configured to determine the cost score of the first disk parameter configuration scheme according to the capacity utilization data; The processing module 302 is specifically configured to calculate the cost sub-score of the first disk parameter configuration scheme according to the third weight value of the cost dimension and the cost score.

[0096] In some embodiments, the processing module 302 is specifically configured to determine the disk parameter configuration scheme with the highest target score as the target disk parameter configuration scheme; The processing module 302 is specifically configured to output the target disk parameter configuration scheme to the user and output the configuration description information corresponding to the target disk parameter configuration scheme; The configuration module 303 is specifically configured to perform configuration according to the target disk parameter configuration scheme when receiving the configuration confirmation information fed back by the user.

[0097] In some embodiments, the obtaining module 301 is specifically configured to obtain the hardware configuration information of the current system; The configuration module 303 is specifically configured to perform configuration according to the target disk parameter configuration scheme when detecting that the hardware configuration information meets the target disk parameter configuration scheme.

[0098] In some embodiments, the processing module 302 is specifically configured to determine the target disk parameter configuration scheme and at least one disk parameter configuration alternative according to the target scores of at least one disk parameter configuration scheme; The configuration module 303 is further configured to perform configuration according to at least one disk parameter configuration alternative when detecting that the hardware configuration information does not meet the target disk parameter configuration scheme.

[0099] In the embodiments of the present application, for the descriptions of the features in the corresponding embodiments of the disk parameter configuration device, reference may be made to the relevant descriptions in the corresponding embodiments of the disk parameter configuration method, which will not be elaborated here one by one.

[0100] As Figure 4 shown, an embodiment of the present application further provides an electronic device, including a memory 401 and a processor 402. A computer program is stored in the memory 401, and the processor 402 is configured to run the computer program to execute the steps in any of the above-mentioned embodiments of the disk parameter configuration method.

[0101] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps in any of the above-described method embodiments for configuring disk parameters when running.

[0102] In an exemplary embodiment, the above computer-readable storage medium may include, but is not limited to: various media such as USB flash drives, read-only memories (ROMs), random access memories (RAMs), external hard drives, magnetic disks, or optical discs that can store computer programs.

[0103] An embodiment of the present application also provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, it implements the steps in any of the above-described method embodiments for configuring disk parameters.

[0104] An embodiment of the present application also provides another computer program product, including a non-volatile computer-readable storage medium. The non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the steps in any of the above-described method embodiments for configuring disk parameters.

[0105] Those skilled in the art can further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described according to their functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Skilled professionals can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0106] The above has introduced in detail the process monitoring of a storage system provided by the present application. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application. It should be noted that for those of ordinary skill in the art in the technical field, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.

Claims

1. A method for configuring disk parameters, characterized in that, The method includes: Obtaining an initial requirement text input by a user; Performing semantic analysis on the initial requirement text to determine at least one requirement information and the priority among the at least one requirement information; Determining target dimensions respectively corresponding to the at least one requirement information, where the target dimensions include at least one of a security dimension, a performance dimension, and a cost dimension; Determining the requirement degree corresponding to the target dimension according to the priority; Determining a requirement weight value corresponding to the target dimension according to the requirement degree; Calculating target scores of at least one pre-stored disk parameter configuration scheme respectively according to the requirement weight value corresponding to the target dimension; Determining a target disk parameter configuration scheme according to the target scores of the at least one disk parameter configuration scheme; Performing configuration according to the target disk parameter configuration scheme.

2. The method according to claim 1, wherein The calculating the target scores of at least one pre-stored disk parameter configuration scheme respectively according to the requirement weight value corresponding to the target dimension includes: Calculating a security sub-score of a first disk parameter configuration scheme according to a first weight value of the security dimension; Calculating a performance sub-score of the first disk parameter configuration scheme according to a second weight value of the performance dimension; Calculating a cost sub-score of the first disk parameter configuration scheme according to a third weight value of the cost dimension; Obtaining the target score of the first disk parameter configuration scheme according to the security sub-score, the performance sub-score, and the cost sub-score; Wherein, the first disk parameter configuration scheme is any one of the at least one disk parameter configuration scheme.

3. The method according to claim 2, characterized in that, The calculating the security sub-score of the first disk parameter configuration scheme according to the first weight value of the security dimension includes: Obtaining redundant data respectively corresponding to the at least one disk parameter configuration scheme; Sorting the at least one disk parameter configuration scheme according to the redundant data to obtain a first sorting result; Determining a security score of the first disk parameter configuration scheme according to the first sorting result; Calculating the security sub-score of the first disk parameter configuration scheme according to the first weight value of the security dimension and the security score.

4. The method according to claim 2, wherein The calculating the performance sub-score of the first disk parameter configuration scheme according to the second weight value of the performance dimension includes: Obtaining read-write performance data respectively corresponding to the at least one disk parameter configuration scheme; Sorting the at least one disk parameter configuration scheme according to the read-write performance data to obtain a second sorting result; Determining a performance score of the first disk parameter configuration scheme according to the second sorting result; Calculating the performance sub-score of the first disk parameter configuration scheme according to the second weight value of the performance dimension and the performance score.

5. The method according to claim 2, characterized in that, The calculating the cost sub-score of the first disk parameter configuration scheme according to the third weight value of the cost dimension includes: Obtaining capacity utilization rate data respectively corresponding to the at least one disk parameter configuration scheme; Determining a cost score of the first disk parameter configuration scheme according to the capacity utilization rate data; Calculate the cost sub-score of the first disk parameter configuration scheme according to the third weight value of the cost dimension and the cost score.

6. The method according to claim 1, wherein Determining the target disk parameter configuration scheme according to the target scores of the at least one disk parameter configuration scheme includes: Determine the disk parameter configuration scheme with the highest target score as the target disk parameter configuration scheme; Configuring according to the target disk parameter configuration scheme includes: Output the target disk parameter configuration scheme to the user and output the configuration description information corresponding to the target disk parameter configuration scheme; When receiving the configuration confirmation information feedback by the user, configure according to the target disk parameter configuration scheme.

7. The method according to claim 1, wherein Configuring according to the target disk parameter configuration scheme includes: Obtain the hardware configuration information of the current system; When it is detected that the hardware configuration information meets the target disk parameter configuration scheme, configure according to the target disk parameter configuration scheme.

8. The method according to claim 7, wherein Determining the target disk parameter configuration scheme according to the target scores of the at least one disk parameter configuration scheme includes: Determine the target disk parameter configuration scheme and at least one alternative disk parameter configuration scheme according to the target scores of the at least one disk parameter configuration scheme; After obtaining the hardware configuration information of the current system, the method further includes: When it is detected that the hardware configuration information does not meet the target disk parameter configuration scheme, configure according to the at least one alternative disk parameter configuration scheme.

9. A disk parameter configuration device, characterized in that, The device includes: An acquisition module, configured to acquire an initial requirement text input by a user; A processing module, configured to perform semantic analysis on the initial requirement text to determine at least one requirement information and the priority between the at least one requirement information; The processing module is further configured to determine the target dimension corresponding to the at least one requirement information, and the target dimension includes at least one of a security dimension, a performance dimension, and a cost dimension; The processing module is further configured to determine the requirement degree corresponding to the target dimension according to the priority; The processing module is further configured to determine the requirement weight value corresponding to the target dimension according to the requirement degree; The processing module is further configured to calculate the target scores of at least one pre-stored disk parameter configuration scheme respectively according to the requirement weight values corresponding to the target dimensions; The processing module is further configured to determine a target disk parameter configuration scheme according to the target scores of the at least one disk parameter configuration scheme; A configuration module, configured to configure according to the target disk parameter configuration scheme.

Citation Information

Patent Citations

  • A data analysis-based building recommendation method, equipment, a storage medium and a device

    CN109902713A

  • Semantic recognition method and device, medium and electronic equipment

    CN110633464A

  • Operating parameter configuration method for processor and related device

    CN117992144A

  • Washing control method of washing machine

    CN119145161A

Cited By

  • Disk array card configuration method and electronic equipment

    CN121542103A