CN110531932A - A kind of storage device management method, apparatus, equipment and storage medium - Google Patents
A kind of storage device management method, apparatus, equipment and storage medium Download PDFInfo
- 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
- storage device
- target storage
- equipment
- management
- administration order
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1469—Backup restoration techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0683—Plurality of storage devices
- G06F3/0688—Non-volatile semiconductor memory arrays
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
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 kind of storage device management methods, are applied to management equipment, and management equipment can be connect with each storage equipment of multiple clusters respectively;Method includes the following steps: instructing according to the management received, current multiple target storage devices to be managed are determined;Obtain the facility information of each target storage device;The determining connection type with each target storage device;Based on the facility information of each target storage device, connection is established with corresponding target storage device using determining connection type;Corresponding administration order is sent to each target storage device, so that each target storage device executes corresponding administration order;Obtain the implementing result of each target storage device.Using technical solution provided by the embodiment of the present invention, the management operating process to storage equipment is simplified, the efficiency of management is improved.The invention also discloses a kind of storage device management device, a kind of management equipment and storage mediums, have relevant art effect.
Description
Technical field
The present invention relates to computer application technologies, more particularly to a kind of storage device management method, apparatus, equipment
And storage medium.
Background technique
With the fast development of computer technology, cluster is in all trades and professions using more and more common.Cluster is mostly by more
A storage equipment is constituted, when to storage equipment is managed in cluster, it usually needs technical staff logs on to each deposit one by one
The graphic user interface (Graphical User Interface, GUI) of storage equipment is operated, and operating process is cumbersome, is easy
Error, the efficiency of management are lower.
Summary of the invention
The object of the present invention is to provide a kind of storage device management method, apparatus, equipment and storage medium, to simplify to depositing
The management operating process of equipment is stored up, the efficiency of management is improved.
In order to solve the above technical problems, the invention provides the following technical scheme:
A kind of storage device management method is applied to management equipment, and the management equipment can be every with multiple clusters respectively
A storage equipment connection;The described method includes:
According to the management instruction received, current multiple target storage devices to be managed are determined;
Obtain the facility information of each target storage device;
The determining connection type with each target storage device;
Based on the facility information of each target storage device, determining connection type and the corresponding target are used
Storage equipment establishes connection;
Corresponding administration order is sent to each target storage device, so that each target storage device executes
Corresponding administration order;
Obtain the implementing result of each target storage device.
In a kind of specific embodiment of the invention, the management instruction is configuration-direct, and the connection type is logical
RestAPI connection is crossed, or is remotely connected by SSH;The management instruction is that upgrade command, backup instruction or recovery instruct,
The connection type is the short connection of socket.
In a kind of specific embodiment of the invention, the administration order is configuration order, and the configuration order has more
Item, it is described to send corresponding administration order to each target storage device, comprising:
Corresponding configuration order is sent to each target storage device one by one, for the same target storage device
Adjacent two configuration orders have setting transmission interval duration.
In a kind of specific embodiment of the invention, the administration order is upgrade command, described to each described
Target storage device is sent before corresponding administration order, further includes:
Upgrade package is transferred under the specified directory of each target storage device;
It is described to send corresponding administration order to each target storage device, comprising:
By the short connection of the socket, corresponding upgrade command is sent to each target storage device, so that respectively
A target storage device is based on the upgrade package and executes corresponding updating operation.
In a kind of specific embodiment of the invention, the implementing result for obtaining each target storage device,
Include:
Each target storage device is traversed according to setting first time interval, the short company of the socket is established in trial
It connects;
Receive the implementing result that each target storage device is returned by the short connection of the socket.
In a kind of specific embodiment of the invention, the administration order is backup command, described to each mesh
Mark storage equipment sends corresponding administration order, comprising:
Corresponding backup command is sent to each target storage device according to the second time interval of setting, so that respectively
A target storage device inversely generates configuration file by current configuration information;
Receive and save the configuration file that each target storage device returns.
In a kind of specific embodiment of the invention, the administration order is to restore order, described to each described
Target storage device is sent before corresponding administration order, further includes:
The configuration file for each target storage device being obtained ahead of time is separately sent to the corresponding target to deposit
It stores up in equipment;
It is described to send corresponding administration order to each target storage device, comprising:
To each target storage device send it is corresponding restore order so that each target storage device according to
The configuration file received carries out the recovery of configuration data.
A kind of storage device management device is applied to management equipment, and the management equipment can be every with multiple clusters respectively
A storage equipment connection;Described device includes:
Equipment determining module is stored, for determining that current multiple targets to be managed are deposited according to the management instruction received
Store up equipment;
Apparatus information acquiring module, for obtaining the facility information of each target storage device;
Connection type determining module, for the determining connection type with each target storage device;
Connection establishment module uses determining connection side for the facility information based on each target storage device
Formula establishes connection with the corresponding target storage device;
Administration order issues module, for sending corresponding administration order to each target storage device, so that respectively
A target storage device executes corresponding administration order;
Implementing result obtains module, for obtaining the implementing result of each target storage device.
A kind of management equipment, the management equipment can be connect with each storage equipment of multiple clusters respectively, comprising:
Memory, for storing computer program;
Processor realizes the step of storage device management method described in any of the above-described when for executing the computer program
Suddenly.
A kind of computer readable storage medium is stored with computer program on the computer readable storage medium, described
The step of storage device management method described in any of the above-described is realized when computer program is executed by processor.
Using technical solution provided by the embodiment of the present invention, management equipment determines current multiple targets storage to be managed
After equipment, the facility information of each target storage device is obtained, the determining connection type with each target storage device, based on setting
Standby information, establishes connection with corresponding target storage device using determining connection type, sends to each target storage device
Corresponding administration order obtains implementing result so that each target storage device executes corresponding administration order.Pass through management equipment
It is automatically performed the management to each storage equipment, saves human cost, the manual operation that repetition can be effectively prevent many and diverse may draw
The mistake entered simplifies the management operating process to storage equipment, improves the efficiency of management.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of implementation flow chart of storage device management method in the embodiment of the present invention;
Fig. 2 is apparatus information acquiring flow chart in the embodiment of the present invention;
Fig. 3 is that process schematic is managed for configuration to storage equipment in management equipment in the embodiment of the present invention;
Fig. 4 is that management equipment carries out updating and management process schematic to storage equipment in the embodiment of the present invention;
Fig. 5 be the embodiment of the present invention in management equipment to storage equipment backed up, recovery management process schematic;
Fig. 6 is that schematic diagram is presented in implementing result in the embodiment of the present invention;
Fig. 7 is RestAPI interface structure figure in the embodiment of the present invention;
Fig. 8 is cli interface structure chart in the embodiment of the present invention;
Fig. 9 is upgrade package coffret structure chart in the embodiment of the present invention;
Figure 10 is that CLI configures interface structure figure in the embodiment of the present invention;
Figure 11 is a kind of structural schematic diagram of storage device management device in the embodiment of the present invention;
Figure 12 is a kind of structural schematic diagram of management equipment in the embodiment of the present invention.
Specific embodiment
Core of the invention is to provide a kind of storage device management method, and this method can be applied to management equipment, the pipe
Reason equipment can be connect with each storage equipment of multiple clusters respectively.Management equipment can be in same local area network with each storage equipment
It is interior.Management equipment such as can be configured to each storage equipment, upgrade, back up, restore at the management.
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description
The present invention is described in further detail.Obviously, described embodiments are only a part of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Under every other embodiment obtained, shall fall within the protection scope of the present invention.
It is shown in Figure 1, it is a kind of implementation flow chart of storage device management method provided by the embodiment of the present invention, it should
Method may comprise steps of:
S110: instructing according to the management received, determines current multiple target storage devices to be managed.
In practical applications, when there is the regulatory requirement to storage equipment, can from technical staff or other systems to
Management equipment issues the management instruction for storage equipment.Management equipment is instructed according to the management received, can be determined current
Multiple target storage devices to be managed.It deposits the part that target storage device can be in the attachable storage equipment of management equipment
Equipment is stored up, can also be all storage equipment.The identification information of current storage equipment to be managed can be carried in management instruction,
Or the identification information of current volume, pond, host of storage equipment to be managed etc..
S120: the facility information of each target storage device is obtained.
In embodiments of the present invention, management equipment can obtain the facility information of attachable each storage equipment automatically.
Such as by being based on link layer LLDP (Link Layer Discovery Protocol, Link Layer Discovery Protocol) agreement multicast
Equipment discovery mode obtains, or the apparatus information acquiring mode broadcasted based on IP layers is obtained.As shown in Fig. 2, management equipment is logical
Cross interchanger and initiate multicast or broadcast message to each storage equipment, carry out equipment discovery, each storage equipment receive multicast or
After broadcast message, collects self information and respond, when reaching overtime duration, management equipment collects the facility information of all responses.
It, can be in local preservation after management equipment obtains the facility information of each storage equipment.It is current to be managed determining
Multiple target storage devices after, the equipment that each target storage device can be obtained from all devices information locally saved
Information.Or after determining current multiple target storage devices to be managed, each target is obtained by way of equipment discovery and is deposited
Store up the facility information of equipment.
Facility information may include the information such as IP address of equipment, user name, password.Encryption biography can be carried out for facility information
It is defeated.
S130: the determining connection type with each target storage device.
The connection type that different storage device is supported is different.After determining current multiple target storage devices to be managed,
It may further determine that the connection type with each target storage device.Specifically, when management instruction is configuration-direct, connection
Mode can be to be connected by RestAPI, or remotely connected by SSH.When management instruction be upgrade command, backup instruction or
When person restores instruction, connection type can be the short connection of socket.Rest, that is, Representational State
Transfer, performance layer state transfer, SSH, that is, Secure Shell, telnet session agreement.
Then show that the storage is set when being sent to it a basic RestAPI message failure for a storage equipment
It is standby RestAPI to be supported to connect, it can be sent to it a CLI command again, if it succeeds, the storage can be determined
Equipment does not support RestAPI to connect, and SSH can be supported remotely to connect.CLI, that is, command-line interface, order line circle
Face.
S140: the facility information based on each target storage device is deposited using determining connection type with corresponding target
Storage equipment establishes connection.
Management equipment gets the facility information of each target storage device, and the determining company with each target storage device
After connecing mode, it can be deposited using determining connection type with corresponding target based on the facility information of each target storage device
Storage equipment establishes connection.
S150: sending corresponding administration order to each target storage device, so that each target storage device executes phase
The administration order answered.
When management instruction is configuration-direct, the corresponding administration order sent to each target storage device is to configure
Order.If configuration order has a plurality of, corresponding configuration order can be sent to each target storage device one by one, for same
Adjacent two configuration orders of target storage device have the transmission interval duration of setting.It can prevent network delay from causing in this way
Rear hair arrive first so that target storage device execute the disorder of configuration order sequence the case where occur.It, can in order to shorten configuration duration
Concurrently multiple and different target storage devices are carried out with the transmission of configuration order.If the connection type with target storage device is
It is connected by RestAPI, then configuration order can be sent by Rest message, if the connection type with target storage device is
SSH is remotely connected, then can send configuration order by CLI command.
When management instruction is upgrade command, the corresponding administration order sent to each target storage device is to upgrade
Order.
In a kind of specific embodiment of the invention, to each target storage device send corresponding administration order it
Before, this method may also comprise the following steps::
Upgrade package is transferred under the specified directory of each target storage device;
Step S150 may comprise steps of:
By the short connection of socket, corresponding upgrade command is sent to each target storage device, so that each target is deposited
It stores up equipment and is based on the corresponding updating operation of upgrade package execution.
In embodiments of the present invention, when needing to upgrade storage equipment, management equipment can first be passed upgrade package
Under the defeated specified directory to each target storage device, the upgrade package that different target stores equipment can be identical or different.Specifically
, if management equipment is (SuSE) Linux OS, upgrade package can be transferred to by each target storage by scp order and set
Under standby specified directory, if management equipment is Windows operating system, upgrade package can be transferred to by ftp agreement
Under the specified directory of each target storage device.
After under the specified directory that upgrade package is transferred to each target storage device, can by the short connection of socket,
Corresponding upgrade command is sent to each target storage device, target storage device each in this way is based under itself specified directory
Corresponding updating operation can be performed in upgrade package.
When management instruction is backup instruction, the corresponding administration order sent to each target storage device is to back up
Order.Backup in the embodiment of the present invention refers to the backup to configuration data in storage equipment.
In a kind of specific embodiment of the invention, step S150 be may comprise steps of:
Step 1: sending corresponding backup command to each target storage device according to the second time interval of setting, with
Each target storage device is set inversely to generate configuration file by current configuration information;
Step 2: the configuration file that each target storage device returns is received and saved.
In practical applications, it can be management equipment triggering for storing the configuration of equipment, can also be technical staff
Manual configuration.Management equipment can send corresponding backup life to each target storage device according to the second time interval of setting
It enables, in this way, each target storage device can inversely generate configuration file by inquiring itself current configuration information.Namely
It says, which configuration information is each target storage device currently have by inquiry, thus it is speculated that go out which configuration life the incipient stage performs
It enables.After generating configuration file, configuration file can be returned to management equipment by each target storage device.
Management equipment can receive and save the configuration file that each target storage device returns, and realizes and stores to each target
The backup of the configuration data of equipment.So as to the use when needing recovery configuring.
Second time interval can be set and be adjusted according to the actual situation, and the embodiment of the present invention is with no restrictions.
When management instruction is restores instruction, the corresponding administration order sent to each target storage device is to restore
Order.Recovery in the embodiment of the present invention refers to the recovery to configuration data in storage equipment.
In a kind of specific embodiment of the invention, to each target storage device send corresponding administration order it
Before, this method may also comprise the following steps::
The configuration file for each target storage device being obtained ahead of time is separately sent in corresponding target storage device;
Step S150 may comprise steps of:
To each target storage device send it is corresponding restore order so that each target storage device is according to receiving
Configuration file carries out the recovery of configuration data.
In embodiments of the present invention, the configuration file of each storage equipment can be obtained ahead of time in management equipment, and in local guarantor
It deposits.When management instruction is restores instruction, after management equipment and each target storage device establish connection, can will be obtained ahead of time
The configuration file of each target storage device is separately sent in corresponding target storage device, then, is set to each target storage
Preparation send corresponding recovery order, and target storage device each in this way can carry out configuration number according to the configuration file received
According to recovery.
S160: the implementing result of each target storage device is obtained.
After management equipment sends corresponding administration order to each target storage device, each target storage device executes phase
The administration order answered.Management equipment can obtain the implementing result of each target storage device.If management equipment is super in setting
The implementing result of some target storage device is not received by Shi Shichang, it is possible to determine that the target storage device orders management
The implementing result of order is failure.Or administration order can be retransmitted.
If management instruction is upgrade command, management equipment can traverse each target according to setting first time interval
Equipment is stored, the short connection of socket is established in trial, and target storage device is based on after the completion of upgrade package upgrading, can pass through socket
Short connection returns to implementing result, and management equipment can receive the implementing result that each target storage device returns.
For ease of understanding, respectively by taking management instruction is configuration-direct, upgrade command, backup instruction and recovery instruction as an example,
The embodiment of the present invention is illustrated.
Shown in Fig. 3, process schematic is managed for configuration to storage equipment for management equipment.Technical staff can manage
The configuration data needed to be implemented is inputted at equipment, management equipment is found by equipment or specified manually, can determine that target is deposited
Equipment is stored up, obtains the facility information of target storage device, such as IP address, user name, password, then management equipment is deposited to target
Storage equipment sends corresponding configuration order one by one and executes one by one after each target storage device receives configuration order, is configured to this
Ground comes into force, and returns to configuration result information, and management equipment receives the implementing result that each target storage device returns, or waits
After time-out, output shows implementing result.
It is that management equipment carries out updating and management process schematic to storage equipment shown in Fig. 4.Technical staff can will upgrade
It wraps and passes at management equipment, management equipment is found by equipment or specified manually, can determine target storage device, obtains mesh
The facility information of mark storage equipment, such as IP address, user name, password, then, management equipment using Linux scp order or
Upgrade package is transferred under the specified directory of each target storage device by person's windows ftp agreement, is set with each target storage
It is standby to establish the short connection of socket and send upgrade command, after each target storage device receives upgrade command, updating operation is executed,
Period connection disconnects, and management equipment interval traverses all target storage device trials and establishes the short connection of socket, and target storage is set
After the completion of standby upgrading, the short connection of the socket of response management equipment, and updating result is returned to, such as current version information, it manages
After equipment obtains the implementing result of all target storage devices, or waiting time-out, updating result list is arranged and is presented.
Shown in Fig. 5, storage equipment is backed up for management equipment, recovery management process schematic.Management equipment can be with
Fixed intervals send backup command by short connect to each target storage device of socket, and storage equipment receives backup command
Afterwards, backup operation is carried out, CLI configuration file is generated, by scp order if management equipment is (SuSE) Linux OS, if management
Equipment is that Windows operating system then passes through ftp agreement, configuration file is regularly updated management equipment, when target storage is set
It is standby to be abnormal, when needing to configure data recovery, target storage device first is sent from management equipment by corresponding configuration file
Interior, management equipment is sent by the short connection of socket restores order, and target storage device executes it according to the configuration file received
Interior CLI command carries out allocation data recovering, and management equipment is sent the result to after the completion of restoring, and management equipment collects result simultaneously
It presents.
Fig. 6 show implementing result and schematic diagram is presented, and technical staff can be fully understanded by the implementing result presented
The implementation progress of each storage equipment.
The embodiment of the present invention can carry out mass management, streamline operation to high-volume storage equipment.To storage equipment
Configuration data carry out batch backup and restore so that can quickly be reconfigured after loss of data.
Interface structure each in the embodiment of the present invention is illustrated below.
Fig. 7 show RestAPI interface structure figure, including Rest protocol header, storage IP address of equipment, storage equipment end
Mouth, Rest message content and parameter etc..
Fig. 8 show cli interface structure chart, and SSH connection transmits CLI command, can first open session, i.e. openSession,
Based on the user name in the facility information got, password, connection is attempted, sends CLI command, cli interface includes prefix, CLI
Order body, parameter, operating body etc..
Fig. 9 show upgrade package coffret structure chart, and upgrade package coffret includes command name, password, user name, liter
Grade packet, storage IP address of equipment, destination path etc..
Figure 10 is that CLI configures interface structure figure, including prefix, CLI command body, parameter (can be by obtaining in querying command)
Deng.It stores equipment query data configuration information and configuration CLI command, purpose can be generated according to the data configuration information inquired
It is if executing this CLI command, the effect reached is identical with the information that current queries arrive.
Using method provided by the embodiment of the present invention, management equipment determines current multiple target storage devices to be managed
Afterwards, the facility information of each target storage device is obtained, the determining connection type with each target storage device is believed based on equipment
Breath, establishes connection with corresponding target storage device using determining connection type, sends to each target storage device corresponding
Administration order obtain implementing result so that each target storage device executes corresponding administration order.It is automatic by management equipment
It completes to save human cost to the management of each storage equipment, can effectively prevent repeating what many and diverse manual operation may introduce
Mistake simplifies the management operating process to storage equipment, improves the efficiency of management.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of storage device management device, applications
In management equipment, management equipment can be connect with each storage equipment of multiple clusters respectively;A kind of storage equipment described below
Managing device can correspond to each other reference with a kind of above-described storage device management method.
Shown in Figure 11, which includes:
Equipment determining module 210 is stored, for determining current multiple targets to be managed according to the management instruction received
Store equipment;
Apparatus information acquiring module 220, for obtaining the facility information of each target storage device;
Connection type determining module 230, for the determining connection type with each target storage device;
Connection establishment module 240 uses determining connection type for the facility information based on each target storage device
Connection is established with corresponding target storage device;
Administration order issues module 250, for sending corresponding administration order to each target storage device, so that each
Target storage device executes corresponding administration order;
Implementing result obtains module 260, for obtaining the implementing result of each target storage device.
Using device provided by the embodiment of the present invention, management equipment determines current multiple target storage devices to be managed
Afterwards, the facility information of each target storage device is obtained, the determining connection type with each target storage device is believed based on equipment
Breath, establishes connection with corresponding target storage device using determining connection type, sends to each target storage device corresponding
Administration order obtain implementing result so that each target storage device executes corresponding administration order.It is automatic by management equipment
It completes to save human cost to the management of each storage equipment, can effectively prevent repeating what many and diverse manual operation may introduce
Mistake simplifies the management operating process to storage equipment, improves the efficiency of management.
In a kind of specific embodiment of the invention, management instruction is configuration-direct, and connection type is to pass through RestAPI
Connection, or remotely connected by SSH;Management instruction is upgrade command, backup instruction or restores instruction, and connection type is
The short connection of socket.
In a kind of specific embodiment of the invention, administration order is configuration order, and configuration order has a plurality of, management life
Order issues module 250, is specifically used for:
Corresponding configuration order is sent to each target storage device one by one, for adjacent the two of same target storage device
Configuration order has the transmission interval duration of setting.
In a kind of specific embodiment of the invention, administration order is upgrade command, further includes upgrade package transmission module,
For:
Before sending corresponding administration order to each target storage device, upgrade package is transferred to each target and is stored
Under the specified directory of equipment;
Administration order issues module 250, is specifically used for:
By the short connection of socket, corresponding upgrade command is sent to each target storage device, so that each target is deposited
It stores up equipment and is based on the corresponding updating operation of upgrade package execution.
In a kind of specific embodiment of the invention, implementing result obtains module 260, is specifically used for:
Each target storage device is traversed according to setting first time interval, the short connection of socket is established in trial;
Receive the implementing result that each target storage device is returned by the short connection of socket.
In a kind of specific embodiment of the invention, administration order is backup command, and administration order issues module 250,
It is specifically used for:
Corresponding backup command is sent to each target storage device according to the second time interval of setting, so that each mesh
Mark storage equipment inversely generates configuration file by current configuration information;
Receive and save the configuration file that each target storage device returns.
In a kind of specific embodiment of the invention, administration order is to restore order, further includes that configuration file sends mould
Block is used for:
Before sending corresponding administration order to each target storage device, each target storage being obtained ahead of time is set
Standby configuration file is separately sent in corresponding target storage device;
Administration order issues module 250, is specifically used for:
To each target storage device send it is corresponding restore order so that each target storage device is according to receiving
Configuration file carries out the recovery of configuration data.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of management equipment, management equipment can divide
It is not connect with each storage equipment of multiple clusters, as shown in figure 12, comprising:
Memory 310, for storing computer program;
Processor 320, the step of above-mentioned storage device management method is realized when for executing computer program.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of computer readable storage medium, meters
It is stored with computer program on calculation machine readable storage medium storing program for executing, above-mentioned storage equipment pipe is realized when computer program is executed by processor
The step of reason method.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other
The difference of embodiment, same or similar part may refer to each other between each embodiment.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
Used herein a specific example illustrates the principle and implementation of the invention, and above embodiments are said
It is bright to be merely used to help understand technical solution of the present invention and its core concept.It should be pointed out that for the common of the art
, without departing from the principle of the present invention, can be with several improvements and modifications are made to the present invention for technical staff, these
Improvement and modification are also fallen within the protection scope of the claims of the present invention.
Claims (10)
1. a kind of storage device management method, which is characterized in that be applied to management equipment, the management equipment can respectively with it is multiple
Each storage equipment of cluster connects;The described method includes:
According to the management instruction received, current multiple target storage devices to be managed are determined;
Obtain the facility information of each target storage device;
The determining connection type with each target storage device;
Based on the facility information of each target storage device, stored using determining connection type with the corresponding target
Equipment establishes connection;
Corresponding administration order is sent to each target storage device, so that each target storage device executes accordingly
Administration order;
Obtain the implementing result of each target storage device.
2. the method according to claim 1, wherein management instruction is configuration-direct, the connection type
To be connected by RestAPI, or remotely connected by SSH;The management instruction is upgrade command, backup instruction or refers to
It enables, the connection type is the short connection of socket.
3. according to the method described in claim 2, it is characterized in that, the administration order is configuration order, the configuration order
Have it is a plurality of, it is described to send corresponding administration order to each target storage device, comprising:
Corresponding configuration order is sent to each target storage device one by one, for the phase of the same target storage device
Adjacent two configuration orders have the transmission interval duration of setting.
4. according to the method described in claim 2, it is characterized in that, the administration order is upgrade command, described to each
The target storage device is sent before corresponding administration order, further includes:
Upgrade package is transferred under the specified directory of each target storage device;
It is described to send corresponding administration order to each target storage device, comprising:
By the short connection of the socket, corresponding upgrade command is sent to each target storage device, so that each institute
It states target storage device and is based on the corresponding updating operation of upgrade package execution.
5. method according to claim 2 or 4, which is characterized in that described to obtain holding for each target storage device
Row result, comprising:
Each target storage device is traversed according to setting first time interval, the short connection of the socket is established in trial;
Receive the implementing result that each target storage device is returned by the short connection of the socket.
6. according to the method described in claim 5, it is characterized in that, the administration order be backup command, it is described to each institute
It states target storage device and sends corresponding administration order, comprising:
Corresponding backup command is sent to each target storage device according to the second time interval of setting, so that each institute
It states target storage device and configuration file is inversely generated by current configuration information;
Receive and save the configuration file that each target storage device returns.
7. according to the method described in claim 2, it is characterized in that, the administration order is to restore order, described to each
The target storage device is sent before corresponding administration order, further includes:
The configuration file for each target storage device being obtained ahead of time is separately sent to the corresponding target storage to set
It is standby interior;
It is described to send corresponding administration order to each target storage device, comprising:
Corresponding recovery order is sent to each target storage device, so that each target storage device is according to reception
The configuration file arrived carries out the recovery of configuration data.
8. a kind of storage device management device, which is characterized in that be applied to management equipment, the management equipment can respectively with it is multiple
Each storage equipment of cluster connects;Described device includes:
Equipment determining module is stored, for determining that current multiple target storages to be managed are set according to the management instruction received
It is standby;
Apparatus information acquiring module, for obtaining the facility information of each target storage device;
Connection type determining module, for the determining connection type with each target storage device;
Connection establishment module, for the facility information based on each target storage device, using determining connection type with
The corresponding target storage device establishes connection;
Administration order issues module, for sending corresponding administration order to each target storage device, so that each institute
It states target storage device and executes corresponding administration order;
Implementing result obtains module, for obtaining the implementing result of each target storage device.
9. a kind of management equipment, which is characterized in that the management equipment can be connect with each storage equipment of multiple clusters respectively,
Include:
Memory, for storing computer program;
Processor realizes the storage device management side as described in any one of claim 1 to 7 when for executing the computer program
The step of method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes the storage device management method as described in any one of claim 1 to 7 when the computer program is executed by processor
The step of.
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 (1)
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)
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 |
-
2019
- 2019-08-22 CN CN201910779823.1A patent/CN110531932B/en active Active
Patent Citations (3)
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 (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113127269A (en) * | 2019-12-31 | 2021-07-16 | 上海紫港信息科技有限公司 | Method for maintaining reconstruction of flight display |
Also Published As
Publication number | Publication date |
---|---|
CN110531932B (en) | 2023-01-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7460527B2 (en) | Port aggregation for fibre channel interfaces | |
CN105607954A (en) | Stateful container online migration method and apparatus | |
US9071508B2 (en) | Distributed fabric management protocol | |
WO2011156998A1 (en) | System and method for implementing automatic configuration for equipments | |
CN103139157B (en) | A kind of based on the network communication method of socket, Apparatus and system | |
US20220014434A1 (en) | Slice Resource Deployment Method and Apparatus, and Slice Manager and Computer Storage Medium | |
CN107547589A (en) | A kind of data acquisition treatment method and device | |
CN101702735A (en) | TCP service device and method | |
US8880932B2 (en) | System and method for signaling dynamic reconfiguration events in a middleware machine environment | |
CN106452873B (en) | Control method, control device and processor in software defined network | |
US20120117246A1 (en) | Method And System For The Efficient And Automated Management of Virtual Networks | |
CN101242302A (en) | Data synchronization method, device and system | |
CN103747535A (en) | Method, apparatus and system for recovering CAPWAP control channel | |
CN106537840A (en) | System and method for network apparatus management | |
CN112437072A (en) | Virtual machine flow traction system, method, equipment and medium in cloud platform | |
CN110531932A (en) | A kind of storage device management method, apparatus, equipment and storage medium | |
CN112217680B (en) | Controller capability benchmark test method and device based on software-defined wide area network | |
CN105827496A (en) | Method and apparatus for managing PE device | |
JP4273669B2 (en) | Node information management system and node | |
EP2380334B1 (en) | Systems and methods for changing the address of an interface | |
CN106648957A (en) | Operating system backup and recovery method and system | |
WO2016177135A1 (en) | Resource management method, device, and control terminal | |
JP2007201840A (en) | Compound information platform device and method for guaranteeing its communication band | |
EP3720078A1 (en) | Anima network information processing method, device, and system | |
KR20040050140A (en) | Network management system for managing of state and problem in router system and method thereof |
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 |