Modern computer systems hold vast quantities of data that is increasing rapidly; so rapidly, in fact, that in many cases the increase threatens to outstrip the capacity of storage systems. For some companies, data growth can be as high as 30-40% per year. This growth not only needs a continuing investment in newer and bigger storage systems, it also requires a corresponding increase in the cost of managing those systems. It is highly desirable to decrease the amount of storage within a company, as the storage can significantly reduce the capital and operational expenditure of a company.
One characteristic of the data stored in most mass storage systems is that there is a tremendous amount of duplication of data. Examples include duplicate files, files that are slightly different (e.g. multiple drafts of the document), same images being stored in multiple documents, same templates or stationery being applied to presentations etc. While there are some systems that can detect identical files and store them only once, typical systems still require storing large amount of duplicate data. For example, practically every document in a company has the company logo embedded within it, but today's storage techniques are unable to recognize that the same data for the logo is being repeated in every document and are unable to save on storage for that.
There is increased emphasis on sub-file data de-duplication to detect duplicate data at a sub-file level to reduce the storage and network footprint for primary storage as well as secondary storage uses like backup and archive. In recent times, various systems have been designed that can detect duplicate data at sub-file level. Essentially all de-duplication systems create one or more ‘chunks’ out of the file or block storage unit being analyzed for de-duplication and then employ one or more methods of comparison to detect whether a duplicate chunk has been produced.
Current methods of partitioning, or chunking, data are often ineffective at finding common sub-objects in absence of ancestry information about the digital data units being evaluated for de-duplication. For example, if one is aware that file B is derived from file A, one can do a delta comparison between the two files to find common sub-objects or use a “sticky bits” method to partition data. However, in absence of any ancestry knowledge finding common sub-objects requires extreme computational complexity, especially when applied to today's highly distributed computer systems with millions of files spread across thousands of computer systems where ancestry information is scarce.
This disclosure provides methods and systems to achieve content aware and object based chunking of digital data (e.g., file, block, BLOB (i.e., binary large object), or stream data) to increase the probability of identifying duplicated chunks. The systems and methods can be used for various information storage scenarios, including scenarios where:
When partitioning digital data into chunks for the purpose of identifying duplicate chunks, the presence of positional data and metadata results in the storage of different byte patterns for the same underlying logical object depending on the type or instance of the storage unit the object is stored in. The byte patterns may also differ depending on the logical objects' position in the storage unit, and on various transformations specific to a format of the digital data being partitioned. As a result, traditional methods of chunking based on analyzing the byte pattern of the various file based or block based storage units or streams can only find low commonality between different storage units/streams even though they contain the same underlying logical objects. The term ‘chunk’ and ‘logical object’ are related—a chunk is generally a sequence of data that multiple files may have in common. Chunks can be based on logical objects or portions of logical objects found in a digital data unit.
The methods described here eliminate the effect of positional data, instance-dependent data, format-specific data, and transformations (e.g., compression/encryption) while chunking the digital data for the purpose of identifying duplicate chunks. This methods result in creating chunks that are common across the same file and even different files of the same or different types, increasing the probability of identifying duplicate chunks than traditional methods. This method can be used to reduce the footprint of primary storage or secondary storage uses like backup or archive along with reducing the amount of data to be transmitted over the network.
The systems and methods described here provide a fully automated, deterministic process for partitioning a digital data sequence (e.g., a file) such that common objects or chunks can be identified on multiple related and unrelated computer systems without the need for direct communication between those computers to search, compare, communicate or coordinate with other processing elements in the operation of finding those common objects.
An advantage of these systems and methods is that the chunking process they employ does not require communication or comparison to perform well (in contrast to conventional delta factoring systems). This approach is particularly effective in a distributed environment where, in contrast to conventional delta factoring systems require comparisons and communication to compare one sequence to another, the system and method of the present invention can be performed in isolation using only the sequence being processed.
In one embodiment, one or more of the following steps are applied to create chunks from a given piece of digital data (whether file, block, BLOB, or stream based) that needs to be de-duplicated:
After the above one or more steps, what is left is a logical object in a native form that is independent of format specific transformations, embedded positional data, surrounding metadata, or effects of the object having been broken into multiple sub-objects for storage purposes. Operating on the logical object in its native form obtained using the methods described above enables one to find duplicate chunks of the data across even unrelated files. It is possible that only one or more steps are applied when identifying the chunk. Some objects may use different steps, and the particular steps used may are dependent on the file type and object type.
Systems and methods are also disclosed for creating a map, such as a block map, that includes a list of objects/chunks that may be used to reconstitute the original digital data. In addition, the systems and methods can also save data that has been removed from or around a chunk for later use. This data includes information about each of the objects that made up the original file, including the various methods that were applied to the original object in the file during the chunking process, as well as the non-chunk data such as page numbers. The data can be used re-apply/restore the various transformations and data that was removed from or around the constituent chunks during the partitioning process, and to reconstruct the original file using the combination of the chunks and the non-chunk data (e.g., position-dependent, instance-dependent, and/or header/footer data that was removed from the chunks and stored separately from them).
Once objects have been identified using the above process, a suitable method for determining whether this logical object already exists can be applied on the object thus created. Two examples of such methods are hash computation on the newly identified logical object, and comparing it with an existing index of hashes or an actual byte by byte comparison with existing objects.
Other features and advantages will become apparent from the following detailed description, drawings, and claims.
Different digital data formats (e.g., file based, block based, BLOB based, or stream based) have different formats that attach different attributes and apply transformations to the logical objects stored within them. Most of the time, these attributes and transformations change the byte pattern in and around the logical objects stored within the said digital data. This results in a situation where the same logical object can be stored with a different byte pattern in two different places within the same or different unit of digital data. This situation causes issues for the traditional, digital data-format-agnostic methods of de-duplication that chunk the data into various blocks using only the physical layout of the data. These methods cannot determine that the underlying object is common even though the byte pattern is different only due to a transformation or accompanying positional data or header/footer around the logical object.
Logical objects within a unit of digital data typically have one or more of the following attributes or transformations applied to them, each of which hinder finding commonality.
The following methods are employed to increase the probability of identifying duplicate chunks existing within logical objects that are stored in the above ways. Each of the methods may be used alone or in combination with the other methods.
1. Partition the Digital Data into Logical Objects by Applying Knowledge of Various Digital Data Format Specifications
Traditional methods break the digital data being analyzed for de-duplication into chunks in a digital data-format-agnostic way. This approach often leads to sub-optimal chunking because logical objects within the digital data are cut at random intervals, leading to them being distributed across several chunks. A better method is to understand the digital data format and to create chunks at logical object boundaries, and in, the process, creating chunks that contain “whole” logical objects instead of random combinations of one or more logical objects.
2. Handle Broken Objects by Assembling the Broken Object into the One Logical Object
Many times a logical object may not be in a contiguous location within a file. As a result the object needs to be first assembled into one single logical object while keeping the list of all file offsets, size for this broken object. This way if the same logical object is broken differently into two of more files, we can still find commonality among them.
Some examples of common transformations applied to logical objects within digital data are compression and encryption. After these transformations are applied, even though the underlying object is the same, the resulting byte pattern can be different.
The proposed method “un-applies” any transformations applied to the logical object before creating the chunk for the purpose of identifying duplicate chunks. This allows breaking up of the digital data into logical objects that are common across different file or block storage units, BLOBs, and/or data streams of the same and different types.
In all of the above examples, and as shown in
4. Remove Positional Dependent Data or Metadata from the Logical Objects
Another issue that hinders with finding commonality is that the logical objects contain positional data that changes the byte pattern of the logical object every time the relative position of the object is changed, whether within the same digital data unit or a different one. For example, if a slide is moved within a PowerPoint document then the byte pattern of the logical slide object is changed as slide number is part of the slide object. This again hinders the process of finding commonality even though the underlying slide object is the same. Other examples of position dependent data include page numbers, paragraph numbers, and Microsoft Excel cell numbers. Another example is that some objects may contain instance dependent metadata like author name, revision number, modified date, total editing time, number of pages, number of characters, number of lines, number of paragraphs, number of words, etc. These metadata may change every time the file is saved. Removing these metadata from the objects can achieve higher level of de-duplication
The systems and methods described here can analyze the logical object for any position dependent or metadata and remove that data from the chunk being created for the purpose of identifying duplicate blocks.
Another issue is that the digital data format could precede the logical object with a header or append a footer to it. Such a header or footer is generally different for different digital data instances or types and can contain position dependent information. Even though two underlying logical objects may be the same, when viewed in combination with the accompanying header or footer the byte pattern will appear to be different, which is another hindrance to finding commonality for the purpose of de-duplication.
The proposed method analyzes the logical object for any header or footer data and removes it from the chunk being created for the purpose of identifying duplicate blocks.
Multiple files can have one or more of the transformations described above.
6. Handle Compound Data Units Like .PST/.ZIP Files, which Contain File Objects
A compound file, as the name indicates, is comprised of one or more sub-objects that are files, and in addition may contain other sub-objects that are not files. Some examples of compound file formats include .zip (compressed files), .pst (Microsoft Outlook files), .cab, .a, .edb (Microsoft Exchange Database files), Microsoft SQL Server database, Lotus Notes mailbox, SharePoint Repositories, and EMC Documentum formats. These file objects first need to be assembled using an understanding of the format of these compound files, in addition to using the other methods. During the assembly, transformations such as decryption or un-compression, removing header/footer, assembling scattered file sub-objects may also be applied. After assembling the file object, some or all of the above methods for finding further chunks/objects within a file object are applied.
Certain compound file formats can be hierarchical and/or contain objects which are themselves compound objects in which objects contain more objects. In these cases, the above methods can be applied recursively to identify and assemble logical objects at lower levels of the compound hierarchy.
After common objects/chunks have been identified in a set of digital data, the digital data is stored in terms of those objects/chunks in order to reduce the storage and network footprint required for storing the data. Each of the common objects is stored in an de-duplication object repository with an associated identifier. As described below, a representation of the original digital data is then stored using the identifiers to take the place of the common objects.
For each file, a checksum (or hash) can be computed for the entire file. Hash functions may include secure hash algorithms (SHA) such as SHA-0, SHA-1, and/or SHA-2 and/or the MD5 algorithm. When storing digital data (e.g., files) as logical objects, each original file is represented as a de-duplicated file object and stored in a catalog. The de-duplicated file object contains the name of the original file (and/or other identifier of the digital data), along with the file checksum and possibly other attributes such as last-modified time. The checksum provides the identity (e.g., a pointer or reference to) of a FileCheckSum. The FileCheckSum represents the original file, but stored in terms of the common logical objects originally contained in the file. In some cases, the term FileCheckSum may be used as a way to refer to the checksum/hash value that is used to identify the FileCheckSum. FileCheckSums have a BlockMap and an XBlock, as described below.
The FileCheckSum (and the BlockCheckSum objects described below) are stored in a de-duplication repository that is associated with the catalog containing the de-duplicated file objects. The catalog could be a backup catalog of the file objects. The catalog can also be used for non-backup purposes, such as part of a primary file system (e.g., for active, on-going use).
The following information is stored in the BlockMap:
1. Block map header containing version, length etc.
2. XBlock CheckSum (XBlock is described below)
3. List of blocks in this file, storing for each block:
4. List of files inside this compound file, storing for each file:
A BlockMap has a list of BlockCheckSum objects that identify the logical objects/chunks that comprised at least a portion of the digital data as originally stored. A BlockCheckSum is associated with a logical object/chunk, where the information in the logical object is stored only once in an object repository. As such, the BlockCheckSum provides part of ‘the raw material’ from which files can be restored. For each BlockCheckSum, a checksum is computed for the associated logical object that the BlockCheckSum represents in a manner similar to FileCheckSum identifiers. The BlockCheckSum is identified by this checksum.
The XBlock contains information about each of the objects that made up the original file, including the various methods that were applied to the original object in the file during the chunking process, as well as the non-chunk data such as page numbers. The XBlock can be used to re-apply the various transformations and removed/changed data that were removed from the constituent chunks during the partitioning process, and to reconstruct the original file using the combination of the chunks and the non-chunk data (e.g., position-dependent, instance-dependent, and/or header/footer data that was removed from the chunks and stored separately from them). The XBlock contains the following information about each logical object in the associated BlockMap, where the specific information stored for each object will depend on its type and the methods applied during the chunking process:
As explained above, the de-duplicated file objects stored in the catalog contain identifiers of respective FileCheckSums, shown in
Also as explained above, each FileCheckSum has a BlockMap which contains the list of BlockCheckSums (specifically, the identifiers of the BlockCheckSums) that constituted the original digital file. Similar to the FileCheckSums, each BlockCheckSum has a reference count which is equal to the number of times it is being referenced by the BlockMaps.
A FileCheckSum is not deleted until the reference count is zero, e.g., no file (or other FileCheckSum) is referring to it. Similarly a BlockCheckSums is not deleted until the reference count is zero, e.g., no FileCheckSum is referring it to.
The systems and methods described above can be used as new documents are created, to allow new documents to be stored with reduced duplication. They can also be used with existing files and other data in storage for de-duplicating the stored data to reduce the amount of data being stored.
Having described certain embodiments, it should be apparent that modifications can be made without departing from the scope of the appended claims. For example, different types of processors and memory can be used. There are many references to maintaining data in storage. The storage can be any suitable form of memory, such as digital disks, optical disks, or semiconductor memory. The processing acts that are described can be performed with any suitable hardware and/or software logic, or combination thereof, and implemented in any suitable processor, such as a general purpose processor or an application-specific product. Many of the acts described above can be performed by a processor in software that can be stored in computer-readable memory as instruction that, when executed, perform the steps, such as chunking, hashing, comparing, storing data, maintaining blocks, etc.
While the specification refers to removing position-dependent data, removing instance-dependent data, removing one or more format-specific headers or footers from the source logical object, and removing format-specific transformations from the source logical object, other types of data removal can be envisioned. The format of the data can be in a one-to-one correspondence with a type of data removal or transformation, or there can be multiple combinations of data removal and transformations associated with different formats. For example, one format could include removing certain position-dependent data and instance-dependent data, while a second format could include removing position-dependent data and format-specific transformations, and a third format could include only removing one or more format-specific headers or footers.
In addition, data partitioning could consist of just identifying and assembling a logical object that was originally stored in the digital data as one or more sub-objects scattered across multiple storage blocks. In this case, the assembled object is stored along with information indicative of the position or positions of the original object and/or its sub-objects.
This application claims priority to U.S. Provisional Application 61/138,827, filed Dec. 18, 2008, the entire contents of which are incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
61138827 | Dec 2008 | US |