CN110515765B - License key acquisition method and device and storage system - Google Patents

License key acquisition method and device and storage system Download PDF

Info

Publication number
CN110515765B
CN110515765B CN201910702604.3A CN201910702604A CN110515765B CN 110515765 B CN110515765 B CN 110515765B CN 201910702604 A CN201910702604 A CN 201910702604A CN 110515765 B CN110515765 B CN 110515765B
Authority
CN
China
Prior art keywords
storage system
license key
characteristic
information
cabinet
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
CN201910702604.3A
Other languages
Chinese (zh)
Other versions
CN110515765A (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 CN201910702604.3A priority Critical patent/CN110515765B/en
Publication of CN110515765A publication Critical patent/CN110515765A/en
Application granted granted Critical
Publication of CN110515765B publication Critical patent/CN110515765B/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
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication
    • G06F21/46Structures or tools for the administration of authentication by designing passwords or checking the strength of passwords

Landscapes

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

Abstract

The invention discloses a method and a device for acquiring a license key, which record the license key with corresponding characteristics in the middle plate information of a storage system cabinet, the state information of a storage system and the backup file of the storage system, wherein the method comprises the following steps: when the storage system is recovered, inquiring a license key with corresponding characteristics from the middle plate information of the storage system cabinet; if the license key with the corresponding characteristic is not inquired from the middle plate information of the storage system cabinet, acquiring the license key with the corresponding characteristic from the state information of the storage system; and if the license key corresponding to the characteristic is not acquired from the state information of the storage system, acquiring the license key corresponding to the characteristic from the backup file of the storage system. When the storage system has software failure or hardware failure, even if the key file is damaged, the license key can be recovered from the board information, the state information or the backup file in the cabinet of the storage system. The invention also discloses a storage system.

Description

License key acquisition method and device and storage system
Technical Field
The present invention relates to the field of storage system technologies, and in particular, to a method and an apparatus for acquiring a license key. The invention also relates to a storage system.
Background
In the storage system, a license is adopted to manage and use the characteristics of the storage system, the characteristics of the storage system refer to a preset function independent of the basic storage function of the storage system, and a user activates corresponding characteristics by purchasing a license key corresponding to the characteristics; and the storage system decrypts the license of the corresponding characteristic according to the license key input by the user, and removes the use restriction of the corresponding characteristic when the decryption is successful, so that the user can use the characteristic. Generally, a license is applied for a corresponding characteristic according to three product information, namely model data of a machine, a hardware unique identifier of a cabinet and a characteristic name, and the three information are encrypted by using an encryption algorithm to generate a license key.
In the prior art, a license key is recorded in a key file, and corresponding characteristics are activated by reading key data from the key file, but when a storage system fails and the key file is damaged, the characteristics cannot be used, and working data finished by using the characteristics by a user is lost.
Disclosure of Invention
In view of the above, the present invention provides a license key acquisition method and apparatus, which can recover the license key when a software failure or a hardware failure occurs in a storage system, and can continue to use the features. The invention also provides a storage system.
In order to achieve the purpose, the invention provides the following technical scheme:
a license key acquisition method records license keys with corresponding characteristics in middle plate information of a storage system cabinet, state information of a storage system and backup files of the storage system, and comprises the following steps:
when a storage system is recovered, inquiring a license key with corresponding characteristics from the middle plate information of the storage system cabinet;
if the license key with the corresponding characteristic is not inquired from the middle plate information of the storage system cabinet, acquiring the license key with the corresponding characteristic from the state information of the storage system;
and if the license key corresponding to the characteristic is not acquired from the state information of the storage system, acquiring the license key corresponding to the characteristic from the backup file of the storage system.
Preferably, the state information of the storage system is stored on an arbitration disk;
acquiring the license key of the corresponding characteristic from the state information of the storage system includes: and obtaining the license key of the corresponding characteristic from an arbitration disk of the storage system.
Preferably, when the license key corresponding to the characteristic is acquired from the state information of the storage system, the acquired license key corresponding to the characteristic is recorded in the midplane information of the rack again.
Preferably, if the license key corresponding to the characteristic is acquired from the backup file of the storage system, the acquired license key corresponding to the characteristic is recorded in the midplane information of the storage system cabinet and the status information of the storage system again.
Preferably, the storage system comprises a plurality of cabinets;
the method further comprises the following steps: if the license key with the corresponding characteristic is inquired from the midplane information of any one cabinet of the storage system, the other cabinets acquire the license key with the corresponding characteristic from the cabinet.
Preferably, the method for generating the backup file of the storage system includes: and when a backup command is received, backing up the storage system, recording the license key corresponding to the characteristic, and generating a backup file, or when the timing time is reached, backing up the storage system, recording the license key corresponding to the characteristic, and generating the backup file.
A license key acquisition apparatus for executing the license key acquisition method described above.
A storage system comprising the license key acquisition apparatus described above.
According to the technical scheme, the license key corresponding to the characteristic is recorded in the middle plate information of the storage system cabinet, the state information of the storage system and the backup file of the storage system, when the storage system is restored, the license key corresponding to the characteristic is inquired from the middle plate information of the storage system cabinet, if the license key corresponding to the characteristic is not inquired, the license key corresponding to the characteristic is acquired from the state information of the storage system, if the license key corresponding to the characteristic is not acquired, the license key corresponding to the characteristic is acquired from the backup file of the storage system, the corresponding characteristic can be activated after the license key corresponding to the characteristic is acquired, and the characteristic can be used continuously. Therefore, the method and the device for obtaining the license key record the license key corresponding to the characteristic in the midplane information of the storage system cabinet, the state information of the storage system and the backup file of the storage system, and when the storage system has software failure or hardware failure, even if the key file is damaged, the license key can be recovered and obtained from the midplane information, the state information or the backup file of the storage system cabinet, so that the characteristic can be continuously used, and the problems in the prior art are solved.
The storage system provided by the invention can achieve the beneficial effects.
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 description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a license key obtaining method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a memory system according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. 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, fig. 1 is a flowchart of a license key obtaining method according to an embodiment of the present invention, in the license key obtaining method according to the embodiment of the present invention, license keys with corresponding characteristics are recorded in midplane information of a storage system cabinet, status information of a storage system, and a backup file of the storage system in advance.
The middle plate of the storage system cabinet is a hardware component of the storage system, the middle plate of the cabinet is mainly used for connecting a controller node and each expansion card in the cabinet, product factory data can be stored on the cabinet, and the middle plate is not affected by the failure of the controller node. And recording the license key of the characteristic in the middle plate information of the cabinet, so that the license key of the corresponding characteristic is saved at the hardware level of the storage system.
The state information of the storage system refers to state data recorded by monitoring the operation condition of the storage system by software operated by the storage system, and the state information records various state data of the storage system in the operation process. A license key storing the system characteristics is recorded in the state information, and the license key of the characteristics is saved from the software level.
The backup file of the storage system refers to a backup file of the operating software of the storage system, and the storage system can be restored by using the backup file after the operating software of the storage system is damaged. Recording the license key of the storage system characteristic in the backup file, so that the license key of the characteristic is stored in the software layer of the storage system.
The license key acquisition method of the embodiment includes the following steps:
s10: when the storage system is recovered, the license key with the corresponding characteristic is inquired from the middle plate information of the storage system cabinet.
When the license environment of a certain feature of the storage system is damaged due to various conditions, such as hardware failure or software failure of the storage system, the storage system needs to be restored, and the use of the feature in the storage system needs to be restored.
When the storage system is recovered, the information of the middle plate of the cabinet of the storage system is inquired firstly, and the license key with the corresponding characteristic is inquired. If the midplane of a storage system cabinet is not replaced, then a license key of a corresponding nature can be obtained from the cabinet midplane. After obtaining the license key, the corresponding feature of the storage system may be activated using the license key, enabling continued use of the corresponding feature.
In a preferred embodiment, if the storage system includes a plurality of cabinets, if the midplane information of any one cabinet of the storage system queries a license key of a corresponding characteristic, the other cabinets acquire the license key of the corresponding characteristic from the cabinet. Please refer to fig. 2 in combination, fig. 2 is a schematic structural diagram of a storage system in this embodiment, where the storage system includes a plurality of cabinets 20 to form a storage cluster, the storage cluster system activates a feature in units of cabinets, and the storage cluster applies for a license about the feature through one of the cabinets, and each cabinet of the entire storage cluster can use the license and a corresponding license key.
If the physical hardware of the storage system is damaged and the midplane of a storage system enclosure is replaced, then the license key of the corresponding characteristic will not be available from the midplane in the enclosure.
S11: and if the license key with the corresponding characteristic is not inquired from the middle plate information of the storage system cabinet, acquiring the license key with the corresponding characteristic from the state information of the storage system.
If the license key of the corresponding characteristic is not obtained from the midplane of the storage system enclosure, the license key of the corresponding characteristic is obtained from the state information of the storage system. If the physical hardware of the storage system is damaged, the midplane is replaced, but the controller nodes within the storage system cabinets are unchanged, then the license key for the feature can be retrieved from the state information of the storage system. Preferably, in this embodiment, if the storage system includes a plurality of cabinets to form a storage cluster, the state information of the storage system is shared by each controller node of each cabinet, and the state information of the storage system is kept synchronized at each controller node.
In an implementation, the state information of the storage system may be stored on the arbitrating disk, and accordingly, obtaining the license key of the corresponding characteristic from the state information of the storage system includes: and obtaining the license key of the corresponding characteristic from an arbitration disk of the storage system.
Preferably, after the license key with the corresponding characteristic is acquired from the state information of the storage system, the acquired license key with the corresponding characteristic is recorded in the midplane information of the cabinet again, so that the license key in the midplane information of the cabinet is updated synchronously in time.
If the state information of the storage system is lost, the license key of the property will not be accessible through the state information of the storage system.
S12: and if the license key corresponding to the characteristic is not acquired from the state information of the storage system, acquiring the license key corresponding to the characteristic from the backup file of the storage system.
If the middle plate information of the storage system cabinet and the state information of the storage system are lost, the license key with the characteristics is not acquired from the middle plate information of the storage system cabinet, and the license key with the characteristics is not acquired from the state information of the storage system, the license key with the corresponding characteristics can be acquired from the backup file of the storage system, and then the corresponding characteristics are activated by using the acquired license key, and the use of the corresponding characteristics of the storage system is recovered.
All state data of the storage system and the storage system may be restored through a backup file of the storage system. Preferably, after the license key with the corresponding characteristic is acquired from the backup file of the storage system, the acquired license key with the corresponding characteristic is recorded into the midplane information of the storage system cabinet and the status information of the storage system again, so that the license key in the midplane information of the cabinet and the license key in the status information of the storage system are updated synchronously in time.
Further, in this embodiment, the method for generating the backup file of the storage system may be: and when receiving a backup command, backing up the storage system, recording the license key with the corresponding characteristic, and generating a backup file, so that a user can issue the command at any time to back up the storage system. Or, the method for generating the backup file of the storage system may further include: and when the timing time is reached, backing up the storage system, recording the license key with the corresponding characteristics, and generating a backup file. Therefore, the timing is set for the backup function of the storage system, and the storage system is backed up when the timing time is reached, so that the automatic backup function is realized.
As can be seen from the above, in the license key obtaining method of this embodiment, the license key with the characteristic is recorded in the midplane information of the storage system cabinet, the state information of the storage system, and the backup file of the storage system, and the license key with the characteristic is stored in two layers of hardware and software of the storage system and is stored in three different locations of the storage system.
Correspondingly, the embodiment of the invention also provides a license key acquisition device, which is used for executing the license key acquisition method.
The license key acquiring device records the license key corresponding to the characteristic in the midplane information of the storage system cabinet, the state information of the storage system and the backup file of the storage system, when the storage system is restored, firstly, the license key corresponding to the characteristic is inquired from the midplane information of the storage system cabinet, if the license key corresponding to the characteristic is not inquired, the license key corresponding to the characteristic is acquired from the state information of the storage system, if the license key corresponding to the characteristic is not acquired, the license key corresponding to the characteristic is acquired from the backup file of the storage system, the corresponding characteristic can be activated after the license key corresponding to the characteristic is acquired, and the characteristic can be continuously used. Therefore, the license key obtaining apparatus of this embodiment records the license key corresponding to the characteristic in the midplane information of the storage system cabinet, the state information of the storage system, and the backup file of the storage system, and when the storage system has a software failure or a hardware failure, even if the key file is damaged, the license key can be recovered from the midplane information, the state information, or the backup file of the storage system cabinet, thereby solving the problems in the prior art.
Correspondingly, the embodiment of the invention also provides a storage system, which comprises the license key acquisition device.
The storage system of this embodiment adopts the above license key obtaining apparatus to record the license key with corresponding characteristics in the midplane information of the storage system cabinet, the state information of the storage system, and the backup file of the storage system, and when the storage system has a software failure or a hardware failure, even if the key file is damaged, the license key can be recovered from the midplane information, the state information, or the backup file of the storage system cabinet, thereby solving the problems in the prior art.
The license key obtaining method, the license key obtaining device and the storage system provided by the invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. 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 (8)

1. A license key acquisition method is characterized in that license keys with corresponding characteristics are recorded in midplane information of a storage system cabinet, state information of a storage system and backup files of the storage system, wherein the state information of the storage system refers to state data recorded by monitoring the operation condition of the storage system by software operated by the storage system, and the method comprises the following steps:
when a storage system is recovered, inquiring a license key with corresponding characteristics from the middle plate information of the storage system cabinet;
if the license key with the corresponding characteristic is not inquired from the middle plate information of the storage system cabinet, acquiring the license key with the corresponding characteristic from the state information of the storage system;
and if the license key corresponding to the characteristic is not acquired from the state information of the storage system, acquiring the license key corresponding to the characteristic from the backup file of the storage system.
2. The license key acquisition method according to claim 1, wherein the state information of the storage system is stored on a mediation disk;
acquiring the license key of the corresponding characteristic from the state information of the storage system includes: and obtaining the license key of the corresponding characteristic from an arbitration disk of the storage system.
3. The license key acquisition method according to claim 1, wherein if the license key of the corresponding characteristic is acquired from the status information of the storage system, the acquired license key of the corresponding characteristic is re-recorded in the midplane information of the enclosure.
4. The license key acquisition method according to claim 1, wherein if the license key of the corresponding characteristic is acquired from the backup file of the storage system, the acquired license key of the corresponding characteristic is re-recorded in the midplane information of the storage system enclosure and the status information of the storage system.
5. The license key acquisition method according to any one of claims 1 to 4, wherein the storage system includes a plurality of cabinets;
the method further comprises the following steps: if the license key with the corresponding characteristic is inquired from the midplane information of any one cabinet of the storage system, the other cabinets acquire the license key with the corresponding characteristic from the cabinet.
6. The license key acquisition method according to any one of claims 1 to 4, wherein the method of generating the backup file of the storage system includes: and when a backup command is received, backing up the storage system, recording the license key corresponding to the characteristic, and generating a backup file, or when the timing time is reached, backing up the storage system, recording the license key corresponding to the characteristic, and generating the backup file.
7. A license key acquisition apparatus characterized by being configured to execute the license key acquisition method of any one of claims 1 to 6.
8. A storage system characterized by comprising the license key acquisition apparatus according to claim 7.
CN201910702604.3A 2019-07-31 2019-07-31 License key acquisition method and device and storage system Active CN110515765B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910702604.3A CN110515765B (en) 2019-07-31 2019-07-31 License key acquisition method and device and storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910702604.3A CN110515765B (en) 2019-07-31 2019-07-31 License key acquisition method and device and storage system

Publications (2)

Publication Number Publication Date
CN110515765A CN110515765A (en) 2019-11-29
CN110515765B true CN110515765B (en) 2022-04-22

Family

ID=68623779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910702604.3A Active CN110515765B (en) 2019-07-31 2019-07-31 License key acquisition method and device and storage system

Country Status (1)

Country Link
CN (1) CN110515765B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699567A (en) * 2013-10-21 2015-06-10 国际商业机器公司 Method and system for recovering data objects in a distributed data storage system
CN104754005A (en) * 2013-12-30 2015-07-01 上海格尔软件股份有限公司 Safe backup recovery system and method based on network storage resource
CN104866394A (en) * 2015-06-08 2015-08-26 肖选文 Distributed file backup method and system
CN108460126A (en) * 2018-02-28 2018-08-28 郑州云海信息技术有限公司 A kind of acquisition methods and device of the daily record of equipment cabinet server unit of memory allocation

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4446738B2 (en) * 2001-08-20 2010-04-07 データセンターテクノロジーズ エヌ.ヴイ. System and method for efficiently backing up computer files
US8152628B2 (en) * 2005-08-01 2012-04-10 Igt Methods and devices for authentication and licensing in a gaming network
US9032539B2 (en) * 2013-04-24 2015-05-12 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Automatic recovery of license key information
JP6520746B2 (en) * 2016-02-08 2019-05-29 コニカミノルタ株式会社 Information processing system, communication relay device, license server, program, and data recovery method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699567A (en) * 2013-10-21 2015-06-10 国际商业机器公司 Method and system for recovering data objects in a distributed data storage system
CN104754005A (en) * 2013-12-30 2015-07-01 上海格尔软件股份有限公司 Safe backup recovery system and method based on network storage resource
CN104866394A (en) * 2015-06-08 2015-08-26 肖选文 Distributed file backup method and system
CN108460126A (en) * 2018-02-28 2018-08-28 郑州云海信息技术有限公司 A kind of acquisition methods and device of the daily record of equipment cabinet server unit of memory allocation

Also Published As

Publication number Publication date
CN110515765A (en) 2019-11-29

Similar Documents

Publication Publication Date Title
US10013364B1 (en) Securing data using per tenant encryption keys
CN107426265A (en) The synchronous method and apparatus of data consistency
CN107256182B (en) Method and device for restoring database
JP6827501B2 (en) Hot backup system, hot backup method, and computer equipment
US9367598B2 (en) Merging an out of synchronization indicator and a change recording indicator in response to a failure in consistency group formation
WO2016026306A1 (en) Data backup method, system, node and computer storage media
CN106933706A (en) The power-off protection method and device of Nonvolatile memory
CN102867035B (en) A kind of distributed file system cluster high availability method and device
CN101681237B (en) Encryption device and encryption method
US9525733B2 (en) Method and system for data synchronization
WO2019020081A1 (en) Distributed system and fault recovery method and apparatus thereof, product, and storage medium
CN103914359A (en) Data recovery method and device
CN110825562B (en) Data backup method, device, system and storage medium
CN107957920A (en) Database backup system
CN107729515B (en) Data synchronization method, device and storage medium
CN104486438A (en) Disaster-tolerant method and disaster-tolerant device of distributed storage system
CN106681865B (en) Service recovery method and device
CN101937378B (en) Method for carrying out back-up protection on data of storage equipment and computer system
CN104750755A (en) Method and system for recovering data after switching between main database and standby database
CN104636218B (en) Data reconstruction method and device
CN110515765B (en) License key acquisition method and device and storage system
US20070282926A1 (en) System, Method and Computer Program Product for Storing Transient State Information
US8073813B2 (en) Refresh and filter anchors
US7600151B2 (en) RAID capacity expansion interruption recovery handling method and system
WO2018076696A1 (en) Data synchronization method and out-of-band management device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant