[go: up one dir, main page]

CN110531932A - A storage device management method, device, device and storage medium - Google Patents

A storage device management method, device, device and storage medium Download PDF

Info

Publication number
CN110531932A
CN110531932A CN201910779823.1A CN201910779823A CN110531932A CN 110531932 A CN110531932 A CN 110531932A CN 201910779823 A CN201910779823 A CN 201910779823A CN 110531932 A CN110531932 A CN 110531932A
Authority
CN
China
Prior art keywords
target storage
management
storage devices
storage device
command
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.)
Granted
Application number
CN201910779823.1A
Other languages
Chinese (zh)
Other versions
CN110531932B (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 Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave 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 Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201910779823.1A priority Critical patent/CN110531932B/en
Publication of CN110531932A publication Critical patent/CN110531932A/en
Application granted granted Critical
Publication of CN110531932B publication Critical patent/CN110531932B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0683Plurality of storage devices
    • G06F3/0688Non-volatile semiconductor memory arrays
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种存储设备管理方法,应用于管理设备,管理设备可分别与多个集群的每个存储设备连接;该方法包括以下步骤:根据接收到的管理指令,确定当前待管理的多个目标存储设备;获取每个目标存储设备的设备信息;确定与各个目标存储设备的连接方式;基于每个目标存储设备的设备信息,使用确定的连接方式与相应的目标存储设备建立连接;向各个目标存储设备发送相应的管理命令,以使各个目标存储设备执行相应的管理命令;获得各个目标存储设备的执行结果。应用本发明实施例所提供的技术方案,简化了对存储设备的管理操作过程,提高了管理效率。本发明还公开了一种存储设备管理装置、一种管理设备及存储介质,具有相应技术效果。

The invention discloses a storage device management method, which is applied to the management device, and the management device can be respectively connected with each storage device of a plurality of clusters; the method includes the following steps: according to the received management instruction, determine the current storage device to be managed. obtain the device information of each target storage device; determine the connection mode with each target storage device; based on the device information of each target storage device, use the determined connection mode to establish a connection with the corresponding target storage device; Each target storage device sends a corresponding management command, so that each target storage device executes the corresponding management command; and an execution result of each target storage device is obtained. By applying the technical solutions provided by the embodiments of the present invention, the management operation process of the storage device is simplified, and the management efficiency is improved. The invention also discloses a storage device management device, a management device and a storage medium, which have corresponding technical effects.

Description

一种存储设备管理方法、装置、设备及存储介质A storage device management method, device, device and storage medium

技术领域technical field

本发明涉及计算机应用技术领域,特别是涉及一种存储设备管理方法、装置、设备及存储介质。The present invention relates to the technical field of computer applications, and in particular, to a storage device management method, apparatus, device and storage medium.

背景技术Background technique

随着计算机技术的快速发展,集群在各行各业的应用越来越普遍。集群多是由多个存储设备构成,在对集群中存储设备进行管理时,通常需要技术人员逐一登录到各个存储设备的图形用户界面(Graphical User Interface,GUI)进行操作,操作过程繁琐,容易出错,管理效率较低。With the rapid development of computer technology, the application of clusters in all walks of life is becoming more and more common. Clusters are mostly composed of multiple storage devices. When managing the storage devices in the cluster, technicians are usually required to log in to the Graphical User Interface (GUI) of each storage device one by one to operate. The operation process is cumbersome and prone to errors. , the management efficiency is low.

发明内容SUMMARY OF THE INVENTION

本发明的目的是提供一种存储设备管理方法、装置、设备及存储介质,以简化对存储设备的管理操作过程,提高管理效率。The purpose of the present invention is to provide a storage device management method, device, device and storage medium, so as to simplify the management operation process of the storage device and improve the management efficiency.

为解决上述技术问题,本发明提供如下技术方案:In order to solve the above-mentioned technical problems, the present invention provides the following technical solutions:

一种存储设备管理方法,应用于管理设备,所述管理设备可分别与多个集群的每个存储设备连接;所述方法包括:A storage device management method is applied to a management device, and the management device can be respectively connected to each storage device of a plurality of clusters; the method includes:

根据接收到的管理指令,确定当前待管理的多个目标存储设备;Determine a plurality of target storage devices currently to be managed according to the received management instruction;

获取每个所述目标存储设备的设备信息;Obtain device information of each of the target storage devices;

确定与各个所述目标存储设备的连接方式;Determine the connection mode with each of the target storage devices;

基于每个所述目标存储设备的设备信息,使用确定的连接方式与相应的所述目标存储设备建立连接;Based on the device information of each target storage device, establish a connection with the corresponding target storage device using the determined connection mode;

向各个所述目标存储设备发送相应的管理命令,以使各个所述目标存储设备执行相应的管理命令;Sending a corresponding management command to each of the target storage devices, so that each of the target storage devices executes the corresponding management command;

获得各个所述目标存储设备的执行结果。Obtain the execution results of each of the target storage devices.

在本发明的一种具体实施方式中,所述管理指令为配置指令,所述连接方式为通过RestAPI连接,或者通过SSH远程连接;所述管理指令为升级指令、备份指令或恢复指令,所述连接方式为socket短连接。In a specific embodiment of the present invention, the management instruction is a configuration instruction, the connection method is a connection through RestAPI, or a remote connection through SSH; the management instruction is an upgrade instruction, a backup instruction or a restore instruction, and the The connection method is socket short connection.

在本发明的一种具体实施方式中,所述管理命令为配置命令,所述配置命令有多条,所述向各个所述目标存储设备发送相应的管理命令,包括:In a specific embodiment of the present invention, the management command is a configuration command, and there are multiple configuration commands, and the sending the corresponding management command to each of the target storage devices includes:

逐一向每个所述目标存储设备发送相应的配置命令,针对同一所述目标存储设备的相邻两条配置命令具有设定的发送间隔时长。Corresponding configuration commands are sent to each of the target storage devices one by one, and two adjacent configuration commands for the same target storage device have a set sending interval duration.

在本发明的一种具体实施方式中,所述管理命令为升级命令,在所述向各个所述目标存储设备发送相应的管理命令之前,还包括:In a specific embodiment of the present invention, the management command is an upgrade command, and before sending the corresponding management command to each of the target storage devices, the method further includes:

将升级包传输到每个所述目标存储设备的指定目录下;Transfer the upgrade package to the specified directory of each of the target storage devices;

所述向各个所述目标存储设备发送相应的管理命令,包括:The sending corresponding management commands to each of the target storage devices includes:

通过所述socket短连接,向各个所述目标存储设备发送相应的升级命令,以使各个所述目标存储设备基于所述升级包执行相应的升级操作。Through the socket short connection, a corresponding upgrade command is sent to each of the target storage devices, so that each of the target storage devices performs a corresponding upgrade operation based on the upgrade package.

在本发明的一种具体实施方式中,所述获得各个所述目标存储设备的执行结果,包括:In a specific embodiment of the present invention, the obtaining the execution results of each of the target storage devices includes:

按照设定第一时间间隔遍历各个所述目标存储设备,尝试建立所述socket短连接;Traverse each of the target storage devices according to the set first time interval, and try to establish the socket short connection;

接收各个所述目标存储设备通过所述socket短连接返回的执行结果。Receive the execution result returned by each of the target storage devices through the socket short connection.

在本发明的一种具体实施方式中,所述管理命令为备份命令,所述向各个所述目标存储设备发送相应的管理命令,包括:In a specific embodiment of the present invention, the management command is a backup command, and the sending a corresponding management command to each of the target storage devices includes:

按照设定的第二时间间隔向各个所述目标存储设备发送相应的备份命令,以使各个所述目标存储设备通过当前配置信息逆向生成配置文件;Send a corresponding backup command to each of the target storage devices according to the set second time interval, so that each of the target storage devices reversely generates a configuration file through the current configuration information;

接收并保存各个所述目标存储设备返回的配置文件。Receive and save the configuration files returned by each of the target storage devices.

在本发明的一种具体实施方式中,所述管理命令为恢复命令,在所述向各个所述目标存储设备发送相应的管理命令之前,还包括:In a specific embodiment of the present invention, the management command is a recovery command, and before the sending the corresponding management command to each of the target storage devices, the method further includes:

将预先获得的各个所述目标存储设备的配置文件分别发送到相应的所述目标存储设备内;sending the pre-obtained configuration files of each of the target storage devices to the corresponding target storage devices;

所述向各个所述目标存储设备发送相应的管理命令,包括:The sending corresponding management commands to each of the target storage devices includes:

向各个所述目标存储设备发送相应的恢复命令,以使每个所述目标存储设备根据接收到的配置文件,进行配置数据的恢复。A corresponding restore command is sent to each of the target storage devices, so that each of the target storage devices restores configuration data according to the received configuration file.

一种存储设备管理装置,应用于管理设备,所述管理设备可分别与多个集群的每个存储设备连接;所述装置包括:A storage device management device is applied to management devices, and the management devices can be respectively connected to each storage device of multiple clusters; the device includes:

存储设备确定模块,用于根据接收到的管理指令,确定当前待管理的多个目标存储设备;a storage device determination module, configured to determine a plurality of target storage devices currently to be managed according to the received management instruction;

设备信息获取模块,用于获取每个所述目标存储设备的设备信息;a device information acquisition module for acquiring device information of each of the target storage devices;

连接方式确定模块,用于确定与各个所述目标存储设备的连接方式;a connection mode determination module for determining a connection mode with each of the target storage devices;

连接建立模块,用于基于每个所述目标存储设备的设备信息,使用确定的连接方式与相应的所述目标存储设备建立连接;a connection establishment module, configured to establish a connection with the corresponding target storage device using a determined connection mode based on the device information of each of the target storage devices;

管理命令下发模块,用于向各个所述目标存储设备发送相应的管理命令,以使各个所述目标存储设备执行相应的管理命令;a management command issuing module, configured to send a corresponding management command to each of the target storage devices, so that each of the target storage devices executes the corresponding management command;

执行结果获得模块,用于获得各个所述目标存储设备的执行结果。The execution result obtaining module is configured to obtain the execution result of each of the target storage devices.

一种管理设备,所述管理设备可分别与多个集群的每个存储设备连接,包括:A management device, which can be respectively connected to each storage device of multiple clusters, includes:

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

处理器,用于执行所述计算机程序时实现上述任一项所述存储设备管理方法的步骤。The processor is configured to implement the steps of any one of the storage device management methods described above when executing the computer program.

一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述任一项所述存储设备管理方法的步骤。A computer-readable storage medium storing a computer program on the computer-readable storage medium, when the computer program is executed by a processor, implements the steps of any one of the storage device management methods described above.

应用本发明实施例所提供的技术方案,管理设备确定当前待管理的多个目标存储设备后,获取每个目标存储设备的设备信息,确定与各个目标存储设备的连接方式,基于设备信息,使用确定的连接方式与相应的目标存储设备建立连接,向各个目标存储设备发送相应的管理命令,以使各目标存储设备执行相应的管理命令,获得执行结果。通过管理设备自动完成对各存储设备的管理,节省了人力成本,可有效防止重复繁杂的人为操作可能引入的错误,简化了对存储设备的管理操作过程,提高了管理效率。Applying the technical solution provided by the embodiment of the present invention, after the management device determines multiple target storage devices to be managed, obtains device information of each target storage device, determines the connection mode with each target storage device, and uses the device information based on the device information. The determined connection mode establishes a connection with a corresponding target storage device, and sends a corresponding management command to each target storage device, so that each target storage device executes the corresponding management command and obtains an execution result. The management of each storage device is automatically completed by the management device, which saves labor costs, can effectively prevent errors that may be introduced by repetitive and complicated human operations, simplifies the management and operation process of storage devices, and improves management 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 an implementation flowchart of a storage device management method in an embodiment of the present invention;

图2为本发明实施例中设备信息获取流程图;FIG. 2 is a flowchart of device information acquisition in an embodiment of the present invention;

图3为本发明实施例中管理设备对存储设备进行配置管理过程示意图;3 is a schematic diagram of a process of configuring and managing a storage device by a management device in an embodiment of the present invention;

图4为本发明实施例中管理设备对存储设备进行升级管理过程示意图;FIG. 4 is a schematic diagram of a process of upgrading and managing a storage device by a management device in an embodiment of the present invention;

图5为本发明实施例中管理设备对存储设备进行备份、恢复管理过程示意图;5 is a schematic diagram of a management process for a management device to backup and restore a storage device in an embodiment of the present invention;

图6为本发明实施例中执行结果呈现示意图;FIG. 6 is a schematic diagram of an execution result presentation in an embodiment of the present invention;

图7为本发明实施例中RestAPI接口结构图;7 is a structural diagram of a RestAPI interface in an embodiment of the present invention;

图8为本发明实施例中CLI接口结构图;8 is a structural diagram of a CLI interface in an embodiment of the present invention;

图9为本发明实施例中升级包传输接口结构图;9 is a structural diagram of an upgrade package transmission interface in an embodiment of the present invention;

图10为本发明实施例中CLI配置接口结构图;10 is a structural diagram of a CLI configuration interface in an embodiment of the present invention;

图11为本发明实施例中一种存储设备管理装置的结构示意图;11 is a schematic structural diagram of a storage device management apparatus according to an embodiment of the present invention;

图12为本发明实施例中一种管理设备的结构示意图。FIG. 12 is a schematic structural diagram of a management device in an embodiment of the present invention.

具体实施方式Detailed ways

本发明的核心是提供一种存储设备管理方法,该方法可以应用于管理设备,该管理设备可分别与多个集群的每个存储设备连接。管理设备可与各存储设备处于同一局域网内。管理设备可对每个存储设备进行配置、升级、备份、恢复等管理。The core of the present invention is to provide a storage device management method, which can be applied to a management device, and the management device can be respectively connected to each storage device of a plurality of clusters. The management device and each storage device can be in the same local area network. The management device can configure, upgrade, backup, and restore each storage device.

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

参见图1所示,为本发明实施例所提供的一种存储设备管理方法的实施流程图,该方法可以包括以下步骤:Referring to FIG. 1, it is an implementation flowchart of a storage device management method provided by an embodiment of the present invention. The method may include the following steps:

S110:根据接收到的管理指令,确定当前待管理的多个目标存储设备。S110: Determine a plurality of target storage devices currently to be managed according to the received management instruction.

在实际应用中,在有对存储设备的管理需求时,可以由技术人员或者其他系统向管理设备发出针对存储设备的管理指令。管理设备根据接收到的管理指令,可以确定当前待管理的多个目标存储设备。目标存储设备可以是管理设备可连接的存储设备中的部分存储设备,还可以是全部存储设备。管理指令中可以携带当前待管理的存储设备的标识信息,或者当前待管理的存储设备的卷、池、主机等的标识信息。In practical applications, when there is a management requirement for the storage device, a technician or other system may issue a management instruction for the storage device to the management device. The management device may determine, according to the received management instruction, multiple target storage devices to be managed currently. The target storage device may be a part of the storage devices that can be connected to the management device, or may be all the storage devices. The management instruction may carry the identification information of the storage device currently to be managed, or the identification information of the volume, pool, host, etc. of the storage device currently to be managed.

S120:获取每个目标存储设备的设备信息。S120: Acquire device information of each target storage device.

在本发明实施例中,管理设备可以自动获取可连接的每个存储设备的设备信息。如通过基于链路层LLDP(Link Layer Discovery Protocol,链路层发现协议)协议组播的设备发现方式获取,或者基于IP层广播的设备信息获取方式获取。如图2所示,管理设备通过交换机向各个存储设备发起组播或广播消息,进行设备发现,各个存储设备收到组播或广播消息后,收集自身信息并响应,达到超时时长时,管理设备收集所有响应的设备信息。In this embodiment of the present invention, the management device may automatically acquire device information of each connectable storage device. For example, it is obtained through a device discovery method based on link layer LLDP (Link Layer Discovery Protocol, Link Layer Discovery Protocol) protocol multicast, or a device information acquisition method based on IP layer broadcast. As shown in Figure 2, the management device sends a multicast or broadcast message to each storage device through the switch to perform device discovery. After each storage device receives the multicast or broadcast message, it collects its own information and responds. When the timeout period is reached, the management device Collect device information for all responses.

管理设备获得各个存储设备的设备信息后,可以在本地保存。在确定当前待管理的多个目标存储设备后,可以从本地保存的所有设备信息中获取每个目标存储设备的设备信息。或者在确定当前待管理的多个目标存储设备后,通过设备发现方式获取每个目标存储设备的设备信息。After the management device obtains the device information of each storage device, it can be saved locally. After determining the multiple target storage devices currently to be managed, the device information of each target storage device can be obtained from all the device information stored locally. Or after multiple target storage devices to be managed currently are determined, device information of each target storage device is acquired through a device discovery method.

设备信息可以包括设备IP地址、用户名、密码等信息。对于设备信息可进行加密传输。The device information may include device IP address, user name, password and other information. Device information can be encrypted for transmission.

S130:确定与各个目标存储设备的连接方式。S130: Determine the connection mode with each target storage device.

不同存储设备支持的连接方式不同。在确定当前待管理的多个目标存储设备后,可以进一步确定与各个目标存储设备的连接方式。具体的,当管理指令为配置指令时,连接方式可以为通过RestAPI连接,或者通过SSH远程连接。当管理指令为升级指令、备份指令或者恢复指令时,连接方式可以为socket短连接。Rest即Representational StateTransfer,表现层状态转移,SSH即Secure Shell,远程登录会话协议。Different storage devices support different connection methods. After the multiple target storage devices to be managed currently are determined, the connection mode with each target storage device can be further determined. Specifically, when the management instruction is a configuration instruction, the connection method may be a connection through RestAPI, or a remote connection through SSH. When the management command is an upgrade command, a backup command or a restore command, the connection mode can be a short socket connection. Rest is Representational StateTransfer, presentation layer state transfer, SSH is Secure Shell, remote login session protocol.

针对一个存储设备,当向其发送一个基本的RestAPI消息失败时,则表明该存储设备可能不支持RestAPI连接,可以再次向其发送一个CLI命令,如果成功,则可以确定该存储设备不支持RestAPI连接,可支持SSH远程连接。CLI即command-line interface,命令行界面。For a storage device, when sending a basic RestAPI message to it fails, it indicates that the storage device may not support RestAPI connections, and a CLI command can be sent to it again. If successful, it can be determined that the storage device does not support RestAPI connections , can support SSH remote connection. CLI stands for command-line interface, command line interface.

S140:基于每个目标存储设备的设备信息,使用确定的连接方式与相应的目标存储设备建立连接。S140: Based on the device information of each target storage device, establish a connection with the corresponding target storage device using the determined connection mode.

管理设备获取到每个目标存储设备的设备信息,并确定与各个目标存储设备的连接方式后,可以基于每个目标存储设备的设备信息,使用确定的连接方式与相应的目标存储设备建立连接。After the management device obtains the device information of each target storage device and determines the connection mode with each target storage device, it can establish a connection with the corresponding target storage device using the determined connection mode based on the device information of each target storage device.

S150:向各个目标存储设备发送相应的管理命令,以使各个目标存储设备执行相应的管理命令。S150: Send a corresponding management command to each target storage device, so that each target storage device executes the corresponding management command.

在管理指令为配置指令时,向各个目标存储设备发送的相应的管理命令即为配置命令。如果配置命令有多条,可以逐一向每个目标存储设备发送相应的配置命令,针对同一目标存储设备的相邻两条配置命令具有设定的发送间隔时长。这样可以防止网络延迟导致的后发先到,使得目标存储设备执行配置命令顺序紊乱的情况发生。为了缩短配置时长,可以并发对多个不同目标存储设备进行配置命令的发送。如果与目标存储设备的连接方式为通过RestAPI连接,则可以通过Rest消息发送配置命令,如果与目标存储设备的连接方式为SSH远程连接,则可以通过CLI命令发送配置命令。When the management command is a configuration command, the corresponding management command sent to each target storage device is a configuration command. If there are multiple configuration commands, corresponding configuration commands may be sent to each target storage device one by one, and two adjacent configuration commands for the same target storage device have a set sending interval. This can prevent the late-delivery-first-arrival caused by the network delay, and the situation that the target storage device executes the configuration commands in disorder. In order to shorten the configuration time, configuration commands can be sent concurrently to multiple different target storage devices. If the connection to the target storage device is through RestAPI, you can send configuration commands through Rest messages. If the connection to the target storage device is through SSH remote connection, you can send configuration commands through CLI commands.

在管理指令为升级指令时,向各个目标存储设备发送的相应的管理命令即为升级命令。When the management command is an upgrade command, the corresponding management command sent to each target storage device is the upgrade command.

在本发明的一种具体实施方式中,在向各个目标存储设备发送相应的管理命令之前,该方法还可以包括以下步骤:In a specific embodiment of the present invention, before sending the corresponding management command to each target storage device, the method may further include the following steps:

将升级包传输到每个目标存储设备的指定目录下;Transfer the upgrade package to the specified directory of each target storage device;

步骤S150可以包括以下步骤:Step S150 may include the following steps:

通过socket短连接,向各个目标存储设备发送相应的升级命令,以使各个目标存储设备基于升级包执行相应的升级操作。A corresponding upgrade command is sent to each target storage device through a short socket connection, so that each target storage device performs a corresponding upgrade operation based on the upgrade package.

在本发明实施例中,在需要对存储设备进行升级时,管理设备可以先将升级包传输到每个目标存储设备的指定目录下,不同目标存储设备的升级包可以相同或不同。具体的,如果管理设备为Linux操作系统,则可以通过scp命令将升级包传输到每个目标存储设备的指定目录下,如果管理设备为Windows操作系统,则可以通过ftp协议将升级包传输到每个目标存储设备的指定目录下。In this embodiment of the present invention, when the storage device needs to be upgraded, the management device may first transmit the upgrade package to a specified directory of each target storage device, and the upgrade packages of different target storage devices may be the same or different. Specifically, if the management device is a Linux operating system, the upgrade package can be transferred to the specified directory of each target storage device through the scp command. If the management device is a Windows operating system, the upgrade package can be transferred to each target storage device through the ftp protocol. under the specified directory of the target storage device.

在将升级包传输到每个目标存储设备的指定目录下后,可以通过socket短连接,向各个目标存储设备发送相应的升级命令,这样各个目标存储设备基于自身指定目录下的升级包即可执行相应的升级操作。After the upgrade package is transferred to the designated directory of each target storage device, the corresponding upgrade command can be sent to each target storage device through a short socket connection, so that each target storage device can execute the upgrade package based on its own designated directory. The corresponding upgrade operation.

在管理指令为备份指令时,向各个目标存储设备发送的相应的管理命令即为备份命令。本发明实施例中的备份是指对存储设备中配置数据的备份。When the management command is a backup command, the corresponding management command sent to each target storage device is the backup command. The backup in the embodiment of the present invention refers to the backup of the configuration data in the storage device.

在本发明的一种具体实施方式中,步骤S150可以包括以下步骤:In a specific embodiment of the present invention, step S150 may include the following steps:

步骤一:按照设定的第二时间间隔向各个目标存储设备发送相应的备份命令,以使各个目标存储设备通过当前配置信息逆向生成配置文件;Step 1: send corresponding backup commands to each target storage device according to the set second time interval, so that each target storage device reversely generates a configuration file through the current configuration information;

步骤二:接收并保存各个目标存储设备返回的配置文件。Step 2: Receive and save the configuration files returned by each target storage device.

在实际应用中,对于存储设备的配置可以是管理设备触发的,还可以是技术人员手动配置的。管理设备可以按照设定第二时间间隔向各个目标存储设备发送相应的备份命令,这样,各个目标存储设备通过查询自身当前的配置信息可以逆向生成配置文件。也就是说,各目标存储设备通过查询当前有哪些配置信息,推测出在开始阶段执行了哪些配置命令。生成配置文件后,各目标存储设备可将配置文件返回给管理设备。In practical applications, the configuration of the storage device may be triggered by the management device, or manually configured by a technician. The management device may send a corresponding backup command to each target storage device according to the set second time interval, so that each target storage device can reversely generate a configuration file by querying its own current configuration information. That is to say, each target storage device infers which configuration commands are executed in the initial stage by querying which configuration information currently exists. After the configuration file is generated, each target storage device can return the configuration file to the management device.

管理设备可接收并保存各个目标存储设备返回的配置文件,实现对各个目标存储设备的配置数据的备份。以便在需要恢复配置时使用。The management device can receive and save the configuration files returned by each target storage device, so as to realize the backup of the configuration data of each target storage device. for use when you need to restore the configuration.

第二时间间隔可以根据实际情况进行设定和调整,本发明实施例不做限制。The second time interval may be set and adjusted according to the actual situation, which is not limited in this embodiment of the present invention.

在管理指令为恢复指令时,向各个目标存储设备发送的相应的管理命令即为恢复命令。本发明实施例中的恢复是指对存储设备中配置数据的恢复。When the management command is a recovery command, the corresponding management command sent to each target storage device is the recovery command. The recovery in the embodiment of the present invention refers to the recovery of configuration data in the storage device.

在本发明的一种具体实施方式中,在向各个目标存储设备发送相应的管理命令之前,该方法还可以包括以下步骤:In a specific embodiment of the present invention, before sending the corresponding management command to each target storage device, the method may further include the following steps:

将预先获得的各个目标存储设备的配置文件分别发送到相应的目标存储设备内;Sending the pre-obtained configuration files of each target storage device to the corresponding target storage device;

步骤S150可以包括以下步骤:Step S150 may include the following steps:

向各个目标存储设备发送相应的恢复命令,以使每个目标存储设备根据接收到的配置文件,进行配置数据的恢复。Send corresponding restore commands to each target storage device, so that each target storage device restores configuration data according to the received configuration file.

在本发明实施例中,管理设备可以预先获得各存储设备的配置文件,并在本地保存。当管理指令为恢复指令时,管理设备与各目标存储设备建立连接后,可以将预先获得的各目标存储设备的配置文件分别发送到相应的目标存储设备内,然后,向各个目标存储设备发送相应的恢复命令,这样每个目标存储设备根据接收到的配置文件,可以进行配置数据的恢复。In this embodiment of the present invention, the management device may obtain the configuration files of each storage device in advance and save them locally. When the management instruction is a recovery instruction, after the management device establishes a connection with each target storage device, it can send the pre-obtained configuration files of each target storage device to the corresponding target storage devices, and then send the corresponding configuration files to each target storage device. restore command, so that each target storage device can restore the configuration data according to the received configuration file.

S160:获得各个目标存储设备的执行结果。S160: Obtain execution results of each target storage device.

管理设备向各个目标存储设备发送相应的管理命令后,各个目标存储设备执行相应的管理命令。管理设备可以获得各个目标存储设备的执行结果。如果管理设备在设定超时时长内没有接收到某个目标存储设备的执行结果,可以判定该目标存储设备对于管理命令的执行结果为失败。或者可以重新发送管理命令。After the management device sends the corresponding management command to each target storage device, each target storage device executes the corresponding management command. The management device can obtain the execution results of each target storage device. If the management device does not receive the execution result of a certain target storage device within the set timeout period, it may be determined that the execution result of the management command by the target storage device is a failure. Or the management command can be resent.

如果管理指令为升级指令,则管理设备可以按照设定第一时间间隔遍历各个目标存储设备,尝试建立socket短连接,目标存储设备基于升级包升级完成后,可以通过socket短连接返回执行结果,管理设备可接收各个目标存储设备返回的执行结果。If the management instruction is an upgrade instruction, the management device can traverse each target storage device according to the set first time interval, and try to establish a socket short connection. After the target storage device is upgraded based on the upgrade package, it can return the execution result through the socket short connection. The device can receive the execution result returned by each target storage device.

为便于理解,分别以管理指令为配置指令、升级指令、备份指令和恢复指令为例,对本发明实施例进行说明。For ease of understanding, the embodiments of the present invention are described by taking the management instructions as a configuration instruction, an upgrade instruction, a backup instruction, and a restore instruction as examples.

图3所示,为管理设备对存储设备进行配置管理过程示意图。技术人员可以在管理设备处输入需要执行的配置数据,管理设备通过设备发现或者手动指定,可以确定目标存储设备,获得目标存储设备的设备信息,如IP地址、用户名、密码等,然后管理设备向目标存储设备逐一发送相应的配置命令,各个目标存储设备收到配置命令后,逐条执行,配置到本地生效,并返回配置结果信息,管理设备收到各个目标存储设备返回的执行结果,或者等待超时后,输出展示执行结果。FIG. 3 is a schematic diagram of a process of configuring and managing a storage device by a management device. The technician can input the configuration data to be executed at the management device. The management device can determine the target storage device through device discovery or manual designation, obtain the device information of the target storage device, such as IP address, user name, password, etc., and then manage the device. Send the corresponding configuration commands to the target storage devices one by one. After receiving the configuration commands, each target storage device executes them one by one, the configuration takes effect locally, and returns the configuration result information. The management device receives the execution results returned by each target storage device, or waits for After the timeout, the output shows the execution result.

图4所示,为管理设备对存储设备进行升级管理过程示意图。技术人员可以将升级包上传到管理设备处,管理设备通过设备发现或手动指定,可以确定目标存储设备,获取目标存储设备的设备信息,如IP地址、用户名、密码等,然后,管理设备利用Linux scp命令或者windows ftp协议将升级包传输到每个目标存储设备的指定目录下,与每个目标存储设备建立socket短连接并发送升级命令,各个目标存储设备收到升级命令后,执行升级操作,期间连接断开,管理设备间隔遍历所有目标存储设备尝试建立socket短连接,目标存储设备升级完成后,响应管理设备的socket短连接,并返回升级结果,如当前版本信息等,管理设备获取所有目标存储设备的执行结果,或等待超时后,将升级结果列表整理呈现。FIG. 4 is a schematic diagram illustrating a process of upgrading and managing a storage device by a management device. The technician can upload the upgrade package to the management device, and the management device can determine the target storage device through device discovery or manual designation, and obtain the device information of the target storage device, such as IP address, user name, password, etc., and then use the management device to use The Linux scp command or the windows ftp protocol transfers the upgrade package to the specified directory of each target storage device, establishes a short socket connection with each target storage device and sends the upgrade command. After each target storage device receives the upgrade command, the upgrade operation is performed. , the connection is disconnected during the period, the management device traverses all target storage devices at intervals and tries to establish a short socket connection. After the upgrade of the target storage device is completed, it responds to the short socket connection of the management device, and returns the upgrade result, such as the current version information, etc., the management device obtains all The execution result of the target storage device, or after the wait times out, the list of upgrade results will be organized and presented.

图5所示,为管理设备对存储设备进行备份、恢复管理过程示意图。管理设备可以固定间隔通过socket短连接向各个目标存储设备发送备份命令,存储设备收到备份命令后,进行备份操作,生成CLI配置文件,若管理设备为Linux操作系统则通过scp命令,若管理设备为Windows操作系统则通过ftp协议,将配置文件定期更新到管理设备,当目标存储设备发生异常,需要配置数据恢复时,先将对应的配置文件从管理设备发送到目标存储设备内,管理设备通过socket短连接发送恢复命令,目标存储设备根据收到的配置文件,执行其内的CLI命令进行配置数据恢复,恢复完成后将结果发送到管理设备,管理设备收集结果并呈现。FIG. 5 is a schematic diagram of a management process of backing up and restoring a storage device by a management device. The management device can send backup commands to each target storage device through short socket connections at regular intervals. After the storage device receives the backup command, it performs the backup operation and generates a CLI configuration file. If the management device is a Linux operating system, use the scp command. For the Windows operating system, the configuration file is regularly updated to the management device through the ftp protocol. When the target storage device is abnormal and the configuration data needs to be restored, the corresponding configuration file is first sent from the management device to the target storage device. The socket short connection sends a restore command, and the target storage device executes the CLI command in the configuration data according to the received configuration file to restore the configuration data. After the restoration is completed, the result is sent to the management device, and the management device collects and presents the results.

图6所示为执行结果呈现示意图,技术人员通过呈现的执行结果可以全面了解到各存储设备的执行进度。FIG. 6 is a schematic diagram showing the execution result, and the technician can fully understand the execution progress of each storage device through the presented execution result.

本发明实施例可对大批量存储设备进行批量化管理,简化操作流程。对存储设备的配置数据进行批量备份与恢复,使得数据丢失后能够快速进行重新配置。The embodiment of the present invention can perform batch management on a large number of storage devices, and simplify the operation process. Backup and restore configuration data of storage devices in batches, enabling quick reconfiguration after data loss.

下面对本发明实施例中各接口结构进行说明。The structure of each interface in the embodiment of the present invention is described below.

图7所示为RestAPI接口结构图,包括Rest协议头、存储设备IP地址、存储设备端口、Rest消息内容和参数等。Figure 7 shows the structure diagram of the RestAPI interface, including the Rest protocol header, the IP address of the storage device, the port of the storage device, and the content and parameters of the Rest message.

图8所示为CLI接口结构图,SSH连接传输CLI命令,可先打开会话,即openSession,基于获取到的设备信息中的用户名、密码,尝试连接,发送CLI命令,CLI接口包括前缀、CLI命令体、参数、操作体等。Figure 8 shows the structure of the CLI interface. The SSH connection transmits CLI commands. You can open a session first, namely openSession. Based on the user name and password in the obtained device information, try to connect and send CLI commands. The CLI interface includes prefix, CLI Command body, parameter, operation body, etc.

图9所示为升级包传输接口结构图,升级包传输接口包括命令名、密码、用户名、升级包、存储设备IP地址、目标路径等。Fig. 9 shows the structure diagram of the upgrade package transmission interface. The upgrade package transmission interface includes command name, password, user name, upgrade package, storage device IP address, target path, and the like.

图10为CLI配置接口结构图,包括前缀、CLI命令体、参数(可由查询命令中获得)等。存储设备查询数据配置信息,根据查询到的数据配置信息,可以生成配置CLI命令,目的是如果执行该条CLI命令,达到的效果与当前查询到的信息完全相同。Figure 10 is a structural diagram of the CLI configuration interface, including prefixes, CLI command bodies, parameters (obtained by query commands), and the like. The storage device queries the data configuration information, and can generate a configuration CLI command based on the queried data configuration information. The purpose is that if the CLI command is executed, the effect is exactly the same as the currently queried information.

应用本发明实施例所提供的方法,管理设备确定当前待管理的多个目标存储设备后,获取每个目标存储设备的设备信息,确定与各个目标存储设备的连接方式,基于设备信息,使用确定的连接方式与相应的目标存储设备建立连接,向各个目标存储设备发送相应的管理命令,以使各目标存储设备执行相应的管理命令,获得执行结果。通过管理设备自动完成对各存储设备的管理,节省了人力成本,可有效防止重复繁杂的人为操作可能引入的错误,简化了对存储设备的管理操作过程,提高了管理效率。By applying the method provided by the embodiment of the present invention, after the management device determines the multiple target storage devices currently to be managed, it obtains the device information of each target storage device, determines the connection mode with each target storage device, and uses the determination method based on the device information. The connection method is established with the corresponding target storage device, and the corresponding management command is sent to each target storage device, so that each target storage device executes the corresponding management command and obtains the execution result. The management of each storage device is automatically completed by the management device, which saves labor costs, can effectively prevent errors that may be introduced by repetitive and complicated human operations, simplifies the management and operation process of storage devices, and improves management efficiency.

相应于上面的方法实施例,本发明实施例还提供了一种存储设备管理装置,应用于管理设备,管理设备可分别与多个集群的每个存储设备连接;下文描述的一种存储设备管理装置与上文描述的一种存储设备管理方法可相互对应参照。Corresponding to the above method embodiments, the embodiments of the present invention further provide a storage device management device, which is applied to management devices, and the management devices can be respectively connected to each storage device of multiple clusters; a storage device management device described below The apparatus and the storage device management method described above may refer to each other correspondingly.

参见图11所示,该装置包括:Referring to Figure 11, the device includes:

存储设备确定模块210,用于根据接收到的管理指令,确定当前待管理的多个目标存储设备;The storage device determining module 210 is configured to determine a plurality of target storage devices currently to be managed according to the received management instruction;

设备信息获取模块220,用于获取每个目标存储设备的设备信息;a device information acquisition module 220, configured to acquire device information of each target storage device;

连接方式确定模块230,用于确定与各个目标存储设备的连接方式;a connection mode determination module 230, configured to determine a connection mode with each target storage device;

连接建立模块240,用于基于每个目标存储设备的设备信息,使用确定的连接方式与相应的目标存储设备建立连接;a connection establishment module 240, configured to establish a connection with the corresponding target storage device using a determined connection mode based on the device information of each target storage device;

管理命令下发模块250,用于向各个目标存储设备发送相应的管理命令,以使各个目标存储设备执行相应的管理命令;The management command issuing module 250 is configured to send corresponding management commands to each target storage device, so that each target storage device executes the corresponding management command;

执行结果获得模块260,用于获得各个目标存储设备的执行结果。The execution result obtaining module 260 is configured to obtain execution results of each target storage device.

应用本发明实施例所提供的装置,管理设备确定当前待管理的多个目标存储设备后,获取每个目标存储设备的设备信息,确定与各个目标存储设备的连接方式,基于设备信息,使用确定的连接方式与相应的目标存储设备建立连接,向各个目标存储设备发送相应的管理命令,以使各目标存储设备执行相应的管理命令,获得执行结果。通过管理设备自动完成对各存储设备的管理,节省了人力成本,可有效防止重复繁杂的人为操作可能引入的错误,简化了对存储设备的管理操作过程,提高了管理效率。By applying the device provided by the embodiment of the present invention, after the management device determines the multiple target storage devices to be managed, the device information of each target storage device is obtained, the connection mode with each target storage device is determined, and based on the device information, the use of determining The connection method is established with the corresponding target storage device, and the corresponding management command is sent to each target storage device, so that each target storage device executes the corresponding management command and obtains the execution result. The management of each storage device is automatically completed by the management device, which saves labor costs, can effectively prevent errors that may be introduced by repetitive and complicated human operations, simplifies the management and operation process of storage devices, and improves management efficiency.

在本发明的一种具体实施方式中,管理指令为配置指令,连接方式为通过RestAPI连接,或者通过SSH远程连接;管理指令为升级指令、备份指令或恢复指令,连接方式为socket短连接。In a specific embodiment of the present invention, the management instruction is a configuration instruction, and the connection method is a connection through RestAPI or a remote connection through SSH; the management instruction is an upgrade instruction, a backup instruction or a restore instruction, and the connection method is a socket short connection.

在本发明的一种具体实施方式中,管理命令为配置命令,配置命令有多条,管理命令下发模块250,具体用于:In a specific embodiment of the present invention, the management command is a configuration command, and there are multiple configuration commands. The management command issuing module 250 is specifically used for:

逐一向每个目标存储设备发送相应的配置命令,针对同一目标存储设备的相邻两条配置命令具有设定的发送间隔时长。Corresponding configuration commands are sent to each target storage device one by one, and two adjacent configuration commands for the same target storage device have a set sending interval duration.

在本发明的一种具体实施方式中,管理命令为升级命令,还包括升级包传输模块,用于:In a specific embodiment of the present invention, the management command is an upgrade command, and further includes an upgrade package transmission module for:

在向各个目标存储设备发送相应的管理命令之前,将升级包传输到每个目标存储设备的指定目录下;Before sending corresponding management commands to each target storage device, transfer the upgrade package to the designated directory of each target storage device;

管理命令下发模块250,具体用于:The management command issuing module 250 is specifically used for:

通过socket短连接,向各个目标存储设备发送相应的升级命令,以使各个目标存储设备基于升级包执行相应的升级操作。A corresponding upgrade command is sent to each target storage device through a short socket connection, so that each target storage device performs a corresponding upgrade operation based on the upgrade package.

在本发明的一种具体实施方式中,执行结果获得模块260,具体用于:In a specific embodiment of the present invention, the execution result obtaining module 260 is specifically used for:

按照设定第一时间间隔遍历各个目标存储设备,尝试建立socket短连接;Traverse each target storage device according to the set first time interval, and try to establish a short socket connection;

接收各个目标存储设备通过socket短连接返回的执行结果。Receive the execution result returned by each target storage device through the socket short connection.

在本发明的一种具体实施方式中,管理命令为备份命令,管理命令下发模块250,具体用于:In a specific embodiment of the present invention, the management command is a backup command, and the management command issuing module 250 is specifically used for:

按照设定的第二时间间隔向各个目标存储设备发送相应的备份命令,以使各个目标存储设备通过当前配置信息逆向生成配置文件;Send a corresponding backup command to each target storage device according to the set second time interval, so that each target storage device reversely generates a configuration file through the current configuration information;

接收并保存各个目标存储设备返回的配置文件。Receive and save the configuration files returned by each target storage device.

在本发明的一种具体实施方式中,管理命令为恢复命令,还包括配置文件发送模块,用于:In a specific embodiment of the present invention, the management command is a recovery command, and further includes a configuration file sending module for:

在向各个目标存储设备发送相应的管理命令之前,将预先获得的各个目标存储设备的配置文件分别发送到相应的目标存储设备内;Before sending the corresponding management command to each target storage device, the pre-obtained configuration files of each target storage device are respectively sent to the corresponding target storage device;

管理命令下发模块250,具体用于:The management command issuing module 250 is specifically used for:

向各个目标存储设备发送相应的恢复命令,以使每个目标存储设备根据接收到的配置文件,进行配置数据的恢复。Send corresponding restore commands to each target storage device, so that each target storage device restores configuration data according to the received configuration file.

相应于上面的方法实施例,本发明实施例还提供了一种管理设备,管理设备可分别与多个集群的每个存储设备连接,如图12所示,包括:Corresponding to the above method embodiments, an embodiment of the present invention further provides a management device, where the management device can be respectively connected to each storage device of multiple clusters, as shown in FIG. 12 , including:

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

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

相应于上面的方法实施例,本发明实施例还提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现上述存储设备管理方法的步骤。Corresponding to the above method embodiments, embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored thereon, and when the computer program is executed by a processor, the steps of the above-mentioned storage device management method are implemented.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments may be referred to each other.

专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals may further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two, in order to clearly illustrate the possibilities of hardware and software. Interchangeability, the above description has generally described the components and steps of each example in terms of function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.

结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of a method or algorithm described in connection with the embodiments disclosed herein may be directly implemented in hardware, a software module executed by a processor, or a combination of the two. A software module can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.

本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的技术方案及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。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 technical solutions and core ideas 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 (10)

1.一种存储设备管理方法,其特征在于,应用于管理设备,所述管理设备可分别与多个集群的每个存储设备连接;所述方法包括:1. A storage device management method, characterized in that it is applied to a management device, and the management device can be respectively connected to each storage device of a plurality of clusters; the method comprises: 根据接收到的管理指令,确定当前待管理的多个目标存储设备;Determine a plurality of target storage devices currently to be managed according to the received management instruction; 获取每个所述目标存储设备的设备信息;Obtain device information of each of the target storage devices; 确定与各个所述目标存储设备的连接方式;Determine the connection mode with each of the target storage devices; 基于每个所述目标存储设备的设备信息,使用确定的连接方式与相应的所述目标存储设备建立连接;Based on the device information of each target storage device, establish a connection with the corresponding target storage device using the determined connection mode; 向各个所述目标存储设备发送相应的管理命令,以使各个所述目标存储设备执行相应的管理命令;Sending a corresponding management command to each of the target storage devices, so that each of the target storage devices executes the corresponding management command; 获得各个所述目标存储设备的执行结果。Obtain the execution results of each of the target storage devices. 2.根据权利要求1所述的方法,其特征在于,所述管理指令为配置指令,所述连接方式为通过RestAPI连接,或者通过SSH远程连接;所述管理指令为升级指令、备份指令或恢复指令,所述连接方式为socket短连接。2. method according to claim 1, is characterized in that, described management instruction is configuration instruction, and described connection mode is to connect through RestAPI, or through SSH remote connection; Described management instruction is upgrade instruction, backup instruction or recovery instruction, the connection mode is a socket short connection. 3.根据权利要求2所述的方法,其特征在于,所述管理命令为配置命令,所述配置命令有多条,所述向各个所述目标存储设备发送相应的管理命令,包括:3. The method according to claim 2, wherein the management command is a configuration command, and there are multiple configuration commands, and the sending a corresponding management command to each of the target storage devices comprises: 逐一向每个所述目标存储设备发送相应的配置命令,针对同一所述目标存储设备的相邻两条配置命令具有设定的发送间隔时长。Corresponding configuration commands are sent to each of the target storage devices one by one, and two adjacent configuration commands for the same target storage device have a set sending interval duration. 4.根据权利要求2所述的方法,其特征在于,所述管理命令为升级命令,在所述向各个所述目标存储设备发送相应的管理命令之前,还包括:4. The method according to claim 2, wherein the management command is an upgrade command, and before the sending the corresponding management command to each of the target storage devices, further comprising: 将升级包传输到每个所述目标存储设备的指定目录下;Transfer the upgrade package to the specified directory of each of the target storage devices; 所述向各个所述目标存储设备发送相应的管理命令,包括:The sending corresponding management commands to each of the target storage devices includes: 通过所述socket短连接,向各个所述目标存储设备发送相应的升级命令,以使各个所述目标存储设备基于所述升级包执行相应的升级操作。Through the socket short connection, a corresponding upgrade command is sent to each of the target storage devices, so that each of the target storage devices performs a corresponding upgrade operation based on the upgrade package. 5.根据权利要求2或4所述的方法,其特征在于,所述获得各个所述目标存储设备的执行结果,包括:5. The method according to claim 2 or 4, wherein the obtaining an execution result of each of the target storage devices comprises: 按照设定第一时间间隔遍历各个所述目标存储设备,尝试建立所述socket短连接;Traverse each of the target storage devices according to the set first time interval, and try to establish the socket short connection; 接收各个所述目标存储设备通过所述socket短连接返回的执行结果。Receive the execution result returned by each of the target storage devices through the socket short connection. 6.根据权利要求5所述的方法,其特征在于,所述管理命令为备份命令,所述向各个所述目标存储设备发送相应的管理命令,包括:6. The method according to claim 5, wherein the management command is a backup command, and the sending a corresponding management command to each of the target storage devices comprises: 按照设定的第二时间间隔向各个所述目标存储设备发送相应的备份命令,以使各个所述目标存储设备通过当前配置信息逆向生成配置文件;Send a corresponding backup command to each of the target storage devices according to the set second time interval, so that each of the target storage devices reversely generates a configuration file through the current configuration information; 接收并保存各个所述目标存储设备返回的配置文件。Receive and save the configuration files returned by each of the target storage devices. 7.根据权利要求2所述的方法,其特征在于,所述管理命令为恢复命令,在所述向各个所述目标存储设备发送相应的管理命令之前,还包括:7. The method according to claim 2, wherein the management command is a recovery command, and before the sending the corresponding management command to each of the target storage devices, further comprising: 将预先获得的各个所述目标存储设备的配置文件分别发送到相应的所述目标存储设备内;sending the pre-obtained configuration files of each of the target storage devices to the corresponding target storage devices; 所述向各个所述目标存储设备发送相应的管理命令,包括:The sending corresponding management commands to each of the target storage devices includes: 向各个所述目标存储设备发送相应的恢复命令,以使每个所述目标存储设备根据接收到的配置文件,进行配置数据的恢复。A corresponding restore command is sent to each of the target storage devices, so that each of the target storage devices restores configuration data according to the received configuration file. 8.一种存储设备管理装置,其特征在于,应用于管理设备,所述管理设备可分别与多个集群的每个存储设备连接;所述装置包括:8. A storage device management device, characterized in that it is applied to a management device, and the management device can be respectively connected to each storage device of a plurality of clusters; the device comprises: 存储设备确定模块,用于根据接收到的管理指令,确定当前待管理的多个目标存储设备;a storage device determination module, configured to determine a plurality of target storage devices currently to be managed according to the received management instruction; 设备信息获取模块,用于获取每个所述目标存储设备的设备信息;a device information acquisition module for acquiring device information of each of the target storage devices; 连接方式确定模块,用于确定与各个所述目标存储设备的连接方式;a connection mode determination module, configured to determine a connection mode with each of the target storage devices; 连接建立模块,用于基于每个所述目标存储设备的设备信息,使用确定的连接方式与相应的所述目标存储设备建立连接;a connection establishment module, configured to establish a connection with the corresponding target storage device using a determined connection mode based on the device information of each of the target storage devices; 管理命令下发模块,用于向各个所述目标存储设备发送相应的管理命令,以使各个所述目标存储设备执行相应的管理命令;a management command issuing module, configured to send a corresponding management command to each of the target storage devices, so that each of the target storage devices executes the corresponding management command; 执行结果获得模块,用于获得各个所述目标存储设备的执行结果。The execution result obtaining module is configured to obtain the execution result of each of the target storage devices. 9.一种管理设备,其特征在于,所述管理设备可分别与多个集群的每个存储设备连接,包括:9. A management device, wherein the management device can be respectively connected to each storage device of multiple clusters, comprising: 存储器,用于存储计算机程序;memory for storing computer programs; 处理器,用于执行所述计算机程序时实现如权利要求1至7任一项所述存储设备管理方法的步骤。The processor is configured to implement the steps of the storage device management method according to any one of claims 1 to 7 when executing the computer program. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至7任一项所述存储设备管理方法的步骤。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 device according to any one of claims 1 to 7 is implemented The steps of the management method.
CN201910779823.1A 2019-08-22 2019-08-22 Storage device management method, device, equipment and storage medium Active CN110531932B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910779823.1A CN110531932B (en) 2019-08-22 2019-08-22 Storage device management method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910779823.1A CN110531932B (en) 2019-08-22 2019-08-22 Storage device management method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110531932A true CN110531932A (en) 2019-12-03
CN110531932B CN110531932B (en) 2023-01-10

Family

ID=68662546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910779823.1A Active CN110531932B (en) 2019-08-22 2019-08-22 Storage device management method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110531932B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113127269A (en) * 2019-12-31 2021-07-16 上海紫港信息科技有限公司 Method for maintaining reconstruction of flight display
CN117632275A (en) * 2022-08-17 2024-03-01 北京有竹居网络技术有限公司 Methods, devices, equipment and storage media for device management

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184826A (en) * 2014-09-05 2014-12-03 浪潮(北京)电子信息产业有限公司 Multi-data-center storage environment managing method and system
CN106814975A (en) * 2017-01-20 2017-06-09 郑州云海信息技术有限公司 A kind of memory management method and its system for polymorphic type storage device
CN109062619A (en) * 2018-07-19 2018-12-21 郑州云海信息技术有限公司 Third party stores equipment Explore of Unified Management Ideas, system, device and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184826A (en) * 2014-09-05 2014-12-03 浪潮(北京)电子信息产业有限公司 Multi-data-center storage environment managing method and system
CN106814975A (en) * 2017-01-20 2017-06-09 郑州云海信息技术有限公司 A kind of memory management method and its system for polymorphic type storage device
CN109062619A (en) * 2018-07-19 2018-12-21 郑州云海信息技术有限公司 Third party stores equipment Explore of Unified Management Ideas, system, device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113127269A (en) * 2019-12-31 2021-07-16 上海紫港信息科技有限公司 Method for maintaining reconstruction of flight display
CN117632275A (en) * 2022-08-17 2024-03-01 北京有竹居网络技术有限公司 Methods, devices, equipment and storage media for device management

Also Published As

Publication number Publication date
CN110531932B (en) 2023-01-10

Similar Documents

Publication Publication Date Title
EP2645636B1 (en) Home gateway, cloud server, and method for communication therebetween
JP7014887B2 (en) PDU type setting method, UE policy setting method, and related entities
US6687817B1 (en) Configuration of a network device via the network
US9547502B2 (en) Rebooting InfiniBand clusters
CN112187531B (en) Module upgrading method and system, storage medium and electronic device
CN107919994B (en) Method and server for realizing hot standby of network service dual-computer
EP3550802A1 (en) Method and device for processing persistent connection establishment request
CN105511895A (en) Method, device, and system for configuring operating environment
CN109547524B (en) User behavior storage method, device, device and storage medium based on Internet of Things
CN101796485A (en) Electrical equipment configuration system and method
CN110401651A (en) A distributed cluster node monitoring method, device and system
CN101674198A (en) Method and device for realizing stacking
WO2014101514A1 (en) Method for obtaining resource information of server, resource pool management system and server
CN110531932B (en) Storage device management method, device, equipment and storage medium
CN106789166B (en) Method and device for network element batch configuration
CN112202877A (en) Gateway linkage method, gateway, cloud server and user terminal
CN115514667A (en) Access service processing method, system, device, electronic device, and storage medium
CN111082996B (en) Automatic configuration method, device and medium for in-band monitoring software
CN105743671B (en) Capacity expansion method, controller and system
CN116800835A (en) Monitoring data acquisition method, device, equipment and medium
CN116684272A (en) Equipment operation and maintenance method, device, equipment and storage medium
WO2012155571A1 (en) Base station self-configuration method and device
US12526190B2 (en) Automated power on notification system and method thereof
CN117278550A (en) Method for realizing data transmission of RNDIS (radio network DIS) based intercom communication equipment
CN103826080A (en) Method and system for batch upgrading of hard-disk video recorders

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
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province

Patentee after: Suzhou Yuannao Intelligent Technology Co.,Ltd.

Country or region after: China

Address before: Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province

Patentee before: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address