[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107193499A - A kind of moving method and device of container data volume - Google Patents

A kind of moving method and device of container data volume Download PDF

Info

Publication number
CN107193499A
CN107193499A CN201710383998.1A CN201710383998A CN107193499A CN 107193499 A CN107193499 A CN 107193499A CN 201710383998 A CN201710383998 A CN 201710383998A CN 107193499 A CN107193499 A CN 107193499A
Authority
CN
China
Prior art keywords
container
main program
host side
carry
migration
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.)
Pending
Application number
CN201710383998.1A
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710383998.1A priority Critical patent/CN107193499A/en
Publication of CN107193499A publication Critical patent/CN107193499A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • 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/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices

Landscapes

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

Abstract

The invention discloses a kind of moving method of container data volume, including:Main program is created in the host side of container, is connected by main program with storage device communication;The target storage pool of storage device is mapped into host side, and carry is rolled up for the target data of container;If main program detects container and generates migration operation, target data volume is unbinded from host side, remap the host side to migration, and container of the carry to after migrating again.It can be seen that, in this programme, by the way that storage volume is mapped into the book that host side and carry are container, container can be bound together with book, migration is cooperateed with so as to support container and book, container to carry data to be migrated between the different main frames of cluster internal, so as to preferably utilize the computing resource in cloud computing, strengthen the support for perdurable data and storage resource;The invention also discloses a kind of moving apparatus of container data volume, above-mentioned technique effect can be equally realized.

Description

A kind of moving method and device of container data volume
Technical field
The present invention relates to container storage technical field, a kind of rolled up more specifically to container data moving method and Device.
Background technology
Under the overall background of current cloud computing fast development, virtualization technology is to build one of key technology of cloud framework, The high reliability and high-performance of cloud computing platform are ensure that, the hardware resource utilization of lifting cloud computing platform is maximized.Container Technology then provides the virtualization technology of lightweight, so as to isolated process and resource, realizes accurate to system resource and efficient control System.Container technique is as it ensure that the uniformity of performing environment simultaneously so that the migration of application is very easy to.But container technique Be controlled and manage mainly for computing resource, for storage resource then support it is limited.Current container technique is not propped up Related data Direct Transfer is carried when holding operation, does not also support to follow container to be migrated data during inoperative.This is just direct The Data Migration between container is caused to expend resource, and shared data is difficult to manage.
Therefore, the migration rolled up to container data how is realized, is the problem of those skilled in the art need solution.
The content of the invention
It is an object of the invention to provide the moving method and device of a kind of container data volume, container data is rolled up with realizing Migration.
To achieve the above object, the embodiments of the invention provide following technical scheme:
A kind of moving method of container data volume, including:
Main program is created in the host side of container, is connected by the main program with storage device communication;
The target storage pool of the storage device is mapped into the host side, and carry is the target data of the container Volume;
If the main program detects the container and generates migration operation, the target data is rolled up from the main frame End is unbinded, and remap the host side to migration, and container of the carry to after migrating again.
Wherein, it is connected by the main program with storage device communication, including:
The main program is connected by SSH modes with storage device, and and memory device communication.
Wherein, application program is isolated in operation in the container, and application data is stored in what is associated with the container In target data volume.
Wherein, the target storage pool of the storage device is mapped into the host side, and carry is the mesh of the container After mark book, in addition to:
Corresponding with the container main frame client information and data volume information are recorded by the main program.
Wherein, the main program detects the container and generates migration operation, including:
If the main program detects the container and generates migration operation, the host side after the container migration is recorded Information.
A kind of moving apparatus of container data volume, including:
Main program creation module, creates main program for the host side in container, passes through the main program and storage device Communication connection;
First mapping block, for the target storage pool of the storage device to be mapped into the host side;
First carry module, for target storage pool carry to be rolled up for the target data of the container;
Detection module, for detecting whether the container generates migration operation by the main program;
Module is unbinded, when generating migration operation for detecting the container, the target data is rolled up from the master Generator terminal is unbinded;
Second mapping block, for the target data to be rolled up into the host side to migration that remaps;
Second carry module, for the target data to be rolled up again into container of the carry to after migrating.
Wherein, the main program is connected by SSH modes with storage device, and and memory device communication.
Wherein, application program is isolated in operation in the container, and application data is stored in what is associated with the container In target data volume.
Wherein, this programme also includes:
First logging modle, for recording main frame client information corresponding with the container and data volume by the main program Information.
Wherein, this programme also includes:
Second logging modle, for when the detection module detects the container and generates migration operation, recording institute State the main frame client information after container migration.
By above scheme, a kind of moving method of container data volume provided in an embodiment of the present invention, including:Holding The host side of device creates main program, is connected by the main program with storage device communication;The target of the storage device is deposited Volume mapping to the host side, and carry is stored up to roll up for the target data of the container;If the main program detects the container Migration operation is generated, then is unbinded target data volume from the host side, remap the host side to migration, and Again the container after carry is extremely migrated.
It can be seen that, in this programme, by the way that storage volume is mapped into host side, simultaneously carry is the book of container, will can be held Device is bound together with book, so that supports container and book cooperates with migration so that container can carry data in collection Migrated, so as to preferably utilize the computing resource in cloud computing, strengthened for persistence between different main frames inside group The support of data and storage resource;The invention also discloses a kind of moving apparatus of container data volume, it can equally realize above-mentioned Technique effect.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of moving method schematic flow sheet of container data volume disclosed in the embodiment of the present invention;
What a kind of Fig. 2 container data volumes disclosed in the embodiment of the present invention were migrated realizes schematic diagram;
Fig. 3 is a kind of moving apparatus structural representation of container data volume disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
The embodiment of the invention discloses the moving method and device of a kind of container data volume, to realize what container data was rolled up Migration.
Referring to Fig. 1, a kind of moving method of container data volume provided in an embodiment of the present invention, including:
S101, the host side establishment main program in container, are connected by the main program with storage device communication;
Wherein, it is connected by the main program with storage device communication, including:
The main program is connected by SSH modes with storage device, and and memory device communication.
Specifically, in the present embodiment, it is necessary first to inherit the interface for realizing that container is provided, run as main program, tool It is that main program is created by create interfaces, and principal program path and registration file are set for body;Main program host side with Service form is run, and transmitting JSON data by http agreements is communicated.Create after main program, container finds and loaded automatically The main program, be specially:Container is inquired about under default path, finds the corresponding registration file of main program;Container loads main program, Storage device is connected by SSH modes, with memory device communication, subsequent operation is performed by main program.
S102, the target storage pool of the storage device maps to the host side, and carry is the mesh of the container Mark book;
Wherein, the target storage pool of the storage device is mapped into the host side, and carry is the mesh of the container After mark book, in addition to:
Corresponding with the container main frame client information and data volume information are recorded by the main program.Wherein, using journey Sequence is isolated in operation in the container, and application data is stored in the target data volume associated with the container.
Specifically, in the present embodiment, after main program is connected with storage device communication, first by the storage volume of storage device Host side is mapped to, and carry is the available equipment of host side;And container will reflect incoming storage volume and be associated with container, do Used for the book of container.Operationally, application program is isolated in operation in container, application data storage to application program In the visible book of container;Pass through the binding to book and container, you can the persistence of container service data is preserved.And And in host side, the corresponding main frame of main program monitoring record container, the information of book and container in itself.If detecting appearance The host information of device is changed, then illustrates that container generates migration operation, at this moment then by performing S103, and data are rolled up and carried out Remap and bind.
If S103, the main program detect the container and generate migration operation, the target data is rolled up from institute State host side to unbind, remap the host side to migration, and container of the carry to after migrating again.
Wherein, the main program detects the container and generates migration operation, including:
If the main program detects the container and generates migration operation, the host side after the container migration is recorded Information.
Specifically, in host side, it is necessary to which whether monitoring of containers occurs migration operation;In the present embodiment, to the prison of container Control frequency can be real-time monitoring or a length of interval, herein not specific restriction during with subscribing.Also, main program is supervised After the migration operation for controlling container, the host information after main program record migration, such as node name;By the former data of container correspondence Volume information is unbinded from original host, and carry is mapped to the new main frame after migration again;Finally, main program will migrate the data come Volume, is tied to the container on new main frame, so as to realize container and the synchronous migration of book again;It is the present embodiment referring to Fig. 2 What the container data volume of offer was migrated realizes schematic diagram.
It can be seen that, in this programme, in same cluster internal, by the way that container is bound with book, monitor and record The container of each host side and its corresponding main frame, data volume information, achievable container cooperate with migration with book.So as to fully Be easy to the characteristic of migration using container technique, preferably using the computing resource in cloud computing, enhancing for perdurable data with And the support of storage resource.
Moving apparatus provided in an embodiment of the present invention is introduced below, moving apparatus described below is with being described above Moving method can be with cross-referenced.
Referring to Fig. 3, a kind of moving apparatus of container data volume provided in an embodiment of the present invention, including:
Main program creation module 100, creates main program for the host side in container, is set by the main program and storage Standby communication connection;
First mapping block 200, for the target storage pool of the storage device to be mapped into the host side;
First carry module 300, for target storage pool carry to be rolled up for the target data of the container;
Detection module 400, for detecting whether the container generates migration operation by the main program;
Module 500 is unbinded, when generating migration operation for detecting the container, the target data is rolled up from described Host side is unbinded;
Second mapping block 600, for the target data to be rolled up into the host side to migration that remaps;
Second carry module 700, for the target data to be rolled up again into container of the carry to after migrating.
Based on above-described embodiment, the main program is connected by SSH modes with storage device, and and memory device communication.
Based on above-described embodiment, application program is isolated in operation in the container, application data be stored in it is described In the target data volume of container association.
Based on above-described embodiment, this programme also includes:
First logging modle, for recording main frame client information corresponding with the container and data volume by the main program Information.
Based on above-described embodiment, this programme includes:
Second logging modle, for when the detection module detects the container and generates migration operation, recording institute State the main frame client information after container migration.
The embodiment of each in this specification is described by the way of progressive, and what each embodiment was stressed is and other Between the difference of embodiment, each embodiment identical similar portion mutually referring to.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or using the present invention. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (10)

1. a kind of moving method of container data volume, it is characterised in that including:
Main program is created in the host side of container, is connected by the main program with storage device communication;
The target storage pool of the storage device is mapped into the host side, and carry is rolled up for the target data of the container;
If the main program detects the container and generates migration operation, the target data is rolled up from the host side solution Tie up, remap the host side to migration, and container of the carry to after migrating again.
2. moving method according to claim 1, it is characterised in that communicated and connected by the main program and storage device Connect, including:
The main program is connected by SSH modes with storage device, and and memory device communication.
3. moving method according to claim 2, it is characterised in that application program is isolated in operation in the container, should It is stored in routine data in the target data volume associated with the container.
4. moving method according to claim 1, it is characterised in that map to the target storage pool of the storage device The host side, and carry for the container target data volume after, in addition to:
Corresponding with the container main frame client information and data volume information are recorded by the main program.
5. the moving method according to any one in claim 1-4, it is characterised in that the main program detects described Container generates migration operation, including:
If the main program detects the container and generates migration operation, the host side letter after the container migration is recorded Breath.
6. a kind of moving apparatus of container data volume, it is characterised in that including:
Main program creation module, main program is created for the host side in container, is communicated by the main program and storage device Connection;
First mapping block, for the target storage pool of the storage device to be mapped into the host side;
First carry module, for target storage pool carry to be rolled up for the target data of the container;
Detection module, for detecting whether the container generates migration operation by the main program;
Module is unbinded, when generating migration operation for detecting the container, the target data is rolled up from the host side Unbind;
Second mapping block, for the target data to be rolled up into the host side to migration that remaps;
Second carry module, for the target data to be rolled up again into container of the carry to after migrating.
7. moving apparatus according to claim 6, it is characterised in that the main program passes through SSH modes and storage device Connection, and and memory device communication.
8. moving apparatus according to claim 7, it is characterised in that application program is isolated in operation in the container, should It is stored in routine data in the target data volume associated with the container.
9. moving apparatus according to claim 6, it is characterised in that also include:
First logging modle, for recording main frame client information corresponding with the container and data volume letter by the main program Breath.
10. the moving apparatus according to any one in claim 6-9, it is characterised in that including:
Second logging modle, for when the detection module detects the container and generates migration operation, recording the appearance Main frame client information after device migration.
CN201710383998.1A 2017-05-26 2017-05-26 A kind of moving method and device of container data volume Pending CN107193499A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710383998.1A CN107193499A (en) 2017-05-26 2017-05-26 A kind of moving method and device of container data volume

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710383998.1A CN107193499A (en) 2017-05-26 2017-05-26 A kind of moving method and device of container data volume

Publications (1)

Publication Number Publication Date
CN107193499A true CN107193499A (en) 2017-09-22

Family

ID=59874444

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710383998.1A Pending CN107193499A (en) 2017-05-26 2017-05-26 A kind of moving method and device of container data volume

Country Status (1)

Country Link
CN (1) CN107193499A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108089912A (en) * 2017-12-19 2018-05-29 深信服科技股份有限公司 A kind of virtual machine surpasses emerging system construction method and device with container
CN108363802A (en) * 2018-02-28 2018-08-03 深圳市华云中盛科技有限公司 Text collection method based on container and its system
CN108681434A (en) * 2018-05-24 2018-10-19 中科边缘智慧信息科技(苏州)有限公司 A kind of container persistent storage hanging method
CN108762882A (en) * 2018-04-02 2018-11-06 杭州朗和科技有限公司 A kind of moving method, moving apparatus, medium and the computing device of Docker containers
CN109213447A (en) * 2018-08-23 2019-01-15 郑州云海信息技术有限公司 A kind of SAN storage volume carry, discharging method and system
CN111061432A (en) * 2019-12-06 2020-04-24 北京浪潮数据技术有限公司 Service migration method, device, equipment and readable storage medium
CN112035062A (en) * 2020-08-19 2020-12-04 星环信息科技(上海)有限公司 Migration method of local storage of cloud computing, computer equipment and storage medium
CN112463035A (en) * 2020-11-12 2021-03-09 苏州浪潮智能科技有限公司 Method, system, device and medium for using storage device based on cloud platform
CN113467829A (en) * 2021-09-03 2021-10-01 广州嘉为科技有限公司 Code inspection method based on Docker and code inspection server
CN113515237A (en) * 2021-07-22 2021-10-19 中移(杭州)信息技术有限公司 Edge node capacity expansion method and device, edge node and program product
CN114697191A (en) * 2022-03-29 2022-07-01 浪潮云信息技术股份公司 Resource migration method, device, equipment and storage medium
CN117389713A (en) * 2023-12-13 2024-01-12 苏州元脑智能科技有限公司 Storage system application service data migration method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8370837B2 (en) * 2007-03-23 2013-02-05 Parallels IP Holdings GmbH Blocking file system for on-the-fly migration of a container with an NFS mount
CN105278874A (en) * 2015-09-15 2016-01-27 中国联合网络通信集团有限公司 Big data platform system and running method therefor
CN105607954A (en) * 2015-12-21 2016-05-25 华南师范大学 Stateful container online migration method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8370837B2 (en) * 2007-03-23 2013-02-05 Parallels IP Holdings GmbH Blocking file system for on-the-fly migration of a container with an NFS mount
CN105278874A (en) * 2015-09-15 2016-01-27 中国联合网络通信集团有限公司 Big data platform system and running method therefor
CN105607954A (en) * 2015-12-21 2016-05-25 华南师范大学 Stateful container online migration method and apparatus

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108089912A (en) * 2017-12-19 2018-05-29 深信服科技股份有限公司 A kind of virtual machine surpasses emerging system construction method and device with container
CN108363802B (en) * 2018-02-28 2021-10-29 深圳市华云中盛科技股份有限公司 Container-based text collection method and system
CN108363802A (en) * 2018-02-28 2018-08-03 深圳市华云中盛科技有限公司 Text collection method based on container and its system
CN108762882A (en) * 2018-04-02 2018-11-06 杭州朗和科技有限公司 A kind of moving method, moving apparatus, medium and the computing device of Docker containers
CN108762882B (en) * 2018-04-02 2021-12-21 杭州朗和科技有限公司 Docker container migration method, migration device, medium and computing equipment
CN108681434A (en) * 2018-05-24 2018-10-19 中科边缘智慧信息科技(苏州)有限公司 A kind of container persistent storage hanging method
CN109213447A (en) * 2018-08-23 2019-01-15 郑州云海信息技术有限公司 A kind of SAN storage volume carry, discharging method and system
CN111061432A (en) * 2019-12-06 2020-04-24 北京浪潮数据技术有限公司 Service migration method, device, equipment and readable storage medium
CN111061432B (en) * 2019-12-06 2022-03-22 北京浪潮数据技术有限公司 Service migration method, device, equipment and readable storage medium
CN112035062B (en) * 2020-08-19 2021-09-28 星环信息科技(上海)股份有限公司 Migration method of local storage of cloud computing, computer equipment and storage medium
CN112035062A (en) * 2020-08-19 2020-12-04 星环信息科技(上海)有限公司 Migration method of local storage of cloud computing, computer equipment and storage medium
CN112463035A (en) * 2020-11-12 2021-03-09 苏州浪潮智能科技有限公司 Method, system, device and medium for using storage device based on cloud platform
CN112463035B (en) * 2020-11-12 2022-08-09 苏州浪潮智能科技有限公司 Method, system, device and medium for using storage device based on cloud platform
CN113515237A (en) * 2021-07-22 2021-10-19 中移(杭州)信息技术有限公司 Edge node capacity expansion method and device, edge node and program product
CN113515237B (en) * 2021-07-22 2024-09-20 中移(杭州)信息技术有限公司 Edge node capacity expansion method and device, edge node and program product
CN113467829A (en) * 2021-09-03 2021-10-01 广州嘉为科技有限公司 Code inspection method based on Docker and code inspection server
CN114697191A (en) * 2022-03-29 2022-07-01 浪潮云信息技术股份公司 Resource migration method, device, equipment and storage medium
CN117389713A (en) * 2023-12-13 2024-01-12 苏州元脑智能科技有限公司 Storage system application service data migration method, device, equipment and medium
CN117389713B (en) * 2023-12-13 2024-02-23 苏州元脑智能科技有限公司 Storage system application service data migration method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN107193499A (en) A kind of moving method and device of container data volume
CN104170323B (en) Fault handling method and device, system based on network function virtualization
EP3031174B1 (en) Hybrid network management
CN104579732B (en) Virtualize management method, the device and system of network function network element
CN102984757B (en) Gateway data processing method and gateway data processing device for Internet of Things
TWI458314B (en) Server system and management method thereof for transferring remote packet to host
Huh et al. Design and test bed experiments of server operation system using virtualization technology
CN102821023B (en) A kind of method and device of VLAN configuration dynamic migration
CN106982266A (en) A kind of method and apparatus of automatically dispose cluster
CN106126318A (en) The dynamic migration method of virtual machine in a kind of Openstack cloud platform
CN106933648A (en) For the method and system of multi-tenant container resource management
CN102801636B (en) The method of cloud computing platform cloud mainframe network bandwidth restriction
CN107465765A (en) A kind of intelligent use gateway realization method based on container cloud
WO2023011254A1 (en) Remote direct data storage-based live migration method and apparatus, and device
CN106775993A (en) A kind of physical machine is migrated to the method and system of cloud computing platform
CN103077034B (en) hybrid virtualization platform JAVA application migration method and system
CN106878204A (en) The creation method and device of a kind of virtual machine
CN107276826A (en) A kind of capacitor network collocation method and device
CN103118073A (en) Virtual machine data persistence storage system and method in cloud environment
CN103873460B (en) Service resources group implementation method and device
CN107590033A (en) A kind of methods, devices and systems of establishment DOCKER containers
CN108989430A (en) Load-balancing method, device and storage medium
CN109495383A (en) A kind of data processing method, device, communication system and the network equipment
CN105095103A (en) Storage device management method and device used for cloud environment
CN103581325A (en) Cloud computing resource pool system and implement method thereof

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170922

RJ01 Rejection of invention patent application after publication