<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>VMtoday &#187; vi client</title> <atom:link href="http://vmtoday.com/tag/vi-client/feed/" rel="self" type="application/rss+xml" /><link>http://vmtoday.com</link> <description>VMware News, Views, &#38; How-To&#039;s from vExpert Josh Townsend</description> <lastBuildDate>Fri, 18 May 2012 19:03:15 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>vCenter Database Stats Rollup Troubleshooting</title><link>http://vmtoday.com/2009/09/vcenter-database-stats-rollup-troubleshooting/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=vcenter-database-stats-rollup-troubleshooting</link> <comments>http://vmtoday.com/2009/09/vcenter-database-stats-rollup-troubleshooting/#comments</comments> <pubDate>Thu, 17 Sep 2009 14:33:40 +0000</pubDate> <dc:creator>Joshua Townsend</dc:creator> <category><![CDATA[Issues & Troubleshooting]]></category> <category><![CDATA[VMware]]></category> <category><![CDATA[VMware How To]]></category> <category><![CDATA[configuration]]></category> <category><![CDATA[database]]></category> <category><![CDATA[design]]></category> <category><![CDATA[performance]]></category> <category><![CDATA[sql]]></category> <category><![CDATA[statistics]]></category> <category><![CDATA[vcenter]]></category> <category><![CDATA[vi client]]></category> <category><![CDATA[viclient]]></category> <category><![CDATA[virtual center]]></category> <category><![CDATA[virtualcenter]]></category> <category><![CDATA[vsphere]]></category><guid
isPermaLink="false">http://vmtoday.com/?p=240</guid> <description><![CDATA[VMware vCenter collects performance statistics, tasks and events for historical performance analysis and auditing.  The collection level and retention of performance statistics can be controlled through the vCenter GUI (see Administration &#124; vCenter Server Settings &#124; Statistics).   The level of statistics collection and retention periods can have a dramatic impact on your vCenter Server&#8217;s performance [...]]]></description> <content:encoded><![CDATA[<p></p><p>VMware vCenter collects performance statistics, tasks and events for historical performance analysis and auditing.  The collection level and retention of performance statistics can be controlled through the vCenter GUI (see Administration | vCenter Server Settings | Statistics).   <a
href="http://cloudfront.vmtoday.com/wp-content/uploads/2009/09/image2.png" rel="lightbox[240]"><img
style="border-bottom: 0px; border-left: 0px; margin: 10px 15px 10px 0px; display: inline; border-top: 0px; border-right: 0px" title="vCenter Statistics Settings" src="http://cloudfront.vmtoday.com/wp-content/uploads/2009/09/image_thumb2.png" border="0" alt="vCenter Statistics Settings" width="289" height="282" align="left" /></a>The level of statistics collection and retention periods can have a dramatic impact on your vCenter Server&#8217;s performance if not carefully planned and monitored.  In particular, the vCenter database can grow quite large and the database server required to support the increase in statistics increases in size and performance characteristics (increased disk IO capacity, CPU, and memory).  Fortunately, VMware has provided a vCenter database sizing tool within the vCenter client (see picture).  This is all well and good for initial sizing, and my experience shows that vCenter&#8217;s sizing estimates are fairly accurate assuming the environment remains healthy.</p><p>I recently migrated an environment from vCenter 2.5 to 4.0 and in the process switched from a Windows 2003 32-bit vCenter host and a SQL 2005 server (remote to vCenter) to a Windows 2008 64-bit vCenter server with a SQL 2008 server (again, a remote SQL server).  I experienced a few issues during the migration and thought I had worked through them all (I&#8217;ll post on those at a later date).  However, after a bit of time I found that performance statistics for objects in the vCenter were missing of not rendering at an acceptable pace.  Upon further investigation, I discovered warnings in the vCenter Service Status node indicating that performance rollups within the vCenter database were not taking place.</p><p><a
href="http://cloudfront.vmtoday.com/wp-content/uploads/2009/09/image3.png" rel="lightbox[240]"><img
style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" src="http://cloudfront.vmtoday.com/wp-content/uploads/2009/09/image_thumb3.png" border="0" alt="image" width="428" height="50" /></a></p><p>In a SQL-backed vCenter, statistics rollups are handled by the SQL Server Agent (note: if you are using SQL Server Express, statistics rollups are handled by vCenter itself as SQL Express does not offer SQL Server Agent jobs).  <a
title="Missing Performance Data in VirtualCenter 2.5" href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1003570" target="_blank">KB 1003570</a> describes this process (it applies to vCenter 2.5, but the principles in it can be applied to 4.0).  To troubleshoot and resolve the issue I opened SQL Server Management Studio and checked several items:</p><ol><li><span
style="color: #35383d;">Is the SQL Server Agent running?</span></li><li><span
style="color: #35383d;">Are there statistics rollup jobs defined for SQL server agent?</span></li><li><span
style="color: #35383d;">Are those jobs running?</span></li></ol><p>In my case, the SQL Server Agent was running (you are prompted to configure this during the vCenter install).  However, when I checked for the presence of rollup jobs, I discovered that only a Past Day job had migrated with the database to the new SQL server.  Upon investigating the job history for that job I discovered that the job had not run since the migration (note to self: add these checks to your standard vCenter migration checklist).</p><p>To remediate the problem I completed the following steps:</p><ol><li><span
style="color: #35383d;">Remove the bad &#8216;Past Day stats rollupVirtualCenter&#8217; job from the list of SQL Server Agent Jobs.</span></li><li><span
style="color: #35383d;">Recreate the three standard stats rollup jobs.  To recreate the jobs, find SQL scripts on your vCenter server in C:\Program Files (x86)\VMware\Infrastructure\VirtualCenter Server.  The .sql scripts you&#8217;ll need are stats_rollup1_proc_mssql.sql, stats_rollup2_proc_mssql.sql, and stats_rollup3_proc_mssql.sql.  Run these scripts in SQL Query Analyzer against your VirtualCenter Database in order from 1 to 3.  These scripts should create the rollup jobs and their associated stored procedures (this procedure is detailed at <a
title="http://communities.vmware.com/thread/123715?start=0&amp;tstart=0" href="http://communities.vmware.com/thread/123715">http://communities.vmware.com/thread/123715</a>).</span></li><li><span
style="color: #35383d;">After recreating the jobs I took a backup of the vCenter database.  The Past Day job soon kicked off to begin a stats rollup (this runs every 30 minutes by default).</span></li></ol><p>I checked the server several hours later and discovered that rather than completing successfully, the Past Day job was still running and the drive holding my vCenter database transaction log was full.  Back to the drawing board..</p><ol><li><span
style="color: #35383d;">I disabled the Past Week and Past Month rollup jobs to avoid job conflicts.</span></li><li><span
style="color: #35383d;">I backed up the vCenter database and then performed a shrink of the log file to get it back down to size.</span></li><li><span
style="color: #35383d;">The vCenter was running as a VM, so I was able to quickly increase its disk size and use diskpart from within the guest to extend the partition.  The space required to process weeks of performance statistics is not included in the vCenter Database Sizing tool as it is assumed that the rollup/purge jobs will run as designed.</span></li></ol><p>I wanted to see how bad the problem was before kicking off another job so I ran:</p><blockquote><p>select count(*) from vpx_hist_stat1</p></blockquote><p>against the vCenter database in SQL Query Analyzer.  The query ran for several hours (never a good sign) and eventually returned well over 20 million rows of performance statistics (thanks to <a
title="http://communities.vmware.com/message/1318736" href="http://communities.vmware.com/message/1318736">http://communities.vmware.com/message/1318736</a> for pointing me in this direction).  I investigated options to truncate the tables (see above link), and also looked at a script from VMware KB <a
href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1000125" target="_blank">1000125</a>: Purging old data from the database used by vCenter Server.  In the end, I decided to try to let the Past Day stats job run.</p><p>I stopped the vCenter  Server Service to prevent new statistics from being written to the database.  I also disabled the Past Week and Past Month SQL Agent jobs to prevent job conflicts and then manually started the Past Day job.  I had to stop the job several times as it filled the 100GB transaction log volume.  A backup &amp; shrink operation gave me back the space on the log volume.  I saw about 300GB of transaction logs written over the course of this process, but the Past Day job eventually completed.</p><p>Finally, I re-enabled the Past Week and Past Month jobs and manually ran both of them (Past Week first, then Past Month), followed by a backup and shrink of the vCenter database.  I was impressed with the performance increase I saw in the vCenter client.  Lists and performance graphs rendered much faster than when stats rollups were not taking place.</p><p>It would be a good idea to include checking stats rollup job status and a count of rows from the vpx_hist_stat tables in the vCenter database in your regular maintenance tasks.  For other vCenter Database best practices, check out breakout session PO2061 from VMworld 2008.  If you did not attend or subscribe to <a
title="VMworld" href="http://www.vmworld.com" target="_blank">VMworld</a>, Scott Lowe <a
title="PO2061: VMware VirtualCenter 2.5 Database Best Practices" href="http://blog.scottlowe.org/2008/09/18/po2061-vmware-virtualcenter-25-database-best-practices/" target="_blank">covered the session in this post</a>.  A VMworld 2009 &#8220;<a
title="Exclusive &quot;Online Only&quot; Sessions for VMworld 2009" href="http://www.vmworld.com/blogs/vmworld/2009/09/01/exclusive-online-only-sessions-for-vmworld-2009" target="_blank">online only</a>&#8221; session entitled <a
title="VM3237: vCenter Databases: Setup, Management and Best Practices" href="http://www.vmworld.com/docs/DOC-3763" target="_blank">VM3237 vCenter Databases: Setup, Management and Best Practices</a> was also offered (subscription required).  I have not viewed this session so I cannot comment on its content.</p> ]]></content:encoded> <wfw:commentRss>http://vmtoday.com/2009/09/vcenter-database-stats-rollup-troubleshooting/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Virtual Infrastructure Client Opens Off Screen</title><link>http://vmtoday.com/2009/07/virtual-infrastructure-client-opens-off-screen/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=virtual-infrastructure-client-opens-off-screen</link> <comments>http://vmtoday.com/2009/07/virtual-infrastructure-client-opens-off-screen/#comments</comments> <pubDate>Thu, 16 Jul 2009 15:39:44 +0000</pubDate> <dc:creator>Joshua Townsend</dc:creator> <category><![CDATA[Issues & Troubleshooting]]></category> <category><![CDATA[VMware]]></category> <category><![CDATA[infrastructure]]></category> <category><![CDATA[Microsoft]]></category> <category><![CDATA[vi client]]></category> <category><![CDATA[VI3]]></category> <category><![CDATA[windows]]></category> <category><![CDATA[windows 7]]></category><guid
isPermaLink="false">http://vmtoday.com/?p=135</guid> <description><![CDATA[A user reported an issue with one of the VM&#8217;s in my environment this morning.  It seems that an automated process had spun up the CPU to 100% in the Windows guest and the system was deadlocked.  I was still at home when I received the message on my BlackBerry, so I fired up the [...]]]></description> <content:encoded><![CDATA[<p></p><p>A user reported an issue with one of the VM&#8217;s in my environment this morning.  It seems that an automated process had spun up the CPU to 100% in the Windows guest and the system was deadlocked.  I was still at home when I received the message on my BlackBerry, so I fired up the VPN on my Windows 7 laptop, opened the VI3 client and&#8230;.., um, where is it?  The VI3 client icon was in the taskbar, but the app was nowhere to be found &#8211; it had opened off-screen where my secondary monitor usually lives.  This is nothing new for the VI client &#8211; I have experienced it numerous times in the past.  But this was my first time with the problem on Windows 7.</p><p>Pre-Windows 7, I would have right-clicked the Windows taskbar for the app, selected &#8216;Move&#8217;, and then used the keyboard arrow keys to guide the phantom window home.  Windows 7 does not have the same Windows positioning options on a right-click to the taskbar so I had to find another way. Enter Windows shortcut keys.  Here&#8217;s how I brought the VI3 Client window back into view:</p><ol><li>Make sure that the VI3 Client window is in the foreground by selecting it in the taskbar.  You&#8217;ll know that it is in the foreground when the taskbar icon gets a white glow as pictured here: <a
href="http://cloudfront.vmtoday.com/wp-content/uploads/2009/07/vi3_client_in_taskbar.png" rel="lightbox[135]"><img
class="alignnone size-full wp-image-136" title="vi3_client_in_taskbar" src="http://cloudfront.vmtoday.com/wp-content/uploads/2009/07/vi3_client_in_taskbar.png" alt="vi3_client_in_taskbar" width="122" height="39" /></a></li><li>Press the hotkey combination: &#8220;<strong>ALT+Space, M</strong>&#8221; for Move.</li><li>Use the keyboard arrow keys to move the window to your active monitor, pressing &#8220;Enter&#8221; once the window is visible to commit the move.</li><li>If the arrow keys fail to move the window and/or you hear the Windows error sound, your VI3 Client windows is probably maximized.  The move option is not available when a window is maximized.  To work around this condition use the hotkey combination: &#8220;<strong>ALT+Space, R</strong>&#8221; for Restore.  You should now be able to move the window using steps #2 &amp; #3 above.</li></ol><p>If you are still really struggling, break out the trusty old registry editor and follow along:</p><ol><li>Close any open VMware Infrastructure Client windows</li><li>Navigate to <strong>HKEY_CURRENT_USER\Software\VMware\VMware Infrastructure Client\Preferences\UI</strong></li><li>Locate the <strong>ApplicationLocation</strong> key.  This key provides the X-Y coordinate for the VI Client window at startup.</li><li>Modify the string value to <strong>0-0</strong>.  This value will cause the VI3 client to open in the center of your primary display.</li><li>If you run different sized/resolution displays, you may also want to change the<strong> ApplicationMaximized</strong> or <strong>ApplicationSize</strong> keys to fit your needs.</li><li>Launch the VMware Infrastructure Client and get back to work.</li></ol> ]]></content:encoded> <wfw:commentRss>http://vmtoday.com/2009/07/virtual-infrastructure-client-opens-off-screen/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 12/21 queries in 0.045 seconds using disk: basic
Object Caching 621/623 objects using disk: basic
Content Delivery Network via Amazon Web Services: CloudFront: cloudfront.vmtoday.com

Served from: vmtoday.com @ 2012-05-22 17:01:16 -->
