Nothing Special   »   [go: up one dir, main page]

CN113626144B - Method, device, equipment and readable medium for creating and storing double live volumes by clusters - Google Patents

Method, device, equipment and readable medium for creating and storing double live volumes by clusters Download PDF

Info

Publication number
CN113626144B
CN113626144B CN202110810050.6A CN202110810050A CN113626144B CN 113626144 B CN113626144 B CN 113626144B CN 202110810050 A CN202110810050 A CN 202110810050A CN 113626144 B CN113626144 B CN 113626144B
Authority
CN
China
Prior art keywords
pool
active
storage
double
type
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
CN202110810050.6A
Other languages
Chinese (zh)
Other versions
CN113626144A (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 CN202110810050.6A priority Critical patent/CN113626144B/en
Publication of CN113626144A publication Critical patent/CN113626144A/en
Application granted granted Critical
Publication of CN113626144B publication Critical patent/CN113626144B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • G06F3/0665Virtualisation aspects at area level, e.g. provisioning of virtual or logical volumes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The invention discloses a method for creating and storing double active volumes by a cluster, which comprises the following steps: creating a storage type of a cluster, and adding a double-active pool type and a double-active pool name corresponding to the double-active pool in the storage type; in response to receiving a request to create a storage volume using a storage pool, determining whether the storage pool is a dual active pool based on a storage pool type of the storage pool; if the storage pool type is the double-active pool type, judging that the storage pool is the double-active pool, and judging whether the double-active pool is a main pool or not based on the double-active pool name of the double-active pool; and if the dual active pool is the main pool, creating a new volume in the main pool and creating a standby volume in a corresponding standby pool. The invention also discloses a device for creating the storage dual-active volume by the cluster, a computer device and a readable storage medium. According to the invention, the double-active storage pool is managed through the CSI plug-in unit, and a lasting double-active storage space is provided for the K8s container cluster, so that the data reliability of the K8s container cluster can be greatly improved.

Description

Method, device, equipment and readable medium for creating and storing double live volumes by clusters
Technical Field
The present invention relates to the field of storage technologies, and in particular, to a method, an apparatus, a device, and a readable medium for creating a storage dual active volume by using a cluster.
Background
In the field of computers today, with the gradual penetration of hardware virtualization technology, container technology is getting popular among developers more and more with the advantage of 'one-time construction and deployment everywhere'. K8s (kubernetes, container scheduling engine) is used as a container cluster management system, and functions of automatic deployment, automatic expansion and contraction, maintenance and the like of the container clusters can be realized. CSI (Container Storage Interface) plug-in is a K8s defined container storage configuration interface that can provide persistent storage space for a cluster of containers.
K8s is an arrangement management tool of a portable container for container service, more and more companies are hugging K8s, and currently K8s has dominant cloud business processes, so that popularization and landing of hot technologies such as micro-service architecture and the like are promoted, and the development is still in favor.
Before the container technology, more virtual machines are developed, such as vmware and openstack, and a plurality of sub-computers (Linux) can be simulated in an operating system by using the virtual machines, wherein the sub-computers are isolated from each other, but the virtual machines have the defects of slow starting, large occupied space and difficult migration for development and operation staff. For example, an offline platform has been developed in vmware, so that in order to ensure that the virtual machine can be successfully used each time, the virtual machine is exported as an OVF and then carried around, and deployed in a server when the virtual machine is used, so that the defects of the virtual machine are fully reflected.
Then, the containerization technique has developed, which does not require the entire operating system to be virtualized, only requires a small-scale environment to be virtualized, and has a very fast start-up speed without consuming substantially additional system resources except for running applications therein. Dock is the most widely used container technology that creates a service by packaging images, launching the container. However, as applications become more complex, the number of containers becomes more and more, thereby deriving significant problems in managing the operation and maintenance containers, and as cloud computing develops, the cloud becomes the greatest challenge, and the containers drift. Under the driving of the service, k8s is introduced, a set of brand new distributed architecture leading scheme based on the container technology is provided, and the development of the whole container technology field is a great breakthrough and innovation.
The storage dual-activity characteristic means that two storage data centers which are mutually backed up are in an operation state, and when one data center fails, the service is automatically switched to the other data center. The problem that the conventional disaster recovery service can not be automatically switched is solved. A high level of data reliability and service continuity can be provided to the user.
The current CSI plug-in can only use a common storage pool to create a storage volume and mount the storage volume to a K8s container cluster for use. The dual-active storage pool is used for simultaneously storing two storage pools which are in a main-standby relation, the creation and the deletion of the dual-active storage volumes need to be simultaneously executed on the main pool and the standby pool, and the CSI plug-in does not provide the function of managing the dual-active storage pool.
Disclosure of Invention
Accordingly, an objective of the embodiments of the present invention is to provide a method, apparatus, device and readable medium for creating and storing dual-active volumes for a cluster, where a K8s container cluster can manage dual-active storage pools through CSI plug-ins, and provide a persistent dual-active storage space for the K8s container cluster, so that the data reliability of the K8s container cluster can be greatly improved.
Based on the above objects, an aspect of the embodiments of the present invention provides a method for creating a storage dual active volume by a cluster, including the following steps: creating a storage type of a cluster, and adding a double-active pool type and a double-active pool name corresponding to a double-active pool in the storage type; in response to receiving a request to create a storage volume using a storage pool, determining whether the storage pool is a dual active pool based on a storage pool type of the storage pool; if the storage pool type is a double-active pool type, judging that the storage pool is a double-active pool, and judging whether the double-active pool is a main pool or not based on the double-active pool name of the double-active pool; and if the dual active pool is the main pool, creating a new volume in the main pool, and creating a standby volume in a corresponding standby pool.
In some embodiments, further comprising: if the double active pool is not the main pool, judging that the double active pool is a standby pool; a new volume is created in the corresponding primary pool and a backup volume is created in the backup pool.
In some implementations, creating the storage type of the cluster includes: creating storage types of the cluster, wherein the storage types comprise a storage pool type, a storage pool name and a storage pool IO group name.
In some embodiments, adding the dual active pool type and the dual active pool name corresponding to the dual active pool in the storage type comprises: and adding a double-active-pool type identifier, a double-active-pool name identifier and a double-active-pool IO group name identifier corresponding to the double-active pool in the configuration file of the storage type.
In some embodiments, determining whether the dual live pool is a primary pool based on a dual live pool name of the dual live pool comprises: judging whether a main pool identification field in a double-active pool name of the double-active pool is yes or not; if yes, judging that the double-active pool is a main pool; if the main pool identification field in the pool name of the double active pool is NO, judging that the double active pool is not the main pool.
In some embodiments, further comprising: if the storage pool type is not the dual active pool type, a storage common volume is created.
In some embodiments, the clusters schedule engine clusters for container orchestration.
In another aspect of the embodiment of the present invention, there is also provided an apparatus for creating a storage dual active volume by a cluster, including: the first module is configured to create a storage type of the cluster, and add a double-active pool type and a double-active pool name corresponding to the double-active pool in the storage type; a second module configured to determine, in response to receiving a request to create a storage volume using a storage pool, whether the storage pool is a dual active pool based on a storage pool type of the storage pool; the third module is configured to determine that the storage pool is a dual-active pool if the storage pool type is a dual-active pool type, and determine whether the dual-active pool is a main pool based on a dual-active pool name of the dual-active pool; and a fourth module configured to create a new volume in the primary pool if the dual active pool is the primary pool, and create a backup volume in a corresponding backup pool.
In still another aspect of the embodiment of the present invention, there is also provided a computer apparatus, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions when executed by the processor performing steps of a method comprising: creating a storage type of a cluster, and adding a double-active pool type and a double-active pool name corresponding to a double-active pool in the storage type; in response to receiving a request to create a storage volume using a storage pool, determining whether the storage pool is a dual active pool based on a storage pool type of the storage pool; if the storage pool type is a double-active pool type, judging that the storage pool is a double-active pool, and judging whether the double-active pool is a main pool or not based on the double-active pool name of the double-active pool; and if the dual active pool is the main pool, creating a new volume in the main pool, and creating a standby volume in a corresponding standby pool.
In some embodiments, further comprising: if the double active pool is not the main pool, judging that the double active pool is a standby pool; a new volume is created in the corresponding primary pool and a backup volume is created in the backup pool.
In some implementations, creating the storage type of the cluster includes: creating storage types of the cluster, wherein the storage types comprise a storage pool type, a storage pool name and a storage pool IO group name.
In some embodiments, adding the dual active pool type and the dual active pool name corresponding to the dual active pool in the storage type comprises: and adding a double-active-pool type identifier, a double-active-pool name identifier and a double-active-pool IO group name identifier corresponding to the double-active pool in the configuration file of the storage type.
In some embodiments, determining whether the dual live pool is a primary pool based on a dual live pool name of the dual live pool comprises: judging whether a main pool identification field in a double-active pool name of the double-active pool is yes or not; if yes, judging that the double-active pool is a main pool; if the main pool identification field in the pool name of the double active pool is NO, judging that the double active pool is not the main pool.
In some embodiments, further comprising: if the storage pool type is not the dual active pool type, a storage common volume is created.
In some embodiments, the clusters schedule engine clusters for container orchestration.
In yet another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium storing a computer program which, when executed by a processor, implements the method steps as described above.
The invention has the following beneficial technical effects: the K8s container cluster can manage the double-active storage pool through the CSI plug-in unit, and a lasting double-active storage space is provided for the K8s container cluster, so that the data reliability of the K8s container cluster can be greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are necessary for the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention and that other embodiments may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an embodiment of a method for creating a storage dual active volume for a cluster provided by the present invention;
FIG. 2 is a schematic diagram of an embodiment of an apparatus for creating storage dual active volumes for a cluster provided by the present invention;
FIG. 3 is a schematic diagram of an embodiment of a computer device provided by the present invention;
fig. 4 is a schematic diagram of an embodiment of a computer readable storage medium provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention will be described in further detail with reference to the accompanying drawings.
It should be noted that, in the embodiments of the present invention, all the expressions "first" and "second" are used to distinguish two entities with the same name but different entities or different parameters, and it is noted that the "first" and "second" are only used for convenience of expression, and should not be construed as limiting the embodiments of the present invention, and the following embodiments are not described one by one.
Based on the above object, in a first aspect of the embodiments of the present invention, an embodiment of a method for creating a storage dual active volume by a cluster is provided. FIG. 1 is a schematic diagram illustrating an embodiment of a method for creating a storage dual active volume for a cluster according to the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
s01, creating a storage type of a cluster, and adding a double-active pool type and a double-active pool name corresponding to the double-active pool in the storage type;
s02, responding to the received request for creating the storage volume by using the storage pool, and judging whether the storage pool is a dual-activity pool or not based on the storage pool type of the storage pool;
s03, if the storage pool type is the double-active pool type, judging that the storage pool is the double-active pool, and judging whether the double-active pool is a main pool or not based on the double-active pool name of the double-active pool; and
s04, if the dual active pool is the main pool, creating a new volume in the main pool, and creating a standby volume in a corresponding standby pool.
In this embodiment, when creating a volume using a storage pool through a CSI (Container Storage Interface ) plug-in, a storage pool type, a storage pool name, a storage pool IO group name, and the like, which are used, need to be created first. To use dual active storage pools, the following definitions are added to the StorageClass profile: the storage pool type volLevel is added with a double-active pool type, such as aa, and the storage pool type used by the identification is a double-active storage pool; the method comprises the steps of identifying a primary storage pool name and a secondary storage pool name by using volPoolName, and identifying another dual-active storage pool name by using volAuxPoolName; storage pool IO group names, one storage pool IO group name is identified by volIOGrp, and the other storage pool IO group name is identified by volAuxPolName.
In this embodiment, the flow of calling the container storage interface to create a volume using the dual live storage pool is as follows: obtaining a storage pool type; if the storage pool type is a dual-active storage pool, the dual-active storage volume creation process is carried out, otherwise, the ordinary volume creation process is carried out; acquiring storage pool information of a volPoolName identifier; checking whether primary of primary identification field is true in volPoolName storage pool information; if yes, the volPoolName storage pool is taken as a main pool, a volume is firstly created on the volPoolName storage pool, and then a backup volume is created on the volAuxPoolName storage pool; otherwise, the volAuxPooName storage pool is taken as a main pool, firstly, a volume is created on the volAuxPooName storage pool, and then, a backup volume is created in the volPooName storage pool; and the creation of the main and standby volumes is completed, and the flow is ended.
Where CSI is an industry standard interface specification established by community membrane federation from Kubernetes, mesos, docker, etc., intended to expose any storage system to a containerized application. To assist the storage provider in developing CSI compatible plug-ins, kubernetes authorities provide some CSI sidecar containers.
The CSI specification defines the minimum set of operations and deployment recommendations for the storage provider to implement CSI compatible Volume plug in. The main focus of the CSI specification is on declaring the interface that Volume plug must implement.
In some embodiments of the invention, further comprising: if the double-active pool is not the main pool, judging that the double-active pool is a standby pool; a new volume is created in the corresponding primary pool and a backup volume is created in the backup pool.
In some embodiments of the invention, creating the storage type of the cluster includes: creating storage types of the cluster, wherein the storage types comprise a storage pool type, a storage pool name and a storage pool IO group name.
In some embodiments of the present invention, adding the dual-active pool type and the dual-active pool name corresponding to the dual-active pool in the storage type includes: and adding a double-active-pool type identifier, a double-active-pool name identifier and a double-active-pool IO group name identifier corresponding to the double-active pool in the configuration file of the storage type.
In some embodiments of the invention, determining whether a dual active pool is a primary pool based on a dual active pool name of the dual active pool comprises: judging whether a main pool identification field in a double-active pool name of the double-active pool is yes or not; if the main pool identification field in the pool name of the double-active pool is yes, judging that the double-active pool is the main pool; if the primary pool identification field in the pool name of the dual-active pool is negative, judging that the dual-active pool is not the primary pool.
In some embodiments of the invention, further comprising: if the storage pool type is not the dual active pool type, a storage normal volume is created.
In some embodiments of the invention, the clusters schedule the engine clusters for the containers.
In this embodiment, the cluster is K8s (kubernetes, container orchestration scheduling engine). The container scheduling engine is a portable container scheduling management tool for container service, more and more companies are hugging k8s, and the current k8s already dominates cloud business processes, so that popularization and landing of hot technologies such as micro-service architecture and the like are promoted, and the development is still in favor.
Before the container technology, more virtual machines are developed, such as vmware and openstack, and a plurality of sub-computers (Linux) can be simulated in an operating system by using the virtual machines, wherein the sub-computers are isolated from each other, but the virtual machines have the defects of slow starting, large occupied space and difficult migration for development and operation staff. For example, an offline platform has been developed in vmware, so that in order to ensure that the virtual machine can be successfully used each time, the virtual machine is exported as an OVF and then carried around, and deployed in a server when the virtual machine is used, so that the defects of the virtual machine are fully reflected.
Then, the containerization technique has developed, which does not require the entire operating system to be virtualized, only requires a small-scale environment to be virtualized, and has a very fast start-up speed without consuming substantially additional system resources except for running applications therein. Dock is the most widely used container technology that creates a service by packaging images, launching the container. However, as applications become more complex, the number of containers becomes more and more, thereby deriving significant problems in managing the operation and maintenance containers, and as cloud computing develops, the cloud becomes the greatest challenge, and the containers drift. Under the driving of the service, k8s is introduced, a set of brand new distributed architecture leading scheme based on the container technology is provided, and the development of the whole container technology field is a great breakthrough and innovation.
In this embodiment, the K8s container set may manage the dual-active storage pool through the CSI plugin, and provide a persistent dual-active storage space for the K8s container set, so as to improve the data reliability of the K8s container set.
It should be noted that, the steps in the embodiments of the method for creating and storing dual active volumes by using clusters may be intersected, replaced, added and deleted, so that the method for creating and storing dual active volumes by using clusters through reasonable permutation and combination transformation shall also belong to the protection scope of the present invention, and shall not limit the protection scope of the present invention to the embodiments.
Based on the above object, a second aspect of the embodiments of the present invention proposes an apparatus for creating a storage dual active volume by a cluster. FIG. 2 is a schematic diagram illustrating an embodiment of an apparatus for creating a storage dual active volume for a cluster according to the present invention. As shown in fig. 2, the embodiment of the invention includes the following modules: a first module S11, configured to create a storage type of the cluster, and add a dual-active pool type and a dual-active pool name corresponding to the dual-active pool in the storage type; a second module S12 configured to determine, in response to receiving a request to create a storage volume using a storage pool, whether the storage pool is a dual active pool based on a storage pool type of the storage pool; a third module S13, configured to determine that the storage pool is a dual-active pool if the storage pool type is a dual-active pool type, and determine whether the dual-active pool is a primary pool based on a dual-active pool name of the dual-active pool; and a fourth module S14 configured to create a new volume in the primary pool and create a spare volume in the corresponding spare pool if the dual active pool is the primary pool.
In some embodiments of the invention, the fourth module S14 is further configured to: if the double-active pool is not the main pool, judging that the double-active pool is a standby pool; a new volume is created in the corresponding primary pool and a backup volume is created in the backup pool.
In some embodiments of the invention, the first module S11 is further configured to: creating storage types of the cluster, wherein the storage types comprise a storage pool type, a storage pool name and a storage pool IO group name.
In some embodiments of the invention, the first module S11 is further configured to: and adding a double-active-pool type identifier, a double-active-pool name identifier and a double-active-pool IO group name identifier corresponding to the double-active pool in the configuration file of the storage type.
In some embodiments of the invention, the third module S13 is further configured to: judging whether a main pool identification field in a double-active pool name of the double-active pool is yes or not; if the main pool identification field in the pool name of the double-active pool is yes, judging that the double-active pool is the main pool; if the primary pool identification field in the pool name of the dual-active pool is negative, judging that the dual-active pool is not the primary pool.
In some embodiments of the invention, the first module S11 is further configured to: if the storage pool type is not the dual active pool type, a storage normal volume is created.
In some embodiments of the invention, the clusters schedule the engine clusters for the containers.
Based on the above object, a third aspect of the embodiments of the present invention proposes a computer device. Fig. 3 is a schematic diagram of an embodiment of a computer device provided by the present invention. As shown in fig. 3, an embodiment of the present invention includes the following means: at least one processor S21; and a memory S22, the memory S22 storing computer instructions S23 executable on the processor, the instructions when executed by the processor performing the steps of the method comprising: creating a storage type of a cluster, and adding a double-active pool type and a double-active pool name corresponding to the double-active pool in the storage type; in response to receiving a request to create a storage volume using a storage pool, determining whether the storage pool is a dual active pool based on a storage pool type of the storage pool; if the storage pool type is the double-active pool type, judging that the storage pool is the double-active pool, and judging whether the double-active pool is a main pool or not based on the double-active pool name of the double-active pool; and if the dual active pool is the main pool, creating a new volume in the main pool and creating a standby volume in a corresponding standby pool.
In some embodiments of the invention, further comprising: if the double-active pool is not the main pool, judging that the double-active pool is a standby pool; a new volume is created in the corresponding primary pool and a backup volume is created in the backup pool.
In some embodiments of the invention, creating the storage type of the cluster includes: creating storage types of the cluster, wherein the storage types comprise a storage pool type, a storage pool name and a storage pool IO group name.
In some embodiments of the present invention, adding the dual-active pool type and the dual-active pool name corresponding to the dual-active pool in the storage type includes: and adding a double-active-pool type identifier, a double-active-pool name identifier and a double-active-pool IO group name identifier corresponding to the double-active pool in the configuration file of the storage type.
In some embodiments of the invention, determining whether a dual active pool is a primary pool based on a dual active pool name of the dual active pool comprises: judging that the main pool identification field in the double-living pool name of the double-living pool is yes; if the main pool identification field in the pool name of the double-active pool is yes, judging that the double-active pool is the main pool; if the primary pool identification field in the pool name of the dual-active pool is negative, judging that the dual-active pool is not the primary pool.
In some embodiments of the invention, further comprising: if the storage pool type is not the dual active pool type, a storage normal volume is created.
In some embodiments of the invention, the clusters schedule the engine clusters for the containers.
The invention also provides a computer readable storage medium. Fig. 4 is a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. As shown in fig. 4, the computer-readable storage medium stores S31 a computer program S32 which, when executed by a processor, performs the method as above.
Finally, it should be noted that, as will be appreciated by those skilled in the art, implementing all or part of the above-described methods in the embodiments may be implemented by a computer program to instruct related hardware, and the program for creating a method for storing dual live volumes in a cluster may be stored in a computer readable storage medium, where the program when executed may include the flow of the embodiments of the methods described above. The storage medium of the program may be a magnetic disk, an optical disk, a read-only memory (ROM), a random-access memory (RAM), or the like. The computer program embodiments described above may achieve the same or similar effects as any of the method embodiments described above.
Furthermore, the method disclosed according to the embodiment of the present invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. The above-described functions defined in the methods disclosed in the embodiments of the present invention are performed when the computer program is executed by a processor.
Furthermore, the above-described method steps and system units may also be implemented using a controller and a computer-readable storage medium storing a computer program for causing the controller to implement the above-described steps or unit functions.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general purpose or special purpose computer or general purpose or special purpose processor. Further, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that as used herein, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The foregoing embodiment of the present invention has been disclosed with reference to the number of embodiments for the purpose of description only, and does not represent the advantages or disadvantages of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, and the program may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will appreciate that: the above discussion of any embodiment is merely exemplary and is not intended to imply that the scope of the disclosure of embodiments of the invention, including the claims, is limited to such examples; combinations of features of the above embodiments or in different embodiments are also possible within the idea of an embodiment of the invention, and many other variations of the different aspects of the embodiments of the invention as described above exist, which are not provided in detail for the sake of brevity. Therefore, any omission, modification, equivalent replacement, improvement, etc. of the embodiments should be included in the protection scope of the embodiments of the present invention.

Claims (7)

1. A method for cluster creation of storage dual live volumes, comprising the steps of:
creating a storage type of a cluster, and adding a double-active pool type and a double-active pool name corresponding to a double-active pool in the storage type;
in response to receiving a request to create a storage volume using a storage pool, determining whether the storage pool is a dual active pool based on a storage pool type of the storage pool;
if the storage pool type is a double-active pool type, judging that the storage pool is a double-active pool, and judging whether the double-active pool is a main pool or not based on the double-active pool name of the double-active pool; and
if the dual active pool is the main pool, a new volume is created in the main pool, and a standby volume is created in the corresponding standby pool,
wherein adding the double-active pool type and the double-active pool name corresponding to the double-active pool in the storage type comprises:
adding a double-active-pool type identifier, a double-active-pool name identifier and a double-active-pool IO group name identifier corresponding to the double-active pool in the configuration file of the storage type,
wherein determining whether the dual active pool is a primary pool based on a dual active pool name of the dual active pool comprises:
judging whether a main pool identification field in a double-active pool name of the double-active pool is yes or not;
if yes, judging that the double-active pool is a main pool;
if the main pool identification field in the pool name of the double active pool is no, judging that the double active pool is not the main pool,
and wherein the clusters orchestrate a scheduling engine cluster for the containers.
2. The method of cluster creation storage dual active volumes of claim 1, further comprising:
if the double active pool is not the main pool, judging that the double active pool is a standby pool;
a new volume is created in the corresponding primary pool and a backup volume is created in the backup pool.
3. The method for creating a storage dual active volume for a cluster of claim 1, wherein creating a storage type for the cluster comprises:
creating storage types of the cluster, wherein the storage types comprise a storage pool type, a storage pool name and a storage pool IO group name.
4. The method of cluster creation storage dual active volumes of claim 1, further comprising:
if the storage pool type is not the dual active pool type, a storage common volume is created.
5. An apparatus for cluster creation of storage dual live volumes, comprising:
the first module is configured to create a storage type of the cluster, and add a double-active pool type and a double-active pool name corresponding to the double-active pool in the storage type;
a second module configured to determine, in response to receiving a request to create a storage volume using a storage pool, whether the storage pool is a dual active pool based on a storage pool type of the storage pool;
the third module is configured to determine that the storage pool is a dual-active pool if the storage pool type is a dual-active pool type, and determine whether the dual-active pool is a main pool based on a dual-active pool name of the dual-active pool; and
a fourth module configured to create a new volume in the primary pool and create a backup volume in a corresponding backup pool if the dual active pool is the primary pool,
wherein adding the double-active pool type and the double-active pool name corresponding to the double-active pool in the storage type comprises:
adding a double-active-pool type identifier, a double-active-pool name identifier and a double-active-pool IO group name identifier corresponding to the double-active pool in the configuration file of the storage type,
wherein determining whether the dual active pool is a primary pool based on a dual active pool name of the dual active pool comprises:
judging whether a main pool identification field in a double-active pool name of the double-active pool is yes or not;
if yes, judging that the double-active pool is a main pool;
if the main pool identification field in the pool name of the double active pool is no, judging that the double active pool is not the main pool,
and wherein the clusters orchestrate a scheduling engine cluster for the containers.
6. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, which when executed by the processor, perform the steps of the method of any one of claims 1-4.
7. A computer-readable storage medium storing
Computer program, characterized in that it realizes the steps of the method according to any one of claims 1-4 when it is executed by a processor.
CN202110810050.6A 2021-07-18 2021-07-18 Method, device, equipment and readable medium for creating and storing double live volumes by clusters Active CN113626144B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110810050.6A CN113626144B (en) 2021-07-18 2021-07-18 Method, device, equipment and readable medium for creating and storing double live volumes by clusters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110810050.6A CN113626144B (en) 2021-07-18 2021-07-18 Method, device, equipment and readable medium for creating and storing double live volumes by clusters

Publications (2)

Publication Number Publication Date
CN113626144A CN113626144A (en) 2021-11-09
CN113626144B true CN113626144B (en) 2023-08-18

Family

ID=78380136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110810050.6A Active CN113626144B (en) 2021-07-18 2021-07-18 Method, device, equipment and readable medium for creating and storing double live volumes by clusters

Country Status (1)

Country Link
CN (1) CN113626144B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114138408B (en) * 2021-11-12 2024-05-03 苏州浪潮智能科技有限公司 Clone volume creation method, clone volume creation device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109828868A (en) * 2019-01-04 2019-05-31 新华三技术有限公司成都分公司 Date storage method, device, management equipment and dual-active data-storage system
CN111338852A (en) * 2020-02-29 2020-06-26 苏州浪潮智能科技有限公司 Method, system, equipment and medium for creating storage double live volume snapshot
CN112416245A (en) * 2020-09-18 2021-02-26 济南浪潮数据技术有限公司 Storage volume management method based on multi-architecture container cloud platform and related components

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9306803B2 (en) * 2009-10-30 2016-04-05 Hewlett Packard Enterprise Development Lp Methods and devices for implementing configuration synchronization

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109828868A (en) * 2019-01-04 2019-05-31 新华三技术有限公司成都分公司 Date storage method, device, management equipment and dual-active data-storage system
CN111338852A (en) * 2020-02-29 2020-06-26 苏州浪潮智能科技有限公司 Method, system, equipment and medium for creating storage double live volume snapshot
CN112416245A (en) * 2020-09-18 2021-02-26 济南浪潮数据技术有限公司 Storage volume management method based on multi-architecture container cloud platform and related components

Also Published As

Publication number Publication date
CN113626144A (en) 2021-11-09

Similar Documents

Publication Publication Date Title
US11855904B2 (en) Automated migration of compute instances to isolated virtual networks
US9575856B2 (en) Preventing migration of a virtual machine from affecting disaster recovery of replica
US20200110550A1 (en) Multi-node removal
KR20170022028A (en) Method and apparatus for security checking of image for container
US8635425B1 (en) Upgrading computing devices
CN113032085A (en) Management method, device, server, management system and medium of cloud operating system
CN111143023B (en) Resource changing method and device, equipment and storage medium
CN105635311A (en) Method for synchronizing resource pool information in cloud management platform
CN111464603A (en) Server capacity expansion method and system
CN113626144B (en) Method, device, equipment and readable medium for creating and storing double live volumes by clusters
CN114157639B (en) Method, device and equipment for collecting information of intelligent network card of server and readable medium
CN112667711B (en) MySQL read-only instance management method, system and computer readable medium
CN111176904B (en) Method, system, equipment and medium for data backup under private cloud architecture
CN113296891A (en) Multi-scene knowledge graph processing method and device based on platform
US11893380B2 (en) Super bundles for software-defined datacenter upgrades
CN111338751A (en) Cross-pool migration method and device for data in same ceph cluster
CN116225617A (en) Management migration method and device for container instance, electronic equipment and storage medium
CN114564211A (en) Cluster deployment method, cluster deployment device, equipment and medium
CN114064209A (en) Method, device and equipment for creating cloud host through mirror image and readable medium
CN102156656B (en) Method and equipment for acquiring virtual frame/slot number under virtualization platform
US20230342061A1 (en) Method, electronic device and computer program product for data processing
CN116546530B (en) Core network configuration method, device, equipment, storage medium and communication system
CN117389713B (en) Storage system application service data migration method, device, equipment and medium
CN111897554A (en) Upgrading method, device and system
CN113407304B (en) Virtual machine scheduling and security access method, device, equipment and readable 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