Handling temporary files of a virtual machine
AssigneeRed Hat Israel, Ltd.
InventorSHAHAR FRANK
Life of this patent
Estimating the term…
Abstract
A method and system for handling temporary data of a virtual machine are described. In one embodiment, virtual machines are hosted by a server and accessed by remote clients over a network. The server assigns first storage and second storage to each virtual machine, where the first storage is designated for temporary data of a respective virtual machine and the second storage is designated for persistent data of a respective virtual machine. The server monitors events pertaining to the virtual machine. Upon detecting a predefined event pertaining to one of the virtual machines, the server causes at least a subset of the temporary data to be removed from the first storage of this virtual machine.
Claims23
A computer-implemented method comprising:
- identifying, by a virtual machine, a write operation;
- determining, by the virtual machine, whether the write operation pertains to a temporary file;
- and
- if the write operation pertains to a temporary file, the causing the write operation to be performed on a first disk, the first disk being designated for temporary files.
A computer-implemented method for a server hosting a plurality of virtual machines, the method comprising:
- assigning, by the server, a first storage and a second storage to each virtual machine, the first storage being designated for temporary files of a respective virtual machine and the second storage being designated for persistent data of a respective virtual machine;
- monitoring, by the server, events pertaining to the plurality of virtual machines;
- detecting, by the server, a predefined event pertaining to one of the plurality of virtual machines;
- and
- causing at least a subset of temporary files to be removed from the first storage of the one of the plurality of virtual machines.
A system comprising:
- data storage to store a plurality of first disks designated for temporary files and a plurality of second disks designated for persistent data;
- and
- a host coupled to the data storage to run a plurality of virtual machines, wherein the host further comprises a temporary files manager operable to
- assign a first disk and a second disk to each virtual machine,
- monitor events pertaining to the plurality of virtual machines,
- detect a predefined event pertaining to one of the plurality of virtual machines, and
- cause at least a subset of temporary files to be removed from the first disk of the one of the plurality of virtual machines.
A computer readable storage medium including instructions that, when executed by a processing system, cause the processing system to perform a method comprising:
- assigning, by the server, a first storage and a second storage to each virtual machine, the first storage being designated for temporary files of a respective virtual machine and the second storage being designated for persistent data of a respective virtual machine;
- monitoring, by the server, events pertaining to the plurality of virtual machines;
- detecting, by the server, a predefined event pertaining to one of the plurality of virtual machines;
- and
- causing at least a subset of temporary files to be removed from the first storage of the one of the plurality of virtual machines.
Dependencies are inferred from the claim text.