The present invention relates generally to methods and apparatus for data storage. More particularly, the present invention relates to methods and apparatus for maintaining data associated with timestamps or counters in data storage systems.
Data storage systems are used to store data on physical media in a manner that is transparent to host computers. From the perspective of a host computer, data is stored at logical addresses located on file systems, or logical volumes, of the storage system. The file systems or logical volumes are typically configured to store the data required for a specific data processing application. Data storage systems map the logical addresses to addressable physical locations on storage media, such as direct access hard disks. In a typical configuration, physical locations comprise tracks on a hard disk, and a track can typically store many blocks of data.
Snapshots of a logical volume reflect the status of data stored in the logical volume at an instant of time. Snapshots are often used to generate copies of logical volumes for testing purposes or for restoring the logical volumes. Typically a snapshot is implemented without physically copying all data in the logical volume. Rather, the snapshot is defined, and data comprising the snapshot is kept at the original physical location. When a command is subsequently received to write new data at the original location, the old data representing the data from the time of the snapshot is preserved.
Snapshots may also be referred to as instant copies, though generally snapshots refer to copies that are accessible in a read-only manner, whereas instant copies typically have read and write capabilities.
U.S. Pat. No. 6,779,094 to Selkirk, et al., whose disclosure is incorporated herein by reference, describes various instant copy mechanisms for copying data upon receiving a write operation to either original or copied data. Upon receiving a write operation for writing new data to a first data location, the new data is written to a second data location. Multiple layers of mapping tables provide unique identification of the storage location of the data such that individual entries in the mapping tables are variable and may be self-defining.
U.S. Pat. No. 6,779,095 to Selkirk, et al., whose disclosure is incorporated herein by reference, describes the use of a plurality of layers of mapping tables for storing data. The mapping tables provide unique identifications of locations of the data. When the data is copied, the physical placement of the original data is described by a mapping mechanism referred to as the original data map. This identifies the physical storage location used to store the original data. The physical placement of the copy data is described by a mapping mechanism referred to as the copy data map. This identifies the physical storage location used to store the copy data.
U.S. Patent Publications 2003/0195887 and 2003/0208463 to Vishlitzky, et al., whose disclosures are incorporated herein by reference, describe a storage device containing a first storage area of a first type containing data and a second storage area of a second type containing a table of pointers to the data provided in the storage area of the first type. The second storage area is a virtual storage area containing no sections of data and represents a copy of the data of the first storage area at a point in time.
U.S. Pat. No. 6,820,099 to Huber, et al., whose disclosure is incorporated herein by reference, describes the use of a snapshot volume to update a primary, or “base,” logical volume. Updates are made to the snapshot volume while the base volume is still used to satisfy normal data access requests. After the updating of the snapshot is complete, the snapshot is “rolled back” to the base volume. During rollback, updated data are available from either the snapshot or from the base volume, and thus the updating appears to be instantaneous.
U.S. Pat. No. 6,687,718 to Gagne, et al., whose disclosure is incorporated herein by reference, describes transferring data from a data altering apparatus, such as a production data processing site, to a remote data receiving site. A data storage facility includes a first data store for recording each change in the data generated by the data altering apparatus. A register set records each change on a track-by-track basis. A second data store has first and second operating modes. During a first operating mode the second data store becomes a mirror of the first data store. During a second operating mode the second data store ceases to act as a mirror and becomes a source for a transfer of data to the data receiving site. Only information that has been altered, i.e., specific tracks that have been altered, is transferred during successive operations in the second operating mode.
U.S. Pat. No. 6,513,102 to Garrett, et al., whose disclosure is incorporated herein by reference, describes a system for transferring data from a first storage device, accessible to a first command processor, to a second storage device accessible to a second command processor but not necessarily to the first processor. In this case, the transfer is made internally by a storage controller rather than by requiring the command processors to communicate directly with each other.
U.S. Pat. No. 6,742,138 to Gagne, et al., whose disclosure is incorporated herein by reference, describes a data recovery program that restores data in a first storage device using data from a second storage device. The program also updates the first storage device with data supplied from a host.
U.S. Pat. No. 6,574,703 to Don, et al., whose disclosure is incorporated herein by reference, describes a method for initializing an extent on a mass storage device having at least one track. Initializing the extent comprises setting an initialization code indicating that the track is to be initialized. A subsequent read/write operation in a track of the extent causes the track to be rewritten with the initialization data.
U.S. Patent Publication 2003/0195864 to Vishlitzky, et al., whose disclosure is incorporated herein by reference, describes providing storage areas of a multiplicity of types that contain sections of data. Pointers are provided that are claimed to allow access or not to allow access to the data.
U.S. Pat. No. 6,839,827 to Beardsley, et al., whose disclosure is incorporated herein by reference, describes a method for mapping logical blocks to physical storage blocks. A storage controller defines the logical storage space as a sequence of logical chunks, wherein each logical chunk comprises a plurality of logical blocks in the logical storage space. The storage controller further defines a physical storage space as a sequence of physical chunks, wherein each physical chunk comprises a plurality of physical blocks in the physical storage system. The storage controller associates each logical chunk in the sequence of logical chunks defining the logical storage space with one physical chunk in the physical storage system. Further, contiguous logical chunks are capable of being associated with non-contiguous physical chunks.
U.S. Pat. No. 6,088,764 to Shyam, et al., whose disclosure is incorporated herein by reference, describes a method for reducing space allocation failures in a computer system that utilizes direct access storage devices to store data. The method comprises determining if authorization has been given to attempt to allocate an initial space request over more than one volume, and, if so, attempts to allocate space on a plurality of volumes. If the initial space request cannot be allocated on a plurality of volumes, the initial space request is reduced by a preset percentage, an extent limit is removed and an attempt is made to allocate the reduced space request on the plurality of volumes.
U.S. Pat. No. 5,897,661 to Baranovsky, et al., whose disclosure is incorporated herein by reference, describes an apparatus providing a logical unit of undivided data storage that spans physical storage device boundaries. The apparatus manages the logical unit of undivided storage using metadata information stored on the physical storage devices. The apparatus replicates a minimum portion of the metadata information across all of the data storage devices and typically writes metadata only in the devices where the information is required to operate. In a preferred embodiment, a logical unit of undivided storage is created by defining a logical volume and allocating portions of available physical data storage devices thereto in order to provide a minimum logical volume size. Metadata is generated and stored on the data storage devices to provide detailed information about the portions of each data storage device that have been allocated to the logical volume.
U.S. Patent Application Publications 2005/0076262, 2005/0076261, 2005/0066222, 2005/0065962, and 2005/0063374 to Rowan, et al., whose disclosures are incorporated herein by reference, describe “a method, apparatus, and system for accessing units of storage that depends at least in part on an address of the unit of storage and the time that data was written to the unit of storage.” A data store is provided that identifies the location of data at a requested address in response to a time specification and a data request. In one embodiment, “the location is chosen from a time store associated with a data store and a current store associated with the data store, or some combination. The identifying step can include determining whether the data at the requested address at the specified time was changed after the specified time. If data at the requested address was changed after the specified time, the identified location is the time store. If the data was not changed, the identified location is the current store.”
Embodiments of the present invention provide efficient methods and apparatus for managing snapshots in a data processing system.
In embodiments of the present invention, a data storage system receives, typically from a host computer, a first write command to store data identified by a logical address of a first logical volume. The storage system stores the data at a first physical location, which the storage system associates with a partition of the first logical volume. Meta-data, comprising configuration records and a first partition descriptor record (PDR) facilitate the association between the first physical location and the partition. The storage system may subsequently receive a management command to create a snapshot of the first logical volume. The snapshot is created by simply incrementing a global counter associated with the first logical volume. Thus the snapshot is essentially created instantaneously. After the snapshot is created, a second write command may be received to store new data at the partition. The new data is stored at a second physical location associated with the partition by means of a second PDR. The data at the first physical location remains unchanged and may be accessed in response to a read command that requests data from the first snapshot. Access to the data at the first physical location is implemented using the first PDR. Association of the data with the first snapshot is confirmed by testing a snapshot indicator associated with the first PDR.
Implementation of the second write command also comprises linking the second PDR by a pointer to the first PDR. When a subsequent read command is issued to read data associated with a given snapshot, the storage system first accesses the PDR that was created most recently. If the snapshot indicator of the most recent PDR is more recent than the snapshot requested, the links between PDRs are followed until a PDR is identified that comprises a snapshot indicator equal or earlier to that given by the read command. The read command is then implemented by reading the data addressed by the identified PDR.
A copy command copies a prior status of a first logical volume, as defined by a snapshot number given in the command, to a second logical volume. Hereinbelow, the first logical volume is referred to as the source volume, and the second volume is referred to as the target volume. To implement the command, the storage system first generates a configuration record defining the target logical volume. Then, for each partition of the source volume, the storage system follows links between PDRs, as described above, until the PDR associated with the snapshot is identified. The PDR is copied and associated with the target logical volume, while the data addressed by the PDR remains in the same location. In this manner, a logical volume copy may be made without copying physical data. The target volume reflects the status of the source volume at the given snapshot time.
In an alternative embodiment of the present invention, a global snapshot time is used instead of a global counter to track snapshots of the logical volume. In such embodiments, the snapshot indicator comprised in PDRs is indicative of time rather than being a discrete integer.
There is therefore provided, in accordance with an embodiment of the present invention, a method for creating logical volume snapshots in a data storage system, including:
responsively to a first write command to write first data to a partition of a logical volume, generating a first partition descriptor record (PDR) and storing the first data at a first physical location associated with the first PDR;
subsequent to the first write command, receiving a snapshot command to form a snapshot of the logical volume;
subsequent to the snapshot command and responsively to a second write command to write second data to the partition of the logical volume, generating a second PDR and storing the second data at a second physical location associated with the second PDR, and generating a pointer between the first PDR and the second PDR; and
subsequent to the second write command and responsively to a read command indicating a number of a desired snapshot of the logical volume, accessing the first PDR using the pointer.
In an embodiment, the snapshot command includes receiving the command at a specific time and setting a global counter equal to the specific time.
In an embodiment, receiving the snapshot command includes incrementing a global counter.
In an embodiment, generating the first PDR includes generating a snapshot indicator of the first PDR.
For some applications, accessing the first PDR includes comparing the snapshot indicator of the first PDR with the number of the desired snapshot.
In an embodiment, generating the first PDR includes associating the partition of the logical volume with the first PDR. Typically, generating the second PDR includes disassociating the partition from the first PDR and associating the partition with the second PDR. In this case, associating the partition with the first PDR may include generating a further pointer to the first PDR in a partition hash table.
In some applications, generating the pointer between the first PDR and the second PDR includes generating a binary tree of a series of PDRs. In this case, the binary tree may be generated by an Adelson-Velskii and Landis (AVL) method.
In an embodiment, the logical volume includes a source logical volume, the partition includes a first partition. Typically, the method includes, responsively to a volume copy command to copy the source logical volume to a target logical volume:
generating a third PDR associated with the first physical location; and
associating the third PDR with the target logical volume.
There is further provided, in accordance with an embodiment of the present invention, apparatus for creating snapshots in a data storage system, including:
a control unit which is adapted:
to generate a first partition descriptor record (PDR) responsively to a first write command to write first data to a partition of a logical volume,
to store the first data at a first physical location associated with the first PDR,
to receive a snapshot command to form a snapshot of the logical volume,
to generate a second PDR responsively to a second write command to write second data to the partition of the logical volume,
to store the second data at a second physical location associated with the second PDR,
to generate a pointer between the first PDR and the second PDR, and
to access the first PDR using the pointer, responsively to a read command indicating a number of a desired snapshot of the logical volume.
In an embodiment, the control unit is adapted to receive the snapshot command at a specific time and to set a global counter equal to the specific time.
In an embodiment, the control unit is adapted to increment a global counter.
In an embodiment, the control unit is adapted to generate a snapshot indicator of the first PDR.
For some applications, the control unit is adapted to compare the snapshot indicator of the first PDR with the number of the desired snapshot.
In an embodiment, the control unit is adapted to associate the partition of the logical volume with the first PDR. The control unit may also be adapted to disassociate the partition from the first PDR and to associate the partition with the second PDR. The control unit also may be adapted to generate a further pointer to the first PDR in a partition hash table.
In an embodiment, the control unit is adapted to generate a binary tree of a series of PDRs. The control unit may be adapted to generate the binary tree by an Adelson-Velskii and Landis (AVL) method.
For some applications, the logical volume includes a source logical volume and the partition includes a first partition. The control unit may be further adapted, responsively to a volume copy command, to generate a third PDR associated with the first physical location, and to associate the third PDR with the target logical volume.
The present invention will be more fully understood from the following detailed description of the embodiments thereof, taken together with the drawings in which:
Reference is now made to
The logical addresses specify a range of data blocks within a logical volume, each block herein being assumed by way of example to contain 512 bytes. For example, a 10 KB data record used in a data processing application on a host computer would require 20 blocks, which the host computer might specify as being stored at a logical address comprising blocks 1000 through 1019 of a logical volume V1.
Storage system 10 typically operates in, or as, a network attached storage (NAS) or a storage area network (SAN) system. However, it will be understood that the scope of the present invention is not limited to storage systems operating in any particular configuration. Rather, the scope of the present invention includes systems operating in any suitable configuration used for storing data.
I/O commands to read data comprise at least two fields, a first field specifying the command type (i.e., read), and a second field specifying the logical address, which includes the logical volume. I/O commands to write data comprise at least three fields, a first field specifying the command type (i.e., write), a second field specifying the logical address, and a third field specifying the data that is to be written. In embodiments of the present invention, read commands may include an additional field comprising a snapshot number, as described further hereinbelow.
Storage system 10 comprises one or more caches, exemplified in
Each of the caches is assumed to be approximately equal in size and is also assumed to be coupled, by way of example, in a one-to-one correspondence with a set of physical storage.
Those skilled in the art will be able to adapt the description herein, mutatis mutandis, to differently-sized caches and to caches and storage devices in other correspondences, such as the many-to-many correspondence described in US Patent Publication 2005/0015566, titled “Data Allocation in a Distributed Storage System,” which is assigned to the assignee of the present invention and which is incorporated herein by reference. Each set of physical storage comprises multiple slow and/or fast access time mass storage devices, hereinbelow assumed to be multiple hard disks. By way of example,
A single addressable physical location, also referred to herein as a track, typically contains 128 data blocks.
In some embodiments of the present invention, a management node 30 of storage system 10 receives, from a management module 32, a formation command to form a logical volume V1. The management module may be operated from a dedicated external computing system or from one or more of the host computers. The purpose of the formation command is to permit host computers 12 to specify logical addresses of V1 in subsequent I/O commands.
In response to the formation command, management node 30 creates routing records which indicate how the logical addresses of V1 are to be distributed across caches 18, 20, and 22. In an embodiment of the present invention, the routing of logical addresses is implemented according to methods described in the above-referenced US Patent Publication 2005/0015566. According to the aforementioned methods, management node 30 assigns logical addresses to groups, herein referred to as partitions. Each partition may comprise a set of logical addresses equal in size to a track. Management node 30 determines the allocation of partitions among the one or more caches to provide an approximately equal number of partitions on each cache. The allocation is such that when data blocks of a logical volume are written to storage system 10, the blocks will be distributed in a balanced manner across all caches. Furthermore, the association of partitions with caches may be done in such a manner that the partitions of one logical volume associated with a specific cache, such as cache 18, may have the same identifying names, or numbers, as the partitions of additional logical volumes that are also associated with cache 18. That is, if a partition identified as P1 and comprising logical addresses of logical volume V1 is stored on cache 18, then partitions of additional volumes V2 and V3 with the identification of P1 may also be stored on cache 18.
The routing records, indicating the association of logical addresses of logical volumes with partitions and the association of the partitions with caches, are distributed by the management node to one or more generally similar network interfaces of storage system 10. The network interfaces are indicated in
Referring back to the formation command to form volume V1, management node 30 also distributes messages to caches 18, 20, and 22 instructing the caches to form volume V1.
Subsequent to the formation of V1, network interfaces 33, 34, and 35 receive I/O commands from host computers 12 specifying logical addresses of V1. The network interfaces use the routing records to break the commands into I/O commands, or command subsets, which are then distributed among caches 18, 20, and 22. By way of example, network interface 33 may receive a command to read data at a logical address comprising blocks 1000 through 1019 of logical volume V1. Network interface 33 uses the routing records to convert the logical address (which comprises 20 blocks) to partition addresses, such as a first partition address comprising blocks 125 through 128 on a partition P5 of cache 18, and a second partition address comprising blocks 1 through 16 on a partition P6 of cache 20.
Having determined the partition addresses associated with caches 18 and 20, network interface 33 then sends I/O commands specifying the partition addresses to the respective caches 18 and 20. Each cache, upon receiving the respective command, then determines a physical location, i.e., a track, associated with the specified partition. Thus, following the example described above, cache 18 identifies the track associated with its partition P5, and cache 20 identifies the track associated with its partition P6. Each cache will then read data from the indicated track according to processes described further hereinbelow.
Routing of commands from network interfaces 33, 34, and 35 to each cache is typically performed over a network and/or a switch. Herein, by way of example, the network interfaces are assumed to be coupled to the caches by a switch 36.
In further embodiments of the present invention, a management node 30 of storage system 10 may receive from a management module 32 a snapshot command to create a snapshot of a logical volume, as described further hereinbelow.
Cache 18 also comprises a data space 46, wherein data may be manipulated or temporarily stored during an I/O process. Cache 18 further comprises a partition hash table 48 used by control unit 38 to access PDRs.
Logical volume records are created and modified in response to management commands that control unit 38 receives from management node 30. Management commands comprise commands to form logical volumes, to copy logical volumes, and to create snapshots of logical volumes.
When a management command to create a snapshot of a logical volume is received by cache 18, the global counter of the logical volume is incremented. For example, when a snapshot command to create a first snapshot of V1 is received, the global counter may be incremented to 1, as indicated by record 52 of
A snapshot indicator (SI) in field 82 associates the given PDR with a snapshot, thereby enabling PDRs of a given snapshot to be retrieved from storage system 10. When a new PDR is created, it is created with a snapshot indicator equal to the current global counter of the respective logical volume. By way of example, before any snapshots have been created for logical volume V1, a PDR for partition P1 of V1 may appear as shown by a record 62 in Set 1 of
When a first snapshot command is received by cache 18, the global counter of V1 is incremented to 1, as shown in
After the first snapshot command, the next subsequent write command to P1 causes a new physical location to be allocated for the data comprised in the command. A new PDR is created addressing the new physical location and comprising the fields shown in record 66 of Set 2. As indicated by field 84 of record 66, the new physical location has address PY0002. As indicated by field 82, the snapshot indicator of the new PDR is 1, corresponding to the current global counter. The earlier data of P1 at the time of snapshot number 1 remains unchanged at physical address PY0001. Thus, this data may be accessed in response to subsequent read commands that specify the data of snapshot number 1.
The PDR of record 62 is modified to become a record 64 of Set 2. Fields 70, 72, and 74 are used to chain the PDRs together, field 70 acting as an identifier of a given PDR, prior link field 72 pointing to the identifier of the PDR created directly before the given PDR, and forward link field 74 pointing to the identifier of the PDR created directly after the given PDR. Thus, record 64 is shown to have a link address of P00001 and has a forward link to record 66, which has a link address of P00002. Conversely, record 66 has a prior link to P00001.
Fields 70, 72, and 74 are described further in relation to process 200 (
To implement the write command, control unit 38 first accesses at a step 204 a PDR associated with data most recently written to partition P1. This PDR is herein termed the current PDR, and is accessed by a pointer in partition hash table 48 (
After the data is modified, the decision as to where to write the modified data is made in a decision step 210. The snapshot indicator, SI, of the current PDR is compared with the global counter, GC, of V1. If GC is greater than SI, then GC has been incremented by at least one snapshot command since the last time data was written to P1. For example, if GC=2 and SI=1, then the data addressed by the current PDR represents the status of the data of P1 at the time of snapshot 1, this being the snapshot which caused GC to be incremented to 2. Thus, the data addressed by the current PDR must be saved to preserve snapshot number 1. The “yes” path from decision step 210 is followed to a step 212, at which a new physical storage location is allocated for the modified data. At a subsequent step 214, the modified data is written to the newly allocated storage location. Next, at a step 216, a new PDR is created to address the new storage location. Link pointers are modified in both the current PDR, which becomes a prior PDR, and in the new PDR (fields 70, 72, and 74 of records 64 and 66 of
At a step 218, the partition hash table is set to point to the new PDR, which thereby becomes the current PDR for subsequent write commands. Following step 218, the completion of the command is acknowledged at a step 222 and the process ends.
Alternatively, at decision step 210, the snapshot indicator and the global counter may be found to be equal. In this case, the current PDR points to data that already has been modified after the last snapshot command. Consequently, this data does not need to be preserved for a snapshot. The “no” path from step 210 is therefore followed to a step 220, at which the modified data is simply written back to the physical address indicated by the current PDR. Following step 220, the completion of the command is acknowledged at a step 222 and the process ends.
It may thus be understood that in order to make data associated with a snapshot of a volume V5 available for subsequent access, cache 18 does not write over data associated with a snapshot, but instead stores a subsequent update of data in a partition at a new physical address. A new PDR is created, linking the physical address with the partition. The prior data remains at the original physical address, which is pointed to by the original PDR. Also, the original PDR is updated so that it and the new PDR are linked.
It may likewise be understood that the amount of metadata necessary for implementing snapshots is directly proportional to the number of partitions subsequently modified and is relatively small in comparison with the amount of data stored in the logical volume. Consequently, the embodiment is efficiently scalable, in that the size of a logical volume may be increased with only a proportional increase in the amount of metadata needed to manage the logical volume.
The read command comprises a snapshot number, SN, indicating the desired prior snapshot of data to be accessed. To implement the read command, control unit 38 first uses the partition hash table to access, at a PDR access step 234, the current PDR associated with P1. At a step 236, a snapshot indicator, SI, of the current PDR is read and, at a subsequent decision step 238, SI is compared with the snapshot number SN.
If SI is greater or equal to SN, meaning SI is more recent than the snapshot, then the current PDR contains changes made subsequent to the time of the snapshot. Conversely, if SI is not greater, but rather less than SN, then no changes have occurred in partition P1 since the time of the snapshot. In the latter case, because no changes have occurred, the data at the physical address indicated by the current PDR satisfies the read command. The “yes” branch of step 238 is therefore followed to a step 244, at which the data indicated by the identified PDR is read and transmitted. If changes have occurred, then prior data is sought by the read command. In this case, the “no” branch of step 238 is followed to a PDR access step 240, comparable to step 234. It may be understood that the difference between step 234 and step 240 is that the current PDR is accessed at step 234 through the partition hash table, whereas a prior PDR is accessed at step 240 through the prior link field 72 of the current PDR.
Following step 240, the SI of the prior PDR is accessed at a step 242. The loop of steps 238-242 is then reiterated until a PDR with SI less than or equal to SN is identified. At this point, the “yes” branch of step 228 is followed to step 244, described above, after which the process ends.
Upon receiving the copy command, the control unit generates, at a step 254, a logical volume record defining V2, as described above with reference to
Once the PDR is located, the physical address associated with the PDR is associated with a new P1 PDR created for the target logical volume. Both the source and the target thus comprise a partition P1 pointing to the same physical address. At a subsequent step 262, the next partition of logical volume V1 is accessed, and if such a partition exists, then at a decision step 264, the “yes” branch is followed to step 258, so that steps 258-264 are iterated until all partitions of V1 have been accessed, at which point process 250 ends.
It will be appreciated that in process 250 the implementation of the copy command does not copy physical data and may thus be considered to be analogous to a form of instant copy, such as is described in more detail in the abovementioned U.S. patent application Ser. No. 11/123,993. The target volume generated by process 250 comprises all partitions of the source volume as of the given snapshot, based on the snapshot indicators of each partition of the source volume.
When storage system 10 is configured to implement PDR linking using balanced binary trees, link fields of PDRs are manipulated in order to create a tree, rather than a simple linked list. Other than this manipulation, the process of writing new data follows the steps of process 200 (
PDR #2 has two branches, indicated respectively by specifying P00001 in the left link field and P00003 in the right link field. The parent node of PDR #2 is indicated by specifying P00004 in the parent field. The other PDR records in
In alternate embodiments of the present invention, when PDR 272 is added to the series of PDRs of
In further embodiments of the present invention, the time of a snapshot rather than a snapshot number is used to track snapshots in the system. Processing of read, write, and copy commands is implemented substantially according to processes 200, 230, and 250, respectively; however, the values of the global counter, the snapshot indicator, and the snapshot number are replaced by numbers indicative of the time of the snapshot. That is, GC, which is initially 0, is set equal to the time of a first snapshot rather than being incremented to 1 when a command to create the first snapshot is received. Subsequently, when a write command directed to a partition P1 is implemented in write process 200, SI of the P1 PDR is compared with the time indicated by GC at decision step 210. As before, if SI is less than GC, indicating that the partition has not been overwritten since the last snapshot, then the “yes” branch of the decision step is followed. Similarly, when a read command to a partition P1 is implemented in read process 200, SI of the P1 PDR is compared with the time (SN) indicated by the read command at decision step 238. As before, if SI is not less than SN, indicating that partition is more recent than the snapshot, then the “no” branch is followed and a prior PDR is retrieved.
It may be understood that storage system 10 will operate more efficiently when partition sizes are defined to reflect the size of typical write commands. That is, when commands typically update only a few blocks of a partition, a small partition size, such as 100 blocks, would be more efficient than a larger size. Small partition sizes increase the number of PDRs that must be maintained, but reduce the overall amount of storage space required by the system. An exemplary choice of partition size may be 1 MB for block sizes of ½ KB, in which case a partition comprises 2000 blocks.
Although the embodiments described hereinabove relate to a distributed data storage system serving host computers over a network, it will be appreciated that the principles of the present invention may also be applied, mutatis mutandis, to storage systems in other configurations, such as stand-alone systems serving individual or multiple hosts. The methods described hereinabove may also be applied to additional data storage management commands such as a command to copy a source volume to multiple target volumes, some of which may be read-only volumes. It will thus be appreciated that the embodiments described above are cited by way of example, and the present invention is not limited to what has been particularly shown and described hereinabove. Rather, the scope of the present invention includes both combinations and sub-combinations of the various features described hereinabove, as well as variations and modifications thereof which would occur to persons skilled in the art upon reading the foregoing description and which are not disclosed in the prior art.
Number | Name | Date | Kind |
---|---|---|---|
5379391 | Belsan et al. | Jan 1995 | A |
5897661 | Baranovsky et al. | Apr 1999 | A |
5956731 | Bamford et al. | Sep 1999 | A |
5964874 | Gross et al. | Oct 1999 | A |
6088764 | Shyam et al. | Jul 2000 | A |
6513102 | Garrett et al. | Jan 2003 | B2 |
6574703 | Don et al. | Jun 2003 | B1 |
6687718 | Gagne et al. | Feb 2004 | B2 |
6742138 | Gagne et al. | May 2004 | B1 |
6779094 | Selkirk et al. | Aug 2004 | B2 |
6779095 | Selkirk et al. | Aug 2004 | B2 |
6820099 | Huber et al. | Nov 2004 | B1 |
6839827 | Beardsley et al. | Jan 2005 | B1 |
6898681 | Young | May 2005 | B2 |
6944732 | Thunquest et al. | Sep 2005 | B2 |
6996682 | Milligan et al. | Feb 2006 | B1 |
7191304 | Cameron et al. | Mar 2007 | B1 |
7577806 | Rowan et al. | Aug 2009 | B2 |
7620666 | Root et al. | Nov 2009 | B1 |
20020019920 | Reuter et al. | Feb 2002 | A1 |
20030158863 | Haskin et al. | Aug 2003 | A1 |
20030195864 | Vishlitzky et al. | Oct 2003 | A1 |
20030195887 | Vishlitzky et al. | Oct 2003 | A1 |
20030208463 | Vishlitzky et al. | Nov 2003 | A1 |
20040268067 | Yamagami | Dec 2004 | A1 |
20050063374 | Rowan et al. | Mar 2005 | A1 |
20050065962 | Rowan et al. | Mar 2005 | A1 |
20050066222 | Rowan et al. | Mar 2005 | A1 |
20050076261 | Rowan et al. | Apr 2005 | A1 |
20050076262 | Rowan et al. | Apr 2005 | A1 |
20050289309 | Suzuki | Dec 2005 | A1 |
20060242371 | Shono et al. | Oct 2006 | A1 |
Number | Date | Country | |
---|---|---|---|
20070067583 A1 | Mar 2007 | US |