Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Disk management method and system for KVM (Kernel-based Virtual Machine) mounted with ceph volume

A management method and technology for virtual machines, which are applied in the fields of electrical digital data processing, software emulation/interpretation/simulation, input/output to record carriers, etc., and can solve problems such as stuck operation and short-term access of virtual machines.

Active Publication Date: 2022-05-17
银河麒麟软件长沙有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The technical problem to be solved by the present invention is to provide a disk management method and system for a KVM virtual machine mounted with a ceph volume in view of the technical problems existing in the prior art. Improve the iops performance of the KVM virtual machine and improve the stability of the KVM virtual machine in frequent I / O read and write operations scenarios

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Disk management method and system for KVM (Kernel-based Virtual Machine) mounted with ceph volume
  • Disk management method and system for KVM (Kernel-based Virtual Machine) mounted with ceph volume

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] Such as figure 1 As shown, the disk management method of the KVM virtual machine mounted with the ceph volume in this embodiment includes:

[0030] 1) Call the volume capacity usage acquisition interface in the Qemu main thread, and initialize the total capacity sum of the ceph volume of the KVM virtual machine to 0;

[0031] 2) Traversing the disk volume of the KVM virtual machine, if the traversal is successful, jump to the next step; otherwise, end;

[0032] 3) Determine whether the type of the disk volume is a ceph volume, and whether the ceph volume is a shared volume is established, and if it is established, jump to the next step;

[0033] 4) If it is judged that the capacity a of the ceph volume exceeds the first preset threshold, or the total capacity sum of the ceph volume exceeds the second preset threshold, a Qemu query thread Qemu-query-block is created in the Qemu main thread and passed through Qemu The query thread Qemu-query-block calls the disk capacit...

Embodiment 2

[0043] This embodiment is a further improvement on Embodiment 1. The monitoring of the application layer is generally set to update the data every 30s-60s, so the time interval between two data acquisitions is very short, which can fully meet the application of this scenario. The user decides whether to mount a new disk according to the actual usage of the query volume, and at the same time libvirt (virtualization platform management API, used for unified management of virtual machines) queries the existing disk according to qmp (Qemu monitoring protocol) iops situation.

[0044] see figure 2 In this embodiment, after the actual data allocation usage of the disk volume or the actual data allocation usage of the ceph volume is obtained in the first embodiment, it further includes: judging the actual data allocation usage of the disk volume or ceph volume Exceeding the third preset threshold is true. If it is true, output the message that the disk space is full and whether th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a disk management method and system for a KVM (Kernel-based Virtual Machine) on which a ceph volume is mounted. The method comprises the following steps: calling a volume capacity use acquisition interface in a Qemu main thread; traversing disk volumes of the KVM, and for each ceph volume which is a shared volume, if the capacity a of the ceph volume exceeds a first preset threshold value or the total capacity sum of the ceph volume exceeds a second preset threshold value, creating a Qemu query thread in a Qemu main thread, and calling a disk capacity quick interface through the Qemu query thread to execute a volume reading operation so as to obtain the actual data distribution usage amount of the ceph volume. According to the method, the problem that the KVM periodically and temporarily accesses and operates the virtual machine to cause jamming can be solved, the iops performance of the KVM is improved, and the stability of the KVM in a frequent I / O read-write operation scene is improved.

Description

technical field [0001] The invention relates to virtual machine technology, in particular to a disk management method and system for a KVM virtual machine mounted with a ceph volume. Background technique [0002] KVM (Kernel-based Virtual Machine, kernel-based virtual machine) is the current mainstream open source server virtualization technology. From Linux 2.6.20 onwards, KVM is integrated into major Linux distributions as a module of the kernel. From the perspective of technical architecture (code size, functional characteristics, scheduling management, performance, etc.), community activity, and application breadth, KVM has shown obvious advantages and has gradually replaced Xen, another open source virtualization technology. It mainly includes KVM virtualization core module KVM.ko, and hardware-related KVM_intel or KVM_AMD modules; responsible for CPU and memory virtualization, including VM creation, memory allocation and management, vCPU execution mode switching, etc....

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/455G06F3/06
CPCG06F9/45558G06F3/0614G06F3/0664G06F3/0665G06F2009/45583Y02D10/00
Inventor 夏纪冬黄伟陈章
Owner 银河麒麟软件长沙有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products