Veritas Volume Manager 5.0 Troubleshooting Guide, HP-UX 11i v3, First Edition, May 2008

54 Error messages
Logging error messages
Note: syslog logging is enabled by default. Debug message logging is disabled
by default.
If syslog output is enabled, messages with a priority higher than Debug are
written to /var/adm/syslog/syslog.log.
To enable logging of debug output to the default debug log file, /var/adm/
configd.log, edit the startup script for vxconfigd as described in “Configuring
logging in the startup script” on page 54, or use the following command:
# vxdctl debug
level
[
pathname
]
There are 10 possible levels of debug logging with the values 0 through 9. Level 1
provides the least detail, and 9 the most. Level 0 turns off logging. If a path name
is specified, this file is used to record the debug output instead of the default
debug log file. If the
vxdctl debug command is used, the new debug logging level
and debug log file remain in effect until the VxVM configuration daemon,
vxconfigd, is next restarted.
Configuring logging in the startup script
To enable log file or syslog logging on a permanent basis, 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.