Method and system for providing a file system overlay

Information

  • Patent Application
  • 20040044706
  • Publication Number
    20040044706
  • Date Filed
    August 30, 2002
    21 years ago
  • Date Published
    March 04, 2004
    20 years ago
Abstract
A method and system wherein a plurality of different file system views may be provided for the same data. Data copied in a sequential format to a disk based repository using a data protection application is decoded so that the data may be presented and accessed using a standard file system view. The standard file system may be used to randomly access the data as desired.
Description


BACKGROUND

[0001] The present invention relates to the presentation of data and more particularly to providing a plurality of different file system views for the same data.


[0002] Data protection (which includes backing up computer data, restoring computer data, securing computer data, and managing computer data storage) and disaster recovery procedures are essential processes in organizations that use computers. In fact, data protection is the single most expensive storage administrative task. Most large organizations perform data backups to tape media and use a robotically controlled tape library (or tape jukebox) to assist with backup automation. Performing and managing backups and restores involves many functions including, for example, media management (including tape tracking, rotation and off-site storage), tape jukebox management, file tracking, backup scheduling, assisted or automated data restore, and data archival.


[0003] In order to effectively perform the above functions, a sophisticated data protection application (DPA) is required. Examples of such DPAs include, for example, Legato NetWorker, Veritas BackupExec and CA ArcServe. DPAs automate and assist with the essential functions of data protection. DPAs are designed specifically to work with physical tape media, tape drives and tape libraries. Most of the complexity in DPAs relates to their interaction with physical tape.


[0004] Most DPAs implement sophisticated tape packing when performing backup of data. The function of a DPA is to efficiently collect data from the system that is being backed up and then to effectively store this data on tape. DPAs, therefore, implement their own proprietary tape formats to best suit their functionality.


[0005] Restoring data backed-up on tape is an operation that is also performed via the DPA. The DPA typically presents an interface that allows a user to select the file(s) required to be retrieved and facilitates the process of restoration. Physical tapes can only be sequentially accessed and are relatively slow compared to magnetic disks. This means that there is usually a significant time penalty (several minutes) when a file is restored. The restore process is cumbersome and requires that a user learn the operation of the DPA. Restore operations can typically only be performed by a small number of system administrators at a site who have been trained on the DPA's operation.


[0006] Furthermore, the data that is stored on physical tapes is considered offline storage. In order to access the data, it is necessary for the DPA to read the files from the tape and then create appropriate files in a disk-based file system and write the contents of the files to the disk. This indirect restore process is necessary since the seek times for tape are extremely slow compared to disk (minutes instead of milliseconds). Although it would be easier for a user to access data on tape in the same way as data on disk, this would require random access patterns to tape. Tapes, however, are sequential devices making their performance extremely limited when randomly accessed.


[0007] It would therefore be desirable for data written in a sequential format by a particular DPA to be randomly accessible with standard file system semantics at disk-like speed.



SUMMARY

[0008] The current invention is a method and system wherein a plurality of different file system views may be provided for the same data regardless of the manner in which the data was stored. Data stored in sequential format may be accessed randomly at disk-like speed with standard file system semantics.







BRIEF DESCRIPTION OF THE DRAWING(S)

[0009]
FIG. 1 is a method for providing a file system overlay for data stored in sequential format so that the data may be accessed randomly at disk-like speed with standard file system semantics in accordance with the preferred embodiment of the present invention.


[0010]
FIG. 2 is a method for decoding data copied in sequential format to a disk based repository in accordance with the preferred embodiment of the present invention.


[0011]
FIG. 3 is a system for providing a file system overlay for data stored in sequential format so that the data may be accessed randomly at disk-like speed with standard file system semantics in accordance with the preferred embodiment of the present invention.







DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT(S)

[0012] Referring initially to FIG. 1, there is shown a method for providing a file system overlay. The overlay enables data stored in sequential format to be randomly accessed at disk-like speed using a standard file system. For example, when data is copied using the interface of one file system, that same data may be accessed using the interface of different file system. A preferred embodiment of the invention is to construct a standard file system view of data copied in a sequential format by a DPA. Typical standard file system views include Unix File System (UFS), Windows NT (NTFS), Veritas Files System (VxFS) as well as the network versions thereof (CIFS, NFS, etc.). The data copied by the DPA may be copied to a physical tape, but is preferably copied to a disk based repository such as a virtual tape library (VTL). The DPA does not distinguish between copying to a physical tape or copying to a VTL and data copied to the VTL by the DPA is copied in the same format as if the DPA was copying to a physical tape.


[0013] As mentioned, the VTL is a disk based repository for backup data. The VTL is a logical representation of a physical tape library (PTL). It exhibits all the behaviors of a PTL—it appears to have a robotic arm, one or more tape drives, tape cartridge slots, mailbox (entry/exit) slots and a bar code reader. It can respond on the bus (Small Computer System Interface or Fibre Channel, for example) in exactly the same way as a PTL. Furthermore, the characteristics of a VTL are defined by virtual library types. A VTL type defines how many tape drives and tape slots the library should have, as well as how the library should identify itself when probed on the bus.


[0014] Similar to the VTL, a virtual tape is a logical representation of a physical tape. An unlimited number of virtual tapes may be used inside a VTL and are written to by virtual tape drives in the same way as physical tapes. When a virtual tape is created, a tape label is associated with it. This label is used to identify a particular virtual tape which in turn comprises particular virtual tape files. Tape labels in a VTL are reported to the DPA in exactly the same way as tape barcode labels are reported by a PTL. Regardless of whether a VTL, PTL or both are used, it is still essential to have an offsite copy of the backup data. However, copying the contents of a VTL does not require a DPA and is much easier and more flexible. Furthermore, the disk based VTL is more reliable than tape media and a PTL.


[0015] When copying the data to the VTL, the DPA writes the data to the VTL in exactly the same format as if the DPA was writing the data to tape. While the DPA is writing data to the VTL, a log is kept of all the write operations made by the DPA to the VTL. Maintaining the log of write operations allows the particular sequence in which the data was copied to the onsite VTL to be played back in the same way it was received from the DPA. This allows additional physical tapes that are equivalent to physical tapes created using a DPA to be conveniently created, if necessary, without using the DPA. This also means, however, that the data copied to the VTL is still in a sequential format and cannot be randomly accessed using the DPA.


[0016] To randomly access the data which was copied to the VTL in sequential format, the data is decoded and presented in a standard file system. This allows users using a standard file system to directly access the individual files which were collectively copied to the VTL as part of the sequential copy written by the DPA.


[0017] As shown in FIG. 1, the method 10 begins with the step of copying data to a VTL (step 12). The data is copied to the VTL using a DPA as explained above. The data may be a backup data set which is typically copied to the VTL in the form of a small number of large files. The DPA copies the files to the VTL in sequential format. DPAs typically vary in the exact manner in which they copy sequential data, so the exact format in which the data is written will vary as a function of the DPA being used. In step 14, however, decoders are used to decode the sequential data so that the data may be randomly accessed using a standard file system. The sequential data is decoded while taking into account the particular manner in which the DPA copied the data to the VTL as well as the particular file system chosen for presenting that data.


[0018] Once the data, as contained in the VTL is decoded, that same data is presented in a standard file system view where the data may be accessed randomly at disk like speed (step 16). As mentioned above, the file system may be any standard file system such as, for example, Windows NT. This eliminates the requirement that data copied by a DPA be copied as a large file comprising a plurality of smaller files wherein the entire large file must be probed by the DPA when attempting to restore even a single file contained within the large file. In contrast, the present invention allows each individual file to be individually presented and accessed using a standard file system and without using the DPA.


[0019] The preferred method for decoding data (step 14, FIG. 1) so that data copied in sequential format to a VTL may be randomly accessed is shown in FIG. 2. To begin, the copy of the data copied to the VTL is read (step 52) in order to identify the DPA that was used to copy the data to the VTL (step 54). Based on the type of DPA, meta-data is extracted from the copy of the data in the VTL (step 56). The meta-data, by way of example, may include file names, directory names, hierarchical structure, file permissions, file size, creation, modification and access dates, and locations of virtual tape library blocks containing the file data.


[0020] Two alternatives exist for the meta-data extracted in step 56, it may be provided in real time as needed or may be organized into a database. In step 58, the method determines whether to provide the meta-data in real time. If so, the decoders will work in real time to produce the meta-data information only when needed (step 62). If not, the meta-data is organized into a database that is stored in the VTL (step 60). This database can store the meta-data for an unlimited number of backup instances and is similar in structure to file catalogs used by DPAs.


[0021] Regardless of whether the meta-data is provided in real time or organized in a data base, the meta-data is used in step 64 to present the data which was originally copied sequentially to the VTL in a standard file system view. Specifically, a file system layer is implemented and the data is presented as a standard read-only file system.


[0022] So as to provide an example of how the method may be implemented, assume a user performs a backup of the following files using a DPA:
1/home/data/file1/home/data/file2/home/data/file3/home/data/dir1/file1/home/data/dir1/file2/home/data/dir1/dir2/file1/home/data/dir2/file1/home/data/dir2/file2.


[0023] All of those files are copied as one big file, say file “home,” by a DPA to a VTL. By way of background, if a user wants to restore a file, without the file system overlay of the present invention, he needs to start the DPA and, using the DPA's graphical user interface (GUI), probe the entire “home” file until the file that is required to perform the restore is located. Once located, the user must perform the restore via the GUI's restore interface to a specified location.


[0024] In contrast, providing a file system overlay in accordance with the present invention allows a user to simply mount or view the entire “home” file as a file system wherein all of the individual files which make up the “home” file may be presented and accessed directly without using the DPA. As such, all of the individual files that make up the “home” file may be presented as though they are on disk, or possibly at a new location. Therefore, the copy may be represented as individual files such as:
2/restore/home/data/file1/restore/home/data/file2/restore/home/data/file3/restore/home/data/dir1/file1/restore/home/data/dir1/file2/restore/home/data/dir1/dir2/file1/restore/home/data/dir2/file1/restore/home/data/dir2/file2.


[0025] This allows a user to directly choose and open a particular file that previously would have had to be located within a larger file. The particular file or files that are required for a restore may simply be copied to the required destination location.


[0026] Additional embodiments of the invention may be used to simplify the process for searching for a particular instance of a file. For example, a user may specify a data range to the VTL and the VTL in turn may present a file system with all versions of the files required for a restore that cover the designated data range. The files may also be differentiated by means of a unique version extension. Any means of conveniently designating particular files within the VTL so that particular files may be searched more efficiently is well within the scope of the present invention.


[0027] Referring now to FIG. 3, there is shown a system 100 for providing a file system overlay so that data may be presented and accessed in more than one file system. In the system 100 shown, data generated by a computer network 102 is copied to a disk based repository which preferably is, as shown, a VTL 106 so as to provide a backup copy of the data. A DPA 104 is used to copy the data to the VTL 106 in the same format as if the DPA 104 were copying the data to a traditional PTL. A tape emulator (not shown) may be used to trick the DPA into thinking it is writing to a PTL.


[0028] Decoders 108 are also included to decode the data that was copied in sequential format by the DPA to the VTL, so that the data may be presented in a standard file system view. As noted above, the decoders may take into account the particular format used by both the DPA when copying data to a VTL and the file system in which the data will be presented for random access. Once the data has been decoded, it may be presented on the computer network 102 as a plurality of standard read only files which are individually viewable and accessible, to those with permission, using whatever standard file system is used by the computer network 102.


[0029] Although the present invention has been described in detail, it is to be understood that the invention is not limited thereto, and that various changes can be made therein without departing from the spirit and scope of the invention, which is defined by the attached claims. * * *


Claims
  • 1. A method wherein a plurality of different file system views may be provided for the same data, the method comprising the steps of: copying data in sequential format to a disk based repository using a data protection application; decoding the data copied in sequential format to the disk based repository so that the data may be presented and accessed using a standard file system view; and presenting the data in the standard file system view wherein the data may be randomly accessed.
  • 2. The method of claim 1 wherein the data copied to the disk based repository using a data protection application is copied as if the data protection application was copying the data to a physical tape library.
  • 3. The method of claim 1 wherein the disk based repository is a virtual tape library for storing backup data in the same manner as a physical tape library.
  • 4. The method of claim 1 wherein the step of decoding the data copied in sequential format further comprises: reading the data copied to the disk based repository; identifying which type of data protection application was used to copy the data; extracting meta-data based on the type of data protection application used to copy the data; and reading the data to disk in random access format.
  • 5. The method of claim 4 wherein the disk that the data is written to is located within the disk based repository.
  • 6. A method wherein a plurality of different file system views may be provided for the same data, the method comprising the steps of: identifying a format used by a data protection application to copy data to a virtual tape library; selecting a decoder based on the identified format; processing the data using the selected decoder to extract meta-data from the virtual tape; and implementing a file system overlay for the data using the extracted meta-data so that the data may be presented and accessed using the file system overlay.
  • 7. The method of claim 6 wherein the disk based repository is a virtual tape library for storing backup data in the same manner as a physical tape library.
  • 8. The method of claim 6 wherein the step of processing the data further comprises: reading the data copied to the disk based repository; identifying which type of data protection application was used to write the data; extracting meta-data based on the type of data protection application used to write the data; and reading the data to disk in random access format.
  • 9. A system wherein a plurality of different file system views may be provided for the same data, the system comprising: a disk based repository; at least one decoder for decoding data copied to the disk based repository; and wherein the decoded data is presented and accessed on the computer network without using the data protection application.
  • 10. The system of claim 9 wherein data is copied from a computer network to the disk based repository using a data protection application.
  • 11. The system of claim 9 wherein the at least one decoder is selected from a plurality of decoders based on the type of data protection application used to copy the data to the disk based repository.