To enable log file or syslog
logging on a permanent basis, you can edit the /etc/init.d/vxvm-sysboot
script that starts the VxVM configuration daemon, vxconfigd
.
To configure logging in the startup script
vxconfigd
:
#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=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 option settings.