US8880478B2 - Scan-free archiving - Google Patents

Scan-free archiving Download PDF

Info

Publication number
US8880478B2
US8880478B2 US11/617,465 US61746506A US8880478B2 US 8880478 B2 US8880478 B2 US 8880478B2 US 61746506 A US61746506 A US 61746506A US 8880478 B2 US8880478 B2 US 8880478B2
Authority
US
United States
Prior art keywords
access
file
log
archiving
computer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related, expires
Application number
US11/617,465
Other versions
US20080162601A1 (en
Inventor
Ying Chen
Chao Liu
Lesley Mbogo
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
International Business Machines Corp
Original Assignee
International Business Machines Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by International Business Machines Corp filed Critical International Business Machines Corp
Priority to US11/617,465 priority Critical patent/US8880478B2/en
Assigned to INTERNATIONAL BUSINESS MACHINES CORPORATION reassignment INTERNATIONAL BUSINESS MACHINES CORPORATION ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: MBOGO, LESLEY, CHAO, LIU, CHEN, YING
Publication of US20080162601A1 publication Critical patent/US20080162601A1/en
Application granted granted Critical
Publication of US8880478B2 publication Critical patent/US8880478B2/en
Expired - Fee Related legal-status Critical Current
Adjusted expiration legal-status Critical

Links

Images

Classifications

    • G06F17/30073
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/113Details of archiving
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1734Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs
    • G06F17/30144

Definitions

  • the invention relates to a method for archiving data, and more particularly, archiving data in a storage server using a runtime monitoring system.
  • archiving methods archive files based on their respective last access times, i.e., a file “atime” (last time accessed). For example, a policy may be to archive all files that have not been accessed for more than “x” number of days.
  • Traditional algorithms designed for such an archiving policy typically scan all files in the system on a regular basis, e.g., once per day, and check whether “x” days have passed since the last access for each file. Files that have not been accessed for at least “x” days will then be archived.
  • atime the last file access time
  • the current time the atime of the file and the current time are used to make a determination of when the file was last accessed and if the file should be archived.
  • a disadvantage of typical algorithms used in archiving methods occurs because data has grown exponentially for many business making daily scans of entire file systems for archiving a non-viable solution to archiving needs. For example, millions of files can require hours to scan, leading to significant performance-intrusion to normal production workloads, even though typically, only a fraction of files need to be archived on each day. Scanning numerous files typically found at a business raises issues pertaining to cost, performance, reliability, and availability. Cost-effective information management, including archiving, throughout the information's lifecycle can be of critical importance to a company. Archiving is prominent in the domain of Information Lifecycle Management (ILM).
  • ILM Information Lifecycle Management
  • High end or low end disk storage where high end disk storage may be server hard drives and low end disk storage may be tapes using tape drives.
  • HSM Hierarchical Storage Management
  • archiving solutions that archive files based on the last access time of the file.
  • the existing archiving technologies typically rely on regular and expensive data repositories or file system scans to determine the archiving candidate files.
  • the high-end storage can often host several terabytes of data and the low-end tape storage can keep tens or hundreds of terabytes of data, sometimes even petabytes.
  • a disadvantage of current archiving techniques includes the lack of an efficient technology, system or method for scanning numerous files for archiving and archiving selected files. The lack of such an efficient system or method in the art results in slow and performance intrusive archiving techniques.
  • a method for archiving data in a storage server is provided using a runtime monitoring system.
  • the method includes providing a plurality of data files and creating access logs according to a specified format from the plurality of data files. At least one of the access logs from the plurality of data files is examined and a file will be archived from the examination of the access logs. An archive procedure is initiated for a file when the file has not been accessed for a specified period of time.
  • the step of determining if the file will be archived includes ascertaining if the file has a duplicate entry in the access log, and archiving the file when the file does not have the duplicate entry in the access log.
  • the specified format is an append only access log.
  • the file is not archived if its access log has been examined within a specified time period.
  • the plurality of data files are tracked as the data files are created, and the tracking of the plurality of data files may occur when the data files first enter a data storage system which may include a plurality of computer data storage elements.
  • the method further includes the steps of determining when the access log is available and not available.
  • the access log is not available the plurality of data files are scanned to determine if the file will be archived, and the archive procedure is initiated for the file when the file has not been accessed for the specified period of time.
  • a runtime monitoring system for archiving data in a storage server comprises a plurality of data files, and an access monitoring device for monitoring a users accessing of the data files and creating at least one access log according to a specified format from the plurality of data files.
  • a monitoring daemon examines at least one of the access logs from the plurality of data files and determines if an accessed file will be archived from the examination of the at least one of the access logs.
  • the monitoring daemon initiates an archive procedure for the accessed file when the accessed file has not been accessed for a specified period of time.
  • FIG. 1 is a diagram depicting an archiving system according to the present invention.
  • FIG. 2 is a block diagram of access logs shown in FIG. 1 .
  • an archiving system architecture comprises a runtime monitoring system 10 which includes an access monitor module 18 installed on the storage server 14 , e.g., a file system server, and an archiving daemon 22 .
  • Users or administrators 11 are able to access the storage servers 14 and access local applications or host application on their individual nodes or computers 12 .
  • One computer and user system 11 is shown in FIG. 1 for illustrative purposes, however, it is understood that numerous users and computers are envisioned as accessing the storage servers 14 .
  • the storage servers 14 can access high-end storage, for example, hard drives on servers, and low-end storage 38 , for example, tapes in a tape drive.
  • the module 18 intercepts file accesses, i.e., reads files passed by the host applications to the storage servers and creates an access log file. Thus, the module 18 tracks a file access time “atimes” as they occur.
  • the module 18 For each file access, the module 18 appends a record to an append-only log (for example, log 202 shown in FIG. 2 ).
  • the record in the append-only log indicates that an access has occurred on the file.
  • the append-only logs are allocated from the high-end storage space 30 . Since no actual data is logged and only the un-archived files' access information is logged, the log space needed for the method according to the present invention is small.
  • the monitor 18 can also bundle a large number of file accesses into a single large write to a disk log to minimize performance overhead.
  • An advantage of the present invention over conventional archiving algorithms is that the module 18 of the present invention tracks file atimes in the access log, and therefore does not have to regularly examine all files in an entire file set which can require significant processing time and resources. Thus, by tracking the file atimes as they occur, the method of the present invention avoids file set scans which would require extracting an atime and checking if a current time is later than the atime. Furthermore, archiving system module 18 efficiently identifies archiving candidates by using the access logs to identify the archiving candidates.
  • the archiving daemon 22 portion of the archiving system 10 installed on the storage server 14 can ran periodically, e.g., daily, or weekly.
  • the daemon 22 examines the append-only access logs 34 , determines which files to archive, and archives them accordingly.
  • the archiving periodicity is a parameter which can be tuned or refined to archive files, for example, once every few hours, or once a day, or once a week.
  • a sample archiving policy is explained which archives all files which have not been accessed for at least “x” days.
  • “x” is typically on the order of tens of days, e.g., 30 days. It is envisioned that if users wish to use smaller time units, e.g., hour or minute, instead of a day to define the archiving policy, the scan-free algorithm of the present invention can be easily modified to accommodate such requirements.
  • the archiving daemon 22 can be invoked once a day to extract the files that have become qualified for archiving on that day and archive them accordingly.
  • the invocation interval or the archiving interval defines the time between two successive archiving daemon invocations.
  • An archiving interval can be larger than the archiving unit itself, e.g., a multiple of archiving units such as “n” days. In such cases, the archiving daemon is invoked once every “n” days.
  • x+1, and x days can all be archived by the time the archiving daemon is invoked.
  • the described archiving architecture/runtime monitoring system 10 includes monitoring and archiving. Both monitoring and archiving incur performance overheads. Monitoring is directed to how to efficiently track the file access information to facilitate the archiving candidate file identification. Archiving is directed to how to utilize the tracked file access information to identify the candidate files efficiently.
  • a preferred embodiment of the archiving method according to the present invention includes an append-only update archiving method to logically remove the log records from the logs as needed. Specifically, if a file “F” is accessed on day “i” and “k”, where “k” is the most current day, i.e., (k>i), a log record for “F” is simply appended to the end of the log L i , hence the name “append-only update”. Later, when the archiving daemon examines log L i to identify candidate files for archiving, the archiving daemon knows that all files that have duplicate log record entries cannot be archived, since they must have been accessed on an later day. Thus, only the files that do not have duplicate entries can be archived, since they must have not been accessed for the last “x” days.
  • the append-only update method described above avoids scanning either the access logs or file systems. Furthermore, the monitor 18 can batch multiple updates to the same log into one append by first sorting the log records by their old atimes, and then updating all records that belong in the same log at once. This further improves the monitoring performance.
  • the log memory 100 includes log 060105 ( 202 ), log 060205 ( 204 ), log 062005 ( 206 ), and log 070105 ( 208 ).
  • Log 202 includes files 1 - 3 , 104 , 108 , and 112 , respectively.
  • the archiving daemon 22 can read the entire log in memory 100 , filter out the duplicate file entries file 1 and file 2 , 104 and 108 , respectively, and then archive the remaining file entries.
  • duplicate file records may be seen in each log L i . However, there cannot be more than two records for each file.
  • the archiving daemon may or may not be able to read the entire log L i into memory at once for processing because each of such logs can be tens or hundreds of MBs. If the memory space is not large enough to hold the entire log, the archiving daemon can divide the log into pieces and work on one piece at a time.
  • the archiving daemon checks if all the file records have duplicate entries in the file records which are already read, if not, the file can be archived. Additional optimizations are possible to work with even smaller memory spaces by converting filenames into hash values rather than using absolute filenames.
  • a hash function can use, for example, substitution or transposition of data to create a fingerprint, i.e., a hash value, which can be represented as a short string of random-looking letters and numbers.
  • the append-only update will not need to break the log into multiple smaller pieces.
  • the monitoring costs include a new log write and appending to the “N” old logs if “N” files must be updated.
  • traditional archiving incurs significant amount of random disk I/Os (input/output) simply to identify archiving file candidates.
  • the append-only update incurs significantly less overhead because the monitor and archiving only needs to update logs and process them once a day.
  • an access buffer may be lost due to a storage server crash, which raises an issue of crash recovery.
  • access logs may be buffered and the writes to the access logs are delayed.
  • the entire buffer may be lost. This would result in the loss of the file accesses which occurred on that day, resulting in the archiving daemon not archiving all files that are qualified for the specified conditions.
  • This problem may be resolved by having a separate daemon to scan the entire file system periodically, or initiating the entire file system scan after the access logs are found to be unavailable to retrieve the files that were missed from a normal archiving invocation due to the loss of an access buffer.
  • the append-only access log structure for tracking file accesses discloses an efficient and highly scalable archiving method, that archives files without expensive file system scans.
  • the present invention introduces little runtime overhead for normal accesses while significantly reducing the archiving time because of the append-only access log structure for tracking file accesses and a runtime monitoring mechanism that tracks the file accesses as they occur.
  • Another technique to minimize runtime overhead may include merging into a single file multiple accesses which occurred on the same file during a time delay.
  • the time delay is incurred while the access monitor delayed the writing of log records for accessed files by using a memory access buffer.
  • Another method includes avoiding log scans by keeping the access log records in the access log up-to-date. For example, if a file “F” is accessed on day one and day i (i>1), when day i's log record is written to the access log, the log record for F on day one can be logically removed from the log because the file was accessed after day one.
  • the access log will contain only one access log record per file, and when the archiving daemon is invoked on, for example, the last day of the month, the portion of access log for day one will only contain the log records for files that have not been accessed for the month. All other files should have been logically deleted as they are accessed later on in the month. Using this method, there are only unique file records in the log.
  • Another method for archiving includes sequential log sequencing. Since the access records are typically bundled into large writes, the monitor creates one access log for each log write.
  • the access logs also have a special naming scheme to allow the archiving daemon to easily identify them without searching through the entire log directory. For instance, if a log is created daily, the log name can be constructed as “log.date” where “date” indicates the date on which the log is created. This is effectively creating a log deliminator that separate one day's log from another. As shown in FIG. 2 , the logs have different log names 202 - 208 to indicate different days logs. Any delimitation scheme may be used as long as the monitor and archiving daemon can identify the desired portions of the access log, e.g., for a particular day.
  • the access monitor keeps track of an additional piece of information in memory as each file is accessed. That is, when a file “F” is accessed, the monitor records the last atime before the atime is updated to the current access time. The old atime indicates when “F” was accessed last. Such information allows the monitor to easily compute which access log would contain a record for “F” and hence needs to be updated. Specifically, if the last atime was “n” days ago, the access log that was created “n” days ago must contain a log record for “F”. That record can now be removed since more recent accesses of the file F have occurred after that day. The old atime can be extracted without any additional overhead when the atime field is updated.
  • the monitor when the monitor is about to write out the entire access record buffer to a new access log “k”, for each file record in the buffer, it checks its old atime and determines if the file was accessed on an earlier day based on that atime. If so, the corresponding log should be updated, otherwise, only a new log record will be written in the log created for day “k”. Updating old access logs must be done with care to avoid a large number of random disk I/Os. In particular, the monitor can batch the updates to the same log L i together to avoiding multiple random updates to L i .

Abstract

A method is disclosed for archiving data in a storage server using a runtime monitoring system. The method includes providing a plurality of data files and creating access logs according to a specified format, which may include an append only access log, from the plurality of data files. At least one of the access logs from the plurality of data files is examined and a file will be archived from the examination of the access logs. An archive procedure is initiated for a file when the file has not been accessed for a specified period of time. If the file will be archived includes ascertaining if the file has a duplicate entry in the access log, and archiving the file when the file does not have the duplicate entry in the access log.

Description

FIELD OF THE INVENTION
The invention relates to a method for archiving data, and more particularly, archiving data in a storage server using a runtime monitoring system.
BACKGROUND OF THE INVENTION
Current archiving methods archive files based on their respective last access times, i.e., a file “atime” (last time accessed). For example, a policy may be to archive all files that have not been accessed for more than “x” number of days. Traditional algorithms designed for such an archiving policy typically scan all files in the system on a regular basis, e.g., once per day, and check whether “x” days have passed since the last access for each file. Files that have not been accessed for at least “x” days will then be archived.
Generally, to archive a file if it has not been accessed for some time, requires an archiving module to gather the last file access time, i.e., atime, and the current time, to determine if an archiving criteria is met, such as, to archive when a file has not been accessed for a week. Thus, the atime of the file and the current time are used to make a determination of when the file was last accessed and if the file should be archived.
A disadvantage of typical algorithms used in archiving methods occurs because data has grown exponentially for many business making daily scans of entire file systems for archiving a non-viable solution to archiving needs. For example, millions of files can require hours to scan, leading to significant performance-intrusion to normal production workloads, even though typically, only a fraction of files need to be archived on each day. Scanning numerous files typically found at a business raises issues pertaining to cost, performance, reliability, and availability. Cost-effective information management, including archiving, throughout the information's lifecycle can be of critical importance to a company. Archiving is prominent in the domain of Information Lifecycle Management (ILM).
One solution to managing abundant data is using a leveraging cost-effective tiered storage infrastructure e.g., high end or low end disk storage, where high end disk storage may be server hard drives and low end disk storage may be tapes using tape drives. However, the solutions to the problem of volumous data storage, as well as, accessing such data effectively and efficiently has been directed toward traditional archiving or Hierarchical Storage Management (HSM) technologies, which moves data across tiered storage.
Known, are archiving solutions that archive files based on the last access time of the file. However, the existing archiving technologies typically rely on regular and expensive data repositories or file system scans to determine the archiving candidate files. In typical customer environments, the high-end storage can often host several terabytes of data and the low-end tape storage can keep tens or hundreds of terabytes of data, sometimes even petabytes. A disadvantage of current archiving techniques includes the lack of an efficient technology, system or method for scanning numerous files for archiving and archiving selected files. The lack of such an efficient system or method in the art results in slow and performance intrusive archiving techniques.
It would therefore be desirable to avoid direct file set scans when extracting an atime (last time accessed) from the files and checking if a current time is later than the atime. It would also be desirable for an archiving solution to provide efficient archiving with less runtime performance interference. It further is desirable to provide a scalable and efficient archiving algorithm for large file sets.
SUMMARY OF THE INVENTION
In an aspect of the present invention a method for archiving data in a storage server is provided using a runtime monitoring system. The method includes providing a plurality of data files and creating access logs according to a specified format from the plurality of data files. At least one of the access logs from the plurality of data files is examined and a file will be archived from the examination of the access logs. An archive procedure is initiated for a file when the file has not been accessed for a specified period of time.
In a related aspect, the step of determining if the file will be archived includes ascertaining if the file has a duplicate entry in the access log, and archiving the file when the file does not have the duplicate entry in the access log.
In a related aspect, the specified format is an append only access log.
In a related aspect, the file is not archived if its access log has been examined within a specified time period.
In a related aspect, the plurality of data files are tracked as the data files are created, and the tracking of the plurality of data files may occur when the data files first enter a data storage system which may include a plurality of computer data storage elements.
In a related aspect, the method further includes the steps of determining when the access log is available and not available. When the access log is not available the plurality of data files are scanned to determine if the file will be archived, and the archive procedure is initiated for the file when the file has not been accessed for the specified period of time.
In another aspect according to the invention, a runtime monitoring system for archiving data in a storage server comprises a plurality of data files, and an access monitoring device for monitoring a users accessing of the data files and creating at least one access log according to a specified format from the plurality of data files. A monitoring daemon examines at least one of the access logs from the plurality of data files and determines if an accessed file will be archived from the examination of the at least one of the access logs. The monitoring daemon initiates an archive procedure for the accessed file when the accessed file has not been accessed for a specified period of time.
BRIEF DESCRIPTION OF THE DRAWINGS
These and other objects, features and advantages of the present invention will become apparent from the following detailed description of illustrative embodiments thereof, which is to be read in connection with the accompanying drawings, in which:
FIG. 1 is a diagram depicting an archiving system according to the present invention; and
FIG. 2 is a block diagram of access logs shown in FIG. 1.
DETAILED DESCRIPTION OF THE INVENTION
Referring to FIG. 1, an archiving system architecture according to an embodiment of the present invention comprises a runtime monitoring system 10 which includes an access monitor module 18 installed on the storage server 14, e.g., a file system server, and an archiving daemon 22. Users or administrators 11 are able to access the storage servers 14 and access local applications or host application on their individual nodes or computers 12. One computer and user system 11 is shown in FIG. 1 for illustrative purposes, however, it is understood that numerous users and computers are envisioned as accessing the storage servers 14. The storage servers 14 can access high-end storage, for example, hard drives on servers, and low-end storage 38, for example, tapes in a tape drive. The module 18 intercepts file accesses, i.e., reads files passed by the host applications to the storage servers and creates an access log file. Thus, the module 18 tracks a file access time “atimes” as they occur.
For each file access, the module 18 appends a record to an append-only log (for example, log 202 shown in FIG. 2). The record in the append-only log indicates that an access has occurred on the file. The append-only logs are allocated from the high-end storage space 30. Since no actual data is logged and only the un-archived files' access information is logged, the log space needed for the method according to the present invention is small. The monitor 18 can also bundle a large number of file accesses into a single large write to a disk log to minimize performance overhead.
An advantage of the present invention over conventional archiving algorithms is that the module 18 of the present invention tracks file atimes in the access log, and therefore does not have to regularly examine all files in an entire file set which can require significant processing time and resources. Thus, by tracking the file atimes as they occur, the method of the present invention avoids file set scans which would require extracting an atime and checking if a current time is later than the atime. Furthermore, archiving system module 18 efficiently identifies archiving candidates by using the access logs to identify the archiving candidates.
The archiving daemon 22 portion of the archiving system 10 installed on the storage server 14 can ran periodically, e.g., daily, or weekly. The daemon 22 examines the append-only access logs 34, determines which files to archive, and archives them accordingly. The archiving periodicity is a parameter which can be tuned or refined to archive files, for example, once every few hours, or once a day, or once a week. In the exemplary embodiment discussed below, a sample archiving policy is explained which archives all files which have not been accessed for at least “x” days. In practice, “x” is typically on the order of tens of days, e.g., 30 days. It is envisioned that if users wish to use smaller time units, e.g., hour or minute, instead of a day to define the archiving policy, the scan-free algorithm of the present invention can be easily modified to accommodate such requirements.
When the archiving unit is, for example, a day, the archiving daemon 22 can be invoked once a day to extract the files that have become qualified for archiving on that day and archive them accordingly. The invocation interval or the archiving interval defines the time between two successive archiving daemon invocations. An archiving interval can be larger than the archiving unit itself, e.g., a multiple of archiving units such as “n” days. In such cases, the archiving daemon is invoked once every “n” days. In general, files that have not been accessed for the last x+n, x+n−1, . . . , x+1, and x days can all be archived by the time the archiving daemon is invoked. When n>0, multiple days of accessed files may be batched together. The archiving daemon may delay archiving of some of the qualified files. For instance, when n=2, the archiving daemon is invoked once every 2 days. When the archiving daemon is invoked, there may be files that have not been accessed for x+1 and x days. The archiving daemon can archive all such files at one time. However, if n=0, there will be only files that have not been accessed for x days. Clearly, a small “n” ensures that the archiving is done more precisely and timely. A large “n” may delay archiving of old files that are no longer needed. Without archiving them away promptly, they can take up valuable space in high-end storage for unnecessary amounts of time, which also leads to suboptimal resource utilization.
The described archiving architecture/runtime monitoring system 10 according to the present invention includes monitoring and archiving. Both monitoring and archiving incur performance overheads. Monitoring is directed to how to efficiently track the file access information to facilitate the archiving candidate file identification. Archiving is directed to how to utilize the tracked file access information to identify the candidate files efficiently.
A preferred embodiment of the archiving method according to the present invention includes an append-only update archiving method to logically remove the log records from the logs as needed. Specifically, if a file “F” is accessed on day “i” and “k”, where “k” is the most current day, i.e., (k>i), a log record for “F” is simply appended to the end of the log Li, hence the name “append-only update”. Later, when the archiving daemon examines log Li to identify candidate files for archiving, the archiving daemon knows that all files that have duplicate log record entries cannot be archived, since they must have been accessed on an later day. Thus, only the files that do not have duplicate entries can be archived, since they must have not been accessed for the last “x” days.
The append-only update method described above avoids scanning either the access logs or file systems. Furthermore, the monitor 18 can batch multiple updates to the same log into one append by first sorting the log records by their old atimes, and then updating all records that belong in the same log at once. This further improves the monitoring performance.
An exemplary append only update method is shown in FIG. 2. The log memory 100 includes log 060105 (202), log 060205 (204), log 062005 (206), and log 070105 (208). Log 202 includes files 1-3, 104, 108, and 112, respectively. To archive the files, the archiving daemon 22 can read the entire log in memory 100, filter out the duplicate file entries file 1 and file 2, 104 and 108, respectively, and then archive the remaining file entries. Using the append-only update method, duplicate file records may be seen in each log Li. However, there cannot be more than two records for each file. This is because if a file is accessed on day “i” and a later day “j”, there must be a new file record created in log Lj. For subsequent access to the same file, only log Lj will be updated, but not Li. If the original log size for Li is “s” when Li was initially created, then the maximum size for log Li is 2×s. This case may happen when all files accessed on day “i” were accessed on a later day before they are archived.
Depending on the available memory space, the archiving daemon may or may not be able to read the entire log Li into memory at once for processing because each of such logs can be tens or hundreds of MBs. If the memory space is not large enough to hold the entire log, the archiving daemon can divide the log into pieces and work on one piece at a time.
For each piece, the archiving daemon checks if all the file records have duplicate entries in the file records which are already read, if not, the file can be archived. Additional optimizations are possible to work with even smaller memory spaces by converting filenames into hash values rather than using absolute filenames. A hash function can use, for example, substitution or transposition of data to create a fingerprint, i.e., a hash value, which can be represented as a short string of random-looking letters and numbers.
For example, if the storage server has enough memory space for log processing, the append-only update will not need to break the log into multiple smaller pieces. For an append-only update, the monitoring costs include a new log write and appending to the “N” old logs if “N” files must be updated. Unlike the method of the present invention, traditional archiving incurs significant amount of random disk I/Os (input/output) simply to identify archiving file candidates. The append-only update incurs significantly less overhead because the monitor and archiving only needs to update logs and process them once a day.
In one scenario, an access buffer may be lost due to a storage server crash, which raises an issue of crash recovery. In the present invention, access logs may be buffered and the writes to the access logs are delayed. Thus, if there is a crash during the day, the entire buffer may be lost. This would result in the loss of the file accesses which occurred on that day, resulting in the archiving daemon not archiving all files that are qualified for the specified conditions. This problem may be resolved by having a separate daemon to scan the entire file system periodically, or initiating the entire file system scan after the access logs are found to be unavailable to retrieve the files that were missed from a normal archiving invocation due to the loss of an access buffer.
Thus, the append-only access log structure for tracking file accesses according to the present invention discloses an efficient and highly scalable archiving method, that archives files without expensive file system scans. The present invention introduces little runtime overhead for normal accesses while significantly reducing the archiving time because of the append-only access log structure for tracking file accesses and a runtime monitoring mechanism that tracks the file accesses as they occur.
Another technique to minimize runtime overhead may include merging into a single file multiple accesses which occurred on the same file during a time delay. The time delay is incurred while the access monitor delayed the writing of log records for accessed files by using a memory access buffer.
Another method according to the present invention includes avoiding log scans by keeping the access log records in the access log up-to-date. For example, if a file “F” is accessed on day one and day i (i>1), when day i's log record is written to the access log, the log record for F on day one can be logically removed from the log because the file was accessed after day one. Thus, the access log will contain only one access log record per file, and when the archiving daemon is invoked on, for example, the last day of the month, the portion of access log for day one will only contain the log records for files that have not been accessed for the month. All other files should have been logically deleted as they are accessed later on in the month. Using this method, there are only unique file records in the log.
Another method for archiving includes sequential log sequencing. Since the access records are typically bundled into large writes, the monitor creates one access log for each log write. The access logs also have a special naming scheme to allow the archiving daemon to easily identify them without searching through the entire log directory. For instance, if a log is created daily, the log name can be constructed as “log.date” where “date” indicates the date on which the log is created. This is effectively creating a log deliminator that separate one day's log from another. As shown in FIG. 2, the logs have different log names 202-208 to indicate different days logs. Any delimitation scheme may be used as long as the monitor and archiving daemon can identify the desired portions of the access log, e.g., for a particular day.
To avoid scanning the access logs, the access monitor keeps track of an additional piece of information in memory as each file is accessed. That is, when a file “F” is accessed, the monitor records the last atime before the atime is updated to the current access time. The old atime indicates when “F” was accessed last. Such information allows the monitor to easily compute which access log would contain a record for “F” and hence needs to be updated. Specifically, if the last atime was “n” days ago, the access log that was created “n” days ago must contain a log record for “F”. That record can now be removed since more recent accesses of the file F have occurred after that day. The old atime can be extracted without any additional overhead when the atime field is updated.
Thus, when the monitor is about to write out the entire access record buffer to a new access log “k”, for each file record in the buffer, it checks its old atime and determines if the file was accessed on an earlier day based on that atime. If so, the corresponding log should be updated, otherwise, only a new log record will be written in the log created for day “k”. Updating old access logs must be done with care to avoid a large number of random disk I/Os. In particular, the monitor can batch the updates to the same log Li together to avoiding multiple random updates to Li.
While the present invention has been particularly shown and described with respect to preferred embodiments thereof, it will be understood by those skilled in the art that changes in forms and details may be made without departing from the spirit and scope of the present application. It is therefore intended that the present invention not be limited to the exact forms and details described and illustrated herein, but falls within the scope of the appended claims.

Claims (13)

What is claimed is:
1. A method for archiving data in a storage server using a runtime monitoring system, comprising:
providing a plurality of data files stored on a computer readable data storage device, the data storage device communicating with a computer;
reading file accesses using a module on the computer readable data storage device using the computer;
creating a plurality of access logs, each having a predetermined and individual time period;
defining a specified format for the plurality of access logs, the specified format comprising at least a last file access time (atime);
logging, using an appending update archiving method, read accesses of the plurality of data files in the plurality of access logs using the specified format for the access logs using the computer, the logging creating an access log record in one of the plurality of access logs having the predetermined time period corresponding to the atime of the read access;
examining the plurality of access logs from the plurality of data files using the computer;
determining if an accessed file will be archived from the examination of the plurality of access logs using the computer by:
ascertaining if the accessed file has more than one access log record in the plurality of access logs by examining the plurality of access logs; and
archiving the accessed file when the accessed file does not have more than one access log record in the plurality of access logs using the computer; and
initiating an archive procedure using the computer for the accessed file when the accessed file has not been accessed for a specified period of time.
2. The method of claim 1, wherein the plurality of data files are tracked as the data files are created by using the computer.
3. The method of claim 2, wherein the tracking of the plurality of data files occurs when the data files first enter a data storage system.
4. The method of claim 3, wherein the data storage system includes a plurality of computer data storage elements.
5. The method of claim 1, further including the steps of:
determining when the plurality of access logs are available and when the plurality of access logs are not available using the computer;
scanning the plurality of data files using the computer;
determining if the accessed file will be archived using the computer; and
initiating the archive procedure for the accessed file when the accessed file has not been accessed for the specified period of time using the computer.
6. A runtime monitoring system for archiving data in a storage server, which comprises:
a plurality of data files stored on a computer readable data storage device, the data storage device communicating with a computer;
an access monitoring device having a module on the computer readable data storage device and using the computer for monitoring a user's access of the data files, the module creating a plurality of access logs, each having a predetermined and individual time period, defining a specified format of a plurality of access logs, the specified format comprising at least a last file access time (atime), and the module using an appending update archiving method to log read accesses of the plurality of data files in the plurality of access logs, the logging creating an access log record in one of the plurality of access logs having the predetermined time period corresponding to the atime of the read access; and
a monitoring daemon stored in the data storage device and communicating with the computer, the monitoring daemon for:
examining the plurality of access logs from the plurality of data files; and
determining if an accessed file will be archived from the examination of the plurality of access logs by:
ascertaining if the accessed file has more than one access log record in the plurality of access logs by examining the plurality of access logs; and
archiving the accessed file when the accessed file does not have more than one access log record in the plurality of access logs; and
initiating an archive procedure using the computer for the accessed file when the access file has not been access for a specified period of time.
7. The method of claim 1, further comprising:
separating the plurality of access logs into specified access log files using the computer; and
identifying the plurality of access logs in each of the specified access log files using the computer.
8. The system of claim 6, wherein the specified format includes an append access log using an appending update archiving method, the appending update archiving method logically removes log records from the logs when a more recent log record is in the access log.
9. The system of claim 6, wherein the monitoring daemon reads an access log into memory to filter out duplicate file entries and archive remaining file entries.
10. The method of claim 1, further comprising:
reading an access log into memory;
filtering out duplicate file entries; and
archiving remaining file entries.
11. The method of claim 10, further comprising:
dividing one or more of the plurality of access logs into pieces; and
sequentially filtering out duplicate file entries for each of the pieces of the one or more access logs.
12. The method of claim 1, further comprising:
converting filenames of the plurality of data files into hash values.
13. The method of claim 1, further comprising:
creating a log deliminator for the plurality of access logs for separating a log from one day from another day's log.
US11/617,465 2006-12-28 2006-12-28 Scan-free archiving Expired - Fee Related US8880478B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US11/617,465 US8880478B2 (en) 2006-12-28 2006-12-28 Scan-free archiving

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US11/617,465 US8880478B2 (en) 2006-12-28 2006-12-28 Scan-free archiving

Publications (2)

Publication Number Publication Date
US20080162601A1 US20080162601A1 (en) 2008-07-03
US8880478B2 true US8880478B2 (en) 2014-11-04

Family

ID=39585512

Family Applications (1)

Application Number Title Priority Date Filing Date
US11/617,465 Expired - Fee Related US8880478B2 (en) 2006-12-28 2006-12-28 Scan-free archiving

Country Status (1)

Country Link
US (1) US8880478B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5284685B2 (en) 2008-05-16 2013-09-11 インターナショナル・ビジネス・マシーンズ・コーポレーション File rearrangement device, rearrangement method, and rearrangement program
US9218347B2 (en) * 2009-02-13 2015-12-22 International Business Machines Corporation System and method for archiving to a single database table information located across multiple tables
CN104915376B (en) * 2015-05-05 2019-03-26 华南理工大学 A kind of archival compression method of file in cloud storage
CN107066519B (en) * 2017-02-13 2021-07-06 创新先进技术有限公司 Task detection method and device
CN110377481B (en) * 2019-06-19 2022-06-28 深圳壹账通智能科技有限公司 Log management method, device, equipment and storage medium
US11714797B2 (en) * 2021-01-25 2023-08-01 Micro Focus Llc Logically consistent archive with minimal downtime

Family Cites Families (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2718031B2 (en) * 1987-07-17 1998-02-25 株式会社日立製作所 History information acquisition method
US5442493A (en) * 1992-02-28 1995-08-15 Ampex Corporation Data recording system having improved bookkeeping capability
US5410667A (en) * 1992-04-17 1995-04-25 Storage Technology Corporation Data record copy system for a disk drive array data storage subsystem
US5566339A (en) * 1992-10-23 1996-10-15 Fox Network Systems, Inc. System and method for monitoring computer environment and operation
US5666514A (en) * 1994-07-01 1997-09-09 Board Of Trustees Of The Leland Stanford Junior University Cache memory containing extra status bits to indicate memory regions where logging of data should occur
US5778395A (en) * 1995-10-23 1998-07-07 Stac, Inc. System for backing up files from disk volumes on multiple nodes of a computer network
US6052797A (en) * 1996-05-28 2000-04-18 Emc Corporation Remotely mirrored data storage system with a count indicative of data consistency
US6044444A (en) * 1996-05-28 2000-03-28 Emc Corporation Remote data mirroring having preselection of automatic recovery or intervention required when a disruption is detected
US6112237A (en) * 1996-11-26 2000-08-29 Global Maintech, Inc. Electronic monitoring system and method for externally monitoring processes in a computer system
JP3351318B2 (en) * 1997-11-07 2002-11-25 株式会社日立製作所 Computer system monitoring method
US6295541B1 (en) * 1997-12-16 2001-09-25 Starfish Software, Inc. System and methods for synchronizing two or more datasets
US6199070B1 (en) * 1998-06-18 2001-03-06 International Business Machines Corporation Using a database for program logs
US6144958A (en) * 1998-07-15 2000-11-07 Amazon.Com, Inc. System and method for correcting spelling errors in search queries
JP3763992B2 (en) * 1999-03-30 2006-04-05 富士通株式会社 Data processing apparatus and recording medium
US6850962B1 (en) * 1999-05-07 2005-02-01 Commercequest, Inc. File transfer system and method
US6732125B1 (en) * 2000-09-08 2004-05-04 Storage Technology Corporation Self archiving log structured volume with intrinsic data protection
US6785893B2 (en) * 2000-11-30 2004-08-31 Microsoft Corporation Operating system event tracker having separate storage for interrupt and non-interrupt events and flushing the third memory when timeout and memory full occur
JP2003016226A (en) * 2001-07-03 2003-01-17 Ricoh Co Ltd Device, system and program for supporting analysis of product market quality information
EP1514271A2 (en) * 2002-05-31 2005-03-16 Koninklijke Philips Electronics N.V. Method of capturing scenes and recorder with means of performing this method
US7379978B2 (en) * 2002-07-19 2008-05-27 Fiserv Incorporated Electronic item management and archival system and method of operating the same
US7051053B2 (en) * 2002-09-30 2006-05-23 Dinesh Sinha Method of lazily replicating files and monitoring log in backup file system
US20040193659A1 (en) * 2003-03-27 2004-09-30 International Business Machines Corporation Method, apparatus, and program for archive management based on access log
US7155465B2 (en) * 2003-04-18 2006-12-26 Lee Howard F Method and apparatus for automatically archiving a file system
US7380081B2 (en) * 2003-06-06 2008-05-27 Hewlett-Packard Development Company, L.P. Asynchronous data redundancy technique
US7165187B2 (en) * 2003-06-06 2007-01-16 Hewlett-Packard Development Company, L.P. Batch based distributed data redundancy
US7178055B2 (en) * 2003-06-06 2007-02-13 Hewlett-Packard Development Company, L.P. Method and system for ensuring data consistency after a failover event in a redundant data storage system
US20050160427A1 (en) * 2003-12-16 2005-07-21 Eric Ustaris System and method for managing log files
US7814078B1 (en) * 2005-06-20 2010-10-12 Hewlett-Packard Development Company, L.P. Identification of files with similar content
US7962616B2 (en) * 2005-08-11 2011-06-14 Micro Focus (Us), Inc. Real-time activity monitoring and reporting
US7769723B2 (en) * 2006-04-28 2010-08-03 Netapp, Inc. System and method for providing continuous data protection
CN101192227B (en) * 2006-11-30 2011-05-25 阿里巴巴集团控股有限公司 Log file analytical method and system based on distributed type computing network

Also Published As

Publication number Publication date
US20080162601A1 (en) 2008-07-03

Similar Documents

Publication Publication Date Title
US8433863B1 (en) Hybrid method for incremental backup of structured and unstructured files
US6023710A (en) System and method for long-term administration of archival storage
US8239348B1 (en) Method and apparatus for automatically archiving data items from backup storage
US8250033B1 (en) Replication of a data set using differential snapshots
JP4157858B2 (en) Parallel high-speed backup of storage area network (SAN) file systems
JP5233233B2 (en) Information search system, information search index registration device, information search method and program
US20050246386A1 (en) Hierarchical storage management
US10133618B2 (en) Diagnostic data set component
US10417265B2 (en) High performance parallel indexing for forensics and electronic discovery
US8392423B2 (en) Data set index record preservation
US20130018855A1 (en) Data deduplication
US8396840B1 (en) System and method for targeted consistency improvement in a distributed storage system
US8880478B2 (en) Scan-free archiving
US20070174353A1 (en) Method and apparatus to proactively capture and transmit dense diagnostic data of a file system
CN113111129A (en) Data synchronization method, device, equipment and storage medium
US8135928B2 (en) Self-adjusting change tracking for fast resynchronization
US20160204997A1 (en) Extracting Log Files From Storage Devices
US20040143609A1 (en) System and method for data extraction in a non-native environment
US7660790B1 (en) Method and apparatus for utilizing a file change log
US8176087B2 (en) Data processing
US7519610B2 (en) Method and apparatus for efficiently storing audit event data having diverse characteristics using tiered tables
US20030074376A1 (en) File manager for storing several versions of a file
US11100056B2 (en) Life cycle data set repository
US20050204191A1 (en) Systems and methods automatically classifying electronic data
US20240086362A1 (en) Key-value store and file system

Legal Events

Date Code Title Description
AS Assignment

Owner name: INTERNATIONAL BUSINESS MACHINES CORPORATION, NEW Y

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:CHEN, YING;CHAO, LIU;MBOGO, LESLEY;REEL/FRAME:018869/0912;SIGNING DATES FROM 20061218 TO 20070108

Owner name: INTERNATIONAL BUSINESS MACHINES CORPORATION, NEW Y

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:CHEN, YING;CHAO, LIU;MBOGO, LESLEY;SIGNING DATES FROM 20061218 TO 20070108;REEL/FRAME:018869/0912

FEPP Fee payment procedure

Free format text: MAINTENANCE FEE REMINDER MAILED (ORIGINAL EVENT CODE: REM.)

LAPS Lapse for failure to pay maintenance fees

Free format text: PATENT EXPIRED FOR FAILURE TO PAY MAINTENANCE FEES (ORIGINAL EVENT CODE: EXP.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

STCH Information on status: patent discontinuation

Free format text: PATENT EXPIRED DUE TO NONPAYMENT OF MAINTENANCE FEES UNDER 37 CFR 1.362

FP Expired due to failure to pay maintenance fee

Effective date: 20181104