IP Library Granted Patent US 9,069,593
Granted Patent B2
US 9,069,593 · App. 13/211,087 · Granted Jun 30, 2015

Systems and methods for deletion of untracked datastore paths

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,069,593
App. No.
13/211,087
Granted
Jun 30, 2015
Kind
B2
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.

Claims (39)

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. The method of claim 1 wherein the existing virtual machines include a base image virtual machine and a linked clone virtual machine.

3. The method of claim 1 wherein the obtaining the second set of datastore paths comprises:

obtaining a plurality of configuration files for the existing virtual machines; and

obtaining from the configuration files log directories used by the existing virtual machines, wherein the log directories identify the datastore paths of the second set of datastore paths.

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.

5. The computer program product of claim 4 wherein the existing virtual machines include a base image virtual machine and a linked clone virtual machine.

6. The computer program product of claim 4 wherein the instructions to obtain the second set of datastore paths comprise instructions to:

obtain configuration files for the existing virtual machines; and

obtain from the configuration files log directories used by the existing virtual machines, wherein the log directories identify the datastore paths of the second set of datastore paths.

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.

8. The apparatus of claim 7 wherein the existing virtual machines include a base image virtual machine and a linked clone virtual machine.

9. The apparatus of claim 7 wherein the one or more stored sequences of instructions to obtain the second set of datastore paths comprise instructions to:

obtain configuration files for the existing virtual machines; and

obtain from the configuration files log directories used by the existing virtual machines, wherein the log directories identify the datastore paths of the second set of datastore paths.

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.

11. The system of claim 10 wherein the existing virtual machines include a base image virtual machine and a linked clone virtual machine.

12. The system of claim 10 wherein the processor-based application, when executed, further causes the processor to:

obtain configuration files for the existing virtual machines; and

obtain from the configuration files log directories used by the existing virtual machines, wherein the log directories identify the datastore paths of the second set of datastore paths.

Assignments (2)
CHANGE OF NAME Recorded Oct 3, 2023
From: SALESFORCE.COM, INC.
To: SALESFORCE, INC.
Reel/Frame 065107/0373 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 16, 2011
From: FALKO, ANDREY
To: SALESFORCE.COM, INC.
Reel/Frame 026760/0642 →