[go: up one dir, main page]

CN107239283B - A storage system management software adaptation method and device - Google Patents

A storage system management software adaptation method and device Download PDF

Info

Publication number
CN107239283B
CN107239283B CN201710399875.7A CN201710399875A CN107239283B CN 107239283 B CN107239283 B CN 107239283B CN 201710399875 A CN201710399875 A CN 201710399875A CN 107239283 B CN107239283 B CN 107239283B
Authority
CN
China
Prior art keywords
processing module
management software
logic processing
list
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710399875.7A
Other languages
Chinese (zh)
Other versions
CN107239283A (en
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201710399875.7A priority Critical patent/CN107239283B/en
Publication of CN107239283A publication Critical patent/CN107239283A/en
Application granted granted Critical
Publication of CN107239283B publication Critical patent/CN107239283B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

本发明公开了一种存储系统管理软件适配方法及装置,方法包括:从存储设备获取该存储设备的类型、版本号;根据该存储设备的类型、版本号,在管理软件维护的列表中查找是否存在相匹配的逻辑处理模块,在所述管理软件的所述列表中动态地添加有可运行的逻辑处理模块;若是,则所述管理软件与所述存储设备适配成功。本发明存储系统管理软件适配方法及装置,在管理软件中动态地集成逻辑处理模块,在对管理软件与存储系统兼容性适配时,使开发人员只需关注逻辑处理模块,减少对流程的关注,以减少工作量,提高开发效率。

Figure 201710399875

The invention discloses a storage system management software adaptation method and device. The method includes: obtaining the type and version number of the storage device from a storage device; and searching for a management software maintenance list according to the type and version number of the storage device Whether there is a matching logic processing module, an executable logic processing module is dynamically added to the list of the management software; if so, the management software is successfully adapted to the storage device. The storage system management software adaptation method and device of the present invention dynamically integrates the logic processing module in the management software, so that developers only need to pay attention to the logic processing module when adapting the compatibility between the management software and the storage system, thereby reducing the complexity of the process. attention to reduce workload and improve development efficiency.

Figure 201710399875

Description

一种存储系统管理软件适配方法及装置A storage system management software adaptation method and device

技术领域technical field

本发明涉及存储系统技术领域,特别是涉及一种存储系统管理软件适配方法及装置。The present invention relates to the technical field of storage systems, and in particular, to a storage system management software adaptation method and device.

背景技术Background technique

在存储系统演进的过程中,为满足不同用户应用需求,会出现多种系列、各种版本,就需要对存储系统中的存储管理软件及其扩展插件(以下简称“软件”),针对多个型号、多个版本的存储系统进行兼容性适配。During the evolution of the storage system, in order to meet the application requirements of different users, there will be various series and various versions. Compatibility adaptation of storage systems of different models and versions.

现有技术中,对“软件”与存储系统进行兼容性适配的主流方法之一是:在存储系统内部对各个系列、各个版本,通过逻辑分支语句进行管理。开发人员不但要维护逻辑处理模块,还要处理逻辑流程。流程可参考图1所示,当用户需要对存储系统进行操作时,如创建卷操作,进入图1所示流程中左上角的逻辑,首先,判断软件型号参数,找到正确的分支;然后,根据版本号参数,找到适合的版本。在实际操作时,比如添加新版本,开发人员需要添加版本号判断逻辑语句,然而当存储系统的指令越来越多时,每一条指令都需要进行如图1所示的逻辑流程。对开发人员来说,工作量将会非常大。In the prior art, one of the mainstream methods for compatibility adaptation between "software" and a storage system is to manage each series and each version within the storage system through logical branch statements. The developer not only has to maintain the logic processing module, but also deal with the logic flow. The process can refer to Figure 1. When the user needs to operate the storage system, such as creating a volume operation, enter the logic in the upper left corner of the process shown in Figure 1. First, determine the software model parameters and find the correct branch; then, according to Version number parameter, find the appropriate version. In actual operation, such as adding a new version, developers need to add version number judgment logic statements. However, when there are more and more instructions in the storage system, each instruction needs to perform the logic flow shown in Figure 1. For developers, the workload will be very large.

发明内容SUMMARY OF THE INVENTION

本发明的目的是提供一种存储系统管理软件适配方法及装置,使开发人员在进行管理软件适配存储系统时,减少对流程的关注,从而减少工作量,提高开发效率。The purpose of the present invention is to provide a storage system management software adaptation method and device, so that developers can reduce the attention to the process when adapting the management software to the storage system, thereby reducing workload and improving development efficiency.

为实现上述目的,本发明提供如下技术方案:To achieve the above object, the present invention provides the following technical solutions:

一种存储系统管理软件适配方法,包括:A storage system management software adaptation method, comprising:

从存储设备获取该存储设备的类型、版本号;Obtain the type and version number of the storage device from the storage device;

根据该存储设备的类型、版本号,在管理软件维护的列表中查找是否存在相匹配的逻辑处理模块,在所述管理软件的所述列表中动态地添加有可运行的逻辑处理模块;According to the type and version number of the storage device, look up whether there is a matching logical processing module in the list maintained by the management software, and dynamically add an executable logical processing module to the list of the management software;

若是,则所述管理软件与所述存储设备适配成功。If so, the management software is successfully adapted to the storage device.

可选地,若否,在所述管理软件中检索指定的文件夹,查找相匹配的逻辑处理模块文件;Optionally, if not, search the specified folder in the management software to find the matching logic processing module file;

若检索成功,激活检索出的逻辑处理模块文件,并同步逻辑处理模块线程,在所述列表中添加所述文件对应封装的逻辑处理模块;If the retrieval is successful, activate the retrieved logical processing module file, synchronize the logical processing module thread, and add the encapsulated logical processing module corresponding to the file in the list;

在所述管理软件的所述列表中查找是否存在相匹配的逻辑处理模块,若是,则所述管理软件与所述存储设备适配成功。Find out whether there is a matching logic processing module in the list of the management software, and if so, the management software is successfully adapted to the storage device.

可选地,在所述管理软件的所述列表中动态地添加可运行的逻辑处理模块包括:Optionally, dynamically adding an executable logic processing module to the list of the management software includes:

在所述管理软件启动后,添加用于更新所述管理软件中文件夹的守护线程;After the management software is started, a daemon thread for updating the folder in the management software is added;

当到达所述线程的执行周期时,执行线程,更新文件目录;When the execution cycle of the thread is reached, the thread is executed and the file directory is updated;

查看文件夹是否变化,并获取文件夹的变更情况,查看是否存在新增文件、更新文件或者删除文件;Check whether the folder has changed, and get the changes of the folder, check whether there are new files, updated files or deleted files;

若存在新增文件,判断新增文件是否是逻辑处理模块,若是,则将该逻辑处理模块添加到所述列表中;若否,则当前线程执行结束,回到休眠状态;If there is a new file, it is judged whether the new file is a logic processing module, and if so, the logic processing module is added to the list; if not, the current thread execution ends and returns to the dormant state;

若存在文件更新,判断更新后的文件是否是逻辑处理模块,若是,则从所述列表中移除旧的逻辑处理模块,将新的逻辑处理模块添加到所述列表中,若否,则从所述列表中移除旧的逻辑处理模块;If there is a file update, judge whether the updated file is a logic processing module, if so, remove the old logic processing module from the list, and add the new logic processing module to the list, if not, remove from the list Remove old logic processing modules from the list;

若存在删除文件,则根据所述列表查找出被删除文件的文件名,从所述列表中移除旧的逻辑处理模块。If there is a deleted file, the file name of the deleted file is searched out according to the list, and the old logic processing module is removed from the list.

可选地,所述逻辑处理模块包含:用于获取存储设备的类型的第一接口,用于获取存储设备的版本号的第二接口。Optionally, the logic processing module includes: a first interface for acquiring the type of the storage device, and a second interface for acquiring the version number of the storage device.

可选地,所述逻辑处理模块还包含:Optionally, the logic processing module further includes:

第三接口,用于进行用户权限管理,包括设置用户权限,注册、删除用户以及修改用户密码;The third interface is used to manage user rights, including setting user rights, registering, deleting users, and changing user passwords;

第四接口,用于进行池操作,包括创建、删除、查询池;The fourth interface is used to perform pool operations, including creating, deleting, and querying pools;

第五接口,用于进行卷操作,包括创建、删除、扩容、映射、迁移、克隆或者快照的卷操作。The fifth interface is used for volume operations, including volume operations of creating, deleting, expanding, mapping, migrating, cloning or snapshotting.

一种存储系统管理软件适配装置,包括:A storage system management software adaptation device, comprising:

获取模块,用于从存储设备获取该存储设备的类型、版本号;an obtaining module, used to obtain the type and version number of the storage device from the storage device;

适配模块,用于根据该存储设备的类型、版本号,在管理软件维护的列表中查找是否存在相匹配的逻辑处理模块,在所述管理软件的所述列表中动态地添加有可运行的逻辑处理模块;若是,则所述管理软件与所述存储设备适配成功。The adaptation module is configured to, according to the type and version number of the storage device, find out whether there is a matching logic processing module in the list maintained by the management software, and dynamically add an operable module to the list of the management software. A logic processing module; if yes, the management software is successfully adapted to the storage device.

可选地,还包括检索模块,用于若在管理软件维护的列表中没有查找到相匹配的逻辑处理模块时,在所述管理软件中检索指定的文件夹,查找相匹配的逻辑处理模块文件;若检索成功,激活检索出的逻辑处理模块文件,并同步逻辑处理模块线程,在所述列表中添加所述文件对应封装的逻辑处理模块。Optionally, a retrieval module is also included, for if a matching logic processing module is not found in the list maintained by the management software, the specified folder is retrieved in the management software to find a matching logic processing module file. ; If the retrieval is successful, activate the retrieved logic processing module file, synchronize the logic processing module thread, and add the encapsulated logic processing module corresponding to the file in the list.

可选地,还包括动态维护模块,用于在所述管理软件的所述列表中动态地添加可运行的逻辑处理模块;Optionally, it also includes a dynamic maintenance module for dynamically adding an operable logic processing module in the list of the management software;

所述动态维护模块具体用于:在所述管理软件启动后,添加用于更新所述管理软件中文件夹的守护线程;The dynamic maintenance module is specifically configured to: after the management software is started, add a daemon thread for updating the folders in the management software;

当到达所述线程的执行周期时,执行线程,更新文件目录;When the execution cycle of the thread is reached, the thread is executed and the file directory is updated;

查看文件夹是否变化,并获取文件夹的变更情况,查看是否存在新增文件、更新文件或者删除文件;Check whether the folder has changed, and get the changes of the folder, check whether there are new files, updated files or deleted files;

若存在新增文件,判断新增文件是否是逻辑处理模块,若是,则将该逻辑处理模块添加到所述列表中;若否,则当前线程执行结束,回到休眠状态;If there is a new file, it is judged whether the new file is a logic processing module, and if so, the logic processing module is added to the list; if not, the current thread execution ends and returns to the dormant state;

若存在文件更新,判断更新后的文件是否是逻辑处理模块,若是,则从所述列表中移除旧的逻辑处理模块,将新的逻辑处理模块添加到所述列表中,若否,则从所述列表中移除旧的逻辑处理模块;If there is a file update, judge whether the updated file is a logic processing module, if so, remove the old logic processing module from the list, and add the new logic processing module to the list, if not, remove from the list Remove old logic processing modules from the list;

若存在删除文件,则根据所述列表查找出被删除文件的文件名,从所述列表中移除旧的逻辑处理模块。If there is a deleted file, the file name of the deleted file is searched out according to the list, and the old logic processing module is removed from the list.

可选地,所述逻辑处理模块包含:用于获取存储设备的类型的第一接口,用于获取存储设备的版本号的第二接口。Optionally, the logic processing module includes: a first interface for acquiring the type of the storage device, and a second interface for acquiring the version number of the storage device.

可选地,所述逻辑处理模块还包含:Optionally, the logic processing module further includes:

第三接口,用于进行用户权限管理,包括设置用户权限,注册、删除用户以及修改用户密码;The third interface is used to manage user rights, including setting user rights, registering, deleting users, and changing user passwords;

第四接口,用于进行池操作,包括创建、删除、查询池;The fourth interface is used to perform pool operations, including creating, deleting, and querying pools;

第五接口,用于进行卷操作,包括创建、删除、扩容、映射、迁移、克隆或者快照的卷操作。The fifth interface is used for volume operations, including volume operations of creating, deleting, expanding, mapping, migrating, cloning or snapshotting.

由上述技术方案可知,本发明所提供的存储系统管理软件适配方法及装置,在管理软件与存储系统适配时,首先从存储设备获取存储设备的类型、版本号,根据该存储设备的类型、版本号,从管理软件维护的列表中查找是否存在相匹配的逻辑处理模块,在管理软件的所述列表中动态地添加有可运行的逻辑处理模块,若存在,则管理软件与存储设备适配成功。As can be seen from the above technical solutions, the storage system management software adaptation method and device provided by the present invention, when the management software is adapted to the storage system, first obtains the type and version number of the storage device from the storage device, according to the type of the storage device. , version number, find out whether there is a matching logic processing module in the list maintained by the management software, and dynamically add a runnable logic processing module in the list of the management software, if there is, then the management software and the storage device are compatible with each other. Match successfully.

本发明存储系统管理软件适配方法及装置,在管理软件中动态地集成逻辑处理模块,在对管理软件与存储系统兼容性适配时,在管理软件中查找相匹配的逻辑处理模块即可,使开发人员只需关注逻辑处理模块,减少对流程的关注,从而减少工作量,提高开发效率。The storage system management software adaptation method and device of the present invention dynamically integrates the logic processing module in the management software, and when the management software is compatible with the storage system, the matching logic processing module can be searched in the management software, So that developers only need to focus on the logic processing module and reduce the attention to the process, thereby reducing the workload and improving the development efficiency.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.

图1为现有技术中在管理软件适配存储系统时进行的处理流程示意图;FIG. 1 is a schematic diagram of a processing flow performed when management software is adapted to a storage system in the prior art;

图2为本发明实施例提供的一种存储系统管理软件适配方法的流程图;2 is a flowchart of a method for adapting storage system management software according to an embodiment of the present invention;

图3为本发明实施例中逻辑处理模块的示意图;3 is a schematic diagram of a logic processing module in an embodiment of the present invention;

图4为本发明又一实施例提供的一种存储系统管理软件适配方法的流程图;4 is a flowchart of a method for adapting storage system management software according to another embodiment of the present invention;

图5为本发明实施例中在管理软件的列表中动态添加逻辑处理模块的流程图;5 is a flowchart of dynamically adding a logic processing module in a list of management software in an embodiment of the present invention;

图6为本发明实施例提供的一种存储系统管理软件适配装置的示意图。FIG. 6 is a schematic diagram of an apparatus for adapting storage system management software according to an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

请参考图2,本发明实施例提供的一种存储系统管理软件适配方法,包括步骤:Referring to FIG. 2, a method for adapting storage system management software provided by an embodiment of the present invention includes steps:

S10:从存储设备获取该存储设备的类型、版本号。S10: Acquire the type and version number of the storage device from the storage device.

对管理软件与存储系统进行兼容性适配时,首先从当前操作的存储设备获取该存储设备的类型、版本号。When performing compatibility adaptation between the management software and the storage system, first obtain the type and version number of the storage device from the currently operating storage device.

S11:根据该存储设备的类型、版本号,在管理软件维护的列表中查找是否存在相匹配的逻辑处理模块,在所述管理软件的所述列表中动态地添加有可运行的逻辑处理模块。S11: According to the type and version number of the storage device, look up whether there is a matching logical processing module in the list maintained by the management software, and dynamically add an executable logical processing module to the list of the management software.

若是,则进入步骤S12。If yes, go to step S12.

在管理软件内部维护一个逻辑处理模块的列表,其中包含在管理软件中可运行的逻辑处理模块,针对每一逻辑处理模块,在指定的文件夹下存放实现该逻辑处理模块的文件。A list of logical processing modules is maintained inside the management software, which includes the logical processing modules that can be run in the management software. For each logical processing module, a file implementing the logical processing module is stored in a designated folder.

其中,可运行的逻辑处理模块指符合接口规范的逻辑处理模块,本方法中,封装后的逻辑处理模块包含:用于获取存储设备的类型的第一接口;用于获取存储设备的版本号的第二接口,可参考图3所示。The runnable logical processing module refers to a logical processing module that conforms to the interface specification. In this method, the encapsulated logical processing module includes: a first interface for acquiring the type of the storage device; an interface for acquiring the version number of the storage device For the second interface, please refer to FIG. 3 .

第一接口为类型获取接口,第二接口为版本号获取接口,以此两个接口作为逻辑处理模块的流程管理接口。用户在操作时,可通过逻辑处理模块的这两接口分别获取存储设备的类型、版本号。The first interface is a type acquisition interface, and the second interface is a version number acquisition interface, and these two interfaces are used as process management interfaces of the logic processing module. During operation, the user can obtain the type and version number of the storage device respectively through the two interfaces of the logic processing module.

在具体实施时,还可根据实际功能需求,对逻辑处理模块设置相应的一些存储业务接口。比如对于存储管理软件,针对其核心操作功能,可设置以下三种存储业务接口:During specific implementation, some corresponding storage service interfaces may also be set for the logic processing module according to actual functional requirements. For example, for storage management software, for its core operation functions, the following three storage service interfaces can be set:

第三接口,用于进行用户权限管理,包括设置用户权限,注册、删除用户以及修改用户密码等相关操作。The third interface is used to manage user rights, including setting user rights, registering, deleting users, and modifying user passwords and other related operations.

第四接口,用于进行池操作,包括创建、删除、查询池;The fourth interface is used to perform pool operations, including creating, deleting, and querying pools;

第五接口,用于进行卷操作,包括创建、删除、扩容、映射、迁移、克隆或者快照的卷操作。The fifth interface is used for volume operations, including volume operations of creating, deleting, expanding, mapping, migrating, cloning or snapshotting.

以上三个接口作为通用的存储业务接口。需要说明的是,在具体应用时,可根据实际需求设置其它更多功能的业务接口。The above three interfaces are used as general storage service interfaces. It should be noted that, in specific applications, other business interfaces with more functions can be set according to actual needs.

S12:所述管理软件与所述存储设备适配成功。S12: The management software is successfully adapted to the storage device.

在管理软件维护的列表中查找到相匹配的逻辑处理模块,表明管理软件与当前操作的存储设备适配成功。A matching logical processing module is found in the list maintained by the management software, indicating that the management software is successfully adapted to the currently operating storage device.

进一步的,本方法中在管理软件中对逻辑处理模块进行动态维护,具体在本方法另一实施例中,请参考图4,在上述实施例内容的基础上,若在管理软件维护的列表中查找不到相匹配的逻辑处理模块,则进入步骤S13。Further, in this method, the logic processing module is dynamically maintained in the management software. Specifically, in another embodiment of the method, please refer to FIG. 4 . If no matching logic processing module is found, step S13 is entered.

S13:在所述管理软件中检索指定的文件夹,查找相匹配的逻辑处理模块文件。S13: Retrieve the specified folder in the management software to find the matching logic processing module file.

若检索成功,则进入步骤S14;If the retrieval is successful, go to step S14;

S14:激活检索出的逻辑处理模块文件,并同步逻辑处理模块线程,在所述列表中添加所述文件对应封装的逻辑处理模块;S14: Activate the retrieved logical processing module file, synchronize the logical processing module thread, and add the logical processing module packaged corresponding to the file in the list;

S15:在所述管理软件的所述列表中查找是否存在相匹配的逻辑处理模块。S15: Check whether there is a matching logic processing module in the list of the management software.

若是,则所述管理软件与所述存储设备适配成功。If so, the management software is successfully adapted to the storage device.

若否,则匹配失败,所述管理软件不支持当前的存储设备。If not, the matching fails, and the management software does not support the current storage device.

本实施例存储系统管理软件适配方法,通过设计合理的源码框架,将逻辑流程封装在框架中,在管理软件中动态集成逻辑处理模块;管理软件在适配新类型、新版本的存储系统时,使开发人员只需要关注逻辑处理模块,减少对流程的关注,更多关注接口的实现,从而减少工作量,提高开发效率,降低出错率。The storage system management software adaptation method in this embodiment, through designing a reasonable source code framework, encapsulates the logic flow in the framework, and dynamically integrates the logic processing module in the management software; when the management software adapts to a new type and new version of the storage system , so that developers only need to pay attention to the logic processing module, reduce the attention to the process, and pay more attention to the realization of the interface, thereby reducing the workload, improving the development efficiency and reducing the error rate.

另外需要说明的是,用户在操作时,比如通过逻辑处理模块的存储业务接口进行操作时,也是在列表中获取到与存储系统适配的逻辑处理模块,然后执行该模块内的接口实现。It should also be noted that when the user operates, for example, through the storage business interface of the logic processing module, the user also obtains the logic processing module adapted to the storage system in the list, and then executes the interface implementation in the module.

在上述各实施例中,在管理软件中对逻辑处理模块实现动态地添加和维护,请参考图5,具体的,在管理软件的列表中动态地添加可运行的逻辑处理模块具体包括以下流程:In the above-mentioned embodiments, the logic processing module is dynamically added and maintained in the management software. Please refer to FIG. 5. Specifically, dynamically adding an operable logic processing module in the list of the management software specifically includes the following process:

S20:在所述管理软件启动后,添加用于更新所述管理软件中文件夹的守护线程。S20: After the management software is started, add a daemon thread for updating the folders in the management software.

S21:当到达所述线程的执行周期时,执行线程,更新文件目录。S21: When the execution cycle of the thread is reached, execute the thread and update the file directory.

比如,设置线程的执行周期为600秒,则每隔600秒执行一次线程。For example, if the execution period of the thread is set to 600 seconds, the thread will be executed every 600 seconds.

S22:查看文件夹是否变化,并获取文件夹的变更情况,查看是否存在新增文件、更新文件或者删除文件。S22: Check whether the folder has changed, and obtain the change status of the folder, and check whether there is a newly added file, an updated file or a deleted file.

若文件夹没有发生变化,则返回步骤S21。If the folder has not changed, return to step S21.

若文件夹发生变化,则进入以下各步骤:If the folder changes, proceed to the following steps:

S23:若存在新增文件,判断新增文件是否是逻辑处理模块;S23: If there is a new file, determine whether the new file is a logic processing module;

若是,则将该逻辑处理模块添加到所述列表中;If so, add the logic processing module to the list;

若否,则当前线程执行结束,回到休眠状态,等待线程的下一执行周期。If not, the execution of the current thread ends, returns to the sleep state, and waits for the next execution cycle of the thread.

S24:若存在文件更新,判断更新后的文件是否是逻辑处理模块;S24: If there is a file update, determine whether the updated file is a logic processing module;

若是,则从所述列表中移除旧的逻辑处理模块,将新的逻辑处理模块添加到所述列表中;If so, remove the old logic processing module from the list, and add the new logic processing module to the list;

若否,则从所述列表中移除旧的逻辑处理模块。If not, the old logic processing module is removed from the list.

S25:若存在删除文件,则根据所述列表查找出被删除文件的文件名,从所述列表中移除旧的逻辑处理模块。S25: If there is a deleted file, find out the file name of the deleted file according to the list, and remove the old logic processing module from the list.

在当前线程执行结束后,回到休眠状态,等待线程的下一执行周期。After the execution of the current thread is completed, it returns to the sleep state and waits for the next execution cycle of the thread.

本实施例存储系统管理软件适配方法,可以动态地将存储处理模块集成到管理软件中,当存储处理模块的版本废弃时,或者新添加版本时,开发和维护都非常方便,比如需要修复或更新现有处理模块,直接替换文件就能完成,无需修改主体框架的源码。使开发人员只需对差异内容进行适配工作,并且集中在一个模块中处理,从而减少适配开发的工作量,提高开发效率,避免出现适配遗漏修改的错误,让适配的开发人员更多的精力在针对差异内容的修改。The storage system management software adaptation method in this embodiment can dynamically integrate the storage processing module into the management software. When the version of the storage processing module is discarded or a new version is added, development and maintenance are very convenient. Updating the existing processing module can be done by directly replacing the file without modifying the source code of the main framework. So that developers only need to adapt the difference content, and focus on processing in one module, so as to reduce the workload of adaptation development, improve development efficiency, avoid errors in adaptation omissions and modifications, and make adaptation developers more efficient. A lot of energy is spent on modifying the content of the differences.

本存储系统管理软件适配方法兼容性强,可支持多存储设备,支持动态扩展存储设备。The storage system management software adaptation method has strong compatibility, supports multiple storage devices, and supports dynamic expansion of storage devices.

相应的,请参考图6,本发明实施例还提供一种存储系统管理软件适配装置,包括:Correspondingly, referring to FIG. 6 , an embodiment of the present invention further provides a storage system management software adaptation device, including:

获取模块30,用于从存储设备获取该存储设备的类型、版本号;an obtaining module 30, configured to obtain the type and version number of the storage device from the storage device;

适配模块31,用于根据该存储设备的类型、版本号,在管理软件维护的列表中查找是否存在相匹配的逻辑处理模块,在所述管理软件的所述列表中动态地添加有可运行的逻辑处理模块;若是,则所述管理软件与所述存储设备适配成功。The adaptation module 31 is configured to, according to the type and version number of the storage device, look up whether there is a matching logic processing module in the list maintained by the management software, and dynamically add a runnable module to the list of the management software The logical processing module; if yes, the management software is successfully adapted to the storage device.

本实施例存储系统管理软件适配装置,在管理软件与存储系统适配时,首先从存储设备获取存储设备的类型、版本号,根据该存储设备的类型、版本号,从管理软件维护的列表中查找是否存在相匹配的逻辑处理模块,在管理软件的所述列表中动态地添加可运行的逻辑处理模块,若存在,则管理软件与存储设备适配成功。In this embodiment, the storage system management software adaptation device, when the management software is adapted to the storage system, first obtains the type and version number of the storage device from the storage device, and according to the type and version number of the storage device, obtains the storage device from the list maintained by the management software. Find out whether there is a matching logical processing module in the management software, and dynamically add an executable logical processing module to the list of the management software. If there is, the management software is successfully adapted to the storage device.

本实施例存储系统管理软件适配装置,在管理软件中动态地集成逻辑处理模块,在对管理软件与存储系统兼容性适配时,使开发人员只需关注逻辑处理模块,减少对流程的关注,从而减少工作量,提高开发效率。In this embodiment, the storage system management software adaptation device dynamically integrates the logic processing module in the management software. When adapting the compatibility between the management software and the storage system, developers only need to pay attention to the logic processing module and reduce attention to the process. , thereby reducing workload and improving development efficiency.

进一步的,本实施例装置还包括检索模块,用于若在管理软件维护的列表中没有查找到相匹配的逻辑处理模块时,在所述管理软件中检索指定的文件夹,查找相匹配的逻辑处理模块文件;若检索成功,激活检索出的逻辑处理模块文件,并同步逻辑处理模块线程,在所述列表中添加所述文件对应封装的逻辑处理模块。Further, the apparatus of this embodiment further includes a retrieval module, which is used to retrieve a specified folder in the management software if no matching logic processing module is found in the list maintained by the management software, and find a matching logic module. Processing module files; if the retrieval is successful, activate the retrieved logic processing module files, synchronize the logic processing module threads, and add the encapsulated logic processing modules corresponding to the files in the list.

进一步的,本装置还包括动态维护模块,用于在所述管理软件的所述列表中动态地添加可运行的逻辑处理模块;Further, the device further includes a dynamic maintenance module for dynamically adding an operable logic processing module to the list of the management software;

所述动态维护模块具体用于:在所述管理软件启动后,添加用于更新所述管理软件中文件夹的守护线程;The dynamic maintenance module is specifically configured to: after the management software is started, add a daemon thread for updating the folders in the management software;

当到达所述线程的执行周期时,执行线程,更新文件目录;When the execution cycle of the thread is reached, the thread is executed and the file directory is updated;

查看文件夹是否变化,并获取文件夹的变更情况,查看是否存在新增文件、更新文件或者删除文件;Check whether the folder has changed, and get the changes of the folder, check whether there are new files, updated files or deleted files;

若存在新增文件,判断新增文件是否是逻辑处理模块,若是,则将该逻辑处理模块添加到所述列表中;若否,则当前线程执行结束,回到休眠状态;If there is a new file, it is judged whether the new file is a logic processing module, and if so, the logic processing module is added to the list; if not, the current thread execution ends and returns to the dormant state;

若存在文件更新,判断更新后的文件是否是逻辑处理模块,若是,则从所述列表中移除旧的逻辑处理模块,将新的逻辑处理模块添加到所述列表中,若否,则从所述列表中移除旧的逻辑处理模块;If there is a file update, judge whether the updated file is a logic processing module, if so, remove the old logic processing module from the list, and add the new logic processing module to the list, if not, remove from the list Remove old logic processing modules from the list;

若存在删除文件,则根据所述列表查找出被删除文件的文件名,从所述列表中移除旧的逻辑处理模块。If there is a deleted file, the file name of the deleted file is searched out according to the list, and the old logic processing module is removed from the list.

本实施例中,可运行的逻辑处理模块指符合接口规范的逻辑处理模块,封装后的逻辑处理模块包含:用于获取存储设备的类型的第一接口;用于获取存储设备的版本号的第二接口,可参考图3所示。In this embodiment, the executable logical processing module refers to a logical processing module that conforms to the interface specification, and the encapsulated logical processing module includes: a first interface for acquiring the type of the storage device; a first interface for acquiring the version number of the storage device Two interfaces, as shown in Figure 3.

第一接口为类型获取接口,第二接口为版本号获取接口,以此两个接口作为逻辑处理模块的流程管理接口。The first interface is a type acquisition interface, and the second interface is a version number acquisition interface, and these two interfaces are used as process management interfaces of the logic processing module.

在具体实施时,还可根据实际功能需求,对逻辑处理模块设置相应的一些存储业务接口。比如对于存储管理软件,针对其核心操作功能,可设置以下三种存储业务接口:During specific implementation, some corresponding storage service interfaces may also be set for the logic processing module according to actual functional requirements. For example, for storage management software, for its core operation functions, the following three storage service interfaces can be set:

第三接口,用于进行用户权限管理,包括设置用户权限,注册、删除用户以及修改用户密码等相关操作。The third interface is used to manage user rights, including setting user rights, registering, deleting users, and modifying user passwords and other related operations.

第四接口,用于进行池操作,包括创建、删除、查询池。The fourth interface is used to perform pool operations, including creating, deleting, and querying pools.

第五接口,用于进行卷操作,包括创建、删除、扩容、映射、迁移、克隆或者快照的卷操作。The fifth interface is used for volume operations, including volume operations of creating, deleting, expanding, mapping, migrating, cloning or snapshotting.

以上三个接口作为通用的存储业务接口。需要说明的是,在具体应用时,可根据实际需求设置其它更多功能的业务接口。The above three interfaces are used as general storage service interfaces. It should be noted that, in specific applications, other business interfaces with more functions can be set according to actual needs.

在以上描述中,出现的部分名词或者术语适用于如下解释:In the above description, some nouns or terms appearing are suitable for the following explanations:

存储系统:英文Storage System,即存储设备的操作系统,提供一系列接口(如命令行界面,command-line interface,CLI),以使用户可以操作存储设备进行存储业务使用;通常情况下,也会提供自动化指令和纠错内容,以帮助用户业务使用。Storage system: English Storage System, that is, the operating system of the storage device, provides a series of interfaces (such as command line interface, command-line interface, CLI), so that users can operate the storage device for storage business use; usually, also Provide automated instructions and error correction content to help users in business use.

存储管理软件:安装在存储系统上的图形用户界面软件,通过调用存储系统的CLI来操作,方便用户使用。Storage management software: Graphical user interface software installed on the storage system, which is operated by calling the CLI of the storage system, which is convenient for users to use.

存储管理软件扩展插件:安装在第三方主机上的软件,通常用于存储设备与第三方主机厂商解决方案对接。如OpenStack的云解决方案,VMware的虚拟化解决方案等,目的是各个厂商解决方案可以通过扩展插件调用存储系统的CLI命令。Storage management software extension plug-ins: software installed on third-party hosts, usually used to connect storage devices with solutions from third-party host manufacturers. For example, the cloud solution of OpenStack, the virtualization solution of VMware, etc., the purpose is that the solutions of various manufacturers can call the CLI commands of the storage system through the extension plug-in.

以上对本发明所提供的一种存储系统管理软件适配方法及装置进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The method and device for adapting storage system management software provided by the present invention are described above in detail. The principles and implementations of the present invention are described herein by using specific examples, and the descriptions of the above embodiments are only used to help understand the method and the core idea of the present invention. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, several improvements and modifications can also be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

Claims (8)

1. A storage system management software adaptation method, comprising:
acquiring the type and the version number of the storage equipment from the storage equipment;
according to the type and version number of the storage equipment, searching whether a matched logic processing module exists in a list maintained by management software, and dynamically adding an operable logic processing module in the list of the management software;
if so, the management software is successfully adapted to the storage device;
if not, searching a designated folder in the management software, and searching a matched logic processing module file;
if the retrieval is successful, activating the retrieved logic processing module file, synchronizing the logic processing module thread, and adding a logic processing module packaged correspondingly by the file in the list;
and searching whether a matched logic processing module exists in the list of the management software, if so, successfully adapting the management software and the storage equipment.
2. The storage system management software adaptation method according to claim 1, wherein dynamically adding an executable logical processing module in the list of the management software comprises:
after the management software is started, adding a daemon thread for updating a folder in the management software;
when the execution cycle of the thread is reached, executing the thread and updating the file directory;
checking whether the folder is changed or not, acquiring the change condition of the folder, and checking whether a newly added file, an updated file or a deleted file exists or not;
if the newly added file exists, judging whether the newly added file is a logic processing module, if so, adding the logic processing module into the list; if not, the current thread is finished and returns to the dormant state;
if the file is updated, judging whether the updated file is a logic processing module, if so, removing the old logic processing module from the list, adding the new logic processing module into the list, and if not, removing the old logic processing module from the list;
and if the deleted file exists, finding out the file name of the deleted file according to the list, and removing the old logic processing module from the list.
3. The storage system management software adaptation method according to any one of claims 1-2, wherein the logic processing module comprises: the device comprises a first interface used for obtaining the type of the storage device and a second interface used for obtaining the version number of the storage device.
4. The storage system management software adaptation method according to claim 3, wherein the logic processing module further comprises:
the third interface is used for carrying out user authority management, including setting user authority, registering, deleting users and modifying user passwords;
the fourth interface is used for carrying out pool operation, including creating, deleting and inquiring the pool;
and the fifth interface is used for carrying out volume operation, including volume operation of creating, deleting, expanding, mapping, migrating, cloning or snapshotting.
5. A storage system management software adapting apparatus, comprising:
the acquisition module is used for acquiring the type and the version number of the storage equipment from the storage equipment;
the adaptive module is used for searching whether a matched logic processing module exists in a list maintained by management software according to the type and the version number of the storage equipment, and an operable logic processing module is dynamically added in the list of the management software; if so, the management software is successfully adapted to the storage device;
the system also comprises a retrieval module, a searching module and a searching module, wherein the retrieval module is used for retrieving the appointed folder in the management software and searching the matched logic processing module file if the matched logic processing module is not found in the list maintained by the management software; and if the retrieval is successful, activating the retrieved logic processing module file, synchronizing the logic processing module thread, and adding a logic processing module packaged correspondingly by the file in the list.
6. The storage system management software adapting device according to claim 5, further comprising a dynamic maintenance module for dynamically adding an executable logical processing module in said list of said management software;
the dynamic maintenance module is specifically configured to: after the management software is started, adding a daemon thread for updating a folder in the management software;
when the execution cycle of the thread is reached, executing the thread and updating the file directory;
checking whether the folder is changed or not, acquiring the change condition of the folder, and checking whether a newly added file, an updated file or a deleted file exists or not;
if the newly added file exists, judging whether the newly added file is a logic processing module, if so, adding the logic processing module into the list; if not, the current thread is finished and returns to the dormant state;
if the file is updated, judging whether the updated file is a logic processing module, if so, removing the old logic processing module from the list, adding the new logic processing module into the list, and if not, removing the old logic processing module from the list;
and if the deleted file exists, finding out the file name of the deleted file according to the list, and removing the old logic processing module from the list.
7. The storage system management software adapting device according to any one of claims 5-6, wherein the logic processing module comprises: the device comprises a first interface used for obtaining the type of the storage device and a second interface used for obtaining the version number of the storage device.
8. The storage system management software adapting device according to claim 7, wherein the logic processing module further comprises:
the third interface is used for carrying out user authority management, including setting user authority, registering, deleting users and modifying user passwords;
the fourth interface is used for carrying out pool operation, including creating, deleting and inquiring the pool;
and the fifth interface is used for carrying out volume operation, including volume operation of creating, deleting, expanding, mapping, migrating, cloning or snapshotting.
CN201710399875.7A 2017-05-31 2017-05-31 A storage system management software adaptation method and device Active CN107239283B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710399875.7A CN107239283B (en) 2017-05-31 2017-05-31 A storage system management software adaptation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710399875.7A CN107239283B (en) 2017-05-31 2017-05-31 A storage system management software adaptation method and device

Publications (2)

Publication Number Publication Date
CN107239283A CN107239283A (en) 2017-10-10
CN107239283B true CN107239283B (en) 2020-11-20

Family

ID=59985733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710399875.7A Active CN107239283B (en) 2017-05-31 2017-05-31 A storage system management software adaptation method and device

Country Status (1)

Country Link
CN (1) CN107239283B (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6549918B1 (en) * 1998-09-21 2003-04-15 Microsoft Corporation Dynamic information format conversion
US7814471B2 (en) * 2004-12-16 2010-10-12 Microsoft Corporation Method and apparatus for providing DLL compatibility
CN102013994B (en) * 2010-11-02 2014-04-09 中兴通讯股份有限公司 Method, terminal and system for implementing network element version compatibility in network management
CN103176844B (en) * 2011-09-28 2016-03-30 北京奇虎科技有限公司 The changing method of a kind of IE6 kernel and novel I E kernel and system
CN102968279B (en) * 2012-11-13 2016-06-08 浪潮电子信息产业股份有限公司 A kind of store the method that system simplifies configuration automatically
CN103353835B (en) * 2013-01-17 2016-08-10 珠海全志科技股份有限公司 The migration process method and device of the compatible multiple Sensor equipment of the same race of android system Sensor HAL layer
CN103763369B (en) * 2014-01-20 2017-12-19 浪潮电子信息产业股份有限公司 A kind of multiple authority distributing method based on SAN storage system
US9519468B2 (en) * 2015-02-13 2016-12-13 Oracle International Corporation Modular co-versioning in a dynamically linked runtime environment

Also Published As

Publication number Publication date
CN107239283A (en) 2017-10-10

Similar Documents

Publication Publication Date Title
US20190324648A1 (en) Fast restart of applications using shared memory
US9405630B2 (en) Methods and apparatus to perform site recovery of a virtual data center
US9280336B2 (en) Virtual machine disk image installation
WO2015078333A1 (en) Method for offline updating virtual machine images
US10303458B2 (en) Multi-platform installer
CN106775928B (en) A virtual machine automatic migration system and method between heterogeneous cloud platforms
CN109002307A (en) A kind of upgrading and automated testing method automatically
CN103077034B (en) hybrid virtualization platform JAVA application migration method and system
CN109740765B (en) Machine learning system building method based on Amazon network server
WO2022148185A1 (en) Data packet updating method and apparatus, electronic device, and readable storage medium
CN110377610B (en) A database updating method, device, equipment and medium based on cloud platform
CN113986361B (en) Out-of-band setting method, system and related device for BIOS options
CN103019845A (en) Method for zero-modification migration of application program under heterogeneous database platforms
CN117591136A (en) Storage image generation method, device, computer equipment and storage medium
CN108182278A (en) A kind of FRU information maintenance methods and relevant apparatus
CN104820610A (en) Method for updating virtual machine image in cloud environment
CN115114284A (en) Table change processing method and system
CN115269021A (en) A network card operation processing method, device and medium
WO2017020460A1 (en) Method and apparatus for integrating plugin
CN103984621A (en) Method and system for separating log
JP2018072944A (en) Program, system and information processing method
CN107239283B (en) A storage system management software adaptation method and device
CN102957562A (en) Linux cluster system remote automatic maintenance method and maintenance system
CN105183854A (en) Scheduling method applicable to data unloading of database
US10338891B2 (en) Migration between model elements of different types in a modeling environment

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
TA01 Transfer of patent application right

Effective date of registration: 20201030

Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 450018 Henan province Zheng Dong New District of Zhengzhou City Xinyi Road No. 278 16 floor room 1601

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant