Veritas Volume Manager 4.1 Troubleshooting Guide (HP-UX 11i v3, February 2007)
Chapter 4, Logging Commands and Transactions
Logging Transactions
39
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.
Note The .translog file is a binary and should not be edited.
The size of the transaction log is checked after an entry has been written so the actual size
may be slightly larger than that specified. When the log reaches a maximum size, the
current transaction log file, translog, is renamed as the next available historic log file,
translog.number, where number is an integer from 1 up to the maximum number of
historic log files that is currently defined, and a new current log file is created.
A limited number of historic log files is preserved to avoid filling up the file system. If the
maximum number of historic log files has been reached, the oldest historic log file is
removed, and the current log file is renamed as that file.
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.