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

A method, device and medium for unloading a virtual machine data disk

A virtual machine and disk technology, applied in the field of cloud services, can solve problems such as user data loss and data disk uninstallation failure, and achieve the effect of safe uninstallation

Active Publication Date: 2022-03-22
北京浪潮数据技术有限公司
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the embodiments of the present invention is to provide a virtual machine data disk uninstall method, device and computer-readable storage medium, which can safely uninstall the data disk, and prevent the user from uninstalling the data disk due to IO operations when the user uninstalls the data disk. Serious issues like data loss

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
  • A method, device and medium for unloading a virtual machine data disk
  • A method, device and medium for unloading a virtual machine data disk
  • A method, device and medium for unloading a virtual machine data disk

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0055] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0056] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0057] Next, a method for unloading a virtual machine data disk provided by an embodiment of the present invention is described in detail. figure 1 It is a flowchart of a method for unloading a virtu...

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 embodiment of the present invention discloses a method, device and medium for unloading a virtual machine data disk, which receives an unloading command from a target data disk, and when the target data disk has an IO operation, according to the type of the virtual machine system corresponding to the target data disk, call The path acquisition rule matching the system type of the virtual machine is used to obtain the mount point of the target data disk on the virtual machine. Perform a freeze operation on the file system corresponding to the mount point, so that all IO operations on the target data disk are suspended. When there is no IO operation on the target data disk or after the freeze operation is performed on the file system corresponding to the mount point, the unmount operation can be performed on the target data disk. This technical solution can support virtual machines of various operating systems to safely uninstall data disks, prevent users from serious problems such as data disk uninstallation failure or user data loss due to IO operations when uninstalling data disks, and realize safe uninstallation of data disks.

Description

technical field [0001] The present invention relates to the technical field of cloud services, in particular to a virtual machine data disk unloading method, device and computer-readable storage medium. Background technique [0002] When users use the virtual machines provided by the cloud platform on a daily basis, they often mount and unmount the data disks attached to the virtual machines frequently due to work needs. , the cloud platform will continue to try to unmount the data disk. When the read and write operations last for a long time, the cloud platform will give up unmounting the data disk and prompt the user that the unmounting of the data disk failed. [0003] Since the cloud platform unloads the data disk through libvirt to perform related operations on the virtual machine, and the task of unloading the data disk is an asynchronous operation, the cloud platform has notified the user that the unloading of the data disk failed, but the unloading task on the libvi...

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 Patents(China)
IPC IPC(8): G06F3/06G06F9/445G06F9/455
CPCG06F3/061G06F3/0644G06F9/44594G06F9/45558G06F2009/45579
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