CN115630341B - Software license authorization control method and system in high-availability storage equipment - Google Patents

Software license authorization control method and system in high-availability storage equipment Download PDF

Info

Publication number
CN115630341B
CN115630341B CN202211654004.2A CN202211654004A CN115630341B CN 115630341 B CN115630341 B CN 115630341B CN 202211654004 A CN202211654004 A CN 202211654004A CN 115630341 B CN115630341 B CN 115630341B
Authority
CN
China
Prior art keywords
node
license
file
time
standby
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
CN202211654004.2A
Other languages
Chinese (zh)
Other versions
CN115630341A (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.)
Hunan Guoke Yicun Information Technology Co ltd
Original Assignee
Hunan Guoke Yicun Information 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 Hunan Guoke Yicun Information Technology Co ltd filed Critical Hunan Guoke Yicun Information Technology Co ltd
Priority to CN202211654004.2A priority Critical patent/CN115630341B/en
Publication of CN115630341A publication Critical patent/CN115630341A/en
Application granted granted Critical
Publication of CN115630341B publication Critical patent/CN115630341B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/105Arrangements for software license management or administration, e.g. for managing licenses at corporate level
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/108Transfer of content, software, digital rights or licenses
    • G06F21/1082Backup or 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/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/108Transfer of content, software, digital rights or licenses
    • G06F21/1087Synchronisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/80Database-specific techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/82Solving problems relating to consistency
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/835Timestamp

Abstract

The invention discloses a method and a system for managing and controlling software license authorization in high-availability storage equipment, wherein the method comprises the following steps: configuring database master-slave replication between a master node and a slave node so as to synchronize data to the slave node of the database when the data is written in the master node of the database; when the host node imports the permission file, recording the time of importing the permission file into the host node; after the master node imports the license authorization file, synchronizing the license authorization file to the standby node, and recording the time of importing the license authorization file into the standby node after the license authorization file is successfully synchronized; and judging the old state and the new state of the license file according to the recorded import time of the license file in the main node and the import time of the license file in the standby node, and determining the current effective license file. The invention has the advantages of simple implementation method, low cost, high reliability and stability, strong flexibility and the like.

Description

Software license authorization management and control method and system in high-availability storage equipment
Technical Field
The invention relates to the technical field of high-availability storage equipment, in particular to a software license authorization control method and system in the high-availability storage equipment.
Background
With the increasing demands on continuity of data access services, high availability becomes one of the essential features of storage devices. In the high-availability storage device, when the main node fails, the standby node takes over the resources and the services of the failed node to ensure the high availability of the storage device. Software licensing, i.e., the right to specify and limit a user's use of a software system, is a technique that requires the use of software licensing during software development.
For software license authorization management and control of storage devices in a high availability environment, a master-slave synchronization mode is usually adopted in the prior art, that is, after a master node acquires a license authorization file, the license authorization file of the master node is resynchronized to a standby node, that is, license authorization of the standby node must depend on synchronization of the master node. And when the storage device may fail in the operation process under the high availability environment, and the failure may cause the failure of the storage device when the shared file system of the storage device cannot be used normally. For example, in a dual-node high-availability storage device, when a master node is switched between high availability, due to an abnormal fault such as a network disconnection or a standby shutdown, a permission authorization file cannot be synchronized to a standby node, and due to the fact that the standby node cannot synchronously acquire the permission authorization file of the master node, a shared file system of the storage device cannot be normally used, so that the storage device fails, and the entire storage system cannot be normally used.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: aiming at the technical problems in the prior art, the invention provides a software license authorization control method and system in high-availability storage equipment, which have the advantages of simple implementation method, low cost, high reliability and stability and strong flexibility.
In order to solve the technical problems, the technical scheme provided by the invention is as follows:
a method for managing and controlling software license authorization in a high-availability storage device comprises the following steps:
configuring a database master-slave copy between a main node and a standby node so as to synchronize data to the standby node of the database when the data is written in the main node of the database;
when the main node imports the permission authorization file, recording the time of importing the permission authorization file into the main node;
after the master node imports the license file, synchronizing the license file to the standby node, and recording the time of importing the license file into the standby node after the license file is successfully synchronized;
and judging the old state and the new state of the license authorization files of the main node and the standby node according to the recorded lead-in time of the license authorization file in the main node and the lead-in time of the license authorization file in the standby node, and determining the current effective license authorization file.
Further, when the master node imports the license authorization file, the validity and authorization information of the imported license authorization file are verified, and after the verification is passed, the host node information and the recorded import time are written into the database.
Further, the license authorization file is generated according to configured limiting conditions, where the limiting conditions include any one or more of hardware information of the master node and the standby node, authorization time, and the number of clients.
Further, when the license file is synchronized to the standby node, if the license file is successfully synchronized, recording the time for importing the license file into the standby node, otherwise, exiting the synchronization.
Further, the determining the old state and the new state of the license authorization file of the master node and the license authorization file of the standby node according to the recorded time of importing the license authorization file in the master node and the time of importing the license authorization file in the standby node, and the determining the currently valid license authorization file includes: and taking the license authorization file corresponding to the latest lead-in time as a currently valid license authorization file, namely if the license lead-in time of the main node is greater than the license lead-in time of the standby node, judging the license authorization file of the main node as a valid license authorization file, and otherwise, judging the license authorization file of the standby node as a valid license authorization file.
Further, after the currently valid license file is determined, the license files of the master node and the standby node are updated according to the currently valid license file, wherein if the import time of the license file of the master node is longer than the import time of the license file of the standby node, the license file of the master node is synchronized to the standby node, otherwise, the license file of the standby node is synchronized to the master node.
The method further comprises the steps of monitoring the states of the main node and the standby node in real time, controlling to close the master-slave copy of the database when the monitoring shows that the main node updates or modifies the permission authorization file and the running state of the standby node is abnormal or the communication network between the main node and the standby node is abnormal, and restarting the master-slave copy of the database when the monitoring shows that the running state of the standby node or the communication network between the main node and the standby node is normal.
A system for managing and controlling software license authorization in a high-availability storage device comprises:
the configuration module is used for configuring the master node and the slave node into database master-slave replication so as to synchronize data to the database slave node when the data is written into the database master node;
the time recording module is used for recording the time of the license authorization file introduced into the main node when the main node introduces the license authorization file;
the synchronization control module is used for synchronizing the license file to the standby node after the main node imports the license file, and recording the time for importing the license file into the standby node after the license file is successfully synchronized;
and the effective permission judging module is used for judging the old state and the new state of the permission authorization files of the main node and the standby node according to the recorded lead-in time of the permission authorization file in the main node and the lead-in time of the permission authorization file in the standby node, and determining the current effective permission authorization file.
The system further comprises a permission updating control module used for updating the permission authorization files of the main node and the standby node according to the currently valid permission authorization file, wherein if the lead-in time of the permission authorization file of the main node is longer than the lead-in time of the permission authorization file of the standby node, the permission authorization file of the main node is synchronized to the standby node, otherwise, the permission authorization file of the standby node is synchronized to the main node.
A computer-readable storage medium having stored thereon a computer program which, when executed, implements the method as described above.
Compared with the prior art, the invention has the advantages that: according to the method, the master-slave copy of the database is firstly configured between the master node and the slave node, the data can be synchronized into the standby node of the database when the data is written into the master node of the database, the import time is recorded when the license file is imported into the master node, the import time is recorded when the license file of the master node is synchronized to the standby node, so that the license import time stamps of two devices of the master node and the standby node are recorded, the old state and the new state of the license file on the two devices are judged according to the time stamps, and the currently effective license file is further determined, so that the old license file can be updated by a subsequent execution synchronization program, even if the license file cannot be synchronized due to abnormity, the real-time effectiveness of the license file can be still ensured, the consistency and the reliability of the license in the high-availability switching of the two nodes are effectively enhanced, and the problem that the shared file system software and the storage device cannot be normally used due to the synchronization failure of the license information in the high availability switching process of the master node and the standby node is avoided.
Drawings
Fig. 1 is a schematic flow chart of the implementation of the method for managing and controlling the software license authorization in the high-availability storage device according to this embodiment.
FIG. 2 is a flow chart illustrating the implementation of importing a software license authorization file in a specific application embodiment.
Fig. 3 is a schematic flow chart of an implementation process of updating the license authority file to the standby node in a specific application embodiment.
FIG. 4 is a flow chart illustrating the implementation of synchronizing software license authorization files in a specific application embodiment.
Detailed Description
The invention is further described below with reference to the drawings and specific preferred embodiments of the description, without thereby limiting the scope of protection of the invention.
As shown in fig. 1, the steps of the method for managing and controlling the software license authorization in the high-availability storage device of the embodiment include:
s01, configuring a database master-slave copy between a main node and a standby node so as to synchronize data to the database standby node when the data are written in the database main node;
s02, when a master node imports an authorization file, recording the time of importing the authorization file into the master node;
s03, after the master node imports the license file, synchronizing the license file to the standby node, and after the license file is successfully synchronized, recording the time for importing the license file into the standby node;
and S04, judging the old state and the new state of the license files of the main node and the standby node according to the recorded lead-in time of the license file in the main node and the lead-in time of the license file in the standby node, and determining the current effective license file.
According to the method, the master-slave copy of the database is configured between the master node and the slave node, so that the master-slave copy characteristic of the database is utilized, when data are written in the master node of the database, the data are synchronized into the backup node of the database, the import time is recorded when the license file is imported into the master node, the import time is recorded when the license file of the master node is synchronized to the backup node, the license import time stamps of two devices of the master node and the backup node are recorded, the new and old states of the license file on the two devices are judged through the time stamps, and the currently effective license file is further determined, so that the old license file can be updated by a subsequent execution synchronization program, even if the license file cannot be synchronized due to abnormality, the real-time effectiveness of the license file can be still ensured, the consistency and the reliability of the license file in the high-availability switching of the two nodes are effectively enhanced, and the problem that the shared file system software and the storage device cannot be normally used due to the synchronization failure of the license information in the high-availability switching process of the master node is avoided.
In the embodiment, when the master node imports the license authorization file, the validity and the authorization information of the imported license authorization file are verified, and after the verification is passed, the host node information and the recorded import time are written into the database, so that the legal validity of the imported license authorization file can be ensured, and the safety and the reliability of management and control are further improved. The license authorization file can be generated according to configured limiting conditions, the limiting conditions include hardware information of the master node and the slave node, authorization time, the number of clients and the like, and the limiting conditions and the generation mode of the license authorization file can be configured according to actual requirements.
As shown in fig. 2, in the specific application embodiment, when the license authorization file is imported to the host node, it is determined whether the imported license authorization file is legal, if so, the authorization information is updated, and meanwhile, the import time is recorded in the database, and if not, the import operation is directly exited to ensure security.
As shown in fig. 3, in this embodiment, after the master node updates the license authorization, the updated license authorization file is transmitted and synchronized to the standby node through the network; when the permission authorization file is synchronized to the standby node, if the permission authorization file is synchronized successfully, the host name of the standby node and the introduction timestamp of the permission authorization file are recorded, the consistency of the permission authorization information of the two nodes of the host and the standby node and the consistency of the database introduction timestamps are ensured, and if the synchronization fails, the synchronization is exited. If the synchronization of the permission authorization file is successful, the time for leading the permission authorization file into the standby node is recorded after the synchronization operation is finished, and if the synchronization is failed, the time is not recorded by directly exiting.
When the synchronization cannot be successfully completed due to abnormal conditions, the import time of the license authorization file of the standby node cannot be recorded, when the import time of the subsequent license authorization file is compared, the import time of the license authorization file of the standby node is earlier than the import time of the license authorization file of the main node, namely, the license authorization file of the main node is in a more updated state, the license authorization file of the current main node can be determined to be a valid license authorization file, and the synchronization of the license authorization file is executed after abnormal recovery, so that the validity of the license authorization file of the standby node can be effectively ensured, and the problem that shared file system software and storage equipment cannot be normally used due to the fact that the synchronization of license authorization information fails in the high-availability switching process of the main standby machine is avoided. The synchronization of the license authorization file to the standby node can be specifically realized through network transmission between the standby node and the main node, and a specific synchronization mode can also be selected and configured according to actual requirements.
In a specific application embodiment, database master-slave replication is configured between a master node and a slave node in advance, and data are synchronized to the slave node of the database by writing data in a master node of the database by utilizing the master-slave replication characteristic of the database; the method comprises the steps that a permission authorization file is led into a main node, the validity and authorization information of the permission file are verified at the same time, and the host name and the time stamp of the host are written into a database after the verification is passed; then, synchronizing the permission authorization file to the standby node through a network, and simultaneously recording the host name and the timestamp of the standby node in a database to realize the synchronization of the permission files of the main node and the standby node; and judging the new and old states of the permission authorization files on the two devices through the recorded permission import timestamps of the two devices of the main and standby machines, determining the currently effective permission authorization file, and executing a synchronization program according to the effective permission authorization file to update the old permission file.
In this embodiment, according to the recorded import time of the license authorization file in the master node and the import time of the license authorization file in the standby node, the old and new states of the license authorization files of the master node and the standby node are determined, and when the currently valid license authorization file is determined, the license authorization file corresponding to the latest license import time is specifically selected as the currently valid license authorization file, that is, if the license import time of the master node is greater than the license import time of the standby node, the license authorization file of the master node is determined to be in the latest state, the license authorization file of the master node is determined to be the valid license authorization file, and otherwise, the license authorization file of the standby node is determined to be the valid license authorization file.
In this embodiment, after determining the currently valid license file, the method further includes updating the license files of the master node and the standby node according to the currently valid license file, that is, taking the latest license file as the currently valid license file and synchronizing, where if the import time of the license file of the master node is longer than the import time of the license file of the standby node, the license file of the master node is synchronized to the standby node, and otherwise, the license file of the standby node is synchronized to the master node. When the master node updates and modifies the license authorization file, if the license authorization file cannot be synchronized to the standby node under other abnormal conditions such as network disconnection or standby downtime, the import time of the license authorization file of the master node is only recorded in the database at this time, the corresponding import time of the standby node cannot be updated, the import time of the license authorization file of the master node is inconsistent after abnormal recovery, the latest judgment of the import time of the license authorization file of the master node in the database is judged by inquiring the timestamp of the license authorization file imported by the master node in the database, the license authorization file with the latest import time is judged to be valid is recorded in the database, the license with the timestamp invalid for the older node is deleted, and the valid license is synchronized to the node, so that the latest license authorization file can be synchronously updated after abnormal recovery, and the storage device can be ensured to be normally used.
In a specific application embodiment, as shown in fig. 4, database table data is read in real time, if the import time of the master node license authorization file is greater than the import time of the standby node license authorization file, the master node license authorization file is synchronized to the standby node, otherwise, the standby node license authorization file is synchronized to the master node. The method comprises the steps that a database master-slave copying characteristic is utilized, after a cluster is recovered, data in the database can be synchronized, whether synchronization needs to be executed or not is judged according to the leading-in time stamps of a master node and a slave node in the database, if the time stamp of the master node is larger than that of the slave node, a permission authorization file of the master node is synchronized to the slave node, otherwise, if the leading-in time stamp of the slave node is larger than that of the master node, permission authorization of the slave node is synchronized to the master node, and after synchronization is completed, the leading-in time stamp of a master slave machine is modified to be consistent. When the cluster is abnormal, and after the abnormality is recovered, the software permission authorization of the main and standby nodes is synchronized, so that the cluster can be prevented from being used normally because the permission authorization is updated on one machine during the cluster abnormality and cannot be synchronized to another node.
In this embodiment, the method further includes monitoring states of the master node and the standby node in real time, controlling to close the master-slave copy of the database when it is monitored that the master node updates or modifies the license authorization file and the operation state of the standby node is abnormal or the communication network between the master node and the standby node is abnormal, and restarting the master-slave copy of the database when it is monitored that the operation state of the standby node or the communication network between the master node and the standby node is normal. If the main node and the standby node are failed or the communication network between the main node and the standby node is abnormal, the data synchronization between the main node and the standby node is unreliable, the states of the main node and the standby node are further monitored in real time, when the operating state of the standby node is monitored to be abnormal or the communication network between the main node and the standby node is monitored to be abnormal, the master-slave copy of the database is controlled to be closed in time, the effective permission authorization file is determined and synchronized by combining the recorded lead-in time of the permission authorization file of the main node and the standby node, the normal use of the high-availability storage device can be ensured, the data reliability of the main node and the standby node can be effectively ensured, the master-slave control can be restarted after the normal state is recovered in time, and the continuous normal operation of the high-availability storage device is ensured.
In a specific application embodiment, the detailed steps of implementing the software license authorization management and control of the high-availability storage device by adopting the method of the invention are as follows:
step 1. Generating license authorization file
Acquiring hardware information codes of the main and standby nodes for hardware binding at the initial stage of the deployment system, and generating a permission authorization file by combining the hardware information codes, authorization time, the number of clients and other limiting conditions.
Step 2, importing the permission authorization file
And (3) importing the permission authorization file into a main node (local) of the management system, simultaneously carrying out validity check on the file, updating permission authorization information after the permission authorization file is successfully imported, and writing the host name of the local and an import time stamp of the permission authorization file into a database.
Step 3, pushing the license authorization file
Pushing the authorization file of the main node to a standby node server through a network, and writing a standby node host name and a time stamp during pushing into a database if the pushing is successful; and if the pushing fails, the database data is not updated.
Step 4, synchronizing the license authorization file
If the master node and the slave node are abnormal, updating the permission authorization file, after the environment is recovered, synchronously processing the permission authorization of the master node and the slave node, reading the host name of the latest timestamp in the database, and if the host name is the master node, pushing the master node permission authorization file to the slave node server; if the node is the standby node, the standby node permission authorization file is pulled to the main node, as shown in fig. 3.
Step 5, verifying the license authorization file
Verifying the permission authorization file, including hardware information comparison, authorization time verification, client connection number verification and the like; if the verification is successful, the storage service is normally used, and if the verification is failed, error information is returned and the storage service is disconnected.
The software license authorization management and control system in the high-availability storage device comprises:
the configuration module is used for configuring the master node and the slave node into database master-slave replication so as to synchronize data to the database slave node when the data is written into the database master node;
a time recording module for recording the time of the license authorization file introduced into the host node when the host node introduces the license authorization file
The synchronization control module is used for synchronizing the license file to the standby node after the host node imports the license file, and recording the time for importing the license file into the standby node after the license file is successfully synchronized;
and the valid permission judging module is used for judging the old state and the new state of the permission authorization files of the main node and the standby node according to the recorded lead-in time of the permission authorization file in the main node and the lead-in time of the permission authorization file in the standby node, and determining the current valid permission authorization file.
In this embodiment, the system further includes a license update control module, configured to update the license authorization files of the master node and the standby node according to the currently valid license authorization file, where if the license import time of the master node is greater than the license import time of the standby node, the license authorization file of the master node is synchronized to the standby node, and otherwise, the license authorization file of the standby node is synchronized to the master node. The permission update control module may be specifically configured to start when synchronization between the master node and the standby node is abnormal, may also be configured to perform periodic update, and may be specifically configured according to actual requirements.
The configuration module, the time recording module, the synchronization control module, the valid permission judgment module and the permission updating control module can be integrated in a control device, namely, the control device controls master-slave copying of a configuration database, records the lead-in time of the permission authorization files of the master node and the standby node, judges the old state and the new state of the permission authorization files of the master node and the standby node, determines the current valid permission authorization files, and controls synchronous updating of the permission authorization files of the master node and the standby node when the synchronization between the master node and the standby node is abnormal. The control device can be arranged at the side of the main node or the standby node, and can also be independently arranged at the control end of the main node or the standby node.
The software license authorization management and control system in the high-availability storage device of this embodiment corresponds to the software license authorization management and control method in the high-availability storage device one to one, and is not described herein again one by one.
The present embodiment also provides a computer-readable storage medium storing a computer program, which when executed implements the method as described above.
The foregoing is considered as illustrative of the preferred embodiments of the invention and is not to be construed as limiting the invention in any way. Although the present invention has been described with reference to the preferred embodiments, it is not intended to be limited thereto. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical spirit of the present invention should fall within the protection scope of the technical scheme of the present invention, unless the technical spirit of the present invention departs from the content of the technical scheme of the present invention.

Claims (10)

1. A method for managing and controlling software license authorization in high-availability storage equipment is characterized by comprising the following steps:
configuring database master-slave replication between a master node and a slave node so as to synchronize data to the slave node of the database when the data is written in the master node of the database;
when the main node imports the permission authorization file, recording the time of importing the permission authorization file into the main node;
after the master node imports the license file, synchronizing the license file to the standby node, and recording the time of importing the license file into the standby node after the license file is successfully synchronized;
and judging the old state and the new state of the license authorization files of the main node and the standby node according to the recorded lead-in time of the license authorization file in the main node and the lead-in time of the license authorization file in the standby node, and determining the current effective license authorization file.
2. The method for managing and controlling software license authorization in high availability storage equipment according to claim 1, characterized in that when a master node imports a license authorization file, the validity of the imported license authorization file and authorization information are verified, and after the verification is passed, host node information and recorded import time are written into a database.
3. The method for managing and controlling the software license authorization in the high availability storage device according to claim 2, wherein the license authorization file is generated according to configured limiting conditions, and the limiting conditions include any one or more of hardware information of a master node and a standby node, authorization time and the number of clients.
4. The method according to claim 1, wherein when the license file is synchronized to the standby node, if the license file is successfully synchronized, the time for importing the license file to the standby node is recorded, otherwise, the synchronization is exited.
5. The method according to claim 1, wherein the determining whether the license authorization files of the primary node and the backup node are old or new according to the recorded time of importing the license authorization file in the primary node and the recorded time of importing the license authorization file in the backup node, and determining the currently valid license authorization file includes: and taking the license authorization file corresponding to the latest lead-in time as a currently valid license authorization file, namely if the license lead-in time of the main node is greater than the license lead-in time of the standby node, judging the license authorization file of the main node as a valid license authorization file, and otherwise, judging the license authorization file of the standby node as a valid license authorization file.
6. The method according to any one of claims 1 to 5, wherein after the currently valid license authorization file is determined, the method further comprises updating license authorization files of a host node and a standby node according to the currently valid license authorization file, wherein if the lead-in time of the license authorization file of the host node is longer than the lead-in time of the license authorization file of the standby node, the license authorization file of the host node is synchronized to the standby node, and otherwise, the license authorization file of the standby node is synchronized to the host node.
7. The method for managing and controlling the software license authorization in the high-availability storage equipment according to any one of claims 1 to 5, characterized by further comprising monitoring the states of the master node and the standby node in real time, controlling to close the master-slave copy of the database when the master node is monitored to update or modify the license authorization file and the running state of the standby node is abnormal or the communication network between the master node and the standby node is abnormal, and restarting the master-slave copy of the database when the running state of the standby node or the communication network between the master node and the standby node is monitored to be normal.
8. A system for managing and controlling software license authorization in a high-availability storage device is characterized by comprising:
the configuration module is used for configuring the master node and the slave node into database master-slave replication so as to synchronize data to the database slave node when the data is written into the database master node;
the time recording module is used for recording the time of the license authorization file introduced into the main node when the main node introduces the license authorization file;
the synchronization control module is used for synchronizing the license file to the standby node after the main node imports the license file, and recording the time for importing the license file into the standby node after the license file is successfully synchronized;
and the effective permission judging module is used for judging the old state and the new state of the permission authorization files of the main node and the standby node according to the recorded lead-in time of the permission authorization file in the main node and the lead-in time of the permission authorization file in the standby node, and determining the current effective permission authorization file.
9. The system according to claim 8, further comprising a license update control module configured to update the license authorization files of the master node and the standby node according to the currently valid license authorization file, wherein if the import time of the license authorization file of the master node is longer than the import time of the license authorization file of the standby node, the license authorization file of the master node is synchronized to the standby node, and otherwise, the license authorization file of the standby node is synchronized to the master node.
10. A computer-readable storage medium storing a computer program, characterized in that the computer program, when executed, implements the method according to any one of claims 1 to 7.
CN202211654004.2A 2022-12-22 2022-12-22 Software license authorization control method and system in high-availability storage equipment Active CN115630341B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211654004.2A CN115630341B (en) 2022-12-22 2022-12-22 Software license authorization control method and system in high-availability storage equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211654004.2A CN115630341B (en) 2022-12-22 2022-12-22 Software license authorization control method and system in high-availability storage equipment

Publications (2)

Publication Number Publication Date
CN115630341A CN115630341A (en) 2023-01-20
CN115630341B true CN115630341B (en) 2023-03-10

Family

ID=84910797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211654004.2A Active CN115630341B (en) 2022-12-22 2022-12-22 Software license authorization control method and system in high-availability storage equipment

Country Status (1)

Country Link
CN (1) CN115630341B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119207A (en) * 2007-09-21 2008-02-06 北京意科通信技术有限责任公司 Authorization control method aimed at server
CN103703469A (en) * 2011-05-31 2014-04-02 高通股份有限公司 Apparatus and method of managing a licensable item
CN104361267A (en) * 2014-11-19 2015-02-18 厦门海迈科技股份有限公司 Software authorization and protection device and method based on asymmetric cryptographic algorithm
CN110543448A (en) * 2019-07-22 2019-12-06 深圳壹账通智能科技有限公司 data synchronization method, device, equipment and computer readable storage medium
CN114710332A (en) * 2022-03-23 2022-07-05 新华三技术有限公司 License anti-cloning method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5390297A (en) * 1987-11-10 1995-02-14 Auto-Trol Technology Corporation System for controlling the number of concurrent copies of a program in a network based on the number of available licenses
DE69228350T2 (en) * 1991-05-08 1999-09-23 Digital Equipment Corp ADMINISTRATIVE INTERFACE AND FORMAT FOR LICENSE MANAGEMENT SYSTEM
US20050114265A1 (en) * 2003-11-26 2005-05-26 Lingan Satkunanathan Real-time license enforcement system and method
KR100877470B1 (en) * 2005-11-22 2009-01-07 인터내셔널 비지네스 머신즈 코포레이션 Method, system and computer program for a secure backup license server in a license management system
US8082406B1 (en) * 2007-09-27 2011-12-20 Symantec Corporation Techniques for reducing data storage needs using CDP/R

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119207A (en) * 2007-09-21 2008-02-06 北京意科通信技术有限责任公司 Authorization control method aimed at server
CN103703469A (en) * 2011-05-31 2014-04-02 高通股份有限公司 Apparatus and method of managing a licensable item
CN104361267A (en) * 2014-11-19 2015-02-18 厦门海迈科技股份有限公司 Software authorization and protection device and method based on asymmetric cryptographic algorithm
CN110543448A (en) * 2019-07-22 2019-12-06 深圳壹账通智能科技有限公司 data synchronization method, device, equipment and computer readable storage medium
CN114710332A (en) * 2022-03-23 2022-07-05 新华三技术有限公司 License anti-cloning method and device

Also Published As

Publication number Publication date
CN115630341A (en) 2023-01-20

Similar Documents

Publication Publication Date Title
CN103226502B (en) A kind of data calamity is for control system and data reconstruction method
CN111427728B (en) State management method, main/standby switching method and electronic equipment
CN110569085A (en) configuration file loading method and system
CN112583512B (en) Time synchronization device and method
CN112084066A (en) Data processing method, device and storage medium
CN105389231A (en) Database dual-computer backup method and system
WO2011109049A1 (en) Method and apparatus of backing-up subversion repository
AU772217B2 (en) Method, program and arrangement for synchronizing a network manager to a network agent
CN115630341B (en) Software license authorization control method and system in high-availability storage equipment
CN112052127B (en) Data synchronization method and device for dual-computer hot standby environment
CN111858143A (en) Method, apparatus, and computer-readable storage medium for managing storage system
CN103581262A (en) Master-and-backup data synchronizing method, device and system
CN110489491B (en) Full data synchronization device suitable for A/B network double clusters
CN110716828B (en) Database real-time backup method
CN107181608B (en) Method for recovering service and improving performance and operation and maintenance management system
US9158666B2 (en) Computer system and computer system information storage method
CN115328931A (en) Database cluster data verification method and device, storage medium and electronic equipment
CN111241200B (en) Master-slave synchronous processing method and device based on SQLite database
CN114528242A (en) Computer platform dual-system synchronization method, device, equipment and medium
US7644306B2 (en) Method and system for synchronous operation of an application by a purality of processing units
CN110362428A (en) The on-line automatic method and system for restoring database block
CN111142921A (en) Software upgrading method and device
KR102294048B1 (en) Method and system for replicating blockchain application service
CN116962427A (en) Configuration data synchronization method, device and system
CN116431386A (en) Data processing method, system, equipment and storage medium

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