Configuring vxconfigd logging in the vxvm-sysboot startup script.

book

Article ID: 100022564

calendar_today

Updated On:

Resolution

To enable log file or syslog logging on a permanent basis, you can edit the /sbin/init.d/vxvm-sysboot script that starts the VxVM configuration daemon, vxconfigd.

To configure logging in the startup script, 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 tovxconfigd.log
#opts="$opts -x logfile=/foo/bar" # specify an alternate logfile
#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


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.

By default, vxconfigd is started at boot time with the -x syslog option. This redirects vxconfigd console messages to syslog. If you want to retain this behavior when restarting vxconfigd from the command line, include the -x syslog argument, as restarting vxconfigd does not preserve the option settings with which it was previously running. Similarly, any Veritas Volume Manager operations that require vxconfigd to be restarted may not retain the behavior that was previously specified by the option settings in the vxvm-sysboot script.  

Please note that a debug level of 9 is quite verbose and the output will occupy a lot of space in whatever file system contains the debug log. Turn off debug when finished.
 

 

Issue/Introduction

Configuring vxconfigd logging in the vxvm-sysboot startup script.