SnapVault creates log files that meet the following requirements for regulatory compliance:
SnapVault uses a SnapLock volume in which the log files are kept. This volume, called a LockVaultTM log volume, is a standard WORM volume. SnapVault uses an append-only write to write to the log files. This allows accurate record keeping but does not allow previous events to be overwritten.
SnapVault uses two types of log files to record events: SnapVault operations log files and SnapVault files transferred log files.
The LockVault log volume must be created and configured before you begin an initial (level 0) SnapVault transfer. A LockVault log volume must be a SnapLock volume. The SnapLock volume can be a traditional volume or a flexible volume and is created using the vol -L or aggr -L command followed by a vol create command, respectively. See the SnapLock section of the Storage Management Guide for information about creating SnapLock volumes. All SnapVault log entries will be created in this log volume. This is a system-wide option; therefore, a SnapVault operation on any SnapLock volume on the system is logged to this volume.
Note
You need to set this option for SnapVault transfers to SnapLock volumes to succeed.
To configure the log volume, complete the following step on the SnapVault secondary system:
All SnapVault log files are kept in the /etc/log directory of the LockVault log volume that you created and configured. Log files in this directory inherit the default retention period of the log volume. Log files cannot be deleted from the volume until their retention periods have expired. SnapVault does not remove expired log files automatically; therefore, you will have to delete them.
Caution
Ensure that you set the default retention period on the log volume appropriately. The initial default retention period is 30 years for SnapLock Compliance volumes.
The following is the format for an operations log file name:
snapvault.yyyymmdd_zzz
yyyy is the year
mm is the month (01 to 12)
dd is the date (01 to 31)
zzz is the current time zone setting
The timestamp denotes when the log file is created and is generated using the compliance clock.
Operations log files have a weekly rotation policy; SnapVault creates a new log file every Sunday morning at midnight and is based on the compliance clock. Any SnapVault operations that are active when the new log file is created are recorded in the new log file.
SnapVault creates a new files transferred log file at the beginning of each SnapVault transfer. Files transferred log files are kept in the following directory structure in the LockVault log volume:
/etc/logs/snapvault secondary vol/secondary qtree name/month/log file
The snapvault secondary vol directories are the SnapLock volume names on the secondary storage system. The following is the format of the directory name:
secondary volume name_volume id
The volume UUID globally uniquely identifies a volume.
The secondary qtree name directories are the qtrees within a snapvault secondary vol directory. The following is the format of the secondary qtree directory name:
secondary qtree name_treeid_inodenum_gennum
The tree ID, inode number, and generation number uniquely identify the qtrees within a volume.
The month directory denotes the month in which log files for a qtree were generated. The format for the month directory is as follows:
yyyymm
The year (yyyy) and month (mm) are generated using the compliance clock.
The log file name uniquely identifies each transfer log file. The following is the format of the transfer log file name:
snapvault_filelog.yyyymmdd_hhmmss_zzz
The year (yyyy), month (mm), day (dd), hour (hh), minute (mm), second (ss) and time zone (zzz) are generated using the compliance clock.
The following is a sample path for a transfer log file named snapvault_filelog.20040123_000500_PST:
/etc/log/vault_ ed0ad520-5f40-11d8-91ca-00a09800dcba/users_ 19_1435628_1286197/200401/snapvault_filelog.20040123_000500_PST
A transfer log contains a header that describes the transfer and zero or more entries that describe the contents of the transfer. A log file contains only a header and zero entries in two instances: When no data on the primary had changed since the last SnapVault update, or for a rollback transfer.
The header at the beginning of each log file contains the following information:
Note
Date and time of the source system Snapshot copy is interpreted according to the time zone settings on the secondary system, not the primary system.
The following is an example of a header log record:
# Transfer type: Base Start
# From: sourcesystem:/vol/compat_data/myqtree1
# To: destinationsystem:/vol/logs/mult1
# Start time: Tue Mar 30 22:43:09 GMT 2004
# Source snapshot timestamp: Wed Mar 31 23:41:01 EST 2004
The following types of log entries are recorded in transfer log files:
Log entries have the following format:
date_and_time action_taken base_path_length:stream_name_length path_name
date_and_time is the mtime or ctime value from the primary storage system, not the secondary storage system.
Note
The mtime value is used for Create file and directory types, Delete file and directory types, and Modify File type because these entry types modify data. The ctime value is used for Rename file and directory types and Modify Attribute types because these types modify the container for the data, not the data itself.
action_taken is one of the types of log entries.
base_path_length:stream_name_length is the length of the base path followed by a colon and the stream name in single byte characters. Only the base path length is shown if the file is not a stream file.
path_name is the file path relative to the base of the tree that is mirrored, not the absolute path name. The relative path name is the same on the primary and secondary storage systems.
The following are examples of log entries:
Fri Mar 26 23:08:33 GMT 2004 Create Dir 7 ./mydir
Mon Oct 9 17:36:14 GMT 2000 Create File 14 ./mydir/myfile
Mon Jun 12 22:21:11 GMT 2000 Create File 14:8 ./mydir/myfile:strm
The following table lists actions that cause SnapVault to create a log entry, the type of log entry created, and possibly a note about the action.
Copyright © 1994-2005, Network Appliance, Inc. All rights
reserved.
Part No. 210-01081_B0
File: snapva32.htm
Last updated: 01-Dec-2005 16:36:13