Systems and methods for reclaiming storage space from virtual machine disk images
First Claim
1. A computer-implemented method for reclaiming storage space from virtual machine disk images, at least a portion of the method being performed by a computing device comprising at least one processor, the method comprising:
- identifying a virtual machine that uses a virtual machine disk image as a virtual disk for storage, the virtual machine disk image being stored on a thin-provisioned volume within a host file system;
pausing the virtual machine;
after pausing the virtual machine, determining that a portion of the virtual machine disk image represents a portion of the virtual disk that is unused by a file system of the virtual machine, wherein determining that the portion of the virtual machine disk image represents the portion of the virtual disk that is unused by the file system of the virtual machine comprises querying a virtualization system that implements the virtual machine for information identifying at least one portion of the virtual disk that is used by the file system of the virtual machine;
based on determining that the portion of the virtual machine disk image represents the portion of the virtual disk that is unused by the file system of the virtual machine, marking the portion of the virtual machine disk image for reclamation from the thin-provisioned volume, wherein marking the portion of the virtual machine disk image for reclamation from the thin-provisioned volume comprises punching a hole within the virtual machine disk image within the host file system;
reclaiming the marked portion of the virtual machine disk image from the thin-provisioned volume;
resuming the virtual machine after reclaiming the marked portion.
7 Assignments
0 Petitions
Accused Products
Abstract
A computer-implemented method for reclaiming storage space from virtual machine disk images may include (1) identifying a virtual machine that uses a virtual machine disk image as a virtual disk for storage, the virtual machine disk image being stored on a thin-provisioned volume within a host file system, (2) determining that a portion of the virtual machine disk image represents a portion of the virtual disk that is unused by a file system of the virtual machine, (3) based on determining that the portion of the virtual machine disk image represents the portion of the virtual disk that is unused by the file system of the virtual machine, marking the portion of the virtual machine disk image for reclamation from the thin-provisioned volume, and (4) reclaiming the marked portion of the virtual machine disk image from the thin-provisioned volume. Various other methods, systems, and computer-readable media are also disclosed.
24 Citations
20 Claims
-
1. A computer-implemented method for reclaiming storage space from virtual machine disk images, at least a portion of the method being performed by a computing device comprising at least one processor, the method comprising:
-
identifying a virtual machine that uses a virtual machine disk image as a virtual disk for storage, the virtual machine disk image being stored on a thin-provisioned volume within a host file system; pausing the virtual machine; after pausing the virtual machine, determining that a portion of the virtual machine disk image represents a portion of the virtual disk that is unused by a file system of the virtual machine, wherein determining that the portion of the virtual machine disk image represents the portion of the virtual disk that is unused by the file system of the virtual machine comprises querying a virtualization system that implements the virtual machine for information identifying at least one portion of the virtual disk that is used by the file system of the virtual machine; based on determining that the portion of the virtual machine disk image represents the portion of the virtual disk that is unused by the file system of the virtual machine, marking the portion of the virtual machine disk image for reclamation from the thin-provisioned volume, wherein marking the portion of the virtual machine disk image for reclamation from the thin-provisioned volume comprises punching a hole within the virtual machine disk image within the host file system; reclaiming the marked portion of the virtual machine disk image from the thin-provisioned volume; resuming the virtual machine after reclaiming the marked portion. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A system for reclaiming storage space from virtual machine disk images, the system comprising:
-
an identification module programmed to identify a virtual machine that uses a virtual machine disk image as a virtual disk for storage, the virtual machine disk image being stored on a thin-provisioned volume within a host file system; a determination module programmed to; pause the virtual machine; after pausing the virtual machine, determine that a portion of the virtual machine disk image represents a portion of the virtual disk that is unused by a file system of the virtual machine, wherein determining that the portion of the virtual machine disk image represents the portion of the virtual disk that is unused by the file system of the virtual machine comprises querying a virtualization system that implements the virtual machine for information identifying at least one portion of the virtual disk that is used by the file system of the virtual machine; a marking module programmed to, based on determining that the portion of the virtual machine disk image represents the portion of the virtual disk that is unused by the file system of the virtual machine, mark the portion of the virtual machine disk image for reclamation from the thin-provisioned volume, wherein marking the portion of the virtual machine disk image for reclamation from the thin-provisioned volume comprises punching a hole within the virtual machine disk image within the host file system; a reclamation module programmed to; reclaim the marked portion of the virtual machine disk image from the thin-provisioned volume; resume the virtual machine after reclaiming the marked portion; at least one hardware processor configured to execute the identification module, the determination module, the marking module, and the reclamation module. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A non-transitory computer-readable-storage medium comprising one or more computer-executable instructions that, when executed by at least one processor of a computing device, cause the computing device to:
-
identify a virtual machine that uses a virtual machine disk image as a virtual disk for storage, the virtual machine disk image being stored on a thin-provisioned volume within a host file system; pause the virtual machine; after pausing the virtual machine, determine that a portion of the virtual machine disk image represents a portion of the virtual disk that is unused by a file system of the virtual machine, wherein determining that the portion of the virtual machine disk image represents the portion of the virtual disk that is unused by the file system of the virtual machine comprises querying a virtualization system that implements the virtual machine for information identifying at least one portion of the virtual disk that is used by the file system of the virtual machine; based on determining that the portion of the virtual machine disk image represents the portion of the virtual disk that is unused by the file system of the virtual machine, mark the portion of the virtual machine disk image for reclamation from the thin-provisioned volume, wherein marking the portion of the virtual machine disk image for reclamation from the thin-provisioned volume comprises punching a hole within the virtual machine disk image within the host file system; reclaim the marked portion of the virtual machine disk image from the thin-provisioned volume; resume the virtual machine after reclaiming the marked portion. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification