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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com