Systems and methods for deletion of untracked datastore paths
First Claim
Patent Images
1. A method for deleting datastore paths corresponding to deleted virtual machines on a host computer, the method comprising:
- obtaining a first set of datastore paths from a datastore, the first set of datastore paths corresponding to a first set of virtual machines;
obtaining a second set of datastore paths, the second set of datastore paths corresponding to all existing virtual machines on the host computer, wherein the first and second sets of datastore paths identify locations on one or more physical disks of the datastore;
comparing the first set of datastore paths with the second list set of datastore paths; and
deleting, based on the comparison, datastore paths in the first set of datastore paths that are not contained in the second set of datastore paths from the one or more physical disks of the datastore, the deleted datastore paths representing mappings to files corresponding to one or more deleted virtual machines, and the deleted one or more virtual machines having been base image virtual machines from which linked clone virtual machines were created prior to deletion.
2 Assignments
0 Petitions
Accused Products
Abstract
In an embodiment, first and second lists of virtual machine datastore paths are obtained. The first list includes datastore paths on a datastore. The second list includes datastore paths that are associated with existing virtual machines. The first and second lists are compared and non-matching datastore paths are deleted from the datastore, thereby freeing up disk space on the datastore.
-
Citations
12 Claims
-
1. A method for deleting datastore paths corresponding to deleted virtual machines on a host computer, the method comprising:
-
obtaining a first set of datastore paths from a datastore, the first set of datastore paths corresponding to a first set of virtual machines; obtaining a second set of datastore paths, the second set of datastore paths corresponding to all existing virtual machines on the host computer, wherein the first and second sets of datastore paths identify locations on one or more physical disks of the datastore; comparing the first set of datastore paths with the second list set of datastore paths; and deleting, based on the comparison, datastore paths in the first set of datastore paths that are not contained in the second set of datastore paths from the one or more physical disks of the datastore, the deleted datastore paths representing mappings to files corresponding to one or more deleted virtual machines, and the deleted one or more virtual machines having been base image virtual machines from which linked clone virtual machines were created prior to deletion. - View Dependent Claims (2, 3)
-
-
4. A computer program product comprising computer readable program code for deleting datastore paths corresponding to deleted virtual machines on a host computer, the program code to be executed by one or more processors when retrieved from a non-transitory machine-readable medium, the program code including instructions to:
-
obtain a first set of datastore paths from a datastore, the first set of datastore paths corresponding to a first set of virtual machines; obtain a second set of datastore paths, the second set of datastore paths corresponding to all existing virtual machines on the host computer, wherein the first and second sets of datastore paths identify locations on one or more physical disks of the datastore; compare the first set of datastore paths with the second set of datastore paths; and delete, based on the comparison, datastore paths in the first set of datastore paths that are not contained in the second set of datastore paths from the one or more physical disks of the datastore, the deleted datastore paths representing mappings to files corresponding to one or more deleted virtual machines, and the deleted one or more virtual machines having been base image virtual machines from which linked clone virtual machines were created prior to deletion. - View Dependent Claims (5, 6)
-
-
7. An apparatus comprising:
-
a processor; and one or more stored sequences of instructions for deleting datastore paths corresponding to deleted virtual machines on a host computer which, when executed by the processor, cause the processor to; obtain a first set of datastore paths from a datastore, the first set of datastore paths corresponding to a first set of virtual machines; obtain a second set of datastore paths, the second set of datastore paths corresponding to all existing virtual machines on the host computer, wherein the first and second sets of datastore paths identify locations on one or more physical disks of the datastore; compare the first set of datastore paths with the second set of datastore paths; and delete, based on the comparison, datastore paths in the first set of datastore paths that are not contained in the second set of datastore paths from the one or more physical disks of the datastore, the deleted datastore paths representing mappings to a files corresponding to one or more deleted virtual machines, and the deleted one or more virtual machines having been base image virtual machines from which linked clone virtual machines were created prior to deletion. - View Dependent Claims (8, 9)
-
-
10. A system for deleting datastore paths corresponding to deleted virtual machines on a host computer, the system comprising:
-
a processor-based application, which when executed on a computer, causes the processor to; obtain a first set of datastore paths from a datastore, the first set of datastore paths corresponding to a first set of virtual machines; obtain a second set of datastore paths, the second set of datastore paths corresponding to all existing virtual machines on the host computer, wherein the first and second sets of datastore paths identify locations on one or more physical disks of the datastore; compare the first set of datastore paths with the second set of datastore paths; and delete, based on the comparison, datastore paths in the first set of datastore paths that are not contained in the second set of datastore paths from the one or more physical disks of the datastore, the deleted datastore paths representing mappings to files corresponding to one or more deleted virtual machines, and the deleted one or more virtual machines having been base image virtual machines from which linked clone virtual machines were created prior to deletion. - View Dependent Claims (11, 12)
-
Specification