A method to archive log entries created by a data storage system comprising a first memory and a library log encoded in that first memory, wherein the first memory comprises a storage capacity, and wherein the method writes a plurality of log entries to the library log, wherein each log entry comprises a log entry time. At a time T0, the method copies to a log archive the plurality of log entries written to the library log, and sets a subsequent retrieval time based upon a time T1 when an earliest log entry was written to the library log, and a time T2 when a latest log entry was written to the library log. |
Citations|
| US5155850 | Feb 23, 1990 | Oct 13, 1992 | International Business Machines Corporation | Method and system for maintaining a time frame selective document history log in a data processing system | | US5471631 | Oct 19, 1992 | Nov 28, 1995 | International Business Machines Corporation | Using time stamps to correlate data processing event times in connected data processing units | | US5613113 | Jun 7, 1995 | Mar 18, 1997 | International Business Machines Corporation | Consistent recreation of events from activity logs | | US6275826 | Mar 4, 1999 | Aug 14, 2001 | International Business Machines Corporation | Program products for pacing the frequency at which systems of a multisystem environment compress log streams | | US6879995 | May 1, 2000 | Apr 12, 2005 | Sun Microsystems, Inc. | Application server message logging | | US6931355 | Feb 26, 2002 | Aug 16, 2005 | Xerox Corporation | Method and apparatus for providing data logging in a modular device | | US7089156 | Jul 31, 2001 | Aug 8, 2006 | International Business Machines Corporation | Method and apparatus for determining the performance of data processing devices with unsynchronized clocks | | US7171401 | Mar 19, 2002 | Jan 30, 2007 | International Business Machines Corporation | Data processing system and method having high availability | | US20040215708 | Feb 26, 2004 | | | Content history log collecting system | | US20050021571 | Nov 26, 2002 | | | Method of replicating data between computing devices | | US20060036601 | Aug 9, 2004 | | International Business Machines Corporation | Autonomic virtual log configuration | | US20060225073 | Jun 6, 2005 | | | Computer system, log collection method and computer program product | | US20060270389 | May 25, 2005 | | Oracle International Corporation | Mobile e-mail confirmation support |
Claims1. A method to archive log entries created by a data storage system, comprising the steps of: - providing a data storage system comprising first memory and a library log encoded in said first memory;
- writing a plurality of log entries to said library log, wherein each log entry comprises a log entry time;
- encoding a log archive in a second memory, wherein said second memory is external to said data storage system;
- setting a time T0 equal to current time;
- at time T0, copying to said log archive said plurality of log entries written to said library log;
- determining a time T1 when an earliest log entry was written to said library log;
- determining a time T2 when a latest log entry was written to said library log;
- calculating a log interval TINT equal to (T2−T1);
- setting a retrieval time equal to (T0+TINT);
- determining whether to perform an intermediate inspection of the library log;
- when performing an intermediate inspection of the library log, determining a number (N) of log entries written to library log retrieved at time T0;
- establishing a previous log filling rate equal to (N)/TINT;
- setting an intermediate sampling interval TS, wherein said intermediate sampling interval is less than said log interval;
- setting an intermediate sampling time, wherein said intermediate sampling time equals (T0+TS);
- when current time equals said intermediate sampling time, inspecting the library log created after time T0;
- determining a number (M) of log entries written to the library log after time T0;
- establishing a current log filling rate equal to (M)/TS;
- determining whether said current log filling rate is greater than said previous log filling rate; and
- when said current log filling rate is greater than said previous log filling rate, adjusting said log interval TINT to be less than (T2−T1).
2. The method of claim 1, further comprising the steps of: - setting a minimum log interval;
- determining if said adjusted log interval is less than said minimum log interval; and
- when said adjusted log interval is less than said minimum log interval, setting said log interval equal to said minimum log interval.
3. The method of claim 1, further comprising the steps of: - when said current log filling rate is not greater than said previous log filling rate, determining if said current log filling rate is less than said previous log filling rate; and
- when said current log filling rate is less than said previous log filling rate, adjusting said log interval TINT to be greater than (T2−T1).
4. An article of manufacture comprising a processor and a computer readable storage medium having computer readable program code disposed therein to archive a plurality of log entries stored by a data storage system in a first memory, wherein each log entry comprises a log entry time, the computer readable program code comprising a series of computer readable program steps to effect: - encoding a log archive in a second memory, wherein said second memory is external to said data storage system;
- setting a time T0 equal to current time;
- at time T0, copying to said log archive said plurality of log entries written to said library log;
- determining a time T1 when an earliest log entry was written to said library log;
- determining a time T2 when a latest log entry was written to said library log;
- calculating a log interval TINT equal to (T2−T1);
- setting a retrieval time equal to (T0+TINT);
- determining whether to perform an intermediate inspection of the library log;
- when performing an intermediate inspection of the library log, determining a number (N) of log entries written to library log retrieved at time T0;
- establishing a previous log filling rate equal to (N)/TINT;
- setting an intermediate sampling interval TS, wherein said intermediate sampling interval is less than said log interval;
- setting an intermediate sampling time, wherein said intermediate sampling time equals (T0+TS);
- when current time equals said intermediate sampling time, inspecting the library log created after time T0;
- determining a number (M) of log entries written to the library log after time T0;
- establishing a current log filling rate equal to (M)/TS;
- determining whether said current log filling rate is greater than said previous log filling rate; and
- when said current log filling rate is greater than said previous log filling rate, adjusting said log interval TINT to be less than (T2−T1).
5. The article of manufacture of claim 4, said computer readable program code further comprising a series of computer readable program steps to effect: - setting a minimum log interval;
- determining whether said adjusted log interval is less than said minimum log interval; and
- when said adjusted log interval is less than said minimum log interval, setting said log interval equal to said minimum log interval.
6. The article of manufacture of claim 4, said computer readable program code further comprising a series of computer readable program steps to effect: - when said current log filling rate is not greater than said previous log filling rate, determining if said current log filling rate is less than said previous log filling rate; and
- when said current log filling rate is less than said previous log filling rate, adjusting said log interval TINT to be greater than (T2−T1).
|