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

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

Info

Publication number
CN113626144A
CN113626144A CN202110810050.6A CN202110810050A CN113626144A CN 113626144 A CN113626144 A CN 113626144A CN 202110810050 A CN202110810050 A CN 202110810050A CN 113626144 A CN113626144 A CN 113626144A
Authority
CN
China
Prior art keywords
pool
storage
double
active
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.)
Granted
Application number
CN202110810050.6A
Other languages
Chinese (zh)
Other versions
CN113626144B (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

Images

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)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (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 live volumes by a cluster, which comprises the following steps: creating a storage type of the 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 for creating a storage volume using a storage pool, determining whether the storage pool is a double-active pool based on the 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 name of the double-active pool; and if the double active pools are main pools, creating a new volume in the main pools and creating standby volumes in the corresponding standby pools. The invention also discloses a device for establishing the storage double live volumes by the cluster, computer equipment and a readable storage medium. According to the invention, the double-active storage pool is managed through the CSI plug-in, and a persistent 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 and equipment for creating and storing double live volumes by cluster and readable medium
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 live volume by a cluster.
Background
In the field of computers today, with the gradual deepening of hardware virtualization technology, the container technology is more and more popular with developers due to the advantages of 'one-time construction and everywhere deployment'. The K8s (kubernets, container scheduling engine) as a container cluster management system can implement the functions of automatic deployment, automatic expansion and contraction, maintenance and the like of a container cluster. The CSI (container Storage interface) plug-in is a container Storage configuration interface defined by K8s and can provide a persistent Storage space for the container cluster.
K8s is an orchestration management tool for portable containers for container services, more and more companies are embracing K8s, and K8s has dominated cloud business processes, promoting popularization and falling of hot technologies such as micro-service architecture, and is developing vigorously.
Before the container technology, many 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 start, large occupied space and difficulty in migration for development and operation and maintenance personnel. For example, an offline platform is developed in vmware, and in order to ensure that the virtual machine can be used smoothly each time, the virtual machine is exported as an OVF, then the OVF is carried around, and the OVF is deployed in a server when being used, so that the defects of the virtual machine are fully embodied.
Then, the container technology comes up, it does not need to virtualize the whole operating system, only needs to virtualize a small-scale environment, and the starting speed is very fast, except running the application therein, basically does not consume extra system resources. Docker is the most widely used container technology, and creates a service by packaging images and starting containers. However, as applications become more complex, the number of containers also becomes more and more, which leads to a significant problem of managing operation and maintenance containers, and as cloud computing develops, the cloud end has the greatest challenge, and the containers drift. Under the drive of the service, k8s comes out, a set of brand-new container technology-based distributed architecture leading scheme is provided, and the development in the whole container technology field is a major breakthrough and innovation.
The storage dual-active characteristic means that two storage data centers which are backups of each other are in an operating state, and when one data center fails, a service is automatically switched to the other data center. The problem that the traditional disaster recovery service cannot 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 create storage volumes using ordinary storage pools and mount to the K8s container cluster for use. The dual-active storage pool has two storage pools which are in a primary-standby relationship at the same time, the creation and deletion of the dual-active storage pool are required to be executed on the primary pool and the standby pool at the same time, and the CSI plug-in does not provide the function of managing the dual-active storage pool.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method, an apparatus, a device, and a readable medium for creating a storage dual live volume by a cluster, where a K8s container cluster may manage a dual live storage pool through a CSI plugin, and provide a persistent dual live storage space for a K8s container cluster, so as to greatly improve data reliability of the K8s container cluster.
Based on the above object, an aspect of the embodiments of the present invention provides a method for creating a storage dual live volume by a cluster, including the following steps: creating a storage type of the cluster, and adding a live-active pool type and a live-active pool name corresponding to the live-active pool in the storage type; in response to receiving a request for creating a storage volume by using a storage pool, judging whether the storage pool is a double-active pool or not based on the 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 name of the double-active pool; and if the double active pools are main pools, creating new volumes in the main pools and creating standby volumes in corresponding standby pools.
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 embodiments, creating the storage type of the cluster comprises: and creating a storage type of the cluster, wherein the storage type comprises a storage pool type, a storage pool name and a storage pool IO group name.
In some embodiments, adding the live-active pool type and the live-active pool name corresponding to the live-active pool to 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, determining whether the live-action pool is a primary pool based on the live-action pool name of the live-action pool comprises: judging whether a main pool identification field in the name of the double-active pool is yes; if the main pool identification field in the double-active pool name of the double-active pool is yes, judging the double-active pool as the main pool; and if the main pool identification field in the double-active pool name of the double-active pool is not, judging that the double-active pool is not the main pool.
In some embodiments, further comprising: and if the storage pool type is not the double-active pool type, creating a storage common volume.
In some embodiments, the cluster is a container orchestration scheduling engine cluster.
In another aspect of the embodiments of the present invention, a device for creating and storing dual live volumes by a cluster is further provided, including: the first module is used for configuring a storage type used for creating a cluster and adding a double-activity pool type and a double-activity pool name corresponding to a double-activity pool in the storage type; a second module configured to determine whether a storage pool is a live-active pool based on a storage pool type of the storage pool in response to receiving a request to create a storage volume using the storage pool; a third module, configured to determine that the storage pool is a live-active pool if the storage pool type is a live-active pool type, and determine whether the live-active pool is a main pool based on a live-active pool name of the live-active pool; and a fourth module configured to create a new volume in the main pool and a backup volume in the corresponding backup pool if the dual active pool is the main pool.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing steps of the method comprising: creating a storage type of the cluster, and adding a live-active pool type and a live-active pool name corresponding to the live-active pool in the storage type; in response to receiving a request for creating a storage volume by using a storage pool, judging whether the storage pool is a double-active pool or not based on the 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 name of the double-active pool; and if the double active pools are main pools, creating new volumes in the main pools and creating standby volumes in corresponding standby pools.
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 embodiments, creating the storage type of the cluster comprises: and creating a storage type of the cluster, wherein the storage type comprises a storage pool type, a storage pool name and a storage pool IO group name.
In some embodiments, adding the live-active pool type and the live-active pool name corresponding to the live-active pool to 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, determining whether the live-action pool is a primary pool based on the live-action pool name of the live-action pool comprises: judging whether a main pool identification field in the name of the double-active pool is yes; if the main pool identification field in the double-active pool name of the double-active pool is yes, judging the double-active pool as the main pool; and if the main pool identification field in the double-active pool name of the double-active pool is not, judging that the double-active pool is not the main pool.
In some embodiments, further comprising: and if the storage pool type is not the double-active pool type, creating a storage common volume.
In some embodiments, the cluster is a container orchestration scheduling engine cluster.
In a further aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has the following beneficial technical effects: the K8s container cluster can manage the double-active storage pool through the CSI plug-in and provide a persistent double-active storage space 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 present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a diagram illustrating an embodiment of a method for creating a storage dual live volume by a cluster according to the present invention;
FIG. 2 is a diagram illustrating an embodiment of a device for creating a storage dual live volume by a cluster according to 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 are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In view of the foregoing, in a first aspect of the embodiments of the present invention, an embodiment of a method for creating a storage dual live volume by a cluster is provided. FIG. 1 is a diagram illustrating an embodiment of a method for creating a storage dual live volume by 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 the cluster, and adding a live-active pool type and a live-active pool name corresponding to the live-active pool in the storage type;
s02, in response to receiving a request for creating a storage volume by using the storage pool, judging whether the storage pool is a double-active pool or not based on the storage pool type of the storage pool;
s03, if the type of the storage pool is a double-living pool type, judging that the storage pool is a double-living pool, and judging whether the double-living pool is a main pool or not based on the name of the double-living pool; and
and S04, if the double active pool is the main pool, creating a new volume in the main pool and creating a standby volume in the 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 class (Storage type) needs to be created first to specify a Storage pool type, a Storage pool name, a Storage pool IO group name, and the like to be used. To use the dual active pool, the following definitions are added to the StorageClass configuration file: adding a double-active pool type, such as aa, to the storage pool type volLevel, and identifying the used storage pool type as a double-active storage pool; identifying a pool name of one double-active storage pool by using volPoolName, and identifying a pool name of the other double-active storage pool by using volAuxPoolName; the storage pool IO group name is used for identifying one storage pool IO group name by using volIOGrp and identifying the other storage pool IO group name by using volAuxPoolName.
In this embodiment, the flow of calling the container storage interface to create a volume using the live-active storage pool is as follows: acquiring the type of a storage pool; if the storage pool type is a double-active storage pool, a double-active storage volume creation process is carried out, otherwise, a common volume creation process is carried out; acquiring storage pool information of a volPoolName identifier; checking whether primary pool identification field primary in volPoolName storage pool information is true; if so, the volPoolName storage pool is used as a main pool, a volume is created on the volPoolName storage pool firstly, and then a standby volume is created in the volAuxPoolName storage pool; otherwise, the volAuxPoolName storage pool is used as a main pool, a volume is created on the volAuxPoolName storage pool firstly, and then a backup volume is created in the volPoolName storage pool; and finishing the process after the creation of the main and standby volumes is finished.
The CSI is an industry standard interface specification jointly formulated by community members from kubernets, messes, Docker, and the like, and is intended to expose any storage system to containerized applications. To assist storage providers in developing CSI-compatible plug-ins, kubernets officials have provided some CSI sidecar containers.
The CSI specification defines a minimum operating set and deployment recommendation for a storage provider to implement a CSI compatible Volume plug. The main focus of the CSI specification is to declare 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 the double-active pool as 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 comprises: and creating a storage type of the cluster, wherein the storage type comprises a storage pool type, a storage pool name and a storage pool IO group name.
In some embodiments of the present invention, adding the live-active pool type and the live-active pool name corresponding to the live-active pool to 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 a configuration file of the storage type.
In some embodiments of the present invention, determining whether the live-action pool is a main pool based on the live-action pool name of the live-action pool comprises: judging whether a main pool identification field in the name of the double-active pool is yes; if the main pool identification field in the name of the double-active pool is yes, the double-active pool is judged to be the main pool; and if the main pool identification field in the double-active pool name of the double-active pool is negative, judging that the double-active pool is not the main pool.
In some embodiments of the invention, further comprising: and if the storage pool type is not the double-active pool type, creating a storage common volume.
In some embodiments of the invention, the cluster schedules a cluster of engines for a container orchestration.
In this embodiment, the cluster is K8s (kubernets, container orchestration scheduling engine). The container orchestration scheduling engine is an orchestration management tool of a portable container generated for container services, more and more companies are embracing k8s, and currently k8s already dominates the cloud business process, promotes the popularization and falling of hot technologies such as micro-service architecture and the like, and is developing vigorously.
Before the container technology, many 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 start, large occupied space and difficulty in migration for development and operation and maintenance personnel. For example, an offline platform is developed in vmware, and in order to ensure that the virtual machine can be used smoothly each time, the virtual machine is exported as an OVF, then the OVF is carried around, and the OVF is deployed in a server when being used, so that the defects of the virtual machine are fully embodied.
Then, the container technology comes up, it does not need to virtualize the whole operating system, only needs to virtualize a small-scale environment, and the starting speed is very fast, except running the application therein, basically does not consume extra system resources. Docker is the most widely used container technology, and creates a service by packaging images and starting containers. However, as applications become more complex, the number of containers also becomes more and more, which leads to a significant problem of managing operation and maintenance containers, and as cloud computing develops, the cloud end has the greatest challenge, and the containers drift. Under the drive of the service, k8s comes out, a set of brand-new container technology-based distributed architecture leading scheme is provided, and the development in the whole container technology field is a major breakthrough and innovation.
In this embodiment, the K8s container set may manage the live-active storage pool through the CSI plugin, and provide a persistent live-active storage space for the K8s container cluster, thereby improving the data reliability of the K8s container cluster.
It should be particularly noted that, the steps in the embodiments of the method for creating a storage dual live volume by a cluster may be intersected, replaced, added, or deleted, and therefore, these reasonable permutation and combination transformations should also belong to the scope of the present invention for the method for creating a storage dual live volume by a cluster, and should not limit the scope of the present invention to the embodiments.
In view of the above object, a second aspect of the embodiments of the present invention provides an apparatus for creating a storage dual live volume by a cluster. FIG. 2 is a diagram illustrating an embodiment of a cluster creation apparatus for storing dual live volumes. As shown in fig. 2, the embodiment of the present invention includes the following modules: a first module S11, configured to create a storage type of a cluster, and add a live-active pool type and a live-active pool name corresponding to a live-active pool in the storage type; a second module S12 configured to, in response to receiving a request to create a storage volume using a storage pool, determine whether the storage pool is a dual-active pool based on the storage pool type for the storage pool; a third module S13, configured to determine that the storage pool is a live-active pool if the storage pool type is a live-active pool type, and determine whether the live-active pool is a main pool based on a live-active pool name of the live-active pool; and a fourth module S14, configured to create a new volume in the primary pool and a backup volume in the corresponding backup pool if the live-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 the double-active pool as 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: and creating a storage type of the cluster, wherein the storage type comprises 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 a 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 the name of the double-active pool is yes; if the main pool identification field in the name of the double-active pool is yes, the double-active pool is judged to be the main pool; and if the main pool identification field in the double-active pool name of the double-active pool is negative, judging that the double-active pool is not the main pool.
In some embodiments of the invention, the first module S11 is further configured to: and if the storage pool type is not the double-active pool type, creating a storage common volume.
In some embodiments of the invention, the cluster schedules a cluster of engines for a container orchestration.
In view of the above object, a third aspect of the embodiments of the present invention provides 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 steps of implementing a method when the instructions are executed by the processor comprising: creating a storage type of the 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 for creating a storage volume using a storage pool, determining whether the storage pool is a double-active pool based on the 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 name of the double-active pool; and if the double active pools are main pools, creating a new volume in the main pools and creating standby volumes in the corresponding standby pools.
In some embodiments of the invention, further comprising: if the double-active pool is not the main pool, judging the double-active pool as 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 comprises: and creating a storage type of the cluster, wherein the storage type comprises a storage pool type, a storage pool name and a storage pool IO group name.
In some embodiments of the present invention, adding the live-active pool type and the live-active pool name corresponding to the live-active pool to 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 a configuration file of the storage type.
In some embodiments of the present invention, determining whether the live-action pool is a main pool based on the live-action pool name of the live-action pool comprises: judging whether a main pool identification field in the name of the double-active pool is yes; if the main pool identification field in the name of the double-active pool is yes, the double-active pool is judged to be the main pool; and if the main pool identification field in the double-active pool name of the double-active pool is negative, judging that the double-active pool is not the main pool.
In some embodiments of the invention, further comprising: and if the storage pool type is not the double-active pool type, creating a storage common volume.
In some embodiments of the invention, the cluster schedules a cluster of engines for a container orchestration.
The invention also provides a computer readable storage medium. FIG. 4 is a schematic diagram illustrating 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 that, when executed by a processor, performs the method as described above S32.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate that all or part of the processes of the methods of the above embodiments can be implemented by a computer program to instruct related hardware, and the program of the method for creating a storage dual live volume by cluster can be stored in a computer readable storage medium, and when executed, the program can include the processes of the embodiments of the methods as 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 embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the methods disclosed according to embodiments 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. Which when executed by a processor performs the above-described functions defined in the methods disclosed in embodiments of the invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
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 disclosed embodiments of the present invention.
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 place 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 a general-purpose or special-purpose processor. Also, 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 present 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 of the invention 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 numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits 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 instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method for a cluster to create a storage dual live volume, comprising the steps of:
creating a storage type of the cluster, and adding a live-active pool type and a live-active pool name corresponding to the live-active pool in the storage type;
in response to receiving a request for creating a storage volume by using a storage pool, judging whether the storage pool is a double-active pool or not based on the 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 name of the double-active pool; and
if the double active pools are main pools, new volumes are created in the main pools, and standby volumes are created in corresponding standby pools.
2. The method for cluster creation of storage dual live volumes as claimed in 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 of cluster creation storage dual live volumes as recited in claim 1, wherein creating a storage type for a cluster comprises:
and creating a storage type of the cluster, wherein the storage type comprises a storage pool type, a storage pool name and a storage pool IO group name.
4. The method for cluster creation of storage dual live-volumes according to claim 1, wherein adding a dual live-pool type and a dual live-pool name corresponding to a dual live-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.
5. The method of cluster creation storage dual live-volumes as claimed in claim 1, wherein 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 the name of the double-active pool is yes;
if the main pool identification field in the double-active pool name of the double-active pool is yes, judging the double-active pool as the main pool;
and if the main pool identification field in the double-active pool name of the double-active pool is not, judging that the double-active pool is not the main pool.
6. The method for cluster creation of storage dual live volumes as claimed in claim 1 further comprising:
and if the storage pool type is not the double-active pool type, creating a storage common volume.
7. The method of cluster creation storage dual live volumes of claim 1, wherein the cluster is a container orchestration scheduling engine cluster.
8. An apparatus for a cluster to create a storage dual live volume, comprising:
the first module is used for configuring a storage type used for creating a cluster and adding a double-activity pool type and a double-activity pool name corresponding to a double-activity pool in the storage type;
a second module configured to determine whether a storage pool is a live-active pool based on a storage pool type of the storage pool in response to receiving a request to create a storage volume using the storage pool;
a third module, configured to determine that the storage pool is a live-active pool if the storage pool type is a live-active pool type, and determine whether the live-active pool is a main pool based on a live-active pool name of the live-active pool; and
and a fourth module, configured to create a new volume in the main pool and create a backup volume in a corresponding backup pool if the dual active pool is the main pool.
9. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
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 true CN113626144A (en) 2021-11-09
CN113626144B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114138408A (en) * 2021-11-12 2022-03-04 苏州浪潮智能科技有限公司 Method, device, computer equipment and storage medium for creating clone volume

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110106921A1 (en) * 2009-10-30 2011-05-05 Jeremy Brown Methods and devices for implementing configuration synchronization
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110106921A1 (en) * 2009-10-30 2011-05-05 Jeremy Brown Methods and devices for implementing configuration synchronization
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

Cited By (2)

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

Also Published As

Publication number Publication date
CN113626144B (en) 2023-08-18

Similar Documents

Publication Publication Date Title
US10528366B2 (en) Facilitating multi-inheritance within a single inheritance container-based environment
US20140379921A1 (en) Resource silos at network-accessible services
WO2023024629A1 (en) Service access across kubernetes clusters
WO2011159284A1 (en) Volume management
CN110673923A (en) XWIKI system configuration method, system and computer equipment
CN107580032B (en) Data processing method, device and equipment
CN106201648A (en) A kind of virtual machine creation method and device
CN113835822A (en) Cross-cloud-platform virtual machine migration method and device, storage medium and electronic device
CN106406980B (en) A kind of dispositions method and device of virtual machine
CN114237519A (en) Method, device, equipment and medium for migrating object storage data
CN114157639B (en) Method, device and equipment for collecting information of intelligent network card of server and readable medium
CN113626144A (en) Method, device and equipment for creating and storing double live volumes by cluster and readable medium
CN114513528B (en) Method and system for service reservation and delegation based on block chain
US10761940B2 (en) Method, device and program product for reducing data recovery time of storage system
CN111176904A (en) Method, system, equipment and medium for data backup under private cloud architecture
CN115516829B (en) Provisioning configuration changes with deployment freeze options
CN114296651B (en) Method and device for storing custom data information
CN114064209A (en) Method, device and equipment for creating cloud host through mirror image and readable medium
CN114528078A (en) Data migration method, device, equipment and medium for object storage
CN114944971A (en) Kubernetes network deployment method and device, electronic equipment and storage medium
EP3387533B1 (en) Disaster recovery of cloud resources
CN105094773A (en) Module function reusing method and system
CN108694102A (en) A kind of data manipulation method, equipment, system and medium based on Nexus services
CN116546530B (en) Core network configuration method, device, equipment, storage medium and communication 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