CN105681420A - Method for realizing backup of switch operating system based on Docker - Google Patents

Method for realizing backup of switch operating system based on Docker Download PDF

Info

Publication number
CN105681420A
CN105681420A CN201610030226.5A CN201610030226A CN105681420A CN 105681420 A CN105681420 A CN 105681420A CN 201610030226 A CN201610030226 A CN 201610030226A CN 105681420 A CN105681420 A CN 105681420A
Authority
CN
China
Prior art keywords
switch
service
operating system
configuration
backup
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
CN201610030226.5A
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.)
Inspur Group Co Ltd
Original Assignee
Inspur Group 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 Group Co Ltd filed Critical Inspur Group Co Ltd
Priority to CN201610030226.5A priority Critical patent/CN105681420A/en
Publication of CN105681420A publication Critical patent/CN105681420A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method for realizing backup of a switch operating system based on Docker. The realization process of the method is as follows: a Docker Engine service is deployed on a switch network operating system based on a Linux kernel; configuration of a switch, a service and a database container mirror image on a remote Docker Registry server are pulled through the service provided by an Docker Engine; the configuration, the service and the database container mirror image are combined on the switch network operating system; a configuration container obtains a network service provided in a service container, and reads and writes a database container; the configuration container provides a manner of performing configuration of the switch for users; and the users complete configuration of the switch through the configuration container. Compared with the prior art, the method for realizing backup of the switch operating system based on Docker has the advantages that: separate backup of the configuration of the switch network operating system is realized; backup can be carried out according to requirements; simultaneously, the configuration of the switch is backed up on a remote server; therefore, the catastrophic loss of data can be effectively avoided; and the unrecoverable probability can be reduced.

Description

A kind of based on the Docker method realizing the backup of switch operating system
Technical field
The present invention relates to Docker technical applications, specifically a kind of practical, realize based on Docker switch operating system backup method.
Background technology
Current SWITCH adopts local backup to be operated the backup of system configuration, when running into catastrophic situation, can eliminate whole local data, cause the loss of data record. It addition, current SWITCH operating system cannot realize the snapshot image backup of multi version, the state of last backup storage time can only be returned to, thus causing the unification of configuration and irrecoverable.
Based on this, the present invention propose a kind of based on Docker realize switch operating system backup method solve the problems referred to above. The present invention is based on Docker technology, it is achieved that the separation backup of switch network operating system configuration, it is possible to by being backed up. Meanwhile, by switch configuration backup at far-end server, it is possible to effectively avoid the calamitous of data lose and reduce irrecoverable probability.
Summary of the invention
The technical assignment of the present invention is for above weak point, it is provided that a kind of practical, realize based on Docker switch operating system backup method.
A kind of based on the Docker method realizing the backup of switch operating system, it realizes process and is:
1) based on the switch network operating system of linux kernel is disposed DockerEngine service;
2) the switch configuration on far-end DockerRegistry server, service, database container mirror image is pulled by the DockerEngine service provided;
3) configuration, service, database container mirror image are combined in switch network operating system, and dispensing containers obtains the network service provided in service container, and database container is written and read;
4) dispensing containers provides the user the mode of the configuration that can swap machine;
5) user completes the configuration to switch by dispensing containers, and the database container of customization is pushed to by the service of DockerEngine the DockerRegistry server of far-end, back up the switch network operating system configuration snapshot mirror image into this timing node;
6) when needing the backup that switch configuration is returned to some timing node, by the DockerEngine service provided, the database snapshot mirroring service specifying timing node is pulled to this locality, and replace currently running database container.
In step 1), based on the switch network operating system of linux kernel is disposed DockerEngine service, disposing the DockerEngine service of appropriate version according to selected Linux release version.
Step 2) in, first having to when pulling far-end DockerRegistry server log in this DockerRegistry server, before logging in, carry out purview certification, certification carries out subsequent action again after passing through.
Switch configuration, service, database container mirror image are three independent Docker container mirror images, wherein switch dispensing containers provides the user Web service interface and order line configuration service, service container provides the network service relevant to operating system and kernel services, and database container provides the data storage required for network operating system.
The process that implements of step 3) is: the container behavior description file that configuration, service, database container mirror image provide according to user is combined in switch network operating system; Dispensing containers is communicated by the internal connection mechanism of Docker with service container and database container, and dispensing containers receives user's configuration order to switch, transfers the associated network services in service container according to order and data base is written and read.
The mode of the configuration of the swapped machine provided in described step 4) includes Web visualization interface mode and command line mode two kinds.
Described Web visualization interface adopts the framework of B/S to be designed, and user logs in IP address by what input in a web browser was specified, logs in exchanger management system and switch is carried out relevant configuration.
Described command line mode provides the user SSH and TELNET and logs in two ways, and user logs on, by SSH and TELNET instrument, the IP address specified and switch is configured by tcp port.
Each snapshot image of step 5) backup all annotates BACKUP TIME and backup explanation, in order to be easy to inquiry during operating system recovery.
The snapshot image pulled in step 6) is after native operating sys-tern has been disposed, the dispensing containers before combining connection disconnects with service container, then with the connection of current operating data storage capacity device, and the connection of foundation and the newly deployed data base based on snapshot image, delete the database container being replaced subsequently.
The present invention's is a kind of based on the Docker method realizing the backup of switch operating system, has the advantage that
Provided by the invention a kind of based on Docker realize switch operating system backup method based on Docker technology, it is achieved that switch network operating system configuration separation backup, it is possible to by being backed up; Meanwhile, by switch configuration backup at far-end server, it is possible to effectively avoid the calamitous of data lose and reduce irrecoverable probability; According to timing node and backup explanation, it is possible to achieve the recovery of many timing nodes switch operating system configuration, add the motility of Backup and Restore; Popularization implements and is easier, practical, applied widely, is applicable to the application scenarios such as unified switch platform, Unified Network configuration and congenerous module difference implementation.
Accompanying drawing explanation
Accompanying drawing 1 is the flowchart of the present invention.
Detailed description of the invention
Below in conjunction with the drawings and specific embodiments, the invention will be further described.
The present invention's is a kind of based on the Docker method realizing the backup of switch operating system, and as shown in Figure 1, it implements process and is:
1) based on the switch network operating system of linux kernel is disposed DockerEngine service;
2) the switch configuration on far-end DockerRegistry server, service, database container mirror image is pulled by the DockerEngine service provided;
3) configuration, service, database container mirror image are combined in switch network operating system, and dispensing containers obtains the network service provided in service container, it is possible to database container is written and read;
4) dispensing containers has provided the user both of which and has swapped the configuration of machine, respectively Web visualization interface mode and command line mode;
5) user completes the configuration to switch by dispensing containers, and the database container of customization is pushed to by the service of DockerEngine the DockerRegistry server of far-end, back up the switch network operating system configuration snapshot mirror image into this timing node;
6) when needing the backup that switch configuration is returned to some timing node, by the DockerEngine service provided, the database snapshot mirroring service specifying timing node is pulled to this locality, and replace currently running database container.
Based on the switch network operating system of linux kernel is disposed DockerEngine service, it is necessary to dispose suitable standard edition DockerEngine service according to selected Linux release version.
Pulled the switch configuration on far-end DockerRegistry server, service, database container mirror image by the DockerEngine service provided, logging in DockerRegistry server needs to carry out purview certification.
The switch configuration on far-end DockerRegistry server, service, database container mirror image is pulled by the DockerEngine service provided, switch configuration, service, database container mirror image are three independent Docker container mirror images, wherein dispensing containers mainly provides the user Web service interface and order line configuration service, service container mainly provides the network service relevant to operating system and kernel services, and database container provides the data storage required for network operating system.
Configuration, service, database container mirror image are combined in switch network operating system, and configuration, service, database container mirror image are combined connecting according to the container behavior description file that user provides.
Dispensing containers obtains the network service provided in service container, and database container can be written and read, it is characterized in that, dispensing containers is communicated by the internal connection mechanism of Docker with service container and database container, dispensing containers receives user's configuration order to switch, transfers the associated network services in service container according to order and data base is written and read.
Dispensing containers has provided the user both of which and has swapped the configuration of machine, respectively Web visualization interface mode and command line mode, it is characterized in that, Web visualization interface adopts the framework of B/S to be designed, user can input in a web browser specify log in IP address, log in exchanger management system and switch carried out relevant configuration.
Dispensing containers has provided the user both of which and has swapped the configuration of machine, respectively Web visualization interface mode and command line mode, it is characterized in that, command line mode provides the user SSH and TELNET and logs in two ways, and user can be logged on the IP address specified by SSH and TELNET instrument and switch is configured by tcp port.
User completes the configuration to switch by dispensing containers, and the database container of customization is pushed to by the service of DockerEngine the DockerRegistry server of far-end, it is characterized in that, not only database container can be pushed to far-end DockerRegistry server, because configuration interface and network service remain stable within the regular hour, and data update frequently, the backup of data base is most commonly seen.
Backup is the switch network operating system configuration snapshot mirror image of this timing node, it is characterised in that each snapshot image needs annotation BACKUP TIME and backup explanation, in order to be easy to inquiry during operating system recovery.
When needing the backup that switch configuration is returned to some timing node, by the DockerEngine service provided, the database snapshot mirroring service specifying timing node is pulled to this locality, and replace currently running database container, it is characterized in that, the snapshot image pulled is after native operating sys-tern has been disposed, the dispensing containers before combining connection disconnects the connection with current operating data storage capacity device with service container, and the connection of foundation and the newly deployed data base based on snapshot image, delete the database container being replaced subsequently.
Above-mentioned detailed description of the invention is only the concrete case of the present invention; the scope of patent protection of the present invention includes but not limited to above-mentioned detailed description of the invention; a kind of claims of the method realizing the backup of switch operating system based on Docker of any present invention of meeting and the those of ordinary skill of any described technical field to its suitably change done or replace, all should fall into the scope of patent protection of the present invention.

Claims (10)

1. one kind based on the Docker method realizing the backup of switch operating system, it is characterised in that it realizes process and is:
1) based on the switch network operating system of linux kernel is disposed DockerEngine service;
2) the switch configuration on far-end DockerRegistry server, service, database container mirror image is pulled by the DockerEngine service provided;
3) configuration, service, database container mirror image are combined in switch network operating system, and dispensing containers obtains the network service provided in service container, and database container is written and read;
4) dispensing containers provides the user the mode of the configuration that can swap machine;
5) user completes the configuration to switch by dispensing containers, and the database container of customization is pushed to by the service of DockerEngine the DockerRegistry server of far-end, back up the switch network operating system configuration snapshot mirror image into this timing node;
6) when needing the backup that switch configuration is returned to some timing node, by the DockerEngine service provided, the database snapshot mirroring service specifying timing node is pulled to this locality, and replace currently running database container.
2. according to claim 1 a kind of based on the Docker method realizing the backup of switch operating system, it is characterized in that, in step 1), based on the switch network operating system of linux kernel is disposed DockerEngine service, disposing the DockerEngine service of appropriate version according to selected Linux release version.
3. according to claim 1 a kind of based on the Docker method realizing the backup of switch operating system, it is characterized in that, step 2) in, first have to when pulling far-end DockerRegistry server log in this DockerRegistry server, carrying out purview certification before logging in, certification carries out subsequent action again after passing through.
4. according to claim 3 a kind of based on the Docker method realizing the backup of switch operating system, it is characterized in that, switch configuration, service, database container mirror image are three independent Docker container mirror images, wherein switch dispensing containers provides the user Web service interface and order line configuration service, service container provides the network service relevant to operating system and kernel services, and database container provides the data storage required for network operating system.
5. according to claim 1 a kind of based on the Docker method realizing the backup of switch operating system, it is characterized in that, the process that implements of step 3) is: the container behavior description file that configuration, service, database container mirror image provide according to user is combined in switch network operating system; Dispensing containers is communicated by the internal connection mechanism of Docker with service container and database container, and dispensing containers receives user's configuration order to switch, transfers the associated network services in service container according to order and data base is written and read.
6. according to claim 1 a kind of based on the Docker method realizing the backup of switch operating system, it is characterised in that the mode of the configuration of the swapped machine provided in described step 4) includes Web visualization interface mode and command line mode two kinds.
7. according to claim 6 a kind of based on the Docker method realizing the backup of switch operating system, it is characterized in that, described Web visualization interface adopts the framework of B/S to be designed, user logs in IP address by what input in a web browser was specified, logs in exchanger management system and switch is carried out relevant configuration.
8. according to claim 6 a kind of based on the Docker method realizing the backup of switch operating system, it is characterized in that, described command line mode provides the user SSH and TELNET and logs in two ways, and user logs on, by SSH and TELNET instrument, the IP address specified and switch is configured by tcp port.
9. according to claim 1 a kind of based on the Docker method realizing the backup of switch operating system, it is characterised in that each snapshot image of step 5) backup all annotates BACKUP TIME and backup explanation, in order to be easy to inquiry during operating system recovery.
10. according to claim 1 a kind of based on the Docker method realizing the backup of switch operating system, it is characterized in that, the snapshot image pulled in step 6) is after native operating sys-tern has been disposed, the dispensing containers before combining connection disconnects with service container, then with the connection of current operating data storage capacity device, and the connection of foundation and the newly deployed data base based on snapshot image, delete the database container being replaced subsequently.
CN201610030226.5A 2016-01-18 2016-01-18 Method for realizing backup of switch operating system based on Docker Pending CN105681420A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610030226.5A CN105681420A (en) 2016-01-18 2016-01-18 Method for realizing backup of switch operating system based on Docker

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610030226.5A CN105681420A (en) 2016-01-18 2016-01-18 Method for realizing backup of switch operating system based on Docker

Publications (1)

Publication Number Publication Date
CN105681420A true CN105681420A (en) 2016-06-15

Family

ID=56301192

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610030226.5A Pending CN105681420A (en) 2016-01-18 2016-01-18 Method for realizing backup of switch operating system based on Docker

Country Status (1)

Country Link
CN (1) CN105681420A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161104A (en) * 2016-08-22 2016-11-23 浪潮电子信息产业股份有限公司 A kind of based on Docker event automatic configuration Docker container with the method for mainframe network IP
CN108052373A (en) * 2017-12-22 2018-05-18 福建星网智慧科技股份有限公司 Method of the container generation with recovering with network is realized based on runC
CN108958981A (en) * 2018-07-24 2018-12-07 广东浪潮大数据研究有限公司 A kind of mirror image store method and relevant apparatus based on docker
CN109254830A (en) * 2018-09-04 2019-01-22 郑州云海信息技术有限公司 Visual management method and device in deep learning system
CN110109779A (en) * 2019-07-02 2019-08-09 南京云信达科技有限公司 A method of data, which are carried out, based on micro services restores rehearsal environmental structure
CN110750270A (en) * 2019-09-29 2020-02-04 北京东软望海科技有限公司 Method and device for deploying packaged software
CN111984366A (en) * 2020-07-24 2020-11-24 苏州浪潮智能科技有限公司 Method and system for deploying disaster recovery mechanism in containerization manner
CN113220638A (en) * 2021-07-08 2021-08-06 浩鲸云计算科技股份有限公司 Method and system for establishing database snapshot by using container technology
CN113590257A (en) * 2021-06-19 2021-11-02 济南浪潮数据技术有限公司 Container-based database disaster tolerance method, system, device and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140244851A1 (en) * 2013-02-26 2014-08-28 Zentera Systems, Inc. Secure virtual network platform for enterprise hybrid cloud computing environments
CN104951308A (en) * 2015-06-30 2015-09-30 北京奇虎科技有限公司 Docker Registry management optimization mode and device
CN104951360A (en) * 2015-06-30 2015-09-30 北京奇虎科技有限公司 Configuration management mode and device based on Docker
CN105138765A (en) * 2015-08-21 2015-12-09 中国科学院自动化研究所 Large-scale computational experiment method based on Docker of artificial transportation system
CN105187500A (en) * 2015-08-07 2015-12-23 浪潮(北京)电子信息产业有限公司 Container-based distributed storage system deployment method
CN105227374A (en) * 2015-10-23 2016-01-06 浪潮(北京)电子信息产业有限公司 A kind of fault moving method of cluster application and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140244851A1 (en) * 2013-02-26 2014-08-28 Zentera Systems, Inc. Secure virtual network platform for enterprise hybrid cloud computing environments
CN104951308A (en) * 2015-06-30 2015-09-30 北京奇虎科技有限公司 Docker Registry management optimization mode and device
CN104951360A (en) * 2015-06-30 2015-09-30 北京奇虎科技有限公司 Configuration management mode and device based on Docker
CN105187500A (en) * 2015-08-07 2015-12-23 浪潮(北京)电子信息产业有限公司 Container-based distributed storage system deployment method
CN105138765A (en) * 2015-08-21 2015-12-09 中国科学院自动化研究所 Large-scale computational experiment method based on Docker of artificial transportation system
CN105227374A (en) * 2015-10-23 2016-01-06 浪潮(北京)电子信息产业有限公司 A kind of fault moving method of cluster application and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘思尧等: "基于Docker技术的容器隔离性研究", 《软件》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161104A (en) * 2016-08-22 2016-11-23 浪潮电子信息产业股份有限公司 A kind of based on Docker event automatic configuration Docker container with the method for mainframe network IP
CN106161104B (en) * 2016-08-22 2019-06-04 浪潮电子信息产业股份有限公司 A method of based on Docker event automatic configuration Docker container with mainframe network IP
CN108052373A (en) * 2017-12-22 2018-05-18 福建星网智慧科技股份有限公司 Method of the container generation with recovering with network is realized based on runC
CN108958981A (en) * 2018-07-24 2018-12-07 广东浪潮大数据研究有限公司 A kind of mirror image store method and relevant apparatus based on docker
CN109254830A (en) * 2018-09-04 2019-01-22 郑州云海信息技术有限公司 Visual management method and device in deep learning system
CN110109779A (en) * 2019-07-02 2019-08-09 南京云信达科技有限公司 A method of data, which are carried out, based on micro services restores rehearsal environmental structure
CN110750270A (en) * 2019-09-29 2020-02-04 北京东软望海科技有限公司 Method and device for deploying packaged software
CN111984366A (en) * 2020-07-24 2020-11-24 苏州浪潮智能科技有限公司 Method and system for deploying disaster recovery mechanism in containerization manner
CN111984366B (en) * 2020-07-24 2023-01-06 苏州浪潮智能科技有限公司 Method and system for containerized deployment of disaster recovery mechanism
CN113590257A (en) * 2021-06-19 2021-11-02 济南浪潮数据技术有限公司 Container-based database disaster tolerance method, system, device and medium
CN113220638A (en) * 2021-07-08 2021-08-06 浩鲸云计算科技股份有限公司 Method and system for establishing database snapshot by using container technology

Similar Documents

Publication Publication Date Title
CN105681420A (en) Method for realizing backup of switch operating system based on Docker
CN103473277B (en) The Snapshot Method and device of file system
CN102214128B (en) Repurposable recovery environment
CN104488248B (en) A kind of file synchronisation method, server and terminal
US11010401B2 (en) Efficient snapshot generation of data tables
CN102609479B (en) A kind of memory database node clone method
CN109376197B (en) Data synchronization method, server and computer storage medium
CN104253866A (en) Software deployment method and system of virtual network function network element and relevant equipment
CN104462563A (en) File storage method and system
CN104301142A (en) Backup method and device for configuration files
CN105955836A (en) Cold-hot backup automatic walkthrough multifunction system
CN103473065A (en) Virtual machine creation method capable of rapidly restoring system disk
JP5868986B2 (en) Recovery by item
CN101588268A (en) Method and device for configuration files of universal extensible management device
EP3147797A1 (en) Data management method, node and system for database cluster
CN108920489A (en) Dispositions method, device and the equipment of database
CN102937955A (en) Main memory database achieving method based on My structured query language (SQL) double storage engines
CN104484242A (en) Method for breaking-point transmission in copy-on-write snapshot backup process
US20160308871A1 (en) Network element data access method and apparatus, and network management system
CN103559198A (en) Data synchronizing method and equipment
CN102594874B (en) Synchronization processing method and device
CN103500129A (en) Back-up object sending and back-up method, production end, backup-for-disaster-recovery end and system
CN112035062A (en) Migration method of local storage of cloud computing, computer equipment and storage medium
CN106462421B (en) Telecommunication device and method for updating software in a telecommunication device
CN115658390A (en) Container disaster tolerance method, system, device, equipment and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160615