Symantec logo

Transaction logs

The vxtranslog command allows you to log VxVM transactions to a file.

The following examples demonstrate the usage of vxtranslog:

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 512K. 

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. 

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.

Warning: 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.

Each log file contains a header that records the host name, host ID, and the date and time that the log was created.

The following are sample entries from a transaction log file:

Thu Feb 13 19:30:57 2003

Clid = 26924, PID = 3001, Part = 0, Status = 0, Abort Reason = 0





DANAME_GET 0x1d801d8 0x1d801a0

GET_ARRAYNAME SENA 50800200000e78b8

CTLR_PTOLNAME /pci@1f,4000/pci@5/SUNW,qlc@4/fp@0,0

GET_ARRAYNAME SENA 50800200000e78b8

CTLR_PTOLNAME /pci@1f,4000/pci@5/SUNW,qlc@5/fp@0,0

DISCONNECT <no request data>

The first line of each log entry is the time stamp of the transaction. The Clid field corresponds to the client ID for the connection that the command opened to vxconfigd. The PID field shows the process ID of the utility that is requesting the operation. The Status and Abort Reason fields contain error codes if the transaction does not complete normally. The remainder of the record shows the data that was used in processing the transaction.

The client ID is the same as that recorded for the corresponding command line in the command log.

See "Command logs" on page 63.

See "Association of command and transaction logs" on page 66.

If there is an error reading from the settings file, transaction logging switches to its built-in default settings. This may mean, for example, that logging remains enabled after being disabled using vxtranslog -m off command. If this happens, use the vxtranslog utility to recreate the settings file, or restore the file from a backup.