VERITAS Volume Manager 4.1 Troubleshooting Guide
Error Messages
Configuring Logging in the Startup Script
Chapter 666
To enable logging of console output to the file /var/adm/configd.log, edit the startup script
for vxconfigd as described in “Configuring Logging in the Startup Script” on page 66 or
invoke vxconfigd under the C locale as shown here:
# vxconfigd [-x [1-9]] -x log
There are 9 possible levels of debug logging; 1 provides the least detail, and 9 the most.
To enable syslog logging of console output, specify the option -x syslog to vxconfigd as
shown here:
# vxconfigd [-x [1-9]] -x syslog
Messages with a priority higher than Debug are written to /var/adm/syslog/syslog.log,
and all other messages are written to /var/adm/configd.log.
If you do not specify a debug level, only Error, Fatal Error, Warning, and Notice messages are
logged. Debug messages are not logged.
Configuring Logging in the Startup Script
To enable log file or syslog logging, you can edit the following portion of the
/sbin/init.d/vxvm-sysboot script that starts the VxVM configuration daemon, vxconfigd:
# comment-out or uncomment any of the following lines to enable or
# disable the corresponding feature in vxconfigd.
#opts=”$opts -x syslog” # use syslog for console messages
#opts=”$opts -x log” # messages to vxconfigd.log
#opts=”$opts -x logfile=/foo/bar” # specify an alternate log file
#opts=”$opts -x timestamp” # timestamp console messages
# to turn on debugging console output, uncomment the following line.
# The debug level can be set higher for more output. The highest
# debug level is 9.
#debug=1 # enable debugging console output
Comment or uncomment the lines corresponding to the features that you want to be disabled
or enabled at startup. For example, the opts="$opts -x syslog" string is usually
uncommented so that vxconfigd uses syslog logging by default. Inserting a # character at
the beginning of the line turns off syslog logging for vxconfigd.