When troubleshooting or if you have a support query open, you may
be required to change the logging parameters for your
Oracle PCA. The settings for this are contained in
/etc/ovca.conf
, and can be changed using the
CLI.
The following instructions must be followed for each of the two management nodes in your environment.
Changing the Oracle Private Cloud Appliance Logging Parameters for a Management Node
Gain command line access to the management node. Usually this is achieved using SSH and logging in as the root user with the global Oracle PCA password.
Use the CLI, as described in Chapter 3, The Oracle Private Cloud Appliance Command Line Interface (CLI), to view or modify your appliance log settings. The CLI safely reads and edits the
/etc/ovca.conf
file, to prevent the possibility of configuration file corruption.To view the current values for the configurable settings in the configuration file run the CLI as follows:
# pca-admin show system-properties
To change the log level:
# pca-admin set system-property log_level
LEVEL
Where
LEVEL
is one of the following:DEBUG
,INFO
,WARNING
,ERROR
,CRITICAL
.To change the log file size:
# pca-admin set system-property log_size
SIZE
Where
SIZE
, expressed in MB, is a number from 1 to 512.To change the number of backup log files stored:
# pca-admin set system-property log_count
COUNT
Where
COUNT
is a number of files ranging from 0 to 100.
The new log level setting only takes effect after a management node has been rebooted or the service has been restarted by running the service ovca restart command on the active management node shell.