A data center is a facility that houses servers, data storage devices, and/or other associated components such as backup power supplies, redundant data communications connections, environmental controls such as air conditioning and/or fire suppression, and/or various security systems. A data center may be maintained by an information technology (IT) service provider. An enterprise may purchase data storage and/or data processing services from the provider in order to run applications that handle the enterprises' core business and operational data. The applications may be proprietary and used exclusively by the enterprise or made available through a network for anyone to access and use.
Virtual computing instances (VCIs) have been introduced to lower data center capital investment in facilities and operational expenses and reduce energy consumption. A VCI is a software implementation of a computer that executes application software analogously to a physical computer. VCIs have the advantage of not being bound to physical resources, which allows VCIs to be moved around and scaled to meet changing demands of an enterprise without affecting the use of the enterprise's applications. In a software defined data center, storage resources may be allocated to VCIs in various ways, such as through network attached storage (NAS), a storage area network (SAN) such as fiber channel and/or Internet small computer system interface (iSCSI), a virtual SAN, and/or raw device mappings, among others.
Snapshots and clones may be utilized in a software defined data center to provide backups and/or disaster recovery. For instance, a snapshot can be used to revert to a previous version or state of a VCI. In some approaches, to avoid the loss of intervening state(s) associated with reversion, a clone of the previous version may be created that starts a new chain of snapshots. However, cloning snapshots may be computationally expensive and may lead to performance degradation.
The term “virtual computing instance” (VCI) refers generally to an isolated user space instance, which can be executed within a virtualized environment. Other technologies aside from hardware virtualization can provide isolated user space instances, also referred to as data compute nodes. Data compute nodes may include non-virtualized physical hosts, VCIs, containers that run on top of a host operating system without a hypervisor or separate operating system, and/or hypervisor kernel network interface modules, among others. Hypervisor kernel network interface modules are non-VCI data compute nodes that include a network stack with a hypervisor kernel network interface and receive/transmit threads.
VCIs, in some embodiments, operate with their own guest operating systems on a host using resources of the host virtualized by virtualization software (e.g., a hypervisor, virtual machine monitor, etc.). The tenant (i.e., the owner of the VCI) can choose which applications to operate on top of the guest operating system. Some containers, on the other hand, are constructs that run on top of a host operating system without the need for a hypervisor or separate guest operating system. The host operating system can use name spaces to isolate the containers from each other and therefore can provide operating-system level segregation of the different groups of applications that operate within different containers. This segregation is akin to the VCI segregation that may be offered in hypervisor-virtualized environments that virtualize system hardware, and thus can be viewed as a form of virtualization that isolates different groups of applications that operate in different containers. Such containers may be more lightweight than VCIs.
While the specification refers generally to VCIs, the examples given could be any type of data compute node, including physical hosts, VCIs, non-VCI containers, and hypervisor kernel network interface modules. Embodiments of the present disclosure can include combinations of different types of data compute nodes.
As used herein with respect to VCIs, a “disk” is a representation of memory resources (e.g., memory resources 110 illustrated in
A VCI snapshot (referred to herein simply as “snapshot”) can preserve the state of a VCI so that it can be reverted to at a later point in time. The snapshot can include memory as well. In some embodiments, a snapshot includes secondary storage, while primary storage is optionally included with the snapshot. A snapshot can store changes from a parent snapshot (e.g., without storing an entire copy of the parent snapshot). A clone VCI (referred to herein simply as “clone”) is a copy of an existing VCI. A clone can be created from a snapshot. A clone can start a chain of snapshots.
As referred to herein, a snapshot tree can be represented as a tree of disks and can include both snapshots and clones. The snapshot tree can become complex as the clone levels increase (e.g., the quantity of clones increases), and supporting clones may become computationally expensive as the snapshot tree grows. As previously discussed, a snapshot stores only changes from a previous snapshot rather than an entire copy of the previous snapshot. Thus, each snapshot may have its own unique logical map that includes tuples mapping logical block addresses to physical block addresses. An example tuple may be “L10→P100, N20,” where a logical block address, L10, maps to a physical block address, P100, with a total number of blocks, N20. Because snapshots store only changes, if a logical address was not written in a given snapshot, its logical map may make no reference to it
In operation, then, when reading a particular logical address, the live (e.g., current) snapshot is initially consulted. If, however, the particular address to be read was never written in the live snapshot, the chain of the live snapshot is consulted in descending (e.g., reverse chronological) order beginning with the snapshot previous to the live snapshot. If the particular address to be read was never written in any snapshots of the live snapshot chain, a snapshot (or snapshot chain) at a higher level in the snapshot tree would be consulted next, and so on.
Reversion is a process whereby a current disk and memory states are discarded and the VCI is reverted to the disk and memory states of a past snapshot in the chain. Such reversion can cause intervening snapshots to be lost. An intervening snapshot, as referred to herein, is a snapshot of a snapshot chain between the live snapshot and the past snapshot to which reversion is made. In some circumstances, it may be desirable to revert to a past snapshot while keeping any intervening snapshots (e.g., keeping as “read only”). In previous approaches, this may be carried out by cloning the past snapshot and creating a new snapshot chain. However, the creation of clones increases the complexity of the tree and can be computationally intensive.
Embodiments of the present disclosure can revert to a past snapshot without discarding intervening snapshots and without creating a clone or altering a height of the snapshot tree. Accordingly, embodiments herein can avoid issues associated with increasing clone levels. For instance, in some embodiments, a flag can be added to a snapshot map that allows reversion without immediate loss of intervening snapshots and without cloning.
A snapshot map stores a list of snapshots of the snapshot tree. A snapshot map may indicate whether a particular snapshot is current (e.g., live) or is marked as deleted. In accordance with the present disclosure, when a reversion to a past snapshot is made, a new snapshot can be created at the end of the snapshot chain that comprises the past snapshot. The new snapshot can accept writes. Stated differently, the new snapshot becomes the current snapshot. In addition, any intervening snapshots can be indicated, in the snapshot map, as abandoned. Then, when a subsequent read request for a logical address is received, embodiments herein can check the snapshot map for snapshots indicated as abandoned and perform a search for the logical address while disregarding any snapshots indicated as abandoned. Stated differently, embodiments herein can check the snapshot map for snapshots indicated as abandoned and perform a search for the logical address while disregarding any tuples that include snapshot identifiers indicated as abandoned.
The figures herein follow a numbering convention in which the first digit or digits correspond to the drawing figure number and the remaining digits identify an element or component in the drawing. Similar elements or components between different figures may be identified by the use of similar digits. For example, 114 may reference element “14” in
The host 102 can incorporate a hypervisor 104 that can execute a number of virtual computing instances 106-1, 106-2, . . . , 106-N (referred to generally herein as “VCIs 106”). The VCIs can be provisioned with processing resources 108 and/or memory resources 110 and can communicate via the network interface 112. The processing resources 108 and the memory resources 110 provisioned to the VCIs can be local and/or remote to the host 102. For example, in a software defined data center, the VCIs 106 can be provisioned with resources that are generally available to the software defined data center and not tied to any particular hardware device. By way of example, the memory resources 110 can include volatile and/or non-volatile memory available to the VCIs 106. The VCIs 106 can be moved to different hosts (not specifically illustrated), such that a different hypervisor manages the VCIs 106. The host 102 can be in communication with a cloneless snapshot reversion system 114. An example of the cloneless snapshot reversion system is illustrated and described in more detail below. In some embodiments, the cloneless snapshot reversion system 114 can be a server, such as a web server.
As shown in
The snapshot map 218 associated with the snapshot chain 216 can include and maintain information associated with each of the snapshots 1, 2, 3, and 4. As shown in the example illustrated in
Embodiments herein can receive a request to revert to a past snapshot in the snapshot chain 216.
The number of engines can include a combination of hardware and program instructions that is configured to perform a number of functions described herein. The program instructions (e.g., software, firmware, etc.) can be stored in a memory resource (e.g., machine-readable medium) as well as hard-wired program (e.g., logic). Hard-wired program instructions (e.g., logic) can be considered as both program instructions and hardware.
In some embodiments, the reversion engine 356 can include a combination of hardware and program instructions that is configured to receive a request to revert to a past snapshot of a VCI in a snapshot chain of a snapshot tree provided by a software defined data center. In some embodiments, the snapshot engine 358 can include a combination of hardware and program instructions that is configured to create a live snapshot at an end of the snapshot chain, the live snapshot comprising the past snapshot. In some embodiments, the abandon engine 360 can include a combination of hardware and program instructions that is configured to modify an abandoned/not-abandoned status, in a snapshot map associated with the snapshot tree, of each of a plurality of intervening snapshots in the snapshot chain responsive to the request.
Memory resources 410 can be non-transitory and can include volatile and/or non-volatile memory. Volatile memory can include memory that depends upon power to store information, such as various types of dynamic random access memory (DRAM) among others. Non-volatile memory can include memory that does not depend upon power to store information. Examples of non-volatile memory can include solid state media such as flash memory, electrically erasable programmable read-only memory (EEPROM), phase change memory (PCM), 3D cross-point, ferroelectric transistor random access memory (FeTRAM), ferroelectric random access memory (FeRAM), magneto random access memory (MRAM), Spin Transfer Torque (STT)-MRAM, conductive bridging RAM (CBRAM), resistive random access memory (RRAM), oxide based RRAM (OxRAM), negative-or (NOR) flash memory, magnetic memory, optical memory, and/or a solid state drive (SSD), etc., as well as other types of machine-readable media.
The processing resources 408 can be coupled to the memory resources 410 via a communication path 464. The communication path 464 can be local or remote to the machine 462. Examples of a local communication path 464 can include an electronic bus internal to a machine, where the memory resources 410 are in communication with the processing resources 408 via the electronic bus. Examples of such electronic buses can include Industry Standard Architecture (ISA), Peripheral Component Interconnect (PCI), Advanced Technology Attachment (ATA), Small Computer System Interface (SCSI), Universal Serial Bus (USB), among other types of electronic buses and variants thereof. The communication path 464 can be such that the memory resources 410 are remote from the processing resources 408, such as in a network connection between the memory resources 410 and the processing resources 408. That is, the communication path 464 can be a network connection. Examples of such a network connection can include a local area network (LAN), wide area network (WAN), personal area network (PAN), and the Internet, among others.
As shown in
Each of the number of modules 456, 458, 460 can include program instructions and/or a combination of hardware and program instructions that, when executed by a processing resource 408, can function as a corresponding engine as described with respect to
The machine 462 can include a reversion module 456, which can include instructions to receive a request to revert to a past snapshot of a virtual computing instance (VCI) in a snapshot chain of a snapshot tree provided by a software defined data center. The machine 462 can include a snapshot module 458, which can include instructions to create a live snapshot at an end of the snapshot chain comprising the past snapshot. The machine 462 can include an abandon module 460, which can include instructions to indicate an intervening snapshot in the snapshot chain as abandoned in a snapshot map associated with the snapshot tree based on the reversion. The abandon module 460 can add a flag (e.g., “Yes”) to the snapshot map indicating the intervening snapshot as abandoned.
After the creation of the new snapshot and the indication of the intervening snapshots as abandoned, a subsequent read request for a logical address corresponding to the VCI can be received. Responsive to the request, embodiments herein can check the snapshot map for snapshots indicated as abandoned and perform a search for the logical address while disregarding any snapshots indicated as abandoned. Stated differently, embodiments herein can check the snapshot map for snapshots indicated as abandoned and perform a search for the logical address while disregarding any tuples that include snapshot identifiers indicated as abandoned. Accordingly, the machine 462 can include a module including instructions to search the snapshot chain (e.g., logical maps of the snapshots in the chain), in descending order, for a tuple including the logical address. In some embodiments, the instructions to search the snapshot chain in descending order include instructions to determine if a particular snapshot is abandoned (e.g., based on the snapshot map), search the particular snapshot for the tuple including the logical address in response to the particular snapshot not being abandoned, and search a next snapshot in response to the particular snapshot being abandoned or in response to not finding the tuple in the particular snapshot.
An example of executable instructions responsive to a read request for a logical address:
Read requests for intervening snapshots can be processed without consulting the snapshot map for an abandoned/not-abandoned status. Stated differently, embodiments herein can receive, after the indication of the intervening snapshot as abandoned, a read request including an identifier of the intervening snapshot and a logical address corresponding to the VCI and read data from a physical address of the intervening snapshot corresponding to the logical address responsive to receipt of the request.
Snapshots (e.g., intervening snapshots) indicated as abandoned can be deleted from the system that scans each logical map to delete tuples with abandoned snapshots and free the space they point to. Stated differently, any tuple that includes an identifier of any intervening snapshot can be deleted. Deletion may be carried out in a background process. In some embodiments, deletion may be carried out responsive to an indication (e.g., a user indication).
The present disclosure is not limited to particular devices or methods, which may vary. The terminology used herein is for the purpose of describing particular embodiments, and is not intended to be limiting. As used herein, the singular forms “a”, “an”, and “the” include singular and plural referents unless the content clearly dictates otherwise. Furthermore, the words “can” and “may” are used throughout this application in a permissive sense (i.e., having the potential to, being able to), not in a mandatory sense (i.e., must). The term “include,” and derivations thereof, mean “including, but not limited to.”
Although specific embodiments have been described above, these embodiments are not intended to limit the scope of the present disclosure, even where only a single embodiment is described with respect to a particular feature. Examples of features provided in the disclosure are intended to be illustrative rather than restrictive unless stated otherwise. The above description is intended to cover such alternatives, modifications, and equivalents as would be apparent to a person skilled in the art having the benefit of this disclosure.
The scope of the present disclosure includes any feature or combination of features disclosed herein (either explicitly or implicitly), or any generalization thereof, whether or not it mitigates any or all of the problems addressed herein. Various advantages of the present disclosure have been described herein, but embodiments may provide some, all, or none of such advantages, or may provide other advantages.
In the foregoing Detailed Description, some features are grouped together in a single embodiment for the purpose of streamlining the disclosure. This method of disclosure is not to be interpreted as reflecting an intention that the disclosed embodiments of the present disclosure have to use more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive subject matter lies in less than all features of a single disclosed embodiment. Thus, the following claims are hereby incorporated into the Detailed Description, with each claim standing on its own as a separate embodiment.
Number | Name | Date | Kind |
---|---|---|---|
9223659 | Natanzon et al. | Dec 2015 | B1 |
9769250 | Powers et al. | Sep 2017 | B2 |
11144233 | Singhal | Oct 2021 | B1 |
20150142748 | Gottemukkula et al. | May 2015 | A1 |
20160110215 | Bonilla et al. | Apr 2016 | A1 |
20160246681 | Tsirkin | Aug 2016 | A1 |
20180276083 | Mitkar et al. | Sep 2018 | A1 |
20190213267 | Agarwal | Jul 2019 | A1 |
Number | Date | Country |
---|---|---|
101609419 | Dec 2009 | CN |
Number | Date | Country | |
---|---|---|---|
20220027185 A1 | Jan 2022 | US |