VMWare ESX Log Level einstellen

Aus Laub-Home.de Wiki
Zur Navigation springen Zur Suche springen

Change the LogLevel on ESX Server

Why

Wen es nervt, das der ESX Server zu viele Infos in die Logfiles schreibt, die meistens vom hostd Prozess kommen, kann hier nachlesen, wie man den Log Level heruntersetzt.

Logfiles

The following are the configuration files for hostd and vpxa

/etc/vmware/hostd/config.xml
/etc/vmware/vpxa.cfg
/etc/opt/vmware/vpxa/vpxa.cfg

Log Level

The level of logging can be changed to these listed levels for either hostd or vpxa:

none (Disable logging)
error (Errors only)
warning (Errors and warnings)
info (Normal logging)
verbose (Verbose)
trivia (Extended verbose)

Hostd LogLevel

For hostd, find the "level" entry under the "log" area and enter the keyword for the level of logging desired.

<log>
<directory>/var/log/vmware/</directory>
<name>hostd</name>
<outputToConsole>false</outputToConsole>
<level>verbose</level>
</log>

VXPA LogLevel

For vpxa, find the "log" area and insert an entry like the following specifying the log level desired if an entry has not been added at an earlier time; otherwise modify the entry as above. There is not a default entry currently in the installed version.

<level>trivia</level>

Logfile Size

The amount of data collected can be controlled by specifying the number of log files to keep and the size (in bytes) of those files. These entries can be added to either the hostd or vpxa configuration files in the "log" area, Modify the variables to desired magnitudes.

<maxFileNum>15</maxFileNum>
<maxFileSize>10485760</maxFileSize>

Restart Services

ESX

Once the hostd configuration file has been modified, restart the hostd service with

service mgmt-vmware restart

or if the vpxa configuration file was modified, restart the vpxa service with

service vmware-vpxa restart

ESXi

You can restart the Management Service from the ESXi Console.

Source

http://www-01.ibm.com/support/docview.wss?uid=isg3T1010375