×

Systems and methods for reclaiming storage space from virtual machine disk images

  • US 8,881,144 B1
  • Filed: 11/22/2011
  • Issued: 11/04/2014
  • Est. Priority Date: 11/22/2011
  • Status: Active Grant
First Claim
Patent Images

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 all claims
  • 7 Assignments
Timeline View
Assignment View
    ×
    ×