CN112363671B - Virtual machine template mirror image storage method based on fusion framework cloud platform - Google Patents

Virtual machine template mirror image storage method based on fusion framework cloud platform Download PDF

Info

Publication number
CN112363671B
CN112363671B CN202011142706.3A CN202011142706A CN112363671B CN 112363671 B CN112363671 B CN 112363671B CN 202011142706 A CN202011142706 A CN 202011142706A CN 112363671 B CN112363671 B CN 112363671B
Authority
CN
China
Prior art keywords
hard disk
mirror image
template
node
ssd
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011142706.3A
Other languages
Chinese (zh)
Other versions
CN112363671A (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.)
China Electronic Technology Cyber Security Co Ltd
Original Assignee
China Electronic Technology Cyber Security 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 China Electronic Technology Cyber Security Co Ltd filed Critical China Electronic Technology Cyber Security Co Ltd
Priority to CN202011142706.3A priority Critical patent/CN112363671B/en
Publication of CN112363671A publication Critical patent/CN112363671A/en
Application granted granted Critical
Publication of CN112363671B publication Critical patent/CN112363671B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • G06F3/0611Improving I/O performance in relation to response time
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0631Configuration or reconfiguration of storage systems by allocating resources to storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/065Replication mechanisms
    • 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/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45579I/O management, e.g. providing access to device drivers or storage

Landscapes

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

Abstract

The invention relates to the field of cloud computing virtual machine template storage, and discloses a virtual machine template mirror image storage method based on a fusion architecture cloud platform, which comprises the following steps: adding SSD hard disks at all node hard disks, and storing the template mirror images into the SSD hard disks when storing the template mirror images; if the SSD hard disk is not added at the node hard disk of the cloud platform, when the template mirror image is stored, a mirror image template copy is stored at each node hard disk. According to the virtual machine template storage method, template data are scheduled and stored to an SSD (solid State disk), so that the access speed of the template is increased; meanwhile, the templates are stored in each node, the data reading pressure of a single template is reduced, the virtual machine of the node can directly read the template mirror image data of the local machine, cross-node reading is not needed, the IO path is shortened, the reading efficiency is improved, and the start storm of the virtual machine is effectively relieved.

Description

Virtual machine template mirror image storage method based on fusion framework cloud platform
Technical Field
The invention relates to the field of cloud computing virtual machine template storage, in particular to a virtual machine template mirror image storage method based on a fusion framework cloud platform.
Background
With the advent of the cloud computing era, the use of virtualization technology is inevitable. The virtualization technology enables the physical resources which are originally fixed and not easy to stretch to be abstracted into configurable virtual resources by using software, the original physical boundary is broken through by the flexible mode, and the computing resources and the storage resources required by the virtual machine are distributed in different physical nodes. In a virtualization environment, two modes are provided for virtual machine cloning, namely link cloning and complete cloning of a template, the virtual machines of the link cloning depend on the original template, the new virtual machine mirror image only writes new data, and the complete cloning completely copies a template mirror image and re-copies and clones an independent new virtual machine.
The method comprises the steps that a plurality of identical virtual machines can be quickly established through template link cloning virtual machines, the newly established virtual machines are actually only links of a newly established template, the newly established virtual machines depend on template images, data of the template images can be read when the virtual machines are started and run, when the template image data are read by the virtual machines at the same time, the virtual machines can be started slowly, and IO pressure is caused on a disk where the template is located. The template mirror image is the basis of cloning the virtual machine, and the read-write reliability and the performance of the template mirror image directly influence the performance and the use of the virtual machine of the platform, so that the optimized storage of the template is an important link for improving the starting speed and the reliability of the virtual machine.
On the basis of a cloud platform of the super-fusion all-in-one machine, all disk images are stored in which node and disk according to the Hash algorithm. The disk of each node of the platform is provided with a hash value range, the virtual machine disk image is calculated through a hash algorithm to obtain a hash value, and the node and the disk which are stored by the virtual machine image are determined according to the hash value range of the node through the hash value. The virtual machines run and are distributed in all super-fusion nodes, but the template mirror image is only stored in the nodes with the copy number (generally 3), and when the virtual machines of other nodes are started, the nodes with the template copies need to be accessed through a network, so that the reading performance bottleneck of the template storage can limit the performance of the virtual machines on the cloud.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: aiming at the existing problems, an optimized storage method based on the fusion architecture cloud platform virtual machine template mirror image is provided,
the technical scheme adopted by the invention is as follows: a virtual machine template mirror image storage method based on a converged architecture cloud platform comprises the following steps:
adding an SSD (solid State disk) at a node hard disk of the cloud platform, and storing a template mirror image into the SSD hard disk when the template mirror image is stored;
if the SSD hard disk is not added at the node hard disk of the cloud platform, a template mirror image copy is stored at each node hard disk when the template mirror image is stored.
Further, the template mirror image storage step when the SSD hard disk is added to the node hard disk includes:
creating a template mirror image and calculating a hash value of the template mirror image;
comparing the hash value of the template mirror image with the hash value range of a node hard disk to determine the storage position of the template mirror image;
judging whether the storage position is an SSD hard disk, if so, directly storing the template mirror image into the SSD hard disk; and if not, storing the template mirror image to the SSD hard disk through the common hard disk.
Further, the step of storing the template mirror image to the SSD hard disk by the common hard disk includes:
storing the template mirror image to a corresponding common hard disk according to the hash value comparison result;
moving data from the ordinary hard disk to the SSD hard disk;
and clearing the data in the common hard disk, and establishing soft connection to the template data in the SSD hard disk.
Further, the step of storing the template mirror image of the SSD hard disk in the node hard disk does not include:
creating a template mirror image and calculating a hash value of the template mirror image;
determining the position of the template mirror image storage according to the hash value range of the node disk;
storing the template mirror image into a corresponding common hard disk in the corresponding node hard disk;
and copying the template mirror image to a common hard disk in other node hard disks, and establishing copies of the template mirror image at the other node hard disks.
Further, the node hard disk is composed of a common hard disk.
Further, the hash value range of the node hard disk is set by the cloud platform system when the node hard disk is created.
Compared with the prior art, the beneficial effects of adopting the technical scheme are as follows:
1) the invention realizes a virtual machine template storage method, which increases the access speed of the template by scheduling and storing the template data to the SSD hard disk;
2) meanwhile, the templates are stored in each node, the data reading pressure of a single template is reduced, the virtual machine of the node can directly read the template mirror image data of the local machine, cross-node reading is not needed, the IO path is shortened, the reading efficiency is improved, and the start storm of the virtual machine is effectively relieved.
Drawings
FIG. 1 is a schematic flow chart of an embodiment of the present invention.
Fig. 2 is a flowchart illustrating a template mirror storage method for adding an SSD hard disk.
Fig. 3 is a flowchart illustrating a template mirror storage method without adding an SSD hard disk.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
The embodiment of the invention provides a virtual machine template mirror image storage method based on a converged architecture cloud platform, which comprises the following steps of:
s1: adding an SSD (solid state disk) hard disk at a node hard disk of the cloud platform, and storing the template mirror image into the SSD hard disk when storing the template mirror image;
s2: if the SSD hard disk is not added to the node hard disk of the cloud platform, a mirror image template is stored in each node hard disk when the template is stored in a mirror image mode.
Specifically, referring to fig. 2, in the step S1, the template image storing step after adding the SSD hard disk includes:
creating a template mirror image and calculating a hash value of the template mirror image;
comparing the hash value of the template mirror image with the hash value range of a node hard disk to determine the storage position of the template mirror image;
judging whether the storage position is an SSD hard disk, if so, directly storing the template mirror image into the SSD hard disk; and if not, storing the template mirror image to the SSD hard disk through the common hard disk.
Specifically, the step of storing the template mirror image to the SSD hard disk by the common hard disk includes:
storing the template mirror image to a corresponding common hard disk according to the hash value comparison result;
moving data from the ordinary hard disk to the SSD hard disk;
and clearing the data in the common hard disk, and establishing soft connection to the template data in the SSD hard disk.
In the cloud platform system, the hash value range of the node hard disk is set by the cloud platform system when being created, the node hard disk is usually composed of common hard disks, SSD (solid State disk) hard disks are added at all the node hard disks, the SSD hard disks and the common hard disks work cooperatively, and after a template mirror image is created, the template mirror image is stored in the SSD hard disks, so that the access speed of the template can be improved.
Specifically, referring to fig. 3, the step of storing the template mirror image of the SSD hard disk in the node hard disk does not include:
creating a template mirror image and calculating a hash value of the template mirror image;
determining the hard disk position of the template mirror image storage according to the hash value range of the node disk;
storing the template mirror image into a corresponding common hard disk in a corresponding node hard disk;
and copying the template mirror image to a common hard disk in other node hard disks, and establishing copies of the template mirror image at the other node hard disks.
When the template is stored in a mirror mode, if the SSD hard disk does not exist, a mirror image template is stored at all node hard disks after the template is created, and when the virtual machine is started, the scheduling system designates the virtual machine to read the template on the running node nearby, so that cross-node reading is avoided, the IO path is shortened, and the performance is improved; meanwhile, the performance problem caused by the fact that templates of a certain node are read in a centralized mode when all the cloud platform virtual machines are started in a traditional mode is avoided.
The invention is not limited to the foregoing embodiments. The invention extends to any novel feature or any novel combination of features disclosed in this specification and any novel method or process steps or any novel combination of features disclosed. Those skilled in the art should appreciate that they can make insubstantial changes and modifications without departing from the spirit of the invention as claimed.

Claims (3)

1. A virtual machine template mirror image storage method based on a converged architecture cloud platform is characterized by comprising the following steps:
adding an SSD (solid State disk) at a node hard disk of the cloud platform, and storing a template mirror image into the SSD hard disk when the template mirror image is stored;
the template mirror image storage step when the SSD hard disk is added in the node hard disk comprises the following steps:
creating a template mirror image and calculating a hash value of the template mirror image;
comparing the hash value of the template mirror image with the hash value range of the node hard disk to determine the hard disk position stored in the template mirror image;
judging whether the stored hard disk is an SSD hard disk, if so, directly storing the template mirror image into the SSD hard disk; if not, the template is stored to the SSD through a common hard disk in a mirror image mode;
the step of storing the template mirror image to the SSD hard disk through the common hard disk comprises the following steps of:
storing the template mirror image to a corresponding common hard disk according to the hash value comparison result;
moving data from the ordinary hard disk to the SSD hard disk;
clearing data in the ordinary hard disk, and establishing soft connection to template data in the SSD hard disk;
if an SSD (solid State disk) is not added at the node hard disk of the cloud platform, storing a template mirror image copy at each node hard disk when storing the template mirror image;
the step of storing the template mirror image of the SSD hard disk in the node hard disk does not exist, and comprises the following steps:
creating a template mirror image and calculating a hash value of the template mirror image;
determining the hard disk position of the template mirror image storage according to the hash value range of the node disk;
storing the template mirror image into a corresponding common hard disk in the corresponding node hard disk;
and copying the template mirror image to a common hard disk in other node hard disks, and establishing copies of the template mirror image at the other node hard disks.
2. The virtual machine template image storage method based on the converged architecture cloud platform according to claim 1, wherein the node hard disk is composed of a common hard disk.
3. The virtual machine template image storage method based on the converged-architecture cloud platform according to claim 1, wherein the hash value range of the node hard disk is set by a cloud platform system when the node hard disk is created.
CN202011142706.3A 2020-10-23 2020-10-23 Virtual machine template mirror image storage method based on fusion framework cloud platform Active CN112363671B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011142706.3A CN112363671B (en) 2020-10-23 2020-10-23 Virtual machine template mirror image storage method based on fusion framework cloud platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011142706.3A CN112363671B (en) 2020-10-23 2020-10-23 Virtual machine template mirror image storage method based on fusion framework cloud platform

Publications (2)

Publication Number Publication Date
CN112363671A CN112363671A (en) 2021-02-12
CN112363671B true CN112363671B (en) 2022-07-05

Family

ID=74511731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011142706.3A Active CN112363671B (en) 2020-10-23 2020-10-23 Virtual machine template mirror image storage method based on fusion framework cloud platform

Country Status (1)

Country Link
CN (1) CN112363671B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112948052B (en) * 2021-02-23 2023-10-13 中国联合网络通信集团有限公司 Virtual machine migration method across data centers, data center and computer medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541686A (en) * 2011-11-29 2012-07-04 中标软件有限公司 Method for achieving backup and disaster recovery of system by utilizing virtual machine
CN103414712A (en) * 2013-08-05 2013-11-27 深圳市杰云科技有限公司 Management system and method of distributed virtual desktop
CN103905232A (en) * 2012-12-28 2014-07-02 鸿富锦精密工业(深圳)有限公司 Virtual-machine management system and method
CN104917800A (en) * 2014-03-14 2015-09-16 国际商业机器公司 Method and device for establishing redundancy connection for virtual machine
CN105389185A (en) * 2015-11-16 2016-03-09 北京汉柏科技有限公司 Method and apparatus for processing boot storm of virtual cloud desktops
CN106874062A (en) * 2015-12-11 2017-06-20 三亚中兴软件有限责任公司 A kind of virtual machine update method and device
CN107291525A (en) * 2016-04-01 2017-10-24 华为技术有限公司 A kind of method, host and system for disposing virtual machine
CN108089913A (en) * 2017-12-28 2018-05-29 创新科存储技术(深圳)有限公司 A kind of virtual machine deployment method of super emerging system
US10264064B1 (en) * 2016-06-09 2019-04-16 Veritas Technologies Llc Systems and methods for performing data replication in distributed cluster environments
CN111209090A (en) * 2020-04-17 2020-05-29 腾讯科技(深圳)有限公司 Method and assembly for creating virtual machine in cloud platform and server

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541686A (en) * 2011-11-29 2012-07-04 中标软件有限公司 Method for achieving backup and disaster recovery of system by utilizing virtual machine
CN103905232A (en) * 2012-12-28 2014-07-02 鸿富锦精密工业(深圳)有限公司 Virtual-machine management system and method
CN103414712A (en) * 2013-08-05 2013-11-27 深圳市杰云科技有限公司 Management system and method of distributed virtual desktop
CN104917800A (en) * 2014-03-14 2015-09-16 国际商业机器公司 Method and device for establishing redundancy connection for virtual machine
CN105389185A (en) * 2015-11-16 2016-03-09 北京汉柏科技有限公司 Method and apparatus for processing boot storm of virtual cloud desktops
CN106874062A (en) * 2015-12-11 2017-06-20 三亚中兴软件有限责任公司 A kind of virtual machine update method and device
CN107291525A (en) * 2016-04-01 2017-10-24 华为技术有限公司 A kind of method, host and system for disposing virtual machine
US10264064B1 (en) * 2016-06-09 2019-04-16 Veritas Technologies Llc Systems and methods for performing data replication in distributed cluster environments
CN108089913A (en) * 2017-12-28 2018-05-29 创新科存储技术(深圳)有限公司 A kind of virtual machine deployment method of super emerging system
CN111209090A (en) * 2020-04-17 2020-05-29 腾讯科技(深圳)有限公司 Method and assembly for creating virtual machine in cloud platform and server

Also Published As

Publication number Publication date
CN112363671A (en) 2021-02-12

Similar Documents

Publication Publication Date Title
US10496668B1 (en) Optimized tender processing of hash-based replicated data
CN106469085B (en) The online migration method, apparatus and system of virtual machine
JP2008033483A (en) Computer system, computer, and moving method of computer operating environment
US8024537B2 (en) Storage system, remote copy and management method therefor
US9875057B2 (en) Method of live migration
CN105760218A (en) Online migration method and device for virtual machine
WO2018113484A1 (en) Method and apparatus for recovering multi-replica data
WO2018094649A1 (en) Method for acquiring data during startup of virtual machine, and cloud computing system
CN112363671B (en) Virtual machine template mirror image storage method based on fusion framework cloud platform
CN111158858B (en) Cloning method and device of virtual machine and computer readable storage medium
CN104102725A (en) Method and system for dynamically creating duplicates of hotspot data files in HDFS (Hadoop distributed file system)
EP3264254B1 (en) System and method for a simulation of a block storage system on an object storage system
CN110941511B (en) Snapshot merging method, device, equipment and storage medium
CN115955488B (en) Distributed storage copy cross-machine room placement method and device based on copy redundancy
US20120059986A1 (en) Disk apparatus, data replicating method onto disk apparatus and program recording medium
CN113407114B (en) Online capacity expansion IO scheduling method based on hot data and delete repeat operation
CN115827590A (en) Data migration and cloud method, computing equipment and computer storage medium
CN112685130A (en) Virtual machine backup method and device in distributed storage environment and storage medium
CN113687935A (en) Cloud native storage scheduling mode based on super-fusion design
US9053074B2 (en) Computer product, writing control method, writing control apparatus, and system
US20200371849A1 (en) Systems and methods for efficient management of advanced functions in software defined storage systems
CN111400098A (en) Copy management method and device, electronic equipment and storage medium
CN112130955A (en) Virtual machine scheduling method based on converged framework cloud platform
CN118277344B (en) Storage node interlayer merging method and device of distributed key value storage system
WO2024193273A1 (en) Memory mirroring method and system, and cluster

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant