ESXi 5.5 – Extending Performance Data to 36 hours


It is noted that the standalone ESXi can only keep 1 hours’ perf data, and looks no way to change it? here is the solution.

By default a standalone ESXi host will keep 1 hours worth of performance data. vCenter Server will allow you to capture performance data long term, but if you have just the standalone ESXi host you can extend the capture of performance data to 36 hours with just a simple configuration change. This is working for ESXi 5.5 as well

1) Open the file /etc/vmware/hostd/config.xml and change the portion in bold from false to true

<statssvc>
<path>libstatssvc.so</path>
<enableMockup>false</enableMockup>
<!– Directory to store stats related files in –>
<!– <depotDir> /var/lib/vmware/hostd/stats/ </depotDir> –>
<!– Name of the StatsDepot –>
<!– <depotName> hostAgentStats </depotName> –>
<!– Max number of stats to purge in one shot –>
<!– <maxStatsPurged> 1000 </maxStatsPurged> –>
<!– Real time stats collection interval –>
<!– <collectionInterval> 20 </collectionInterval> –>
<!– Enable historical stats collection –>
<historicalStatsEnabled> true </historicalStatsEnabled>
</statssvc>

2) Once the above change is made, you can either restart the host or run the console command services.sh restart


Reference

http://www.vm-help.com/esx/esx3i/extending_performance_data.php

Advertisements
This entry was posted in VMWare. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s