CN110531932B - Storage device management method, device, equipment and storage medium - Google Patents

Storage device management method, device, equipment and storage medium Download PDF

Info

Publication number
CN110531932B
CN110531932B CN201910779823.1A CN201910779823A CN110531932B CN 110531932 B CN110531932 B CN 110531932B CN 201910779823 A CN201910779823 A CN 201910779823A CN 110531932 B CN110531932 B CN 110531932B
Authority
CN
China
Prior art keywords
target storage
management
storage device
command
connection
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
CN201910779823.1A
Other languages
Chinese (zh)
Other versions
CN110531932A (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 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

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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; CALCULATING OR 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; CALCULATING OR 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; CALCULATING OR 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; CALCULATING OR 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; CALCULATING OR 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 management devices, wherein the management devices can be respectively connected with each storage device of a plurality of clusters; the method comprises the following steps: determining a plurality of target storage devices to be managed currently according to the received management instruction; acquiring equipment information of each target storage equipment; determining a connection mode with each target storage device; establishing connection with corresponding target storage equipment by using the determined connection mode based on the equipment information of each target storage equipment; sending corresponding management commands to each target storage device to enable each target storage device to execute the corresponding management commands; and obtaining the execution result of each target storage device. By applying the technical scheme provided by the embodiment of the invention, the management operation process of the storage equipment is simplified, and the management efficiency is improved. The invention also discloses a storage device management device, a management device and a storage medium, and has corresponding technical effects.

Description

Storage device management method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer application technologies, and in particular, to a method, an apparatus, a device, and a storage medium for managing a storage device.
Background
With the rapid development of computer technology, clusters are more and more commonly applied in various industries. When managing the storage devices in the cluster, a technician is usually required to log in a Graphical User Interface (GUI) of each storage device one by one for operation, so that the operation process is complicated, errors are easy to occur, and the management efficiency is low.
Disclosure of Invention
The invention aims to provide a storage device management method, a storage device management device, equipment and a storage medium, so as to simplify the management operation process of the storage device and improve the management efficiency.
In order to solve the technical problems, the invention provides the following technical scheme:
a storage device management method is applied to management devices, and the management devices can be respectively connected with each storage device of a plurality of clusters; the method comprises the following steps:
determining a plurality of target storage devices to be managed currently according to the received management instruction;
acquiring equipment information of each target storage equipment;
determining a connection mode with each target storage device;
establishing connection with the corresponding target storage equipment by using the determined connection mode based on the equipment information of each target storage equipment;
sending a corresponding management command to each target storage device so that each target storage device executes the corresponding management command;
and obtaining the execution result of each target storage device.
In a specific embodiment of the present invention, the management instruction is a configuration instruction, and the connection mode is a RestAPI connection or an SSH remote connection; the management instruction is an upgrading instruction, a backup instruction or a recovery instruction, and the connection mode is socket short connection.
In a specific embodiment of the present invention, the sending the management command to each of the target storage devices includes:
and sending corresponding configuration commands to each target storage device one by one, wherein the set sending interval duration is provided for two adjacent configuration commands of the same target storage device.
In a specific embodiment of the present invention, the method, before sending the corresponding management command to each of the target storage devices, further includes:
transmitting the upgrade package to the appointed directory of each target storage device;
the sending the corresponding management command to each of the target storage devices includes:
and sending corresponding upgrading commands to the target storage devices through the socket short connection so that the target storage devices execute corresponding upgrading operations based on the upgrading packages.
In a specific embodiment of the present invention, the obtaining the execution result of each of the target storage devices includes:
traversing each target storage device according to a set first time interval, and trying to establish the socket short connection;
and receiving an execution result returned by each target storage device through the socket short connection.
In a specific embodiment of the present invention, the sending the management command to each of the target storage devices as a backup command includes:
sending corresponding backup commands to the target storage devices according to a set second time interval so that the target storage devices reversely generate configuration files according to the current configuration information;
and receiving and storing the configuration file returned by each target storage device.
In a specific embodiment of the present invention, before sending the corresponding management command to each of the target storage devices, the method further includes:
respectively sending the configuration files of the target storage devices which are obtained in advance to the corresponding target storage devices;
the sending the corresponding management command to each of the target storage devices includes:
and sending a corresponding recovery command to each target storage device, so that each target storage device recovers the 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 with each storage device of a plurality of clusters; the device comprises:
the storage equipment determining module is used for determining a plurality of target storage equipment to be currently managed according to the received management instruction;
the device information acquisition module is used for acquiring the device information of each target storage device;
a connection mode determining module, configured to determine a connection mode with each of the target storage devices;
the connection establishing module is used for establishing connection with the corresponding target storage equipment by using the determined connection mode based on the equipment information of each target storage equipment;
a management command issuing module, configured to send a corresponding management command to each target storage device, so that each target storage device executes the corresponding management command;
and the execution result obtaining module is used for obtaining the execution result of each target storage device.
A management device separately connectable with each storage device of a plurality of clusters, comprising:
a memory for storing a computer program;
a processor configured to implement the steps of the storage device management method when executing the computer program.
A computer readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the storage device management methods described above.
By applying the technical scheme provided by the embodiment of the invention, after determining a plurality of target storage devices to be managed currently, the management device acquires the device information of each target storage device, determines the connection mode with each target storage device, establishes connection with the corresponding target storage device by using the determined connection mode based on the device information, and sends the corresponding management command to each target storage device so that each target storage device executes the corresponding management command to obtain the execution result. The management of each storage device is automatically completed through the management device, so that the labor cost is saved, errors possibly caused by repeated and complicated manual operation can be effectively prevented, the management operation process of the storage devices is simplified, and the management efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flowchart illustrating an implementation of a storage device management method according to an embodiment of the present invention;
FIG. 2 is a flow chart of device information acquisition in an embodiment of the present invention;
FIG. 3 is a diagram illustrating a process of a management device performing configuration management on a storage device according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a process of performing upgrade management on a storage device by a management device in an embodiment of the present invention;
fig. 5 is a schematic diagram of a process of performing backup and recovery management on a storage device by a management device in the embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating a result of execution according to an embodiment of the present invention;
FIG. 7 is a diagram of a RestAPI interface architecture in an embodiment of the present invention;
FIG. 8 is a CLI interface structure diagram in an embodiment of the present invention;
FIG. 9 is a diagram of an upgrade package transport interface structure in an embodiment of the present invention;
FIG. 10 is a diagram illustrating a CLI configuration interface according to an embodiment of the present invention;
FIG. 11 is a schematic structural diagram of a storage device management apparatus according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a management device according to an embodiment of the present invention.
Detailed Description
The core of the 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 with each storage device of a plurality of clusters. The management device may be in the same local area network as the storage devices. The management device can manage configuration, upgrading, backup, recovery and the like of each storage device.
In order that those skilled in the art will better understand the disclosure, reference will now be made in detail to the embodiments of the disclosure as illustrated in the accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart of an implementation of a storage device management method according to an embodiment of the present invention is shown, where the method may include the following steps:
s110: and determining a plurality of target storage devices to be managed currently according to the received management instruction.
In practical applications, when there is a management demand 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 a plurality of target storage devices to be currently managed according to the received management instruction. The target storage device may be a part of the storage devices connectable to the management device, or may be the entire storage device. The management instruction may carry identification information of the current storage device to be managed, or identification information of a volume, a pool, a host, and the like of the current storage device to be managed.
S120: device information for each target storage device is obtained.
In the embodiment of the present invention, the management device may automatically acquire device information of each storage device connectable. For example, the device Discovery method is obtained through Link Layer Discovery Protocol (LLDP) multicast, or the device information obtaining method is obtained through IP broadcast. As shown in fig. 2, the management device initiates a multicast or broadcast message to each storage device through the switch to discover devices, and after receiving the multicast or broadcast message, each storage device collects its own information and responds, and when the timeout period is reached, the management device collects all the responded device information.
The management device may obtain the device information of each storage device and store the device information locally. After determining a plurality of target storage devices to be currently managed, the device information of each target storage device may be obtained from all the device information stored locally. Or after a plurality of target storage devices to be managed currently are determined, the device information of each target storage device is acquired in a device discovery mode.
The device information may include device IP address, username, password, etc. Encrypted transmission may be made for the device information.
S130: and determining the connection mode with each target storage device.
Different storage devices support different connection modes. After determining a plurality of target storage devices to be currently managed, a connection mode with each target storage device may be further determined. Specifically, when the management command is a configuration command, the connection mode may be a RestAPI connection or a remote connection through SSH. When the management command is an upgrade command, a backup command or a recovery command, the connection mode may be socket short connection. Reset, i.e., representational State Transfer, presentation layer State transition, SSH, i.e., secure Shell, telnet session protocol.
For a storage device, when sending a basic RestAPI message to the storage device fails, it indicates that the storage device may not support RestAPI connection, and may send a CLI command to the storage device again, and if the result is successful, it may be determined that the storage device does not support RestAPI connection, and may support SSH remote connection. CLI is command-line interface.
S140: and establishing connection with the corresponding target storage equipment by using the determined connection mode based on the equipment information of each target storage equipment.
After the management device obtains the device information of each target storage device and determines the connection mode with each target storage device, the management device may establish a connection with the corresponding target storage device by using the determined connection mode based on the device information of each target storage device.
S150: and sending corresponding management commands to the target storage devices to enable the target storage devices to execute the corresponding management commands.
And when the management command is a configuration command, the corresponding management command sent to each target storage device is the configuration command. If there are multiple configuration commands, a corresponding configuration command 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 duration. Therefore, the situation that the target storage device executes the configuration command in a disordered sequence due to the fact that the network delay causes the backward and the forward can be prevented. To shorten the configuration time, the sending of the configuration command may be performed concurrently to a plurality of different target storage devices. If the connection mode with the target storage device is through RestAPI connection, the configuration command can be sent through a Rest message, and if the connection mode with the target storage device is SSH remote connection, the configuration command can be sent through a CLI command.
And when the management command is an upgrading command, the corresponding management command sent to each target storage device is the upgrading command.
In an embodiment of the present invention, before sending the corresponding management command to each target storage device, the method may further include the following steps:
transmitting the upgrade package to the appointed directory of each target storage device;
step S150 may include the steps of:
and sending corresponding upgrading commands to the target storage devices through the socket short connection so that the target storage devices execute corresponding upgrading operations based on the upgrading packets.
In the embodiment of the present invention, when the storage device needs to be upgraded, the management device may first transmit the upgrade package to the designated 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 may be transmitted to the designated directory of each target storage device through an scp command, and if the management device is a Windows operating system, the upgrade package may be transmitted to the designated directory of each target storage device through an ftp protocol.
After the upgrade package is transmitted to the specified directory of each target storage device, the corresponding upgrade command can be sent to each target storage device through the short connection of the socket, so that each target storage device can execute corresponding upgrade operation based on the upgrade package under the self specified directory.
And 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 configuration data in a storage device.
In an embodiment of the present invention, step S150 may include the following steps:
the method comprises the following steps: sending corresponding backup commands to each target storage device according to a set second time interval so that each target storage device reversely generates a configuration file through current configuration information;
step two: and receiving and saving the configuration files returned by the target storage devices.
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 may reversely generate the configuration file by querying its own current configuration information. That is, each target storage device can deduce which configuration commands are executed in the initial stage by inquiring which configuration information is currently available. After the configuration file is generated, each target storage device may return the configuration file to the management device.
The management device can receive and store the configuration files returned by the target storage devices, and the backup of the configuration data of the target storage devices is realized. For use when restoration of the configuration is required.
The second time interval may be set and adjusted according to actual conditions, and the embodiment of the present invention is not limited.
And 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 recovery of configuration data in the storage device.
In an embodiment of the present invention, before sending the corresponding management command to each target storage device, the method may further include the following steps:
respectively sending the configuration files of each target storage device obtained in advance to the corresponding target storage devices;
step S150 may include the steps of:
and sending corresponding recovery commands to the target storage devices to enable each target storage device to recover the configuration data according to the received configuration files.
In the embodiment of the present invention, the management device may obtain the configuration file of each storage device in advance, and store the configuration file locally. When the management instruction is a recovery instruction, after the management device establishes a connection with each target storage device, the configuration files of each target storage device obtained in advance can be sent to the corresponding target storage device, and then, the corresponding recovery instruction is sent to each target storage device, so that each target storage device can recover the configuration data according to the received configuration files.
S160: and obtaining the execution result of each target storage device.
And after the management equipment sends the corresponding management command to each target storage equipment, each target storage equipment executes the corresponding management command. The management device may obtain the execution results of the respective target storage devices. If the management device does not receive the execution result of a certain target storage device within the set timeout duration, it may be determined that the execution result of the target storage device on the management command is a failure. Or the management command may be re-sent.
If the management instruction is an upgrading instruction, the management device may traverse each target storage device according to a set first time interval, try to establish socket short connection, after the target storage device is upgraded based on the upgrading package, return an execution result through the socket short connection, and receive the execution result returned by each target storage device.
For convenience of understanding, the embodiments of the present invention are described by taking a management instruction as a configuration instruction, an upgrade instruction, a backup instruction, and a restore instruction as examples.
Fig. 3 is a schematic diagram illustrating a process of configuration management of a storage device for a management device. Technical personnel can input configuration data needing to be executed at a management device, the management device can determine a target storage device through device discovery or manual designation, obtain device information of the target storage device, such as an IP address, a user name, a password and the like, then the management device sends corresponding configuration commands to the target storage device one by one, each target storage device executes one by one after receiving the configuration commands, configures the target storage device to be locally effective and returns configuration result information, and the management device receives execution results returned by each target storage device or outputs and displays the execution results after waiting for overtime.
Fig. 4 is a schematic diagram illustrating a process of performing upgrade management on a storage device for a management device. Technical personnel can upload an upgrade package to a management device, the management device can determine a target storage device through device discovery or manual designation, acquire device information of the target storage device, such as an IP address, a user name, a password and the like, then the management device transmits the upgrade package to a designated directory of each target storage device by using a Linux scp command or a windows ftp protocol, establishes socket short connection with each target storage device and sends an upgrade command, each target storage device executes upgrade operation after receiving the upgrade command, the connection is disconnected in the period, the management device traverses all target storage devices at intervals to try to establish socket short connection, after the target storage devices are upgraded, responds to the socket short connection of the management device and returns upgrade results, such as current version information and the like, the management device acquires the execution results of all target storage devices, or finishes and presents an upgrade result list after overtime.
Fig. 5 is a schematic diagram illustrating a process of performing backup and recovery management on a storage device by a management device. The management device can send backup commands to all target storage devices at fixed intervals through socket short-circuit connection, the storage devices receive the backup commands and conduct backup operation to generate CLI configuration files, if the management device is a Linux operating system, the configuration files are periodically updated to the management device through an scp command, if the management device is a Windows operating system, the corresponding configuration files are firstly sent into the target storage devices from the management devices when the target storage devices are abnormal and configuration data are required to be recovered, the management devices send recovery commands through socket short-circuit connection, the target storage devices execute the CLI commands in the target storage devices to recover the configuration data according to the received configuration files, the results are sent to the management devices after recovery is completed, and the management devices collect and present the results.
Fig. 6 is a schematic diagram showing an execution result, and a technician can comprehensively understand the execution progress of each storage device through the presented execution result.
The embodiment of the invention can carry out batch management on the mass storage equipment and simplify the operation process. The configuration data of the storage device is backed up and restored in batches, so that the data can be reconfigured quickly after being lost.
The following describes each interface structure in the embodiment of the present invention.
Fig. 7 shows a structure diagram of the RestAPI interface, which includes a Rest protocol header, a storage device IP address, a storage device port, rest message contents and parameters, etc.
Fig. 8 is a diagram illustrating a CLI interface structure, where the SSH connection transmits a CLI command, a session, that is, an openSession, may be opened first, and a CLI command is sent by attempting a connection based on a user name and a password in the acquired device information, where the CLI interface includes a prefix, a CLI command body, a parameter, an operation body, and the like.
Fig. 9 is a diagram showing an upgrade package transmission interface structure, where the upgrade package transmission interface includes a command name, a password, a user name, an upgrade package, a storage device IP address, a target path, and the like.
Fig. 10 is a diagram of a CLI configuration interface structure, which includes a prefix, a CLI command body, parameters (which can be obtained from a query command), and the like. The storage device inquires data configuration information, and can generate a configuration CLI command according to the inquired data configuration information, so that if the CLI command is executed, the effect achieved is completely the same as the current inquired information.
By applying the method provided by the embodiment of the invention, after the management equipment determines a plurality of target storage equipment to be managed currently, the equipment information of each target storage equipment is obtained, the connection mode with each target storage equipment is determined, the connection is established with the corresponding target storage equipment by using the determined connection mode based on the equipment information, and the corresponding management command is sent to each target storage equipment, so that each target storage equipment executes the corresponding management command to obtain the execution result. The management of each storage device is automatically completed through the management device, so that the labor cost is saved, errors possibly caused by repeated and complicated manual operation can be effectively prevented, the management operation process of the storage devices is simplified, and the management efficiency is improved.
Corresponding to the above method embodiment, an embodiment of the present invention further provides a storage device management apparatus, which is applied to a management device, where the management device is connectable to each storage device of a plurality of clusters; a storage device management apparatus described below and a storage device management method described above may be referred to in correspondence with each other.
Referring to fig. 11, the apparatus includes:
a storage device determining module 210, configured to determine, according to the received management instruction, a plurality of target storage devices to be currently managed;
a device information obtaining module 220, configured to obtain device information of each target storage device;
a connection mode determining module 230, configured to determine a connection mode with each target storage device;
a connection establishing module 240, configured to establish a connection with a corresponding target storage device using the determined connection manner based on the device information of each target storage device;
a management command issuing module 250, configured to send a corresponding management command to each target storage device, so that each target storage device executes the corresponding management command;
and an execution result obtaining module 260, configured to obtain an execution result of each target storage device.
By applying the device provided by the embodiment of the invention, after the management equipment determines a plurality of target storage equipment to be managed currently, the equipment information of each target storage equipment is obtained, the connection mode with each target storage equipment is determined, the connection is established with the corresponding target storage equipment by using the determined connection mode based on the equipment information, and the corresponding management command is sent to each target storage equipment, so that each target storage equipment executes the corresponding management command to obtain the execution result. The management of each storage device is automatically completed through the management device, so that the labor cost is saved, errors possibly caused by repeated and complicated manual operation can be effectively prevented, the management operation process of the storage devices is simplified, and the management efficiency is improved.
In a specific embodiment of the present invention, the management instruction is a configuration instruction, and the connection mode is a RestAPI connection or an SSH remote connection; the management instruction is an upgrading instruction, a backup instruction or a recovery instruction, and the connection mode is socket short connection.
In a specific embodiment of the present invention, the management command is a configuration command, there are multiple configuration commands, and the management command issuing module 250 is specifically configured to:
and sending a corresponding configuration command to each target storage device one by one, wherein two adjacent configuration commands aiming at the same target storage device have set sending interval duration.
In a specific embodiment of the present invention, the management command is an upgrade command, and the system further includes an upgrade package transmission module, configured to:
before sending corresponding management commands to each target storage device, transmitting the upgrade package to the designated directory of each target storage device;
the management command issuing module 250 is specifically configured to:
and sending corresponding upgrading commands to each target storage device through the socket short connection so that each target storage device executes corresponding upgrading operation based on the upgrading packet.
In an embodiment of the present invention, the execution result obtaining module 260 is specifically configured to:
traversing each target storage device according to a set first time interval, and trying to establish socket short connection;
and receiving an execution result returned by each target storage device through the socket short connection.
In an embodiment of the present invention, the management command is a backup command, and the management command issuing module 250 is specifically configured to:
sending corresponding backup commands to each target storage device according to a set second time interval so that each target storage device reversely generates a configuration file through current configuration information;
and receiving and saving the configuration files returned by the target storage devices.
In a specific embodiment of the present invention, the management command is a recovery command, and further includes a configuration file sending module, configured to:
before sending corresponding management commands to each target storage device, respectively sending configuration files of each target storage device obtained in advance to the corresponding target storage device;
the management command issuing module 250 is specifically configured to:
and sending corresponding recovery commands to the target storage devices to enable each target storage device to recover the configuration data according to the received configuration files.
Corresponding to the above method embodiment, an embodiment of the present invention further provides a management device, where the management device may be respectively connected to each storage device of multiple clusters, as shown in fig. 12, where the management device includes:
a memory 310 for storing a computer program;
a processor 320 for implementing the steps of the storage device management method when executing the computer program.
Corresponding to the above method embodiment, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the above storage device management method.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The principle and the implementation of the present invention are explained in the present application by using specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (9)

1. A storage device management method is applied to a management device, wherein the management device can be respectively connected with each storage device of a plurality of clusters; the method comprises the following steps:
determining a plurality of target storage devices to be managed currently according to the received management instruction;
acquiring equipment information of each target storage equipment;
determining a connection mode with each target storage device;
establishing connection with the corresponding target storage equipment by using the determined connection mode based on the equipment information of each target storage equipment;
sending a corresponding management command to each target storage device so that each target storage device executes the corresponding management command;
obtaining an execution result of each target storage device;
when the management instruction is a configuration instruction, the connection mode is RestAPI connection or SSH remote connection; and when the management instruction is an upgrading instruction, a backup instruction or a recovery instruction, the connection mode is socket short connection.
2. The method of claim 1, wherein the management command is a configuration command, the configuration command has a plurality of pieces, and the sending the corresponding management command to each of the target storage devices includes:
and sending corresponding configuration commands to each target storage device one by one, wherein the set sending interval duration is provided for two adjacent configuration commands of the same target storage device.
3. The method according to claim 1, wherein the management command is an upgrade command, and before the sending the corresponding management command to each of the target storage devices, the method further comprises:
transmitting the upgrade package to the appointed directory of each target storage device;
the sending the corresponding management command to each of the target storage devices includes:
and sending corresponding upgrading commands to the target storage devices through the socket short connection so that the target storage devices execute corresponding upgrading operations based on the upgrading packages.
4. The method according to claim 1 or 3, wherein the obtaining of the execution result of each target storage device comprises:
traversing each target storage device according to a set first time interval, and trying to establish the socket short connection;
and receiving an execution result returned by each target storage device through the socket short connection.
5. The method of claim 4, wherein the management command is a backup command, and the sending the corresponding management command to each of the target storage devices comprises:
sending corresponding backup commands to the target storage devices according to a set second time interval so that the target storage devices reversely generate configuration files according to the current configuration information;
and receiving and storing the configuration file returned by each target storage device.
6. The method according to claim 1, wherein 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 comprises:
respectively sending the configuration files of the target storage devices which are obtained in advance to the corresponding target storage devices;
the sending the corresponding management command to each of the target storage devices includes:
and sending a corresponding recovery command to each target storage device so that each target storage device recovers the configuration data according to the received configuration file.
7. The storage device management device is applied to a management device, and the management device can be respectively connected with each storage device of a plurality of clusters; the device comprises:
the storage equipment determining module is used for determining a plurality of target storage equipment to be managed currently according to the received management instruction;
the device information acquisition module is used for acquiring the device information of each target storage device;
the connection mode determining module is used for determining the connection mode with each target storage device;
the connection establishing module is used for establishing connection with the corresponding target storage equipment by using the determined connection mode based on the equipment information of each target storage equipment;
a management command issuing module, configured to send a corresponding management command to each target storage device, so that each target storage device executes the corresponding management command;
an execution result obtaining module, configured to obtain an execution result of each of the target storage devices;
when the management instruction is a configuration instruction, the connection mode is RestAPI connection or SSH remote connection; and when the management instruction is an upgrading instruction, a backup instruction or a recovery instruction, the connection mode is socket short connection.
8. A management device, the management device being connectable to each storage device of a plurality of clusters, respectively, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the storage device management method of any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the storage device management method according to any one of claims 1 to 6.
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 CN110531932A (en) 2019-12-03
CN110531932B true 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)

Families Citing this family (1)

* 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

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

Also Published As

Publication number Publication date
CN110531932A (en) 2019-12-03

Similar Documents

Publication Publication Date Title
US8495616B2 (en) Method for upgrading communication equipment
RU2520385C2 (en) Method and system for updating network device
EP2582089A1 (en) System and method for implementing automatic configuration for equipments
CN103747535A (en) Method, apparatus and system for recovering CAPWAP control channel
CN105635248A (en) Method and system for releasing TCP (Transmission Control Protocol) connection resources
CN103873472A (en) Method for automatically having access to network
US10813156B2 (en) Method and apparatus for processing network connection
US20210329477A1 (en) Communication apparatus, method, program and recording medium
CN110531932B (en) Storage device management method, device, equipment and storage medium
CN112202877A (en) Gateway linkage method, gateway, cloud server and user terminal
US11582101B2 (en) Update of programmable for computing nodes
US20060071684A1 (en) Active storage area network discovery system and method
US20210274020A1 (en) Communication method, client device, and server device
WO2022110645A1 (en) Software upgrade method and device, storage medium and electronic device
CN102332989A (en) Method for sending configuration information and service boards
CN107968725B (en) Method and device for returning and configuring configuration information of home gateway unit type terminal device
CN108153561B (en) Ethernet loading method and signal processing system for DSP and FPGA
CN115801642B (en) RDMA communication management module, method, equipment and medium based on state control
CN105554150A (en) Network logging-in method and apparatus
CN111082996B (en) Automatic configuration method, device and medium for in-band monitoring software
CN112702403A (en) Intelligent service connection method based on re-networking and communication module
EP2380334B1 (en) Systems and methods for changing the address of an interface
WO2012155571A1 (en) Base station self-configuration method and device
CN104065519A (en) Method for improving conversation interactive performance and automatic configuration server
US8842583B2 (en) System and method for maintaining data connectivity over a satellite link

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