CN111104368A - Method and system for realizing storage capacity expansion of container - Google Patents

Method and system for realizing storage capacity expansion of container Download PDF

Info

Publication number
CN111104368A
CN111104368A CN201911291319.3A CN201911291319A CN111104368A CN 111104368 A CN111104368 A CN 111104368A CN 201911291319 A CN201911291319 A CN 201911291319A CN 111104368 A CN111104368 A CN 111104368A
Authority
CN
China
Prior art keywords
capacity expansion
storage
expansion
pvc
disk
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
CN201911291319.3A
Other languages
Chinese (zh)
Other versions
CN111104368B (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.)
Inspur Cloud Information Technology Co Ltd
Original Assignee
Inspur Cloud Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Cloud Information Technology Co Ltd filed Critical Inspur Cloud Information Technology Co Ltd
Priority to CN201911291319.3A priority Critical patent/CN111104368B/en
Publication of CN111104368A publication Critical patent/CN111104368A/en
Application granted granted Critical
Publication of CN111104368B publication Critical patent/CN111104368B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • 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)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method and a system for realizing storage and capacity expansion of a container, which belong to the field of storage and capacity expansion of the container, and aim to solve the technical problem of meeting the requirement of a user on capacity expansion operation of PVC (polyvinyl chloride) used by the container in Kubernets and PV corresponding to the PVC and a bottom storage system, improving the utilization efficiency of storage, and avoiding waste caused by overlarge estimated storage space or difficult expansion of bearing service caused by undersize estimated storage space during deployment, the technical scheme is as follows: the method is characterized in that a group of capacity expansion interfaces are defined, a physical machine bearing a Kubernetes cluster is connected with a back-end storage system through an FC protocol or an iSCSI protocol, and the function that a storage plug-in supports PVC capacity expansion is realized in the Kubernetes. The system comprises a capacity expansion interface definition module, a storage plug-in definition module, a capacity expansion PVC editing module, a capacity expansion request initiating module, a disk capacity expansion module, a file system capacity expansion module and a capacity expansion interface mirror image and deployment module.

Description

Method and system for realizing storage capacity expansion of container
Technical Field
The invention relates to the field of container storage and capacity expansion, in particular to a method and a system for realizing the storage and capacity expansion of a container.
Background
With the increasingly wide application of the container technology in the fields of public cloud, private cloud, hybrid cloud and the like, the user has higher requirements on the storage of the data in the cloud. The latest container technology has been widely used in the field of cloud computing due to its numerous advantages such as excellent performance and ease of use. Kubernetes has now become a de facto standard for container organization technology. Kubernets container orchestration technology may support the use of multiple types of storage as the underlying storage implementation for a container. Through In-tree plug-ins provided by kubernets themselves or Out-of-tree plug-ins developed by storage providers or cloud service providers, various storage systems can be almost integrated with kubernets clusters, and operations such as creation, deletion, query, use, snapshot and the like of storage disks or storage volumes are conveniently realized. However, at present, no matter the open source community, the corresponding storage system provider and the cloud service provider have less support for storage capacity expansion, which greatly limits the use of storage by users and urgently needs to be improved.
At present, many manufacturers have developed various enterprise-level intelligent storage systems, which generally adopt a dual-controller redundancy design, can provide rich storage services for users and flexibly configure host connections including FC and iSCSI, and are mainly used for high IO such as databases and virtualization and application occasions with high service continuity.
Therefore, how to meet the requirement of a user on capacity expansion operation of the PVC used by the container in Kubernets and the PV corresponding to the PVC and the underlying storage system is required, the utilization efficiency of storage is improved, and the technical problem that the estimated storage space is too large to cause waste or too small to cause difficulty in expansion of the bearing service during deployment is urgently required to be solved at present.
Patent document No. CN105959416A discloses a private cloud storage system based on a containerization technology, which is constructed based on a containerization technology Docker, expands a computing storage node by using the Docker container technology, realizes effective utilization of a single machine resource by using a moose fs file system, and realizes centralized management and encrypted storage of loose resources by combining with a Seafile cloud storage system; the system architecture mainly comprises a data storage layer and a service providing layer. The technical scheme solves the bottlenecks of space, encryption and sharing in the traditional storage; the private cloud storage system is realized, the privacy of data is guaranteed, the data is easy to expand, the requirement that a user carries out capacity expansion operation on the PVC used for the container in Kubernets, the PV corresponding to the PVC and the underlying storage system cannot be met, the utilization efficiency of storage is improved, and meanwhile, the problem that when the storage space is estimated to be too large in deployment, waste is caused, or too small, the carrying service is difficult to expand cannot be avoided.
Disclosure of Invention
The technical task of the invention is to provide a method and a system for realizing storage capacity expansion of a container, so as to solve the problem that how to meet the requirement of a user on capacity expansion operation of PVC (polyvinyl chloride) used by the container in Kubernets and PV (photovoltaic) corresponding to the PVC and a bottom storage system, improve the utilization efficiency of storage, and avoid the problem that the estimated storage space is too large to cause waste or too small to cause difficult expansion of a bearing service during deployment.
The technical task of the invention is realized according to the following mode, a method for realizing container storage capacity expansion is characterized in that a group of capacity expansion interfaces are defined, a physical machine bearing a Kubernets (an open source container arrangement engine, which is a distributed architecture leading scheme based on a container technology) cluster is connected with a back-end storage system through an FC (fiber channel) protocol (FC adopts optical fiber and coaxial cable to realize remote high-speed data transmission) or an iSCSI (iSCSI is a communication protocol for packaging SCSI commands in an IP (Internet protocol) packet and transmitting through Ethernet), and a function that a storage plug-in supports PVC (persistent volume statement) capacity expansion is realized in the Kubernets; the method comprises the following specific steps:
a group of capacity expansion interfaces are defined, wherein the capacity expansion interfaces comprise a capacity expansion disk and a capacity expansion file system, so that the software engineering idea of high cohesion and low coupling is realized conveniently, and good support can be provided no matter any storage providing mode is used;
defining a storage class corresponding to the storage plug-in, and adding an allowable capacity expansion field in the definition;
a user edits a PVC needing capacity expansion, and modifies a storage field of the PVC into the size needing capacity expansion;
after the storage field is modified, automatically triggering Kubernets container arrangement service to call a capacity expansion disk interface of the corresponding storage plug-in unit and initiating a capacity expansion request;
the capacity expansion disk interface of the storage plug-in calls the transmitted parameters according to the capacity expansion request to realize the capacity expansion disk;
the user deletes and restarts the Pod associated with the PVC manually, and Kubernetes triggers and calls an expansion file system interface provided by a storage plug-in to realize expansion of the file system;
and (3) making binary files compiled by the expansion disk interface and the expansion file system interface into mirror images, and deploying the mirror images together with the Kubernets cluster.
Preferably, the allowed capacity expansion field is allowVolumeExpansion true, which indicates that the storage provider can support capacity expansion.
Preferably, the flash disk specifically includes:
calling a disk capacity expansion interface, and acquiring VolumeId information of a storage system at a PVC bottom layer needing capacity expansion and disk size information after capacity expansion according to PVC information in a disk capacity expansion request;
assembling parameters, and calling a capacity expansion disk interface provided by a rear-end storage system to realize the capacity expansion function of the PVC in the container;
commanding the execution process information to record a log to Kubernets;
and returning the operation result to the Kubernets by the disk capacity expansion interface, and modifying the PVC state by the Kubernets.
Preferably, the flash disk interface provided by the storage system is a RestfulApi or command line.
More preferably, the PVC status is filesysteserizepending.
Preferably, the expanded file system specifically includes:
calling a file system capacity expansion interface, and acquiring originally stored information according to the PVC information in the file system capacity expansion request;
assembling parameters, and calling a file system capacity expansion interface of a back-end storage system;
commanding the execution process information to record a log to Kubernets;
and returning the result to Kubernets, wherein the Kubernets set the size of the PVC to the size after expansion, and the original PVC is normally mounted after Pod restart to complete the expansion operation of the file system.
A system for realizing storage capacity expansion of a container comprises,
the capacity expansion interface definition module is used for defining a group of capacity expansion interfaces, including a capacity expansion disk and a capacity expansion file system, so that the software engineering idea of high cohesion and low coupling is realized, and good support can be provided no matter any storage providing mode is used;
the storage plug-in definition module is used for defining a storage class (storage class) corresponding to the storage plug-in, adding an allowed expansion field in the definition, wherein the allowed expansion field is allowVolumeExpansion, and the field indicates that the storage provider can support expansion;
the capacity expansion PVC editing module is used for editing PVC needing capacity expansion by a user and modifying a storage field of the PVC into the size needing capacity expansion;
the capacity expansion request initiating module is used for automatically triggering Kubernets container arrangement service to call a capacity expansion disk interface of the corresponding storage plug-in unit after the storage field is modified, and initiating a capacity expansion request;
the disk capacity expansion module is used for calling the transmitted parameters according to the capacity expansion request to realize capacity expansion of the disk;
the file system capacity expansion module is used for manually deleting and restarting the Pod associated with the PVC by a user, and the Kubernets triggers and calls a capacity expansion file system interface provided by the storage plug-in unit to realize capacity expansion of the file system;
and the capacity expansion interface mirror image and deployment module is used for manufacturing binary files compiled by the capacity expansion disk interface and the capacity expansion file system interface into mirror images and deploying the mirror images together with the Kubernetes cluster.
Preferably, the working process of the disk capacity expansion module is as follows:
(1) the capacity expansion disk interface of the storage plug-in acquires VolumeId information of a storage system at a PVC bottom layer needing capacity expansion and disk size information after capacity expansion according to parameters transmitted by calling of PVC information in a disk capacity expansion request;
(2) the parameters are assembled, and a capacity expansion disk interface provided by a storage system is called to realize the capacity expansion function of the PVC in the container; the capacity expansion disk interface provided by the storage system is restfulApi or a command line;
(3) and the process information of the whole execution command is stored in Kubernets so as to facilitate subsequent inquiry.
(4) And the disk capacity expansion interface returns an operation result to Kubernets, and the Kubernets sets the PVC state as FileSystemResizePrendeding.
Preferably, the working process of the file system capacity expansion module is as follows:
①, the user deletes and restarts the Pod associated with the PVC manually, Kubernets triggers and calls the extended file system interface provided by the storage plug-in;
②, the storage plug-in obtains the incoming parameters, such as VolumeId, and completes the expansion operation of the file system;
③, returning the result to Kubernets;
④, Kubernetes sets the size of PVC to the size after expansion, and after Pod restart, the original PVC is normally mounted to complete all expansion operations.
The method and the system for realizing the storage and the capacity expansion of the container have the following advantages that:
the invention includes a series of interfaces, has realized the function of storing and expanding capacity, can provide good support for using various storage systems, including various storage system schemes of FC protocol or iSCSI protocol, the invention combines various storage systems with Kubernets container arrangement technology at the same time, realize the expansion interface operation to the PVC that the container is using in the cluster, the bottom layer of the operation of this expansion is realized by the corresponding storage system, can realize the service developer increases the demand of the storage capacity as required to the storage service condition of the business conveniently, raise the utilization efficiency of the storage, avoid estimating the too big problem that causes the waste or too small problem that causes the expansion of the bearing business when disposing, have very high use value;
the invention meets the requirement of the user on capacity expansion operation of the PVC used by the container in Kubernets, the PV corresponding to the PVC and the bottom storage system, and has stronger universality;
the method is a very practical technology in the field of cloud computing, and can meet the daily capacity expansion requirement of the data storage volume of a user; by relying on the Kubernets container arrangement technology which is widely and practically used in the industry and various storage systems supporting FC and iSCSI, the invention has wide application scenes and can greatly meet the requirements of cloud computing products on high-level characteristics and high-level functions.
Drawings
The invention is further described below with reference to the accompanying drawings.
FIG. 1 is a schematic flow diagram of a flash disk;
FIG. 2 is a schematic flow diagram of a file system expansion process.
Detailed Description
The method and system for implementing capacity expansion of container storage according to the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
Example 1:
the invention relates to a method for realizing storage and capacity expansion of a container, which defines a group of capacity expansion interfaces, connects a physical machine bearing a Kubernets (an open-source container arrangement engine, which is a distributed architecture leading scheme based on a container technology) cluster with a back-end storage system through an FC protocol (FC adopts optical fiber and coaxial cable to realize remote high-speed data transmission) or an iSCSI protocol (iSCSI is a communication protocol for encapsulating SCSI commands in IP packets and transmitting through Ethernet), and realizes the function that a storage plug-in supports PVC (persistent volume statement) capacity expansion in the Kubernets; the method comprises the following specific steps:
s1, defining a group of expansion interfaces including an expansion disk and an expansion file system, so as to facilitate the realization of the software engineering idea of high cohesion and low coupling, and provide good support no matter using any storage providing mode;
s2, defining a StorageClass (storage class) corresponding to the storage plug-in, and adding an allowable capacity expansion field in the definition; the allowed expansion field is allowVolumeExpansion, and the field indicates that the storage provider can support expansion;
s3, editing the PVC needing to be expanded by the user, and modifying the storage field of the PVC into the size needing to be expanded;
s4, after the storage field is modified, automatically triggering Kubernets container arrangement service to call the capacity expansion disk interface of the corresponding storage plug-in unit and initiating a capacity expansion request;
s5, calling the transmitted parameters by the capacity expansion disk interface of the storage plug-in according to the capacity expansion request to realize the capacity expansion disk;
s6, the user deletes and restarts the Pod associated with the PVC manually, Kubernets triggers and calls the expansion file system interface provided by the storage plug-in to realize the expansion file system;
and S7, making the binary file compiled by the realization of the expansion disk interface and the expansion file system interface into a mirror image, and deploying the mirror image together with the Kubernetes cluster.
As shown in fig. 1, the capacity expansion disks in step S5 are as follows:
s501, calling a disk expansion interface, and acquiring VolumeId information of a storage system at a PVC bottom layer needing to be expanded and disk size information after expansion according to PVC information in a disk expansion request;
s502, assembling parameters, and calling a capacity expansion disk interface provided by a rear-end storage system to realize a capacity expansion function of PVC in the container; the storage system provides a capacity expansion disk interface which is restfulApi or a command line
S503, commanding the execution process information to record a log to Kubernets;
s504, the disk capacity expansion interface returns the operation result to Kubernets, and meanwhile Kubernets modify the PVC state, wherein the PVC state is FileSystemResizance.
As shown in fig. 2, the expanded file system in step S6 is specifically as follows:
s601, calling a file system capacity expansion interface, and acquiring originally stored information according to PVC information in a file system capacity expansion request;
s602, assembling parameters, and calling a rear-end storage system file system capacity expansion interface;
s603, commanding the execution process information to record a log to Kubernets;
s604, returning the result to Kubernets, wherein the Kubernets set the size of the PVC to the size after expansion, and the original PVC is normally mounted after Pod restart, so that the expansion operation of the file system is completed.
Example 2:
the system for realizing the capacity expansion of the container storage comprises,
the capacity expansion interface definition module is used for defining a group of capacity expansion interfaces, including a capacity expansion disk and a capacity expansion file system, so that the software engineering idea of high cohesion and low coupling is realized, and good support can be provided no matter any storage providing mode is used;
the storage plug-in definition module is used for defining a storage class (storage class) corresponding to the storage plug-in, adding an allowed expansion field in the definition, wherein the allowed expansion field is allowVolumeExpansion, and the field indicates that the storage provider can support expansion;
the capacity expansion PVC editing module is used for editing PVC needing capacity expansion by a user and modifying a storage field of the PVC into the size needing capacity expansion;
the capacity expansion request initiating module is used for automatically triggering Kubernets container arrangement service to call a capacity expansion disk interface of the corresponding storage plug-in unit after the storage field is modified, and initiating a capacity expansion request;
the disk capacity expansion module is used for calling the transmitted parameters according to the capacity expansion request to realize capacity expansion of the disk; the working process of the disk capacity expansion module is as follows:
(1) the capacity expansion disk interface of the storage plug-in acquires VolumeId information of a storage system at a PVC bottom layer needing capacity expansion and disk size information after capacity expansion according to parameters transmitted by calling of PVC information in a disk capacity expansion request;
(2) the parameters are assembled, and a capacity expansion disk interface provided by a storage system is called to realize the capacity expansion function of the PVC in the container; the capacity expansion disk interface provided by the storage system is restfulApi or a command line;
(3) and the process information of the whole execution command is stored in Kubernets so as to facilitate subsequent inquiry.
(4) And the disk capacity expansion interface returns an operation result to Kubernets, and the Kubernets sets the PVC state as FileSystemResizePrendeding.
The file system capacity expansion module is used for manually deleting and restarting the Pod associated with the PVC by a user, and the Kubernets triggers and calls a capacity expansion file system interface provided by the storage plug-in unit to realize capacity expansion of the file system; the working process of the file system capacity expansion module is as follows:
①, the user deletes and restarts the Pod associated with the PVC manually, Kubernets triggers and calls the extended file system interface provided by the storage plug-in;
②, the storage plug-in obtains the incoming parameters, such as VolumeId, and completes the expansion operation of the file system;
③, returning the result to Kubernets;
④, Kubernetes sets the size of PVC to the size after expansion, and after Pod restart, the original PVC is normally mounted to complete all expansion operations.
And the capacity expansion interface mirror image and deployment module is used for manufacturing binary files compiled by the capacity expansion disk interface and the capacity expansion file system interface into mirror images and deploying the mirror images together with the Kubernetes cluster.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. A method for realizing storage capacity expansion of a container is characterized in that a group of capacity expansion interfaces are defined, a physical machine bearing a Kubernets cluster is connected with a back-end storage system through an FC protocol or an iSCSI protocol, and a function that a storage plug-in supports PVC capacity expansion is realized in the Kubernets; the method comprises the following specific steps:
defining a group of capacity expansion interfaces comprising a capacity expansion disk and a capacity expansion file system;
defining a StorageClass corresponding to the storage plug-in, and adding an allowable capacity expansion field in the definition;
a user edits a PVC needing capacity expansion, and modifies a storage field of the PVC into the size needing capacity expansion;
after the storage field is modified, automatically triggering Kubernets container arrangement service to call a capacity expansion disk interface of the corresponding storage plug-in unit and initiating a capacity expansion request;
the capacity expansion disk interface of the storage plug-in calls the transmitted parameters according to the capacity expansion request to realize the capacity expansion disk;
the user deletes and restarts the Pod associated with the PVC manually, and Kubernetes triggers and calls an expansion file system interface provided by a storage plug-in to realize expansion of the file system;
and (3) making binary files compiled by the expansion disk interface and the expansion file system interface into mirror images, and deploying the mirror images together with the Kubernets cluster.
2. The method for implementing storage capacity expansion of a container according to claim 1, wherein the allowed capacity expansion field is allowVolumeExpansion true, which indicates that the storage provider can support capacity expansion.
3. The method for implementing storage capacity expansion of a container according to claim 1, wherein the capacity expansion disk is specifically as follows:
calling a disk capacity expansion interface, and acquiring VolumeId information of a storage system at a PVC bottom layer needing capacity expansion and disk size information after capacity expansion according to PVC information in a disk capacity expansion request;
assembling parameters, and calling a capacity expansion disk interface provided by a rear-end storage system to realize the capacity expansion function of the PVC in the container;
commanding the execution process information to record a log to Kubernets;
and returning the operation result to the Kubernets by the disk capacity expansion interface, and modifying the PVC state by the Kubernets.
4. The method of claim 3, wherein the flash disk interface provided by the storage system is RestfulApi or a command line.
5. The method for implementing storage capacity expansion of a container according to claim 3, wherein the PVC status is FileSystemResizeSending.
6. The method for implementing storage capacity expansion of a container according to claim 1, wherein the capacity expansion file system is specifically as follows:
calling a file system capacity expansion interface, and acquiring originally stored information according to the PVC information in the file system capacity expansion request;
assembling parameters, and calling a file system capacity expansion interface of a back-end storage system;
commanding the execution process information to record a log to Kubernets;
and returning the result to Kubernets, wherein the Kubernets set the size of the PVC to the size after expansion, and the original PVC is normally mounted after Pod restart to complete the expansion operation of the file system.
7. A system for realizing storage expansion of a container is characterized by comprising,
the expansion interface definition module is used for defining a group of expansion interfaces, and comprises an expansion disk and an expansion file system;
the storage plug-in definition module is used for defining the storage plug-in corresponding to StorageClass, adding an allowable capacity expansion field in the definition, wherein the allowable capacity expansion field is allowVolumeExpansion, true, and the field indicates that the storage provider can support capacity expansion;
the capacity expansion PVC editing module is used for editing PVC needing capacity expansion by a user and modifying a storage field of the PVC into the size needing capacity expansion;
the capacity expansion request initiating module is used for automatically triggering Kubernets container arrangement service to call a capacity expansion disk interface of the corresponding storage plug-in unit after the storage field is modified, and initiating a capacity expansion request;
the disk capacity expansion module is used for calling the transmitted parameters according to the capacity expansion request to realize capacity expansion of the disk;
the file system capacity expansion module is used for manually deleting and restarting the Pod associated with the PVC by a user, and the Kubernets triggers and calls a capacity expansion file system interface provided by the storage plug-in unit to realize capacity expansion of the file system;
and the capacity expansion interface mirror image and deployment module is used for manufacturing binary files compiled by the capacity expansion disk interface and the capacity expansion file system interface into mirror images and deploying the mirror images together with the Kubernetes cluster.
8. The system for implementing storage capacity expansion of a container according to claim 7, wherein the operation process of the disk capacity expansion module is as follows:
(1) the capacity expansion disk interface of the storage plug-in acquires VolumeId information of a storage system at a PVC bottom layer needing capacity expansion and disk size information after capacity expansion according to parameters transmitted by calling of PVC information in a disk capacity expansion request;
(2) the parameters are assembled, and a capacity expansion disk interface provided by a storage system is called to realize the capacity expansion function of the PVC in the container; the capacity expansion disk interface provided by the storage system is restfulApi or a command line;
(3) and the process information of the whole execution command is stored in Kubernets so as to facilitate subsequent inquiry.
(4) And the disk capacity expansion interface returns an operation result to Kubernets, and the Kubernets sets the PVC state as FileSystemResizePrendeding.
9. The method for implementing storage capacity expansion of a container according to claim 7, wherein the file system capacity expansion module operates as follows:
①, the user deletes and restarts the Pod associated with the PVC manually, Kubernets triggers and calls the extended file system interface provided by the storage plug-in;
②, the storage plug-in obtains the input parameters to complete the expansion operation of the file system;
③, returning the result to Kubernets;
④, Kubernetes sets the size of PVC to the size after expansion, and after Pod restart, the original PVC is normally mounted to complete all expansion operations.
CN201911291319.3A 2019-12-16 2019-12-16 Method and system for realizing storage capacity expansion of container Active CN111104368B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911291319.3A CN111104368B (en) 2019-12-16 2019-12-16 Method and system for realizing storage capacity expansion of container

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911291319.3A CN111104368B (en) 2019-12-16 2019-12-16 Method and system for realizing storage capacity expansion of container

Publications (2)

Publication Number Publication Date
CN111104368A true CN111104368A (en) 2020-05-05
CN111104368B CN111104368B (en) 2023-08-22

Family

ID=70423317

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911291319.3A Active CN111104368B (en) 2019-12-16 2019-12-16 Method and system for realizing storage capacity expansion of container

Country Status (1)

Country Link
CN (1) CN111104368B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111752489A (en) * 2020-06-30 2020-10-09 重庆紫光华山智安科技有限公司 Expansion method of PVC (polyvinyl chloride) module in Kubernetes and related device
CN111753326A (en) * 2020-05-22 2020-10-09 湖南麒麟信安科技有限公司 Container cloud platform cloud storage resource encryption method, system and medium
CN111949216A (en) * 2020-08-14 2020-11-17 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for automatically expanding storage volume of cloud platform
CN112328170A (en) * 2020-10-22 2021-02-05 杭州朗澈科技有限公司 Cloud hard disk capacity expansion method and device, computer equipment and storage medium
CN112579008A (en) * 2020-12-24 2021-03-30 深信服科技股份有限公司 Storage deployment method, device, equipment and storage medium of container arrangement engine
CN112882794A (en) * 2021-02-25 2021-06-01 重庆紫光华山智安科技有限公司 pod capacity expansion method, device, node and storage medium
CN113672173A (en) * 2021-07-31 2021-11-19 济南浪潮数据技术有限公司 Storage volume capacity expansion method, system, equipment and readable storage medium
CN113760638A (en) * 2020-10-15 2021-12-07 北京沃东天骏信息技术有限公司 Log service method and device based on kubernets cluster

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9015123B1 (en) * 2013-01-16 2015-04-21 Netapp, Inc. Methods and systems for identifying changed data in an expandable storage volume
CN105897946A (en) * 2016-04-08 2016-08-24 北京搜狐新媒体信息技术有限公司 Obtaining method and system of access address
CN108075914A (en) * 2016-11-15 2018-05-25 中国移动通信有限公司研究院 A kind of method and the network equipment of dynamic capacity-expanding capacity reducing
CN109446032A (en) * 2018-12-19 2019-03-08 福建新大陆软件工程有限公司 The method and system of the scalable appearance of Kubernetes copy
CN109814879A (en) * 2019-01-16 2019-05-28 福建省天奕网络科技有限公司 Automate CI/CD project dispositions method, storage medium
CN109828951A (en) * 2019-02-15 2019-05-31 浪潮软件集团有限公司 A kind of method and system of combination Kubernetes and Ceph storage snapshot
CN109951525A (en) * 2019-02-18 2019-06-28 山东浪潮云信息技术有限公司 A kind of cloud disk carry system and method based on container
CN110019081A (en) * 2017-07-20 2019-07-16 中兴通讯股份有限公司 Data persistence processing method, device, system and readable storage medium storing program for executing

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9015123B1 (en) * 2013-01-16 2015-04-21 Netapp, Inc. Methods and systems for identifying changed data in an expandable storage volume
CN105897946A (en) * 2016-04-08 2016-08-24 北京搜狐新媒体信息技术有限公司 Obtaining method and system of access address
CN108075914A (en) * 2016-11-15 2018-05-25 中国移动通信有限公司研究院 A kind of method and the network equipment of dynamic capacity-expanding capacity reducing
CN110019081A (en) * 2017-07-20 2019-07-16 中兴通讯股份有限公司 Data persistence processing method, device, system and readable storage medium storing program for executing
CN109446032A (en) * 2018-12-19 2019-03-08 福建新大陆软件工程有限公司 The method and system of the scalable appearance of Kubernetes copy
CN109814879A (en) * 2019-01-16 2019-05-28 福建省天奕网络科技有限公司 Automate CI/CD project dispositions method, storage medium
CN109828951A (en) * 2019-02-15 2019-05-31 浪潮软件集团有限公司 A kind of method and system of combination Kubernetes and Ceph storage snapshot
CN109951525A (en) * 2019-02-18 2019-06-28 山东浪潮云信息技术有限公司 A kind of cloud disk carry system and method based on container

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
崔秀龙: "Kubernetes中对持久卷进行扩容", 《腾讯云开发者社区》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111753326A (en) * 2020-05-22 2020-10-09 湖南麒麟信安科技有限公司 Container cloud platform cloud storage resource encryption method, system and medium
CN111753326B (en) * 2020-05-22 2024-02-13 湖南麒麟信安科技股份有限公司 Container cloud platform cloud storage resource encryption method, system and medium
CN111752489A (en) * 2020-06-30 2020-10-09 重庆紫光华山智安科技有限公司 Expansion method of PVC (polyvinyl chloride) module in Kubernetes and related device
CN111752489B (en) * 2020-06-30 2022-06-17 重庆紫光华山智安科技有限公司 Expansion method of PVC (polyvinyl chloride) module in Kubernetes and related device
CN111949216A (en) * 2020-08-14 2020-11-17 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for automatically expanding storage volume of cloud platform
CN113760638A (en) * 2020-10-15 2021-12-07 北京沃东天骏信息技术有限公司 Log service method and device based on kubernets cluster
CN112328170A (en) * 2020-10-22 2021-02-05 杭州朗澈科技有限公司 Cloud hard disk capacity expansion method and device, computer equipment and storage medium
CN112328170B (en) * 2020-10-22 2022-05-24 杭州朗澈科技有限公司 Cloud hard disk capacity expansion method and device, computer equipment and storage medium
CN112579008A (en) * 2020-12-24 2021-03-30 深信服科技股份有限公司 Storage deployment method, device, equipment and storage medium of container arrangement engine
CN112882794A (en) * 2021-02-25 2021-06-01 重庆紫光华山智安科技有限公司 pod capacity expansion method, device, node and storage medium
CN113672173A (en) * 2021-07-31 2021-11-19 济南浪潮数据技术有限公司 Storage volume capacity expansion method, system, equipment and readable storage medium

Also Published As

Publication number Publication date
CN111104368B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
CN111104368B (en) Method and system for realizing storage capacity expansion of container
CN102209087B (en) Method and system for MapReduce data transmission in data center having SAN
US9398053B2 (en) Efficient data transmission between computing devices
US9311326B2 (en) Virtual file system for automated data replication and review
WO2019152117A1 (en) Systems and methods for synchronizing microservice data stores
CN111338854A (en) Kubernetes cluster-based method and system for quickly recovering data
CN104156216A (en) Heterogeneous storage management system and method oriented to cloud computing
CN102427481A (en) System for managing cloud computing service and cloud computing management method
JP5868986B2 (en) Recovery by item
CN102882908A (en) Cloud computing management system and cloud computing management method
CN103916479A (en) Cloud synchronous local area network accelerating system based on working group document
JP7161560B2 (en) Artificial intelligence development platform management method, device, medium
WO2021184992A1 (en) Mirror image file uploading method, related device and computer storage medium
CN107517277B (en) Method and device for realizing sanlock
EP3457668B1 (en) Clustering in unified communication and collaboration services
CN107979640B (en) Data transmission method and device
WO2021232243A1 (en) Cluster management method, cluster management apparatus, storage medium and electronic device
CN103607429A (en) Cloud computing service realization method and system thereof
CN101621526B (en) iSCSI method and apparatus for preventing useless connection from occupying system resources
CN109033250B (en) High-availability object storage method supporting big data file access service
WO2016000303A1 (en) Resource allocation method and system, and computer storage medium
CN115987974A (en) Lightweight FTP service method and system
CN116467336A (en) Data processing method and device, electronic equipment and storage medium
US11709749B1 (en) Diagnostic data collection for kubernetes
CN114996053A (en) Remote volume replication transmission method, system, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 250100 building S02, Inspur Science Park, No. 1036, Inspur Road, high tech Zone, Jinan, Shandong

Applicant after: Inspur cloud Information Technology Co.,Ltd.

Address before: 250100 No. 1036 Tidal Road, Jinan High-tech Zone, Shandong Province, S01 Building, Tidal Science Park

Applicant before: Tidal Cloud Information Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant