Table of ContentsView in Frames

Enabling and disabling log files

If you want to enable a log file, specify a file name as the value in the name-value pair of the log file you want to enable. If you want to disable a file, do not enter a value for the log file name parameter.

Before you begin

You must have logged in as a root user.

Steps

  1. Open the snapdrive.conf file in a text editor.
  2. Choose the appropriate option to either enable or disable a log file.
    If you want to... Then...
    Enable a log file
    Specify a file name as the value in the name-value pair of the log file you want to enable. SnapDrive for UNIX only writes log files if it has the name of a file to write to. The default names for the log files are as follows:
    • Audit log: sd-audit.log
    • Recovery log: sd-recovery.log
    • Trace log: sd-trace.log
    Note: The path to these files might vary depending on your host operating system.
    Disable a log file

    Do not enter a value for the log file name parameter. If you do not supply a value, there is no file name to which SnapDrive for UNIX can write the log information.

    Example This example disables the audit log file. audit-log-file=""

  3. Save the snapdrive.conf file after you make all your changes.

    SnapDrive for UNIX automatically checks this file each time it starts. You must restart the SnapDrive for UNIX daemon for the changes to take effect.