VERITAS Volume Manager 4.1 Troubleshooting Guide

Logging Commands and Transactions
Logging Transactions
Chapter 4 55
If there is an error reading from the settings file, command logging switches to
its built-in default settings. This may mean, for example, that logging remains
enabled after being disabled using vxcmdlog-moff command. If this happens,
use the vxcmdlog utility to recreate the settings file, or restore the filefrom a
backup.
See the vxcmdlog(1M) manual page for more information about the vxcmdlog utilit.
Logging Transactions
The vxtranslog command allows you to log VxVM transactions to a file. The following table
demonstrates the usage of vxtranslog:
Transactions are logged to the file, translog, in the directory /etc/vx/log. This path name is
a symbolic link to a directory whose location depends on the operating system. If required, you
can redefine the directory which is linked. If you want to preserve the settings of the
vxtranslog utility, you must also copy the settings file, .translog, to the new directory.
Table 4-2 Usage of vxcmdlog
Command Description
vxtranslog -l List current settings for transaction logging.
vxtranslog -m on Turn on transaction logging.
vxtranslog -s 512k Set the maximum transaction log file size to 512KB.
vxtranslog -n 10 Set the maximum number of historic transaction log files to
10.
vxtranslog -n no_limit Remove any limit on the number of historic transaction log
files.
vxtranslog -q on Turn on query logging.
vxtranslog -q off Turn off query logging.
vxtranslog -m off Turn off transaction logging.