 




<?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>Virtualization Pro &#187; Database</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/virtualization-pro/tag/database/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/virtualization-pro</link>
	<description>A SearchVMware.com blog</description>
	<lastBuildDate>Fri, 22 Feb 2013 17:58:03 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>VMware vCenter for Linux tech preview disappointing</title>
		<link>http://itknowledgeexchange.techtarget.com/virtualization-pro/vmware-vcenter-for-linux-tech-preview-disappointing/</link>
		<comments>http://itknowledgeexchange.techtarget.com/virtualization-pro/vmware-vcenter-for-linux-tech-preview-disappointing/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 14:29:37 +0000</pubDate>
		<dc:creator>Texiwill</dc:creator>
				<category><![CDATA[Edward L. Halekty]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[VC]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[VMware vCenter]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/virtualization-pro/?p=616</guid>
		<description><![CDATA[VMware recently made a technology preview of vCenter Server for Linux available. I decided to test it out and found some disappointing limitations. vCenter Server for Linux really for Oracle I downloaded the open virtualization format (OVF) appliance and imported it into my VMware ESX host using the VMware Infrastructure Client &#8212; and immediately discovered [...]]]></description>
				<content:encoded><![CDATA[<p>VMware recently made a technology preview of vCenter Server for Linux available. I decided to test it out and found some disappointing limitations.</p>
<p><strong>vCenter Server for Linux really for Oracle</strong></p>
<p>I downloaded the open virtualization format (OVF) appliance and imported it into my VMware ESX host using the VMware Infrastructure Client &#8212; and immediately discovered that vCenter Server for Linux will not work with any database other than Oracle. The rest of the limitations are not as big of a concern and are generally as expected for a technology preview, specifically missing functionality within vCenter for Linux itself. But the lack of support for a database that comes as a part of nearly every Linux distribution is a major issue.</p>
<p>This caveat would not be as much of an issue if VMware&#8217;s vCenter Server for Linux offered support for PostgreSQL, MySQL, or even sqlite, but requiring expensive closed source Oracle database for a technology preview is extremely limiting and, quite frankly, a decision that suggests that vCenter Server for Linux was not really created for Linux administrators, but instead for an esoteric few people that have already purchased Oracle. Perhaps this is just a ploy to drive away the possible Linux customers? Or is this a ploy by Oracle to tie Linux vCenter to Oracle and hopefully boost Oracle adoption? I do not know, but not providing interfaces to standard Linux databases is not the Linux way.</p>
<p><strong>Testing MySQL</strong></p>
<p>Being the Linux person that I am, I did attempt to get MySQL to work with vCenter Server for Linux. First I had to get open database connectivity (ODBC) to attach to my MySQL database server, which required editing a few files and making the necessary modifications for MySQL support. Once I finished doing that I could connect using ODBC to MySQL, but I still needed a database to make it work.</p>
<p>I then started with the database schema for Microsoft SQL and made some changes to the schema and database views to allow the databases to work with MySQL. Whoever said SQL works everywhere is fooling themselves! After an upgrade to MySQL 5.1 I finally had everything imported. Restarting the VMware vCenter for Linux server and looking at its log files showed the failure. MySQL is not a recognized database, and VMware vCenter for Linux died. This was just a bit surprising to me.</p>
<p>So what <em>are</em> the supported databases? Doing a little research on the daemon itself I discovered that supported databases are Microsoft SQL, Oracle, PostgreSQL, and something called Other. I am not sure what Other is but it is not something standard with Linux. Since PostgreSQL was in the list, I decided to give it a shot.</p>
<p><strong>Testing PostgreSQL</strong></p>
<p>Once more I hooked up ODBC to my PostgreSQL server and then, starting with the Oracle database schema, ported it to PostgreSQL. After several modifications similar in nature to the ones for MySQL, I had a database schema that would load into PostgreSQL. I restarted vCenter for Linux and noticed it would connect, but returned a very strange error related to the tables. After checking a few logs, I realized it had to be something inside vCenter for Linux that caused the problem, not a PostgreSQL issue.  Perhaps it is related to the way PostgreSQL case folds, but my tests show there is nothing we can do within PostgreSQL to make it work with vCenter Server for Linux.</p>
<p><strong>Conclusions</strong></p>
<p>MySQL and PostgreSQL can handle the database creations as well as the port of the stored procedures, but you are limited to UTF-8 characters within all string variables (which would impact Cryllic and Asian users of vCenter for Linux). VCenter for Linux does not accept the use of MySQL, it will flat out deny its use. PostgreSQL does not get denied but it also will not work as a database for vCenter due to other errors. Some people suggest using the free Oracle database which is available, but it has size and other limitations and then I would have to support yet another database in my environment.</p>
<p>I can only surmise that vCenter for Linux is not a reality for the general GNU/Linux environment but only for enterprise administrators, who may never need vCenter for Linux as they have Microsoft Windows database servers already. I wonder about the target audience for this endeavor. I own a SMB and I am required to run one Windows server just for vCenter. Ideally I wouldn&#8217;t have to do this, neither would I like to run Oracle as Oracle is a very expensive option for an SMB. VCenter is expensive as well, but buying one expensive license instead of two is a money savings for many an organization</p>
<p>VMware: Please implement either MySQL or PostgreSQL support and let me use the GNU/Linux tools I already use!</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/virtualization-pro/vmware-vcenter-for-linux-tech-preview-disappointing/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>VirtualCenter 2.5 database index defragmentation</title>
		<link>http://itknowledgeexchange.techtarget.com/virtualization-pro/virtualcenter-25-database-index-defragmentation/</link>
		<comments>http://itknowledgeexchange.techtarget.com/virtualization-pro/virtualcenter-25-database-index-defragmentation/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 15:55:20 +0000</pubDate>
		<dc:creator>Rick Vanover</dc:creator>
				<category><![CDATA[Andrew Kutz]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Rick Vanover]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[VI3]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/virtualization-pro/virtualcenter-25-database-index-defragmentation/</guid>
		<description><![CDATA[I, like many virtualization administrators, have worked very hard to get the VMware virtual environment set up and running as expected. Now, one of my main tasks is to make sure that we do not do anything to adversely effect server performance. A good place to start in this regard is the VirtualCenter (VC) database. [...]]]></description>
				<content:encoded><![CDATA[<p>I, like many virtualization administrators, have worked very hard to get the VMware virtual environment set up and running as expected. Now, one of my main tasks is to make sure that we do not do anything to adversely effect server performance. A good place to start in this regard is the VirtualCenter (VC) database. That being said, the VC database is critically important to a successful ESX implementation, so do not do anything that is not advised by VMware documentation or support services. Let&#8217;s discuss index defragmentation in particular here when using Microsoft SQL server 2000 for the VC database.</p>
<p><strong>Index defragmentation on statistics</strong></p>
<p>I will save you some work in what to look for in determining which tables will need index defragmentation &#8211; statistics. While we all like the statistics and graphing options available in the VMware Infrastructure Client and virtual appliances that may use the table, there can be a great amount of data in that table and it can quickly become fragmented. A fragmented index in a database is similar to a fragmented file system where the ordering of an index is not in the order of the index.</p>
<p>In my VC 2.5 environment, the VPX_HIST_STAT1 table is the heavy hitter. For this database maintenance, I&#8217;m going to start with the white paper entitled &#8220;VirtualCenter Database Maintenance&#8221; available from the <a href="http://www.vmware.com/files/pdf/vc_microsoft_sql_server.pdf">VMware website</a>. Here there is a command to check your current fragmentation level:<br />
<code><br />
USE<br />
GO<br />
DBCC SHOWCONTIG (VPX_HIST_STAT1)<br />
GO</code></p>
<p>I have modified the command to use the table name, as the white paper is VC 2.0 based on the table name, whereas this example is on VC 2.5. The result will look something like the following:<br />
<code><br />
DBCC SHOWCONTIG scanning 'VPX_HIST_STAT1' table...<br />
Table: 'VPX_HIST_STAT1' (800721905); index ID: 1, database ID: 16<br />
TABLE level scan performed.<br />
- Pages Scanned................................: 505458<br />
- Extents Scanned..............................: 78097<br />
- Extent Switches..............................: 457307<br />
- Avg. Pages per Extent........................: 7.4<strong><br />
- Scan Density [Best Count:Actual Count].......: 22.34% [113183:905308]</strong><br />
- Logical Scan Fragmentation ..................: 3.81%<br />
- Extent Scan Fragmentation ...................: 0.47%<br />
- Avg. Bytes Free per Page.....................: 187.2<br />
- Avg. Page Density (full).....................: 97.69%<br />
DBCC execution completed. If DBCC printed error messages, contact your system administrator.</code></p>
<p>The key takeaway is the Scan Density percentage. The white paper advises that a number close to 100% is good, meaning that the table index in the example above is quite fragmented. The white paper goes on to identify two correction levels for improving the index. Index defragmentation and, more aggressively, rebuild are the standard options to address the index. If the scan density after a index defragmentation does not do enough to improve the index, database admins will have to begin the rebuild process. A caveat: rebuilding requires VC downtime to perform the database maintenance.</p>
<p>By comparison, here the same command on the VPX_EVENT table. This table is busy, but not near as much as the statistics table:</p>
<p>DBCC SHOWCONTIG scanning &#8216;VPX_EVENT&#8217; table&#8230;<br />
Table: &#8216;VPX_EVENT&#8217; (36195179); index ID: 1, database ID: 16<br />
TABLE level scan performed.<br />
- Pages Scanned&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..: 594<br />
- Extents Scanned&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;: 86<br />
- Extent Switches&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;: 132<br />
- Avg. Pages per Extent&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;: 6.9<strong><br />
- Scan Density [Best Count:Actual Count]&#8230;&#8230;.: 66.39% [75:133]</strong><br />
- Logical Scan Fragmentation &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;: 6.73%<br />
- Extent Scan Fragmentation &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.: 98.84%<br />
- Avg. Bytes Free per Page&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;: 150.5<br />
- Avg. Page Density (full)&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;: 98.14%<br />
DBCC execution completed. If DBCC printed error messages, contact your system administrator.</p>
<p>This table is in better shape, but is much smaller than the statistics table.</p>
<p><strong>Configure statistics logging level</strong></p>
<p>As virtualization administrators, one safeguard we can perform is to limit the logging levels within the VMware Infrastructure Client. To access the logging levels select Administration menu, then VirtualCenter Management Server Configuration, then Statistics. Here you want to limit the number of high level logging to keep the VPX_HIST_STAT<em>x</em> tables in check:</p>
<p><img src="http://rickvanover.chickenkiller.com/scratch-svm-blog-2008-3-11-stats1.jpg" alt="Statistics Level Configuration" /></p>
<p>In selecting which level works best for your environment, be sure to identify any monitoring tools or virtual appliances that may read the selected tables. Also be sure to benchmark your database size and index fragmentation to see if you gain any improvements. Identifying the parts of the entire VMware Infrastructure environment that you can keep in maintenance mode will make your job as a virtualization administrator much easier.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/virtualization-pro/virtualcenter-25-database-index-defragmentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
