[go: up one dir, main page]

CN107632785A - A kind of collocation method of storage device, device and readable storage medium storing program for executing - Google Patents

A kind of collocation method of storage device, device and readable storage medium storing program for executing Download PDF

Info

Publication number
CN107632785A
CN107632785A CN201710842864.1A CN201710842864A CN107632785A CN 107632785 A CN107632785 A CN 107632785A CN 201710842864 A CN201710842864 A CN 201710842864A CN 107632785 A CN107632785 A CN 107632785A
Authority
CN
China
Prior art keywords
configuration parameters
storage device
configuration
storage devices
storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710842864.1A
Other languages
Chinese (zh)
Inventor
王军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710842864.1A priority Critical patent/CN107632785A/en
Publication of CN107632785A publication Critical patent/CN107632785A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

本发明公开了一种存储设备的配置方法、装置及可读存储介质,该方法的步骤包括:设定存储设备集合中的存储设备的配置参数,并将配置参数以及配置参数与存储设备的对应关系记录至参数文件;通过脚本的方式读取参数文件,并根据对应关系查找目标存储设备对应的目标配置参数;依照目标配置参数对目标存储设备进行配置。可见,本方法在便于对存储设备中功能代码的修改及后续开发的同时,提高配置效率并减少配置错误的情况发生。此外,存储设备的配置装置及可读存储介质同样具有上述效果。

The invention discloses a storage device configuration method, device and readable storage medium. The steps of the method include: setting the configuration parameters of the storage devices in the storage device set, and setting the configuration parameters and the correspondence between the configuration parameters and the storage devices The relationship is recorded in the parameter file; the parameter file is read through the script, and the target configuration parameters corresponding to the target storage device are searched according to the corresponding relationship; the target storage device is configured according to the target configuration parameters. It can be seen that, while facilitating modification and subsequent development of function codes in the storage device, the method improves configuration efficiency and reduces configuration errors. In addition, the configuration device of the storage device and the readable storage medium also have the above effects.

Description

一种存储设备的配置方法、装置及可读存储介质Configuration method, device and readable storage medium of a storage device

技术领域technical field

本发明涉及数据存储领域,特别是涉及一种存储设备的配置方法、装置及可读存储介质。The present invention relates to the field of data storage, in particular to a storage device configuration method, device and readable storage medium.

背景技术Background technique

随着大数据时代的到来,每天都在产生着数以亿计的数据,由于数据的附加值很高,有些数据对于企业来说十分重要,因此需要对数据进行存储以确保数据的安全。With the advent of the era of big data, hundreds of millions of data are generated every day. Due to the high added value of data, some data is very important to enterprises, so it is necessary to store data to ensure data security.

由于数据的总量是不断增加的,因此需要在原有的存储设备的基础上增加新的存储设备以存储新的数据。随着产生新数据的频率越来越快,对于新存储设备的增加也相应越来越频繁,每当有新的存储设备加入到存储系统中,都需要用户对于该存储设备进行相应的配置,以使其能够与其它存储设备之间顺利的协同工作。由于每一台存储设备中都有自身特有的参数,因此当前所采用的配置方法是对每一台新增加的存储设备进行单独配置,但是通过上述方法所配置的存储设备中,功能代码与参数冗余较大,不利于后期对存储设备中功能代码的修改及后续开发,并且在新增的存储设备的数量不断增加的当下,对每一台新增加的存储设备进行单独配置大大增加了用户的工作量,并且人为配置所产生的错误概率也相对增加,相应的降低了配置效率,进而降低了企业的整体生产效率。Since the total amount of data is constantly increasing, new storage devices need to be added on the basis of original storage devices to store new data. As the frequency of new data is getting faster and faster, the addition of new storage devices is correspondingly more and more frequent. Whenever a new storage device is added to the storage system, the user needs to configure the storage device accordingly. So that it can work smoothly with other storage devices. Since each storage device has its own unique parameters, the current configuration method is to configure each newly added storage device individually, but the function codes and parameters of the storage devices configured by the above method are redundant. It is not conducive to the modification of the function code in the storage device and subsequent development in the later stage, and at the moment when the number of new storage devices is increasing, the individual configuration of each newly added storage device greatly increases the work of the user The quantity, and the error probability caused by human configuration is also relatively increased, correspondingly reducing the configuration efficiency, thereby reducing the overall production efficiency of the enterprise.

由此可见,提供一种存储设备的配置方法,在便于对存储设备中功能代码的修改及后续开发的同时,提高配置效率并减少配置错误的情况发生,是本领域技术人员亟待解决的问题。It can be seen that providing a storage device configuration method that facilitates modification and subsequent development of function codes in the storage device while improving configuration efficiency and reducing configuration errors is an urgent problem to be solved by those skilled in the art.

发明内容Contents of the invention

本发明的目的是提供一种存储设备的配置方法、装置及可读存储介质,在便于对存储设备中功能代码的修改及后续开发的同时,提高配置效率并减少配置错误的情况发生。The purpose of the present invention is to provide a storage device configuration method, device and readable storage medium, which can improve configuration efficiency and reduce configuration errors while facilitating the modification and subsequent development of function codes in the storage device.

为解决上述技术问题,本发明提供一种存储设备的配置方法,包括:In order to solve the above technical problems, the present invention provides a storage device configuration method, including:

设定存储设备集合中的存储设备的配置参数,并将配置参数以及配置参数与存储设备的对应关系记录至参数文件;Set the configuration parameters of the storage devices in the storage device set, and record the configuration parameters and the corresponding relationship between the configuration parameters and the storage devices in the parameter file;

通过脚本的方式读取参数文件,并根据对应关系查找目标存储设备对应的目标配置参数;Read the parameter file through the script, and find the target configuration parameters corresponding to the target storage device according to the corresponding relationship;

依照目标配置参数对目标存储设备进行配置。The target storage device is configured according to the target configuration parameters.

优选的,存储设备集合具体为协同工作的控制器存储设备以及JBOD存储设备的集合。Preferably, the set of storage devices is specifically a set of controller storage devices and JBOD storage devices working together.

优选的,设定存储设备集合中的存储设备的配置参数具体为:Preferably, setting the configuration parameters of the storage devices in the storage device set is specifically:

设定各存储设备的差异配置参数。Set the difference configuration parameters of each storage device.

优选的,该方法进一步包括:Preferably, the method further comprises:

将差异配置参数进行对比显示。Compare and display the different configuration parameters.

优选的,在将配置参数以及配置参数与存储设备的对应关系记录至参数文件后,该方法进一步包括:Preferably, after recording the configuration parameters and the corresponding relationship between the configuration parameters and the storage device in the parameter file, the method further includes:

将参数文件存储至EEPROM存储器。Store parameter files to EEPROM memory.

优选的,在将配置参数以及配置参数与存储设备的对应关系记录至参数文件后,该方法进一步包括:Preferably, after recording the configuration parameters and the corresponding relationship between the configuration parameters and the storage device in the parameter file, the method further includes:

将参数文件中相同的配置参数进行合并处理。Merge the same configuration parameters in the parameter file.

此外,本发明还提供一种存储设备的配置装置,包括:In addition, the present invention also provides a storage device configuration device, including:

文件生成模块,用于设定存储设备集合中的存储设备的配置参数,并将配置参数以及配置参数与存储设备的对应关系记录至参数文件;A file generation module, configured to set the configuration parameters of the storage devices in the storage device set, and record the configuration parameters and the corresponding relationship between the configuration parameters and the storage devices to the parameter file;

文件读取模块,用于通过脚本的方式读取参数文件,并根据对应关系查找目标存储设备对应的目标配置参数;The file reading module is used to read the parameter file through the script, and find the target configuration parameters corresponding to the target storage device according to the corresponding relationship;

参数配置模块,用于依照目标配置参数对目标存储设备进行配置。The parameter configuration module is configured to configure the target storage device according to the target configuration parameters.

优选的,该装置进一步包括:Preferably, the device further comprises:

差异显示模块,用于将差异配置参数进行对比显示。The difference display module is used for comparing and displaying difference configuration parameters.

此外,本发明还提供一种存储设备的配置装置,包括:In addition, the present invention also provides a storage device configuration device, including:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行计算机程序时实现如上述存储设备的配置方法的步骤。The processor is configured to implement the steps of the above storage device configuration method when executing the computer program.

此外,本发明还提供一种计算机可读存储介质,其特征在于,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上述存储设备的配置方法的步骤。In addition, the present invention also provides a computer-readable storage medium, which is characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above storage device configuration method are implemented.

本发明所提供的存储设备的配置方法,通过将存储设备的配置参数以及配置参数与所述存储设备的对应关系写入参数文件的方式,使配置参数从存储设备的代码中提取为独立的参数文件,进而实现了配置参数与存储设备的相互独立,仅在使用存储设备时通过脚本读取参数文件以进行存储设备的配置,而当用户对存储设备的功能代码进行优化和修改时,不会出现代码中夹杂配置参数而对用户造成干扰的情况,因此利于后期对存储设备中功能代码的修改及后续开发。此外,由于对于存储设备的配置参数汇总于参数文件中并且通过脚本对各个存储设备进行配置,因此用户仅需直观且简单的在参数文件中统一对配置参数进行设置,相对减少了人为逐一的对存储设备进行配置的工作量以及可能产生的错误。此外,本发明还提供一种存储设备的配置装置以及可读存储介质,有益效果如上所述。The storage device configuration method provided by the present invention, by writing the configuration parameters of the storage device and the corresponding relationship between the configuration parameters and the storage device into the parameter file, the configuration parameters are extracted from the code of the storage device as independent parameters file, and thus realize the mutual independence of configuration parameters and storage devices, only read parameter files through scripts to configure storage devices when using storage devices, and when users optimize and modify the function codes of storage devices, they will not In the case that the configuration parameters are mixed in the code and cause interference to the user, it is beneficial to the later modification and subsequent development of the function code in the storage device. In addition, since the configuration parameters of the storage devices are summarized in the parameter file and each storage device is configured through a script, the user only needs to intuitively and simply set the configuration parameters uniformly in the parameter file, which relatively reduces artificial one-by-one The workload of configuring the storage device and possible errors. In addition, the present invention also provides a device for configuring a storage device and a readable storage medium, and the advantageous effects are as described above.

附图说明Description of drawings

为了更清楚地说明本发明实施例,下面将对实施例中所需要使用的附图做简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the embodiments of the present invention more clearly, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. As far as people are concerned, other drawings can also be obtained based on these drawings on the premise of not paying creative work.

图1为本发明实施例提供的一种存储设备的配置方法的流程图;FIG. 1 is a flowchart of a storage device configuration method provided by an embodiment of the present invention;

图2为本发明实施例提供的一种存储设备的配置装置结构图。FIG. 2 is a structural diagram of an apparatus for configuring a storage device according to an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下,所获得的所有其他实施例,都属于本发明保护范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

本发明的核心是提供一种存储设备的配置方法,在便于对存储设备中功能代码的修改及后续开发的同时,提高配置效率并减少配置错误的情况发生。本发明的另一核心是提供一种存储设备的配置装置及可读存储介质。The core of the present invention is to provide a storage device configuration method, which improves configuration efficiency and reduces configuration errors while facilitating modification and subsequent development of function codes in the storage device. Another core of the present invention is to provide a storage device configuration device and a readable storage medium.

为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

实施例一Embodiment one

图1为本发明实施例提供的一种存储设备的配置方法的流程图。请参考图1,存储设备的配置方法的具体步骤包括:FIG. 1 is a flow chart of a storage device configuration method provided by an embodiment of the present invention. Please refer to Figure 1, the specific steps of the storage device configuration method include:

步骤S10:设定存储设备集合中的存储设备的配置参数,并将配置参数以及配置参数与存储设备的对应关系记录至参数文件。Step S10: Set the configuration parameters of the storage devices in the storage device set, and record the configuration parameters and the corresponding relationship between the configuration parameters and the storage devices in a parameter file.

需要说明的是,本步骤的目的是由用户针对性的设定待配置的存储设备的配置参数,并且将配置参数与存储设备相对应以生成对应关系,通过对应关系可以根据存储设备找到其对应的配置参数。将配置参数以及配置参数与存储设备的对应关系记录至参数文件相当于对配置参数进行了提取并单独管理,进而与存储设备的内部功能代码相互独立。此外,存储设备集合中的存储设备可以相互关联工作,也可以各自独立工作,在此不做具体限定。It should be noted that the purpose of this step is for the user to set the configuration parameters of the storage device to be configured in a targeted manner, and correspond the configuration parameters with the storage device to generate a corresponding relationship. Through the corresponding relationship, the corresponding storage device can be found. configuration parameters. Recording the configuration parameters and the corresponding relationship between the configuration parameters and the storage device in the parameter file is equivalent to extracting and separately managing the configuration parameters, which are then independent of the internal function codes of the storage device. In addition, the storage devices in the storage device set may work in association with each other, or may work independently, which is not specifically limited here.

步骤S11:通过脚本的方式读取参数文件,并根据对应关系查找目标存储设备对应的目标配置参数。Step S11: Read the parameter file by means of a script, and search for the target configuration parameters corresponding to the target storage device according to the corresponding relationship.

可以理解的是,本步骤是通过脚本的方式读取参数文件中的对应关系,并根据对应关系找到需要配置的存储设备所需的配置参数。通过脚本获取的配置参数均为之前步骤中所既定的,因此相比于人工操作的方式获取配置参数,脚本的方式减少了获取过程中由人为失误造成的配置参数错误的情况发生,并且通过脚本的方式能够提高整体的执行效率。It can be understood that, in this step, the corresponding relationship in the parameter file is read through a script, and the configuration parameters required by the storage device to be configured are found according to the corresponding relationship. The configuration parameters obtained through the script are all established in the previous steps. Therefore, compared with the manual operation method to obtain the configuration parameters, the script method reduces the occurrence of configuration parameter errors caused by human errors during the acquisition process, and through the script This method can improve the overall execution efficiency.

步骤S12:依照目标配置参数对目标存储设备进行配置。Step S12: Configure the target storage device according to the target configuration parameters.

需要说明的是,本步骤同样是通过脚本的方式进行,因此相比于人工配置的效率更高并且减少了错误情况的发生。It should be noted that this step is also performed through a script, so compared with manual configuration, the efficiency is higher and the occurrence of errors is reduced.

本发明所提供的存储设备的配置方法,通过将存储设备的配置参数以及配置参数与所述存储设备的对应关系写入参数文件的方式,使配置参数从存储设备的代码中提取为独立的参数文件,进而实现了配置参数与存储设备的相互独立,仅在使用存储设备时通过脚本读取参数文件以进行存储设备的配置,而当用户对存储设备的功能代码进行优化和修改时,不会出现代码中夹杂配置参数而对用户造成干扰的情况,因此利于后期对存储设备中功能代码的修改及后续开发。此外,由于对于存储设备的配置参数汇总于参数文件中并且通过脚本对各个存储设备进行配置,因此用户仅需直观且简单的在参数文件中统一对配置参数进行设置,相对减少了人为逐一的对存储设备进行配置的工作量以及可能产生的错误。The storage device configuration method provided by the present invention, by writing the configuration parameters of the storage device and the corresponding relationship between the configuration parameters and the storage device into the parameter file, the configuration parameters are extracted from the code of the storage device as independent parameters file, and thus realize the mutual independence of configuration parameters and storage devices, only read parameter files through scripts to configure storage devices when using storage devices, and when users optimize and modify the function codes of storage devices, they will not In the case that the configuration parameters are mixed in the code and cause interference to the user, it is beneficial to the later modification and subsequent development of the function code in the storage device. In addition, since the configuration parameters of the storage devices are summarized in the parameter file and each storage device is configured through a script, the user only needs to intuitively and simply set the configuration parameters uniformly in the parameter file, which relatively reduces artificial one-by-one The workload of configuring the storage device and possible errors.

实施例二Embodiment two

在上述实施例的基础上,作为一种优选的实施方式,存储设备集合具体为协同工作的控制器存储设备以及JBOD存储设备的集合。On the basis of the foregoing embodiments, as a preferred implementation manner, the set of storage devices is specifically a set of controller storage devices and JBOD storage devices working together.

在企业生产的实际环境中,往往是在控制器所具有的存储设备的基础上随着数据的不断增加而需要增添新的存储设备,由于存储新数据仅需要存储空间而不需要增加新的控制器,因此新增加的存储设备仅为扩展磁盘,即JBOD。控制器的存储设备与JBOD中的配置参数往往不相同,因此用户通过本方法进行参数配置时,并且用户能够在参数文件里分别设置控制器存储设备以及JBOD的配置参数,并且通过脚本的方式根据控制器存储设备与JBOD进行有针对性的自动化配置,提高了配置的准确性以及配置效率,并且更加适用于企业生产。In the actual environment of enterprise production, it is often necessary to add new storage devices with the continuous increase of data on the basis of the storage devices of the controller. Because storing new data only requires storage space and does not need to add new controllers Therefore, the newly added storage device is only the expansion disk, that is, JBOD. The storage device of the controller is often different from the configuration parameters in the JBOD, so when the user configures the parameters through this method, the user can set the configuration parameters of the storage device of the controller and the JBOD in the parameter file, and use the script according to The controller, storage device and JBOD are automatically configured in a targeted manner, which improves the accuracy and efficiency of configuration, and is more suitable for enterprise production.

此外,作为一种优选的实施方式,设定存储设备集合中的存储设备的配置参数具体为:In addition, as a preferred implementation manner, setting the configuration parameters of the storage devices in the storage device set is specifically:

设定各存储设备的差异配置参数。Set the difference configuration parameters of each storage device.

需要说明的是,由于各个存储设备中均存在相同内容的配置参数,因此将相同内容的配置参数重复记录在参数文件会造成大量数据的冗余,因此可以仅设定各存储设备中的有差异的配置参数,以减少参数文件中的内容,进而能够节省系统空间。It should be noted that since there are configuration parameters with the same content in each storage device, repeatedly recording the configuration parameters with the same content in the parameter file will cause a large amount of data redundancy, so you can only set the difference in each storage device. configuration parameters to reduce the content of the parameter file, thereby saving system space.

在上述实施方式的基础上,作为一种优选的实施方式,该方法进一步包括:On the basis of the foregoing embodiments, as a preferred embodiment, the method further includes:

将差异配置参数进行对比显示。Compare and display the different configuration parameters.

可以理解的是,通过将存在差异的配置参数进行对比显示,能够使用户更加直观的了解每一台存储设备的工作内容,进而便于后续对存储设备进行参数调试等操作。It can be understood that, by comparing and displaying the configuration parameters with differences, the user can understand the working content of each storage device more intuitively, thereby facilitating subsequent operations such as parameter debugging of the storage device.

此外,作为一种优选的实施方式,在将配置参数以及配置参数与存储设备的对应关系记录至参数文件后,该方法进一步包括:In addition, as a preferred implementation manner, after recording the configuration parameters and the corresponding relationship between the configuration parameters and the storage device in the parameter file, the method further includes:

将参数文件存储至EEPROM存储器。Store parameter files to EEPROM memory.

需要说明的是,EEPROM存储器是一种掉电也能够保证数据不丢失的存储装置并且具有即插即用的便捷性,因此通过EEPROM存储器对参数文件进行存储即能够保证参数文件的安全又可以将EEPROM存储器转移到其他的存储设备集合中以使用参数文件,进而更具扩展性。It should be noted that the EEPROM memory is a storage device that can ensure that data will not be lost even when the power is off, and has the convenience of plug and play. Therefore, storing the parameter file through the EEPROM memory can not only ensure the safety of the parameter file but also save The EEPROM memory is moved to other sets of storage devices to use parameter files for greater scalability.

此外,作为一种优选的实施方式,在将配置参数以及配置参数与存储设备的对应关系记录至参数文件后,该方法进一步包括:In addition, as a preferred implementation manner, after recording the configuration parameters and the corresponding relationship between the configuration parameters and the storage device in the parameter file, the method further includes:

将参数文件中相同的配置参数进行合并处理。Merge the same configuration parameters in the parameter file.

可以理解的是,本步骤的目的在于简化参数文件中的配置参数,将重复的配置参数进行合并,以减少文件所占的整体空间。需要说明的是,在将参数文件中相同的配置参数进行合并处理后,配置参数与存储设备之间的对应关系仍然成立,仅有原来的一对一的关系转变为一对多的关系,及一项配置参数对应多个存储设备。It can be understood that the purpose of this step is to simplify the configuration parameters in the parameter file and merge repeated configuration parameters to reduce the overall space occupied by the file. It should be noted that after merging the same configuration parameters in the parameter file, the corresponding relationship between the configuration parameters and the storage device still holds true, only the original one-to-one relationship is changed into a one-to-many relationship, and One configuration parameter corresponds to multiple storage devices.

实施例三Embodiment three

在上文中对于存储设备的配置方法的实施例进行了详细的描述,本发明还提供一种与该方法对应的存储设备的配置装置,由于装置部分的实施例与方法部分的实施例相互对应,因此装置部分的实施例请参见方法部分的实施例的描述,这里暂不赘述。The embodiment of the storage device configuration method has been described in detail above, and the present invention also provides a storage device configuration device corresponding to the method. Since the embodiment of the device part corresponds to the embodiment of the method part, Therefore, for the embodiment of the device part, please refer to the description of the embodiment of the method part, and details will not be repeated here.

图2为本发明实施例提供的一种存储设备的配置装置结构图。本发明实施例提供的存储设备的配置装置,具体包括:FIG. 2 is a structural diagram of an apparatus for configuring a storage device according to an embodiment of the present invention. The device for configuring a storage device provided in an embodiment of the present invention specifically includes:

文件生成模块10,用于设定存储设备集合中的存储设备的配置参数,并将配置参数以及配置参数与存储设备的对应关系记录至参数文件。The file generation module 10 is configured to set the configuration parameters of the storage devices in the storage device set, and record the configuration parameters and the corresponding relationship between the configuration parameters and the storage devices in a parameter file.

文件读取模块11,用于通过脚本的方式读取参数文件,并根据对应关系查找目标存储设备对应的目标配置参数。The file reading module 11 is configured to read the parameter file through a script, and search for the target configuration parameters corresponding to the target storage device according to the corresponding relationship.

参数配置模块12,用于依照目标配置参数对目标存储设备进行配置。The parameter configuration module 12 is configured to configure the target storage device according to the target configuration parameters.

本发明所提供的存储设备的配置装置,通过将存储设备的配置参数以及配置参数与所述存储设备的对应关系写入参数文件的方式,使配置参数从存储设备的代码中提取为独立的参数文件,进而实现了配置参数与存储设备的相互独立,仅在使用存储设备时通过脚本读取参数文件以进行存储设备的配置,而当用户对存储设备的功能代码进行优化和修改时,不会出现代码中夹杂配置参数而对用户造成干扰的情况,因此利于后期对存储设备中功能代码的修改及后续开发。此外,由于对于存储设备的配置参数汇总于参数文件中并且通过脚本对各个存储设备进行配置,因此用户仅需直观且简单的在参数文件中统一对配置参数进行设置,相对减少了人为逐一的对存储设备进行配置的工作量以及可能产生的错误。The storage device configuration device provided by the present invention extracts the configuration parameters from the code of the storage device as independent parameters by writing the configuration parameters of the storage device and the corresponding relationship between the configuration parameters and the storage device into the parameter file file, and thus realize the mutual independence of configuration parameters and storage devices, only read parameter files through scripts to configure storage devices when using storage devices, and when users optimize and modify the function codes of storage devices, they will not In the case that the configuration parameters are mixed in the code and cause interference to the user, it is beneficial to the later modification and subsequent development of the function code in the storage device. In addition, since the configuration parameters of the storage devices are summarized in the parameter file and each storage device is configured through a script, the user only needs to intuitively and simply set the configuration parameters uniformly in the parameter file, which relatively reduces artificial one-by-one The workload of configuring the storage device and possible errors.

在实施例三的基础上,该装置还包括:On the basis of embodiment three, the device also includes:

差异显示模块,用于将差异配置参数进行对比显示。The difference display module is used for comparing and displaying difference configuration parameters.

实施例四Embodiment four

本发明还提供一种存储设备的配置装置,包括:The present invention also provides a storage device configuration device, including:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行计算机程序时实现如上述存储设备的配置方法的步骤。The processor is configured to implement the steps of the above storage device configuration method when executing the computer program.

本发明所提供的存储设备的配置装置,通过将存储设备的配置参数以及配置参数与所述存储设备的对应关系写入参数文件的方式,使配置参数从存储设备的代码中提取为独立的参数文件,进而实现了配置参数与存储设备的相互独立,仅在使用存储设备时通过脚本读取参数文件以进行存储设备的配置,而当用户对存储设备的功能代码进行优化和修改时,不会出现代码中夹杂配置参数而对用户造成干扰的情况,因此利于后期对存储设备中功能代码的修改及后续开发。此外,由于对于存储设备的配置参数汇总于参数文件中并且通过脚本对各个存储设备进行配置,因此用户仅需直观且简单的在参数文件中统一对配置参数进行设置,相对减少了人为逐一的对存储设备进行配置的工作量以及可能产生的错误。The storage device configuration device provided by the present invention extracts the configuration parameters from the code of the storage device as independent parameters by writing the configuration parameters of the storage device and the corresponding relationship between the configuration parameters and the storage device into the parameter file file, and thus realize the mutual independence of configuration parameters and storage devices, only read parameter files through scripts to configure storage devices when using storage devices, and when users optimize and modify the function codes of storage devices, they will not In the case that the configuration parameters are mixed in the code and cause interference to the user, it is beneficial to the later modification and subsequent development of the function code in the storage device. In addition, since the configuration parameters of the storage devices are summarized in the parameter file and each storage device is configured through a script, the user only needs to intuitively and simply set the configuration parameters uniformly in the parameter file, which relatively reduces artificial one-by-one The workload of configuring the storage device and possible errors.

此外,本发明还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上述存储设备的配置方法的步骤。In addition, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above storage device configuration method are realized.

本发明所提供的计算机可读存储介质,通过将存储设备的配置参数以及配置参数与所述存储设备的对应关系写入参数文件的方式,使配置参数从存储设备的代码中提取为独立的参数文件,进而实现了配置参数与存储设备的相互独立,仅在使用存储设备时通过脚本读取参数文件以进行存储设备的配置,而当用户对存储设备的功能代码进行优化和修改时,不会出现代码中夹杂配置参数而对用户造成干扰的情况,因此利于后期对存储设备中功能代码的修改及后续开发。此外,由于对于存储设备的配置参数汇总于参数文件中并且通过脚本对各个存储设备进行配置,因此用户仅需直观且简单的在参数文件中统一对配置参数进行设置,相对减少了人为逐一的对存储设备进行配置的工作量以及可能产生的错误。The computer-readable storage medium provided by the present invention enables the configuration parameters to be extracted from the code of the storage device as independent parameters by writing the configuration parameters of the storage device and the corresponding relationship between the configuration parameters and the storage device into the parameter file file, and thus realize the mutual independence of configuration parameters and storage devices, only read parameter files through scripts to configure storage devices when using storage devices, and when users optimize and modify the function codes of storage devices, they will not In the case that the configuration parameters are mixed in the code and cause interference to the user, it is beneficial to the later modification and subsequent development of the function code in the storage device. In addition, since the configuration parameters of the storage devices are summarized in the parameter file and each storage device is configured through a script, the user only needs to intuitively and simply set the configuration parameters uniformly in the parameter file, which relatively reduces artificial one-by-one The workload of configuring the storage device and possible errors.

以上对本发明所提供的一种存储设备的配置方法、装置及可读存储介质进行了详细介绍。说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The configuration method, device and readable storage medium of a storage device provided by the present invention have been introduced in detail above. Each embodiment in the description is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related information, please refer to the description of the method part. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, some improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in this specification, relative terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations There is no such actual relationship or order between the operations. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

Claims (10)

1.一种存储设备的配置方法,其特征在于,包括:1. A method for configuring a storage device, comprising: 设定存储设备集合中的存储设备的配置参数,并将所述配置参数以及所述配置参数与所述存储设备的对应关系记录至参数文件;Setting configuration parameters of the storage devices in the storage device set, and recording the configuration parameters and the correspondence between the configuration parameters and the storage devices in a parameter file; 通过脚本的方式读取所述参数文件,并根据所述对应关系查找目标存储设备对应的目标配置参数;Reading the parameter file by means of a script, and searching for target configuration parameters corresponding to the target storage device according to the corresponding relationship; 依照所述目标配置参数对所述目标存储设备进行配置。The target storage device is configured according to the target configuration parameters. 2.根据权利要求1所述的方法,其特征在于,所述存储设备集合具体为协同工作的控制器存储设备以及JBOD存储设备的集合。2. The method according to claim 1, wherein the set of storage devices is specifically a set of controller storage devices and JBOD storage devices working together. 3.根据权利要求1所述的方法,其特征在于,所述设定存储设备集合中的存储设备的配置参数具体为:3. The method according to claim 1, wherein the setting configuration parameters of the storage devices in the storage device set are specifically: 设定各所述存储设备的差异配置参数。Setting difference configuration parameters of each storage device. 4.根据权利要求3所述的方法,其特征在于,该方法进一步包括:4. The method according to claim 3, characterized in that the method further comprises: 将所述差异配置参数进行对比显示。Compare and display the difference configuration parameters. 5.根据权利要求1所述的方法,其特征在于,在所述将所述配置参数以及所述配置参数与所述存储设备的对应关系记录至参数文件后,该方法进一步包括:5. The method according to claim 1, characterized in that, after recording the configuration parameters and the corresponding relationship between the configuration parameters and the storage device in a parameter file, the method further comprises: 将所述参数文件存储至EEPROM存储器。Store the parameter file to EEPROM memory. 6.根据权利要求1-5任意一项所述的方法,其特征在于,在所述将所述配置参数以及所述配置参数与所述存储设备的对应关系记录至参数文件后,该方法进一步包括:6. The method according to any one of claims 1-5, characterized in that, after recording the configuration parameters and the corresponding relationship between the configuration parameters and the storage device in the parameter file, the method further include: 将所述参数文件中相同的所述配置参数进行合并处理。Merge the same configuration parameters in the parameter files. 7.一种存储设备的配置装置,其特征在于,包括:7. A device for configuring a storage device, comprising: 文件生成模块,用于设定存储设备集合中的存储设备的配置参数,并将所述配置参数以及所述配置参数与所述存储设备的对应关系记录至参数文件;A file generation module, configured to set configuration parameters of storage devices in the storage device set, and record the configuration parameters and the correspondence between the configuration parameters and the storage devices in a parameter file; 文件读取模块,用于通过脚本的方式读取所述参数文件,并根据所述对应关系查找目标存储设备对应的目标配置参数;A file reading module, configured to read the parameter file by means of a script, and search for target configuration parameters corresponding to the target storage device according to the corresponding relationship; 参数配置模块,用于依照所述目标配置参数对所述目标存储设备进行配置。A parameter configuration module, configured to configure the target storage device according to the target configuration parameters. 8.根据权利要求7所述的装置,其特征在于,该装置进一步包括:8. The device according to claim 7, characterized in that the device further comprises: 差异显示模块,用于将所述差异配置参数进行对比显示。The difference display module is used to compare and display the difference configuration parameters. 9.一种存储设备的配置装置,其特征在于,包括:9. A device for configuring a storage device, comprising: 存储器,用于存储计算机程序;memory for storing computer programs; 处理器,用于执行所述计算机程序时实现如权利要求1至6任一项所述的存储设备的配置方法的步骤。A processor configured to implement the steps of the method for configuring a storage device according to any one of claims 1 to 6 when executing the computer program. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6任一项所述的存储设备的配置方法的步骤。10. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the storage according to any one of claims 1 to 6 is realized. Steps in the configuration method of the device.
CN201710842864.1A 2017-09-18 2017-09-18 A kind of collocation method of storage device, device and readable storage medium storing program for executing Pending CN107632785A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710842864.1A CN107632785A (en) 2017-09-18 2017-09-18 A kind of collocation method of storage device, device and readable storage medium storing program for executing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710842864.1A CN107632785A (en) 2017-09-18 2017-09-18 A kind of collocation method of storage device, device and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN107632785A true CN107632785A (en) 2018-01-26

Family

ID=61101957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710842864.1A Pending CN107632785A (en) 2017-09-18 2017-09-18 A kind of collocation method of storage device, device and readable storage medium storing program for executing

Country Status (1)

Country Link
CN (1) CN107632785A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109522014A (en) * 2018-10-19 2019-03-26 中国平安人寿保险股份有限公司 Algorithm process method, electronic device and readable storage medium storing program for executing based on new product development
CN111208936A (en) * 2018-11-22 2020-05-29 爱思开海力士有限公司 Storage device and operation method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1742268A (en) * 2002-12-20 2006-03-01 诺基亚公司 Automated batch configuration of network devices
CN104298469A (en) * 2013-07-19 2015-01-21 北大方正集团有限公司 Storage device configuration device and storage device configuration method
CN105045539A (en) * 2015-08-20 2015-11-11 百度在线网络技术(北京)有限公司 Control method and apparatus for data offline storage
CN106874159A (en) * 2016-12-30 2017-06-20 北京同有飞骥科技股份有限公司 A kind of concentrating type automated testing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1742268A (en) * 2002-12-20 2006-03-01 诺基亚公司 Automated batch configuration of network devices
CN104298469A (en) * 2013-07-19 2015-01-21 北大方正集团有限公司 Storage device configuration device and storage device configuration method
CN105045539A (en) * 2015-08-20 2015-11-11 百度在线网络技术(北京)有限公司 Control method and apparatus for data offline storage
CN106874159A (en) * 2016-12-30 2017-06-20 北京同有飞骥科技股份有限公司 A kind of concentrating type automated testing method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109522014A (en) * 2018-10-19 2019-03-26 中国平安人寿保险股份有限公司 Algorithm process method, electronic device and readable storage medium storing program for executing based on new product development
CN109522014B (en) * 2018-10-19 2024-04-16 中国平安人寿保险股份有限公司 Algorithm processing method based on new product development, electronic device and readable storage medium
CN111208936A (en) * 2018-11-22 2020-05-29 爱思开海力士有限公司 Storage device and operation method thereof
CN111208936B (en) * 2018-11-22 2023-06-23 爱思开海力士有限公司 Storage device and method of operation thereof

Similar Documents

Publication Publication Date Title
CN108388615B (en) A data exchange method, system and electronic device
CN103914324B (en) A kind of method and its system of automatic programming embedded device firmware
WO2019161645A1 (en) Shell-based data table extraction method, terminal, device, and storage medium
CN110737594A (en) Database standard conformance testing method and device for automatically generating test cases
CN103902562A (en) Method and device for upgrading terminal databases
CN114547206A (en) Data synchronization method and data synchronization system
CN107391378A (en) The generation method and device of a kind of test script
CN111984731A (en) Data synchronization method, device and storage medium between data warehouses of big data platform
CN107992403A (en) IO performance test methods, device, equipment and computer-readable recording medium
CN102541923A (en) Database read-write separating method and device
CN102053855A (en) Software generation system and method
CN107632785A (en) A kind of collocation method of storage device, device and readable storage medium storing program for executing
CN103399805A (en) Method for managing mobile terminal standby interface and mobile terminal
CN103123651A (en) Method of rapidly searching multiple same-kind paper, device and mobile equipment
CN110222046B (en) List data processing method, device, server and storage medium
CN104866425A (en) A Method of Database Pressure Testing
CN118394734A (en) Data migration method, device, electronic equipment and storage medium
CN117609358A (en) A distributed computing framework based on configured data integration from multiple data sources
WO2022223038A1 (en) Key name generation method and device, and computer readable storage medium
CN116841984A (en) An online migration method for cloud platform mysql database instances
CN115169294A (en) A data conversion method, device and medium
CN103440325B (en) Operation method of high-efficiency multi-concurrence and auto-adaptation database
CN108845857A (en) A kind of icon management method and device based on cloud platform
CN105930431A (en) Method, device and system for accessing database
CN106227839A (en) The expansion method of a kind of lustre file system and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180126