<?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>Mike Trello&#039;s Blog</title>
	<atom:link href="http://miketrellosblog.arcadecab.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://miketrellosblog.arcadecab.com</link>
	<description>Mike Trello&#039;s Technology Musings</description>
	<lastBuildDate>Mon, 20 Jun 2011 14:40:45 +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>AoE (ATA over Ethernet) benchmarks on my home network</title>
		<link>http://miketrellosblog.arcadecab.com/2011/06/aoe-ata-over-ethernet-benchmarks-on-my-home-network/</link>
		<comments>http://miketrellosblog.arcadecab.com/2011/06/aoe-ata-over-ethernet-benchmarks-on-my-home-network/#comments</comments>
		<pubDate>Wed, 15 Jun 2011 18:18:50 +0000</pubDate>
		<dc:creator>mtrello_Blog</dc:creator>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[OpenFiler]]></category>
		<category><![CDATA[benchmarks]]></category>
		<category><![CDATA[ESXi]]></category>
		<category><![CDATA[HardDrives]]></category>

		<guid isPermaLink="false">http://miketrellosblog.arcadecab.com/?p=180</guid>
		<description><![CDATA[This week I stumbled upon a technology that was new to me: AoE, or ATA over Ethernet. This protocol was being hyped as a faster, much cheaper alternative to iSCSCI and NFS. In a nutshell, AoE &#8220;is a network protocol, designed for simple, high-performance access of SATA devices over Ethernet&#8221;.   I found a short description [...]]]></description>
			<content:encoded><![CDATA[<p>This week I stumbled upon a technology that was new to me: AoE, or <a href="http://en.wikipedia.org/wiki/ATA_over_Ethernet">ATA over Ethernet</a>.  This protocol was being hyped as a faster, much cheaper alternative to iSCSCI and NFS.  In a nutshell, AoE &#8220;is a network protocol, designed for simple, high-performance access of SATA devices over Ethernet&#8221;.   I found a short description of a typical setup on <a href="http://www.storagebod.com/wordpress/?p=669">Martin Glassborow&#8217;s site </a>that demonstrated how quickly AoE could be set up.  This sounded very interesting to me and worth investigating further.  I was curious to see whether it would be anywhere near local-storage speeds in my set-up.</p>
<p>I hit the <a href="https://help.ubuntu.com/community/ATAOverEthernet">Ubuntu documentation for how AoE was set up</a> on a Ubuntu 10.04 virtual machine.  I created a small, 10GB test disk with vSphere and attached it to my Ubuntu 10.04 vm.  After a reboot, I started up the Disk Utility (<code>System/Administration/Disk Utility</code>),formatted the volume, and then mounted it.  I noted the drive letter (sdb), as you will need it in steps 4 and 5.  After that I performed the following steps in a command window:</p>
<ol>
<li><code>sudo apt-get install vblade</code></li>
<li><code>sudo ip link set eth0 up</code></li>
<li>I then tested to make sure it was working: <br /><code>sudo dd if=/dev/zero of=vblade0 coast=1 be=1M</code><br />
	<code>sudo vblade 1 1 eth0 vblade0</code></li>
<li>I exported the storage out:  <code>sudo vbladed 0 1 eth0 /dev/sdb</code></li>
<li>I also edited rc.local to add the above line to startup: <code>sudo nano /etc/rc.local</code></li>
</ol>
<p>Next, I began setting up the client side (Windows XP machine).  I downloaded the <a href="http://www.starwindsoftware.com/aoe-ataoverethernet-initiator">Starwind Windows AoE Initiator</a>, which required me to register first.  This application was installed on the Windows box, and started up.  I added a new device, chose the adapter, and selected the drive that was listed.  The drive suddenly was recognized by Windows as new and connected.  Very cool.</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/06/AoE-new-disc-on-Ubuntu-displayed-to-XP.jpg"><img src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/06/AoE-new-disc-on-Ubuntu-displayed-to-XP-300x46.jpg" alt="New AoE Disk" title="AoE new disc on Ubuntu displayed to XP" width="300" height="46" class="aligncenter size-medium wp-image-182" /></a></p>
<p>In XP&#8217;s <em>Computer Management</em>, I initialized the new drive and formatted as NTFS.  It took but a few seconds for the 10GB drive to complete.  Everything about this AoE-connected drive made it appear as if it was directly connected to my machine.  The whole process I&#8217;ve described to this point took a bit less than twenty minutes, not counting the few minutes to register at Starwind.  Now I wanted to see if it was as fast as local storage.</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/06/AoE-formatted-as-NTFS.jpg"><img src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/06/AoE-formatted-as-NTFS-300x39.jpg" alt="New, formatted AoE disk" title="AoE formatted as NTFS" width="300" height="39" class="aligncenter size-medium wp-image-183" /></a></p>
<p><strong>Testing</strong><br />
I chose a local folder that was 2.62GB in size, with 176 folders within it containing 19,000 files.  This was small enough to not take all night for the tests, but also had enough small files within to make it more challenging that simply a single, large file.  I popped up the system clock (with a second hand), and noted the start time when I pasted the file, and stopped the clock when the transfer completed.  I did nothing else on my machine while the tests ran.  The results are below.</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/06/Transfer-times-for-file.jpg"><img class="size-medium wp-image-181 aligncenter" title="Transfer times for folder" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/06/Transfer-times-for-file-300x160.jpg" alt="Transfer times for folder" width="300" height="160" /></a></p>
<p><strong>Conclusions</strong><br />
While these results are not overly scientific and very specific to my environment, they do give some valuable comparisons.  In my environment, AoE performed no better than an Openfiler or a common Ubuntu (samba) share.  It certainly was much slower than local storage but honestly, what isn&#8217;t?  If AoE had been noticeably faster than OpenFiler, I might have considered finding a use for it.  As it stands, it was no faster than any other share on the ESXi box.  It did take precious little time and effort to set up and test, so I consider it time well spent.  In a large environment, perhaps on a SAN, the results might be different.</p>
]]></content:encoded>
			<wfw:commentRss>http://miketrellosblog.arcadecab.com/2011/06/aoe-ata-over-ethernet-benchmarks-on-my-home-network/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Backing up XBMC Live 10.0 configuration to network CIFS share</title>
		<link>http://miketrellosblog.arcadecab.com/2011/03/backing-up-xbmc-live-10-0-configuration-to-network-cifs-share/</link>
		<comments>http://miketrellosblog.arcadecab.com/2011/03/backing-up-xbmc-live-10-0-configuration-to-network-cifs-share/#comments</comments>
		<pubDate>Wed, 02 Mar 2011 02:37:19 +0000</pubDate>
		<dc:creator>mtrello_Blog</dc:creator>
				<category><![CDATA[Backups]]></category>
		<category><![CDATA[OpenFiler]]></category>
		<category><![CDATA[XBMC]]></category>

		<guid isPermaLink="false">http://miketrellosblog.arcadecab.com/?p=154</guid>
		<description><![CDATA[The last several posts have described my foray into HTPC territory. My XBMC Live installation is humming along nicely on the Zotac ZBOX HD-ND02, and we are thoroughly enjoying it. Although the installation of XBMC Live was quick and painless, I have made quite a few changes to the skin settings, media paths, SSD settings, [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://miketrellosblog.arcadecab.com/category/xbmc/">last several posts</a> have described my foray into HTPC territory.  My <a href="http://wiki.xbmc.org/?title=XBMC_Live">XBMC Live</a> installation is humming along nicely on the <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16856173004">Zotac ZBOX HD-ND02</a>, and we are thoroughly enjoying it.  Although the installation of XBMC Live was quick and painless, I have made quite a few changes to the skin settings, media paths, <a href="http://miketrellosblog.arcadecab.com/2011/02/tuning-a-solid-state-drive-ssd-on-xbmc-live-10-0-htpc/">SSD settings</a>, and have lot of data loaded into the databases.  Getting this all set back up from scratch would take some effort (if I could even remember what was changed) in the event a complete re-installation was needed.  Consequently, a scheduled backup of the important data was needed.</p>
<p><strong>What to Back up?</strong><br />
First, though, I needed to figure out exactly what was important to copy off.  Obviously the .XBMC folder needed backed up in its entirety as that contained all the XBMC-specific files.  In addition, any other system file that was modified needed backed up.  I&#8217;m not sure what system files were changed automatically, but the following files were changed by me:</p>
<pre>/etc/fstab
/etc/rc.local
/sys/block/sda/queue/scheduler</pre>
<p>The first thing I needed to do was install SMBFS on XBMC.  At a command prompt type: <code>sudo apt-get install smbfs</code>.  Respond &#8216;Y&#8217;es to the question, and let it run.  It&#8217;ll take just a minute or two to complete.</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/02/install_smbs_on_XBMC.jpg"><img class="size-medium wp-image-156 aligncenter" title="install_smbfs_on_XBMC" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/02/install_smbs_on_XBMC-300x189.jpg" alt="install smbfs on XBMC" width="300" height="189" /></a></p>
<p><strong>Network drive to backup to</strong><br />
The data would be backed up to a share named <em>XBMC_Backups</em> on my <a href="http://miketrellosblog.arcadecab.com/2010/07/openfiler-within-esxi/">OpenFiler virtual machine</a>.  To be able to mount this drive during the backup process (we only want to mount the share for the duration of the script, to minimize needless network traffic), I needed to create an entry in fstab in addition to creating a mount point.</p>
<pre>mkdir /mnt/backup
sudo nano /etc/fstab</pre>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/02/fstab_entry.jpg"><img class="size-medium wp-image-157 aligncenter" title="fstab_entry" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/02/fstab_entry-300x85.jpg" alt="fstab entry" width="300" height="85" /></a></p>
<p>The entry has <code>noauto</code> so the share is not mounted at boot.  I also used OpenFiler&#8217;s static IP address, instead of its name, to minimize potential problems for me.</p>
<p>We&#8217;ll want to backup a list of folders and individual files, so I created a text file named <code>file_list.txt</code> in /mnt/backup.  This will make it easier for me to add files in the future if other important ones are uncovered.  Plus it makes the script a little less confusing.</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/03/File_list.jpg"><img src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/03/File_list-300x128.jpg" alt="File_list.txt" title="File_list" width="300" height="128" class="aligncenter size-medium wp-image-175" /></a></p>
<p><strong>Test the commands manually</strong><br />
I tested the commands via the command line before adding them to the script.  I first mounted the backup share:</p>
<pre>mount /mnt/backup</code>.</pre>
<p>Then I ran the tar command:</p>
<pre style="width:560px;border:solid 1px #ccc;overflow:scroll;">tar zvc -T /mnt/backup/file_list.txt --file /mnt/backup/xbmc-`date +\%Y\%m\%d_\%H\%M\%S`.tar.gz</pre>
<p>This took a minute or so to churn through all the files, but in the end, a shiny new tar.gz archive showed up on the network.</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/02/Backup_viewed_from_Windows.jpg"><img class="size-medium wp-image-159 aligncenter" title="Backup_viewed_from_Windows" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/02/Backup_viewed_from_Windows-300x80.jpg" alt="Archive viewed from Windows" width="300" height="80" /></a></p>
<p><strong>The script</strong><br />
The script itself is straightforward.  I named it <em>./backup_XBMC_config.sh</em>.</p>
<pre style="width:560px;border:solid 1px #ccc;overflow:scroll;">
# The backup folder mountpoint is at /mnt/backup.
# Unmount it to ensure it is not already mounted.
umount /mnt/backup&nbsp;

# Mount the OpenFiler share.
mount /mnt/backup

# Start the tar backup using gzip compression.
tar zvc -T /mnt/backup/file_list.txt --file /mnt/backup/xbmc-`date +\%Y\%m\%d_\%H\%M\%S`.tar.gz 

# Now I delete backups older than 14 days.
/usr/bin/find /mnt/backup/ -depth -mindepth 1 -mtime +14 -name *.gz -delete

# Unmount the share.
umount /mnt/backup</pre>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/03/backup_XBMC_config_sh.jpg"><img src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/03/backup_XBMC_config_sh-300x145.jpg" alt="backup_XBMC_config.sh" title="backup_XBMC_config_sh" width="300" height="145" class="aligncenter size-medium wp-image-174" /></a></p>
<p>I then gave everyone the ability to execute the file.</p>
<pre>sudo chmod 777 ./backup_XBMC_config.sh</pre>
<p>I manually tested the job out.</p>
<pre>sudo ./backup_XBMC_config.sh</pre>
<p>Next I needed to add this job to the crontab.</p>
<pre>sudo crontab -e</pre>
<p>The job will run at 3am on M, W, Sat so I added the following line to the crontab file: </p>
<pre>0 3 * * 1,3,6 ./backup_XBMC_config.sh</pre>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/03/crontab_for_backup.jpg"><img src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/03/crontab_for_backup-300x69.jpg" alt="crontab" title="crontab_for_backup" width="300" height="69" class="aligncenter size-medium wp-image-173" /></a></p>
<p>And that is it.  The job runs three times a week, sending a gzipped file to the OpenFiler backup folder.  It also deletes any file older than 14 days with a .gz extension.</p>
]]></content:encoded>
			<wfw:commentRss>http://miketrellosblog.arcadecab.com/2011/03/backing-up-xbmc-live-10-0-configuration-to-network-cifs-share/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tuning a Solid State Drive (SSD) on XBMC Live 10.0 HTPC</title>
		<link>http://miketrellosblog.arcadecab.com/2011/02/tuning-a-solid-state-drive-ssd-on-xbmc-live-10-0-htpc/</link>
		<comments>http://miketrellosblog.arcadecab.com/2011/02/tuning-a-solid-state-drive-ssd-on-xbmc-live-10-0-htpc/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 15:30:14 +0000</pubDate>
		<dc:creator>mtrello_Blog</dc:creator>
				<category><![CDATA[XBMC]]></category>
		<category><![CDATA[HardDrives]]></category>

		<guid isPermaLink="false">http://miketrellosblog.arcadecab.com/?p=160</guid>
		<description><![CDATA[I have a Kingston SSDNow S100 SS100S2/16G 2.5&#8243; 16GB SATA II Internal Solid State Drive (SSD) in my home theater PC. Although this was my first actual taste of a SSD, I understood that TRIM must be enabled on the drive to keep it performing smoothly for the long haul. Otherwise it would gradually decline [...]]]></description>
			<content:encoded><![CDATA[<p>I have a <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16820139428">Kingston SSDNow S100 SS100S2/16G 2.5&#8243; 16GB SATA II Internal Solid State Drive (SSD)</a> in my <a href="http://miketrellosblog.arcadecab.com/2011/02/xbmc-live-10-0-on-a-zotac-zbox-hd-nd02-linked-to-openfiler-vm-media-library/">home theater PC</a>.  Although this was my first actual taste of a SSD, I understood that TRIM must be enabled on the drive to keep it performing smoothly for the long haul.  Otherwise it would gradually decline in performance, and that would not be good.</p>
<p>In this post I will describe what changes were made to my XBMC Live installation.  There are countless sites that describe how to enable TRIM, but I found one especially helpful.  This site was <a href="http://cptl.org/wp/index.php/2010/03/30/tuning-solid-state-drives-in-linux/2/">cptl.org</a>.  Much of this post was based upon information on those pages but specifically directed at the XBMC Live 10.0 standard installation.</p>
<p><strong>PuTTY</strong><br />
You need to get to the command line to make these changes.  For me, it was easiest to just SSH into the machine.  For this, I use <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY</a>.</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/02/PuTTY_configuration.jpg"><img class="size-medium wp-image-170 aligncenter" title="PuTTY_configuration" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/02/PuTTY_configuration-300x290.jpg" alt="PuTTY configuration" width="300" height="290" /></a></p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/02/PuTTY_XBMC_initial_screen.jpg"><img class="size-medium wp-image-171 aligncenter" title="PuTTY_XBMC_initial_screen" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/02/PuTTY_XBMC_initial_screen-300x118.jpg" alt="PuTTY XBMC initial screen" width="300" height="118" /></a></p>
<p>Once you enter your user id and password, you are at the command line and can do the serious work.</p>
<p><strong>Enabling TRIM Support</strong><br />
There were two options that needed to be added to the SSD&#8217;s mount information found in /etc/fstab, &#8220;discard&#8221; and &#8220;noatime&#8221;.  What the <strong>&#8220;discard&#8221;</strong> option does is tell Linux that you wish to enable TRIM support.  <strong>&#8220;Noatime&#8221;</strong> prevents Linux from updating the last-access time for files and directories, which saves a ton of writes.</p>
<pre>sudo nano /etc/fstab</pre>
<p>Add <strong><code>"noatime,discard"</code></strong> to the /dev/sda1 entry, then save and exit the file.</ul>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/02/fstab_showing_noatime_and_discard.jpg"><img class="size-medium wp-image-161 aligncenter" title="fstab_showing_noatime_and_discard" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/02/fstab_showing_noatime_and_discard-300x65.jpg" alt="fstab showing noatime and discard" width="300" height="65" /></a></p>
<p>Next, you can remount the SSD.</p>
<pre>mount -oremount /dev/sda1</pre>
<p><strong>Swappiness and noop disk scheduler</strong><br />
The <a href="a href=">swap file</a> is not really needed on my system.  XBMC uses only a small percentage of the available RAM, and I don&#8217;t plan to use hibernate due as 1) the machine boots in less than 20 seconds, and 2) it is on 24/7.  To keep Linux from swapping to disk except in the most extreme circumstance, I changed the &#8220;swappiness&#8221; setting to 1 (0-100 is the range) from the default of 60.</p>
<p>There are a variety of <a href="http://en.wikipedia.org/wiki/Category:Disk_scheduling_algorithms">disk schedulers</a> Linux can use.  I am using a solid-state device, where all seeks take exactly the same time.  Consequently, using a scheduler that reorders I/O requests to group by location on the physical drive does not make sense.  I changed the default scheduler, cfq, to be &#8220;noop&#8221;.  Noop disk scheduler simply inserts all requests in FIFO order.</p>
<pre>sudo nano /etc/rc.local</pre>
<p>Add the lines:</p>
<pre>echo 1 &gt; /proc/sys/vm/swappiness
echo noop &gt; /sys/block/sda/queue/scheduler</pre>
<p>Save and exit the file.  This file will get executed each time the machine reboots.</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/02/rclocal_with_swappiness_and_noop.jpg"><img class="aligncenter size-medium wp-image-163" title="rclocal_with_swappiness_and_noop" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/02/rclocal_with_swappiness_and_noop-300x159.jpg" alt="rclocal with swappiness and noop" width="300" height="159" /></a></p>
<p>These few tweaks should ensure my solid state drive stays fast for many years.</p>
]]></content:encoded>
			<wfw:commentRss>http://miketrellosblog.arcadecab.com/2011/02/tuning-a-solid-state-drive-ssd-on-xbmc-live-10-0-htpc/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>XBMC Live 10.0 on a Zotac ZBOX HD-ND02 linked to OpenFiler VM media library</title>
		<link>http://miketrellosblog.arcadecab.com/2011/02/xbmc-live-10-0-on-a-zotac-zbox-hd-nd02-linked-to-openfiler-vm-media-library/</link>
		<comments>http://miketrellosblog.arcadecab.com/2011/02/xbmc-live-10-0-on-a-zotac-zbox-hd-nd02-linked-to-openfiler-vm-media-library/#comments</comments>
		<pubDate>Sun, 27 Feb 2011 21:31:36 +0000</pubDate>
		<dc:creator>mtrello_Blog</dc:creator>
				<category><![CDATA[OpenFiler]]></category>
		<category><![CDATA[XBMC]]></category>
		<category><![CDATA[Zotac ION]]></category>

		<guid isPermaLink="false">http://miketrellosblog.arcadecab.com/?p=142</guid>
		<description><![CDATA[Introduction During the previous post I described my CD-to-FLAC project. The purpose of that project is two-fold: 1) create a digital, loss-less backup of all our existing CD collection, and 2) be able to access this mountain of media and play it on our main stereo system. I was already looking to possibly replace my [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Introduction</strong><br />
During the <a href="http://miketrellosblog.arcadecab.com/2011/01/vortexbox-music-server-in-an-esxi-vm-hooked-to-openfiler/">previous post</a> I described my CD-to-FLAC project.  The purpose of that project is two-fold: 1) create a digital, loss-less backup of all our existing CD collection, and 2) be able to access this mountain of media and play it on our main stereo system.  I was already looking to possibly replace my aging Harmon Kardon AVR20 (a great little product that has served me well for sixteen years), so a receiver with media-serving capabilities would be a plus.</p>
<p>What I discovered was that the media capabilities of the receivers (at least in the sub-$1k range) left a lot to be desired.  The Onkyo I initially gravitated toward had a text-only interface, and would have required way too much scrolling through lists.  I dropped down one notch in the product line, eventually deciding on the <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16882120166">Onkyo SR-608</a>.  This model offered 1080p video-switching, a ton of inputs, and quality sound/video.  The difference in costs of the two models would be used to pay for a proper media-serving option.</p>
<p>There are many plug-and-play options out there for serving and/or playing your media:  Squeezebox, Popcorn Hour, and Boxee, to name just a few.  Although these were popular choices, I quickly decided that a &#8220;more flexible&#8221; alternative was necessary.  By flexible, I meant &#8220;build it yourself&#8221;.</p>
<p>The Atom processors had spawned Netbooks, and were now being used in &#8220;<a href="http://en.wikipedia.org/wiki/Nettop">nettops</a>&#8220;.  There were now small nettop boxes that were being used in home theater applications.  I just needed to find one that met my needs.  A buddy pointed me to <a href="http://xbmc.org/about/">XBMC</a> for the frontend.  There is even a live version of XBMC which wraps a Linux-blanket around the app, and makes it a standalone OS product.  The <a href="http://forum.xbmc.org/forumdisplay.php?f=52">XBMC forums</a> often recommended the Zotac ION products.  After additional research, the ION/XBMC path seemed the best solution for my situation.  Small, very low power, able to play high definition content without problems, and a wealth of threads discussing it.  It certainly sounded like a winner.</p>
<p><strong>Hardware</strong><br />
After a little more research, I decided on the <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16856173004">Zotac ZBOX HD-ND02</a>.  It came without harddrive or RAM.  The  <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16820226018">Muskin 2GB stick of RAM</a> looked nice, and the forums liked pairing solid state devices (SSDs) with the Zotac/XBMC combination.  According to them, it made moving through large lists much, much quicker than from a standard, spinning harddrive.  This made sense, so I grabbed a <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16820139428">16GB SSD</a>, too (it was a Newegg combo with the Zotac).  The 16GB would be plenty as all the media would actually be located elsewhere on the network.  Finally, this PC would be headless and not visible, so I&#8217;d need a remote to control it.  The MCE remotes work with XBMC right out of the box, so I chose  the <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16880121003">AVS Gear GP-IR01BK</a>.</p>
<p>Next up, I needed to get the XBMC Live onto a bootable USB thumbdrive.  The Zotac does not have an internal CD and I&#8217;d need a way to install the OS.</p>
<p><strong>XBMC Live</strong><br />
I downloaded <a href="http://xbmc.org/download/">XBMC Live 10.0 &#8220;Dharma&#8221; ISO from the XBMC site</a>.  To create the bootable USB, I turned to <a href="http://unetbootin.sourceforge.net/">UNetbootin</a>.  This handy little utility can run on my XP machine, and will take an ISO image and quickly generate a bootable USB thumbdrive.  I just inserted a spare USB drive, and pointed the application to it and the ISO location.  Click OK, and let it perform its magic.  When it is complete, <strong>don&#8217;t</strong> click Reboot Now.</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/01/UNetbootin_Install.jpg"><img class="size-medium wp-image-143  aligncenter" title="UNetbootin_Install" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/01/UNetbootin_Install-300x222.jpg" alt="UNetbootin install" width="300" height="222" /></a></p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/01/UNetbootin_all_done.jpg"><img class="size-medium wp-image-144  aligncenter" title="UNetbootin_all_done" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/01/UNetbootin_all_done-300x222.jpg" alt="UNetbootin all done" width="300" height="222" /></a></p>
<p><strong>The Zotac</strong><br />
Setting up the Zotac was a breeze.  I installed the RAM, the SSD, and that was it.  The interior of the Zotac was nice and compact, but easy to work in.</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/02/Zotac_interior.jpg"><img class="size-medium wp-image-146  aligncenter" title="Zotac_interior" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/02/Zotac_interior-300x224.jpg" alt="Interior of the Zotac ZBOX" width="300" height="224" /></a></p>
<p>I connected the all the cables.  Once it was powered on, pressing Del took me to the BIOS.  Several settings needed changed and, of course, I wrote none done.  Memory serves that ACHI was enabled, hardware graphics was set, and set the initial boot device to USB.  512MB (from the default 256) of memory was assigned to video.</p>
<p>I saved all the BIOS changes, plugged the USB drive in, and rebooted the machine.</p>
<p><strong>Install XBMC Live</strong><br />
The machine quickly posted and the menu came up.  I selected to install it to the HD.  I kept all the default settings throughout the install, and selected an appropriate username and password.  Once done, I removed the USB drive and rebooted.  This process was exceedingly simple.</p>
<p><strong>Configuration</strong><br />
You can configure (almost) everything in this release of XBMC from the graphical interface.  I understand that previous releases required some tinkering &#8220;under the hood&#8221;, so it was fortunate I picked this release to work with.</p>
<p>Everything can be tweaked.  I stuck with the basics in mine: zipcode for the weather, and adding media sources.  Music was one path, movies was a combination of two (MKV one, and .avi storage for the other), and TV shows was another.  This would work for me begin with.</p>
<p>Once I was satisfied all the shares were mapped, I powered down the device, unhooked everything, and took it to its final resting place, the main living area.</p>
<p><strong>Testing it all out</strong><br />
The first thing that I noticed was that the screen was missing some vital information.  The screen resolution was set at 1280&#215;720 (my TV is 720p) but not all the user interface was visible (in fact, much was off the screen).  It took me a few minutes to find the video calibration tool.  It is at <code>System -> Settings -> System -> Video Output -> Video Calibration</code>.  Be sure to step through <strong>all </strong>the screens.  This fixed my issue.</p>
<p>My initial reaction was how peppy everything was.  Moving from screen to screen was as quick as it should have been.  Quite nice.  Once I went to test a CD, it became apparent there was no audio.  A quick Google search showed this is a common problem.  To fix this in XBMC Live version 10.0, I simply went to <em>Programs</em>, ran the audio mixer plug-in, and unmuted all the channels.  I had already set the audio output to HDMI in the system settings.  Suddenly we had wonderful sound.</p>
<p>My wife came into the room and immediately commented upon how nice the system sounded.  She was hooked.</p>
<p><strong>Final thoughts</strong><br />
We have been playing with the Zotac for about three weeks and are greatly enjoying it.  The sound quality from it though the Onkyo has been amazing.  We had been listening to compressed music (eg: MP3s) for so many years on inferior PC 3-ways, it was eye opening to hear CD quality sound once again, and on a quality sound system.  The convenience of having all the CDs available from the couch cannot be overstated.  The only downside: my wife has trouble deciding what she wants to listen to.</p>
<p>I was initially concerned with only ordering 2GB of RAM.  This ended up being a non-issue.  The Zotac spends most of its time using less than 300MB of memory.  </p>
<p>CPU utilization ended up being less than expected.  Idling, it uses just 26% of the capacity, not much more when playing media.  It seems the video chip does its job very well, leaving the Atom relatively unstressed.</p>
<p>I plan to spend time in the coming weeks poking around more in the XBMC settings and menus.  There is an incredible wealth of options available, but the beauty is that you don&#8217;t need to dig in very far to have a fully functioning system.  My next few posts will dig a little deeper into XBMC and my setup.</p>
]]></content:encoded>
			<wfw:commentRss>http://miketrellosblog.arcadecab.com/2011/02/xbmc-live-10-0-on-a-zotac-zbox-hd-nd02-linked-to-openfiler-vm-media-library/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Ripping CDS to FLAC using Vortexbox in a VM connected to OpenFiler NAS</title>
		<link>http://miketrellosblog.arcadecab.com/2011/02/ripping-cds-to-flac-using-vortexbox-in-a-vm-connected-to-openfiler-nas/</link>
		<comments>http://miketrellosblog.arcadecab.com/2011/02/ripping-cds-to-flac-using-vortexbox-in-a-vm-connected-to-openfiler-nas/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 16:57:14 +0000</pubDate>
		<dc:creator>mtrello_Blog</dc:creator>
				<category><![CDATA[Backups]]></category>
		<category><![CDATA[Esxi]]></category>
		<category><![CDATA[OpenFiler]]></category>

		<guid isPermaLink="false">http://miketrellosblog.arcadecab.com/?p=147</guid>
		<description><![CDATA[My project the last several weeks has been to rip my CD collection to FLAC. This is so I have electronic backups of all my music, as well as to allow it to be easily played on the sound systems in the house. My previous post described how I set about ripping. This post will [...]]]></description>
			<content:encoded><![CDATA[<p>My project the last several weeks has been to rip my CD collection to <a href="http://en.wikipedia.org/wiki/Free_Lossless_Audio_Codec">FLAC</a>.  This is so I have electronic backups of all my music, as well as to allow it to be easily played on the sound systems in the house.  My <a href="http://miketrellosblog.arcadecab.com/2011/01/vortexbox-music-server-in-an-esxi-vm-hooked-to-openfiler/">previous post</a> described how I set about ripping.  This post will discuss my experiences as the project progressed.</p>
<p><strong>Vortexbox as a virtual machine</strong><br />
Having the <a href="http://vortexbox.org/">Vortexbox</a> virtual machine use my primary machine&#8217;s CD drive as input, and have the vm doing all the heavy lifting turned out to work great.  I simply kept a stack of CDs to be ripped on the desk and, as each CD was spit out by Vortexbox, the next one in line was slapped into the tray and closed.  The length of time to process each CD varied on CD length.  The classical discs took the longest, generally in the 20-24 minutes range.  The (shorter) rock CDs often took less then 14 minutes.  The length of time did not bother me in the least.  I knew the output would be the best quality it could be, and that this was the last time I&#8217;d have to touch the CD.</p>
<p>On the rare occasion, Vortexbox would spit out a disc just a few seconds after it was fed in.  In every case, just closing it again was enough for it to accept the disc.  Other than that nit, the ripping/encoding process &#8220;just worked&#8221;.  The virtual machine rarely used much of the two CPUs allocated (a combined maximum of 1750Mhz when encoding), and rarely used more than 100MB of memory.  I would 100% recommend it to anyone looking to rip their personal music collection.</p>
<p><strong>Cover art</strong><br />
After Vortexbox rips and encodes each CD, it goes out to the Internet to attempt to find the correct cover art for the album.  My experience was that it did a fairly good job but it did make mistakes, and sometimes returned no image at all.  Some of the missteps can likely be attributed to the age and my specific CDs.  A good portion of my music is from the late 80s through mid-90s, and some of it just is not popular enough these days to have images on Amazon.  The rock compilations suffered the most; Vortexbox found almost none of them.  This was often due to the fact there just were no hits on Google for these albums.  I ended up just scanning the covers myself, and creating 500&#215;500 images and placing them in the correct folders.  I did this on about thirty discs (some of which are shown below).  It wasn&#8217;t the perfect solution but was good enough.</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/02/Some_of_missing_coverart_I_scanned.jpg"><img class="size-medium wp-image-153  aligncenter" title="Some_of_missing_coverart_I_scanned" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/02/Some_of_missing_coverart_I_scanned-300x184.jpg" alt="Some of the missing cover art I scanned in" width="300" height="184" /></a></p>
<p>In some instances, the cover art that was found was quite small.  Rather than hunt through all the folders manually, I turned to another piece of software to do the searching for me.</p>
<p><strong>BlissHQ</strong><br />
I used <a href="http://www.blisshq.com/">BlissHQ</a> running on a Windows 2003 server virtual machine to hunt down cover art that was missing, or was too small (I chose 300&#215;300 as the minimum desirable size).  I discovered this software when hunting down methods to efficiently rip my music collection.  His excellent <a href="http://www.blisshq.com/music-library-management-blog/2010/04/13/automatic-digital-music-workflow-with-vortexbox-part-three-ripping-tagging-and-album-art/">three-part discussion</a> of his &#8220;Vortexbox as vm&#8221; solution was what got me to where I am today.  I have communicated with Dan (the developer) a bit during this process and he is a nice guy to deal with, quick to respond and helpful.</p>
<p>BlissHQ was an easy install, and uses a browser as its interface.  You can select the settings for a &#8216;rule&#8217;, and then apply this rule to your collection.  It can make changes automatically, or allow you to manually make changes (which is what I did).  For instance, my rule was that the image sizes had to be at least 300&#215;300.  Once you apply (run) the rule, the application will spin through your collection, determining which albums meet your criteria (compliant) or do not (uncompliant).  This took a while but when it completed, I could choose to view only the uncompliant albums and go about fixing them.  This was done by either 1) clicking on the album name, and <em>finding more artwork</em>, or 2) clicking the little pencil icon you see as you drift over the album.  This triggers Bliss to hit the Internet and give you some other artwork options.  See one that is better than yours, and you select to use it instead.  Most of my replacements ended up coming from Google.</p>
<p>Bliss allows for trial use, but is fee-based after that.  It will make changes to 100 items for free for you to test out its functionality.  Anything beyond that and you&#8217;ll need to purchase &#8220;fixes&#8221;, either in batches of 1000 or a unlimited license.  The unlimited license fee is reasonable and I could see most people opting for that.</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/02/blissHQ_screen.jpg"><img src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/02/blissHQ_screen-300x255.jpg" alt="blissHQ screen" title="blissHQ_screen" width="300" height="255" class="aligncenter size-medium wp-image-177" /></a></p>
<p>I initially had some issues with the product (the browser would just chew up the CPU and the GUI appeared broken) but it turned out IE6 was actually the problem.  Dan replied to this post and pointed me in the right direction.  I installed Firefox 3.6 and my Bliss experience was completely different.  I like it.  It displays twelve albums per page, and you can scroll through them fairly quickly.  In about twenty minutes I had gone back through my collection and made the couple changes that had been needed.  Bliss is a good product and well worth a look.  </p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/02/blissHQ_rules.jpg"><img src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/02/blissHQ_rules-300x255.jpg" alt="blissHQ: my rules" title="blissHQ_rules" width="300" height="255" class="aligncenter size-medium wp-image-178" /></a></p>
<p><strong>Filename cleanup and the Various folders</strong><br />
The names of folders generated by Vortexbox during the ripping process resulted in some confusing situations.  Classical discs were one example.  CDs with Mozart&#8217;s music might have Mozart somewhere in the title, but often the title included the orchestra instead.  This would have led to confusion and a mess.  To make things easier, I created a number of <em>Various </em>folders.  <em>Various- Classical</em>, <em>Various- Kid&#8217;s Music</em>, <em>Various- Jazz</em>, <em>Various- Soundtracks</em>, etc were created to make hunting down music a little easier.  This has proven to be a great help.</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/02/FLAC_Various_folders.jpg"><img class="size-full wp-image-152  aligncenter" title="FLAC_Various_folders" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/02/FLAC_Various_folders.jpg" alt="Various categories" width="277" height="142" /></a></p>
<p><strong>Backups</strong><br />
Anyone who knows me knows I preach &#8220;backups, backups, backups&#8221;, preferably automated.  Although I did discuss how I backed the music up in the <a href="http://miketrellosblog.arcadecab.com/2011/01/vortexbox-music-server-in-an-esxi-vm-hooked-to-openfiler/">previous post</a>, it bears repeating.</p>
<p>On the backup machine, I created a folder named <em>Music Backups</em> on a drive that had about 500GB free.   Beneath that were placed the <em>flac</em> and <em>mp3</em> folders.  Next, a simple batch job was created on that PC, that would use <a href="http://www.computerhope.com/xcopyhlp.htm">XCOPY</a> to move any new files from the OpenFiler share to this newly created path.  The XCOPY statements I used were:</p>
<pre>xcopy "s:\Music\flac\*.*" "L:\Music Backups\flac\" /s /k /d /y
xcopy "s:\Music\mp3\*.*" "L:\Music Backups\mp3\" /s /k /d /y</pre>
<p>The batch job was set up as a scheduled task to run each morning at 2:30, a time when I am busy sawing logs.</p>
<p>I still need to create a backup to external media and get that copy moved offsite to be fully protected.</p>
<p><strong>Nearing completion</strong><br />
I still have a batch of classical CDs to rip but for the most part this project is done. It was a long road to get to this point but it is for the better.  Technology has improved greatly since I started ripping in 2006.  Virtual machines were basically unheard of back then, and now that is how this media is being served.  Storage costs are much different as well; 300GB back then was certainly different than today.  </p>
<p>The main goal of this project has been met: To be able to listen to all of our CDs (in glorious lossless format) on our main stereo setup, with future expansion to other rooms a trivial process.  In addition, we now have a true backup of all our music.  </p>
<p>I’ll describe my receiver upgrade and media HTPC setup in the next post.</p>
]]></content:encoded>
			<wfw:commentRss>http://miketrellosblog.arcadecab.com/2011/02/ripping-cds-to-flac-using-vortexbox-in-a-vm-connected-to-openfiler-nas/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Vortexbox music server in an ESXi VM hooked to OpenFiler</title>
		<link>http://miketrellosblog.arcadecab.com/2011/01/vortexbox-music-server-in-an-esxi-vm-hooked-to-openfiler/</link>
		<comments>http://miketrellosblog.arcadecab.com/2011/01/vortexbox-music-server-in-an-esxi-vm-hooked-to-openfiler/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 13:48:18 +0000</pubDate>
		<dc:creator>mtrello_Blog</dc:creator>
				<category><![CDATA[Esxi]]></category>
		<category><![CDATA[OpenFiler]]></category>
		<category><![CDATA[ESXi]]></category>
		<category><![CDATA[Vortexbox]]></category>

		<guid isPermaLink="false">http://miketrellosblog.arcadecab.com/?p=129</guid>
		<description><![CDATA[The story About four years ago I got started on a project to rip all my music CDs to FLAC. About seventy albums in, that project got put on hold. We moved the study from our spare bedroom to the basement when our boy arrived, and the CDs got scattered into numerous dark recesses of [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The story</strong><br />
About four years ago I got started on a project to rip all my music CDs to <a href="http://flac.sourceforge.net/">FLAC</a>.  About seventy albums in, that project got put on hold.  We moved the study from our spare bedroom to the basement when our boy arrived, and the CDs got scattered into numerous dark recesses of the basement.  It is now the winter, prime time to clean out the closets in the house as well as continue the ongoing organization in the basement.  A couple weeks ago I got the urge to hunt down and organize all the CDs.  This was in part due to my wife having received a new MP3 player for Christmas and she has been eager to put more music on it.  We had ripped some MP3s years back but not much she was in the mood for now.  So it was likely time to restart the ripping process, with my wife selecting what ones to do first.</p>
<p>[Sidenote: I found some <a href="http://www.homzproducts.com/scripts/Clear-Storage-Small-Prodview.html">great stackable bins by Homz</a> at the local Walmart that hold 30 discs each.  These made quick work of organizing the rock discs alphabetically.  I now have them all in one location on our 'wall-o-shelves', stacked and neatly labeled.  All the classicals found a home in a grapefruit case.  Hey, it works.]</p>
<p>Ideally, I wanted to touch each disc only one more time before packing it away for good; I would want it archived in <a href="http://flac.sourceforge.net/">FLAC</a> lossless format as well as a higher-bitrate MP3 for my wife&#8217;s player.  The FLAC would future-proof me for when I eventually get a high quality media player.  I initially figured I would have to rip each one to FLAC manually and then run a script to convert the FLAC to MP3 and place it in a different folder.  I did a few cursory web searches, and then put it on the mental back burner for about a week.</p>
<p><strong>Vortexbox</strong><br />
Late last week I happened upon <a href="http://vortexbox.org/">Vortexbox</a>.  The product is a standalone operating system , running a modified version of Fedora Release 14.  It is free, and is downloaded as a 635+MB ISO.  From their site:</p>
<ul> &#8220;<em>VortexBox is a free, open source (GPL v3), quick-install ISO that turns your unused computer into an easy-to-use music server/jukebox. Once VortexBox has been loaded on an unused PC, it will automatically rip CDs to FLAC and MP3 files, ID3 tag the files , and download the cover art. Vortexbox will then serve the files to network  media players such as Logitech Squeezebox, Sonos, or Linn. The music files can also be streamed to a Windows or Mac OSX system.</em>&#8220;</ul>
<p>What really caught my eye was that it was a &#8220;<em>complete OS</em>&#8220;.  Which meant it could run as a virtual machine on my ESXi box and not consume any resources on my primary machine.  A few brief searches later confirmed people were doing this very thing, and that you can redirect the music folders to a NAS or SAN device.  In my situation, that would be <a href="http://miketrellosblog.arcadecab.com/category/openfiler/">OpenFiler</a>.  The final item that sold it was that I could use the CD drawer on the client machine to rip from, as the VMWare server is on the far side of the room, up on a shelf.  Not exactly a convenient location when one plans to rip another 100+ CDs.</p>
<p>I was sold.  Now it was time to get it installed and running.</p>
<p><strong>Getting started</strong><br />
I began by downloading the ISO from the <a href="http://vortexbox.org/downloads/">Vortexbox site</a>. The file was then uploaded to my ESXi datastore.</p>
<p>I created a new virtual machine with a 10GB boot drive, 512RAM and two vCPUs.  I knew that the encoding would benefit from dual processors.  I pointed the CD drive to the ISO I had just uploaded, and started up the machine.</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/01/Vortexbox_VM_HD.jpg"><img class="size-medium wp-image-133  aligncenter" title="Vortexbox_VM_HD" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/01/Vortexbox_VM_HD-300x265.jpg" alt="Vortexbox vm settings on ESXi" width="300" height="265" /></a></p>
<p>The GUI interface is accessed from a web browser.  You&#8217;ll need to know what IP address the vm was given when it started.  As this could vary each time it rebooted, I decided to make the ip address static.  I opened the VSphere Vortexbox console and then followed the <a href="http://vortexbox.org/documentation/setting-a-static-ip-address-for-your-vortexbox/"> excellent instructions on the Vortexbox site</a>.  Now the ip address is static.</p>
<p>The FLAC and MP3 files were going on OpenFiler, so I created a new folder, <em>Music</em>, on my OpenFiler <em>CommonStorage</em> share, with two folders beneath, <strong>flac</strong> and <strong>mp3 </strong>(note the case of the folder names).</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/01/Vortexbox_new_folder_on_Openfiler.jpg"><img class="size-medium wp-image-134  aligncenter" title="Vortexbox_new_folder_on_Openfiler" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/01/Vortexbox_new_folder_on_Openfiler-300x68.jpg" alt="new Music folder on OpenFiler" width="300" height="68" /></a></p>
<p>Vortexbox has locations it assumes the FLAC and MP3 files will be.  I wished to redirect these from the 10GB boot drive to the new OpenFiler shares.  To do this, I needed to connect to the Vortexbox console again and edit the <a href="http://en.wikipedia.org/wiki/Fstab">fstab</a> file.  This will have the share automatically mount at boot.  I found how to do this on the <a href="http://vortexbox.org/forum/help/pointing-vortexbox-and-squeezebox-server-to-network-stora-device/">Vortexbox forums</a>.</p>
<pre>nano /etc/fstab</pre>
<p>I then added the following line:</p>
<pre style="width:560px;border:solid 1px #ccc;overflow:scroll;">//192.168.0.220/CommonStorage/Music /storage/music cifs guest,_netdev 0 0</pre>
<p>This line pointed the default music folder (<em>/storage/music</em>) to my newly created Openfiler share <em>(//192.168.0.220/CommonStorage/Music</em>).   I saved and exited the fstab file.</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/01/Vortexbox_fstab_entry.jpg"><img class="size-medium wp-image-135  aligncenter" title="Vortexbox_fstab_entry" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/01/Vortexbox_fstab_entry-300x236.jpg" alt="ftab entry for Vortexbox" width="300" height="236" /></a></p>
<p>I manually mounted the path:</p>
<pre>mount /storage/music</pre>
<p>Now the default paths pointed to my OpenFiler shares.  This was a much simpler process than I had originally feared.</p>
<p>The OpenFiler shares did need more space allocated to them.  I added more space to the OF volume, and bumped guest quotas up, to allocate another 150GB to the shares.  This gave me plenty of room for the existing FLAC files, and likely enough space for the rest of my CD collection.  If not, I will just repeat the process to make more space available.</p>
<p>Next, I moved the FLAC folders to the <em>S:\CommonStorage\Music\flac\</em> path.  This was projected to take a while so I just started the copy, and left to do other things.</p>
<p>Once the task completed, it was time to get all the cover art.  This process is almost too simple to believe.  Go to the browser&#8217;s GUI interface, and click on the second icon from the top.  On the CD ripping status and cover art screen, simply click on the <em>Get Cover Art</em> button and let it do its thing.  It did not take very long, and ended up with a cover for almost every album.</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/01/Vortexbox_CD_ripping_status_and_coverart.jpg"><img class="size-medium wp-image-131  aligncenter" title="Vortexbox_CD_ripping_status_and_coverart" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/01/Vortexbox_CD_ripping_status_and_coverart-300x221.jpg" alt="Vortexbox CD ripping status and coverart" width="300" height="221" /></a></p>
<p>Now that the cover art was in place, it was time to let the Squeezebox server scan the flac folder and build its tables.  I selected <em>Clear and rescan for changes</em> from the drop down box, and started the scan.  This was another good time to walk away to find something else to do for a while.</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/01/Vortexbox_Squeezebox_clear_and_rescan.jpg"><img class="size-medium wp-image-136  aligncenter" title="Vortexbox_Squeezebox_clear_and_rescan" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/01/Vortexbox_Squeezebox_clear_and_rescan-300x147.jpg" alt="Manually clear and rescan for FLAC changes in Squeezebox" width="300" height="147" /></a></p>
<p>Finally, it was time to create MP3 mirrors of all the FLAC files.  I clicked on the FLAC mirror icon (very cute) to take me to the mirror screen.  I kept the bitrate at the standard 190Kbits VBR, and clicked <em>Start mp3 mirroring</em>.  This ended up being the longest process.  That made sense as it was having to encode over 4,500 songs.  Just walk away and let it work.  We had some places to go for most of the day, and the process was complete when we returned.  All the FLAC files had MP3 copies.  Sweet!</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/01/Vortexbox_FLAC_Mirror.jpg"><img class="size-medium wp-image-132  aligncenter" title="Vortexbox_FLAC_Mirror" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/01/Vortexbox_FLAC_Mirror-300x195.jpg" alt="Vortexbox FLAC Mirror" width="300" height="195" /></a></p>
<p><strong>Setting up the Backups</strong><br />
Now that everything was setup and working, I needed to ensure it was backed up initially, and going forward.  This is a critical step to ensure all my hard work didn&#8217;t just go to waste with a hard drive failure.  I needed to backup the FLAC and MP3 folders nightly, as well as back up the Vortexbox vm a couple times a week (this would be plenty).  The vm wouldn&#8217;t <strong>have </strong>to be backed up due to how easily it was installed, but setting up the backup would be a five minute operation and could potentially save me many times that.</p>
<p>On the backup machine, I created a folder named <em>Music Backups</em> on a drive that had about 500GB free.   Beneath that were placed the <em>flac</em> and <em>mp3</em> folders.  Next, a simple batch job was created on that PC, that would use <a href="http://www.computerhope.com/xcopyhlp.htm">XCOPY</a> to move any new files from the OpenFiler share to this newly created path.  The XCOPY statements I used were:</p>
<pre>xcopy "s:\Music\flac\*.*" "L:\Music Backups\flac\" /s /k /d /y</pre>
<pre>xcopy "s:\Music\mp3\*.*" "L:\Music Backups\mp3\" /s /k /d /y</pre>
<p>The batch job was set up as a scheduled task to run each morning at 2:30, a time when I am busy sawing logs.</p>
<p>I created a new <a href="http://miketrellosblog.arcadecab.com/2010/08/using-ghettovcb-sh-to-backup-esxi-4-1-vms-to-nfs-datastore/">ghettoVCB</a> job, and another batch file (on the backup machine) to call it.  I scheduled this to run later in the night twice a week.</p>
<p>Before I called it a day, I fired off both tasks manually just to get the initial backups started.</p>
<p><strong>VMWare Tools</strong><br />
You will need to install VMWare Tools within Vortexbox to be able to rip CDs from the client CD drive.  I found an <a href="http://vortexbox.org/forum/help/install-vmware-tools-in-vortexbox/?value=Using%LVM%to%extend%the%storage%1&amp;type=0&amp;include=0&amp;search=25">excellent post</a> that worked perfectly.  No reason rehashing it; just go read the post for the details.</p>
<p><strong>How to rip from the client&#8217;s drive</strong><br />
I have had time to test rip two CDs.  What I had to do to get it to work was change the device type of the CD to <em>Client</em>.</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/01/Vortexbox_change_CD_drive_to_client.jpg"><img class="size-medium wp-image-139  aligncenter" title="Vortexbox_change_CD_drive_to_client" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/01/Vortexbox_change_CD_drive_to_client-300x265.jpg" alt="Vortexbox change CD drive to client" width="300" height="265" /></a></p>
<p>After receiving an error when attempting the initial rip, I had to also change the CD mode to <em>Passthrough IDE (Recommended)</em>.</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/01/Vortexbox_Passthrough_IDE.jpg"><img class="size-medium wp-image-140  aligncenter" title="Vortexbox_Passthrough_IDE" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/01/Vortexbox_Passthrough_IDE-300x95.jpg" alt="Passthrough IDE on ESXi" width="300" height="95" /></a></p>
<p>Lastly, I connected the CD drive on the Vortexbox console to my primary machine&#8217;s J drive (its CD tray).  I put a music CD in the drive, and Vortexbox took off.</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/01/Vortexbox_Connect_to_J_Drive.jpg"><img class="size-medium wp-image-138  aligncenter" title="Vortexbox_Connect_to_J_Drive" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2011/01/Vortexbox_Connect_to_J_Drive-300x105.jpg" alt="Connect to J Drive" width="300" height="105" /></a></p>
<p>It took 10 minutes to rip the disc, and two minutes to encode.  It also went out and grabbed the artwork for me at some point in the process.  When it was done ripping, Vortexbox opened the CD drawer for the next disc.  Very slick and simple.</p>
<p>When you are finished your ripping session, be sure to disconnect the client&#8217;s drive from the Vortexbox VMware console.  This is rather important.</p>
<p><strong>Ripping Folder Structure</strong><br />
Something I noticed after ripping the first disc was that the folder name was not what I expected.  It was in a <strong>artist-album/title.flac</strong> format, rather than the <strong>artist/album/title.flac</strong> I was expecting.  A quick web search discovered how to solve this issue.  According to the <a href="http://vortexbox.org/forum/help/folder-structure/">Vortexbox forum thread</a>, you need to:</p>
<ul>
1.  Log into your VortexBox as root.</p>
<p>2. Edit <em>/etc/ripit/config</em>, and change</p>
<pre>dirtemplate="$suffix/$artist – $album"</pre>
<p>                      to  </p>
<pre>dirtemplate="$suffix/$artist/$album"</pre>
</ul>
<p>This worked for me, and the second disc was ripped to the correct folder name.</p>
<p><strong>Summary</strong><br />
Vortexbox looks to be the solution to my storage and ripping problems.  It was pleasantly simple to install as a virtual machine and get set up.  The <a href="http://vortexbox.org/forum/">Vortexbox forums</a> provided some excellent help for the complicated pieces (VMWare Tools install would not have been just a ten minute affair otherwise).  The Squeezebox server that comes installed will be fun to play with as I get time.  I have also been scoping out potential home receivers and Vortexbox having a <a href="http://en.wikipedia.org/wiki/Digital_Living_Network_Alliance">DLNA </a>server included looks to be a very important feature.</p>
<p>Give it a try if you have a bit of time.  All said, I spent about four hours from start to finish installing, configuring, hunting down solutions, and setting up the backups.  Now I can rip the remainder of our music as I have time.</p>
]]></content:encoded>
			<wfw:commentRss>http://miketrellosblog.arcadecab.com/2011/01/vortexbox-music-server-in-an-esxi-vm-hooked-to-openfiler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rosewill RV350 350W Power Supply and my Backup Server</title>
		<link>http://miketrellosblog.arcadecab.com/2010/11/rosewill-rv350-350w-power-supply-and-my-backup-server/</link>
		<comments>http://miketrellosblog.arcadecab.com/2010/11/rosewill-rv350-350w-power-supply-and-my-backup-server/#comments</comments>
		<pubDate>Fri, 12 Nov 2010 16:45:41 +0000</pubDate>
		<dc:creator>mtrello_Blog</dc:creator>
				<category><![CDATA[Backups]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[HardDrives]]></category>

		<guid isPermaLink="false">http://miketrellosblog.arcadecab.com/?p=106</guid>
		<description><![CDATA[The external drive I have had an external harddrive on my desk for a number of years. It is a 320GB Western Digital drive in a Rosewill case. It used to store data backups but as my storage needs grew, and I consolidated my various externals into a single backup machine, there is rarely a [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The external drive</strong><br />
I have had an external harddrive on my desk for a number of years.  It is a <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16822144392">320GB Western Digital drive</a> in a <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16817182035">Rosewill case</a>.  It used to store data backups but as my storage needs grew, and I consolidated my various externals into a single backup machine, there is rarely a need to turn it on these days.</p>
<p>Looking at the poor, unused drive a few weeks back made me wonder if I had room to put it into my Windows backup machine.  That headless PC currently has a CD drive, three IDE and one SATA drive.  There was room, but I would have to shift things around.  The CD got lowered to the bottom slot, and the new addition was placed next to the 1TB Samsung green drive in the external 3.5&#8243; bay.  Everything was hooked up, and then it was time to boot it up.  I pressed the power button, got an initial hum, then nothing more, save for the power light flashing at me.  I flipped the back power switch off, checked all the connections, and then tried again.  Still nothing.  I reasoned I had a 350 watt power supply in there so that should be plenty.  I tried again, and it did boot.  Success!  I let it finish booting, then VNCed in and restarted the machine.  Wouldn&#8217;t boot.</p>
<p>I dug out my handy <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16882715001&#038;cm_re=kill-a-watt-_-82-715-001-_-Product">Kill a Watt load meter</a> and connected the machine&#8217;s plug to it.  The machine idled at 110 watts, <em>significantly </em> less than 350.  At initial power up, the machine did spike at 194 watts.  I powered it back down, reconnected the fifth drive, and restarted.  The machine spiked at 209 watts, an increase of 15 watts for that fifth drive.  Once it fully booted, the idle load was 8W higher.  Out of curiosity, I hit Newegg for the <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16817182006">Rosewill&#8217;s specs</a>.  It appears that the power supply is rated at a &#8220;minimum of 60% efficiency at peak load&#8221;.  Some quick math (350W * .6 = 210W) showed that I was requesting right at what the supply was rated for.  </p>
<p>My thought was that this machine had been rock-solid with the existing configuration for the past four years, and now was hit and miss on boot with a fifth drive.  Long-term stability seemed to be uncertain, so I powered it all down, and pulled out the drive.</p>
<p>I briefly considered ordering a new power supply, either a standard one with higher capacity or another <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16817371033&#038;cm_re=80_power_supply-_-17-371-033-_-Product">80+% efficiency model</a> my last two machines have used.  The frugal side of my personality won out; I could darn near buy another 1TB drive for the ESXi box for the price in would take to replace a perfectly functioning power supply, just to have the 320GB drive off my desk.</p>
<p>Further research showed that power supplies do &#8216;age&#8217; over time and lose some of their efficiency.  Another tidbit I found out there was is a strong correlation between weight of the PSU and the quality of it.  The reasoning is that quality components <em>just weight more</em>.  I saw that the Rosewill weighed 1.8 lbs, and the Antec used in my quads weighed 3.6 lbs.  </p>
<p>I am posting this for the dual-purpose of showing that a entry-level 350W power supply can successfully run an XP1900+ build with four hard drives, but also that that is about its capacity.  I fear a fifth drive would induce some eventual failure in another component, and that would not be good.  Despite ending back where I started in the process, this was a good exercise to go through.  </p>
<p><strong>Update</strong><br />
I&#8217;d had need to reboot this machine several times in the last week, and the PC would not start consistently.  Just a hum, and then the flashing power light.  Apparently the power supply was on its last legs.  The <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16817371033">Antec Earthwatts 380W Green power supply</a> was ordered and replaced it.  I was able to install the old external drive into the case, and the PC now idles at 102 watts.  The initial spike of 172 watts is also much lower than the 209 of the Rosewill.  This new supply is also quite a bit quieter than the old.  </p>
]]></content:encoded>
			<wfw:commentRss>http://miketrellosblog.arcadecab.com/2010/11/rosewill-rv350-350w-power-supply-and-my-backup-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multiple vCPU encoding performance in ESXi 4.1</title>
		<link>http://miketrellosblog.arcadecab.com/2010/10/multiple-vcpu-encoding-performance-in-esxi-4-1/</link>
		<comments>http://miketrellosblog.arcadecab.com/2010/10/multiple-vcpu-encoding-performance-in-esxi-4-1/#comments</comments>
		<pubDate>Sat, 09 Oct 2010 18:42:01 +0000</pubDate>
		<dc:creator>mtrello_Blog</dc:creator>
				<category><![CDATA[About Me]]></category>
		<category><![CDATA[Esxi]]></category>
		<category><![CDATA[vSphere]]></category>
		<category><![CDATA[benchmarks]]></category>
		<category><![CDATA[ESXi]]></category>
		<category><![CDATA[vSphere Client]]></category>

		<guid isPermaLink="false">http://miketrellosblog.arcadecab.com/?p=113</guid>
		<description><![CDATA[Background This is a continuation of my post about vSphere 4.1&#8242;s new Power Policy settings. This post will look more closely at how adding additional vCPUs to an encoding process can impact its performance, and whether the power settings make that big a difference on a more heavily-loaded system. An excellent document on the vSphere [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Background</strong><br />
This is a continuation of <a href="http://miketrellosblog.arcadecab.com/2010/10/power-policy-settings-in-vsphere-4-1/">my post about vSphere 4.1&#8242;s new Power Policy settings</a>.  This post will look more closely at how adding additional vCPUs to an encoding process can impact its performance, and whether the power settings make that big a difference on a more heavily-loaded system.</p>
<p>An excellent document on the <a href="http://www.vmware.com/files/pdf/perf-vsphere-cpu_scheduler.pdf">vSphere cpu scheduler performance</a> can be found on the <a href="http://www.vmware.com/resources/techresources/10059">VMWare site</a>.  Another one, <a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1005362">Determining if multiple virtual CPUs are causing performance issues</a>, is worth a read as well.</p>
<p><strong>Power Policy Settings</strong><br />
The Power Policy settings can be reached from the VSphere client;  <em>Configuration -&gt; Power Management -&gt; Properties</em>.</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2010/10/PowerPolicySettings_fullscreen.jpg"><img class="size-medium wp-image-112  aligncenter" title="PowerPolicySettings_fullscreen" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2010/10/PowerPolicySettings_fullscreen-300x161.jpg" alt="Power policy settings in vSphere 4.1" width="300" height="161" /></a></p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2010/10/PowerPolicySettings.jpg"><img class="size-medium wp-image-109  aligncenter" title="PowerPolicySettings" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2010/10/PowerPolicySettings-300x218.jpg" alt="Power Policy Settings" width="300" height="218" /></a></p>
<p><strong>Testing Performance</strong><br />
I used nineteen AVI files of my children playing soccer to feed <a href="http://www.dvdflick.net/">DVDFlick</a>, and created an AVI file as output.  The input files were on the OpenFiler virtual appliance, and the output went to a partition on another local drive.  This was to eliminate disk contention from the equations.  I set DVDFlick&#8217;s encoder priority to Normal, and the tests were run on a Windows 2003 Server virtual machine.  DVDFlick will effectively use any amount of CPU cores made available to it, so I ran the test using one through four vCPUs.  DVDFlick also allows you to select how many threads to run with, so that was varied during the run as well. </p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2010/10/DVDFlick_Project_Properties.jpg"><img src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2010/10/DVDFlick_Project_Properties-300x188.jpg" alt="DVDFlick Project Properties" title="DVDFlick_Project_Properties" width="300" height="188" class="aligncenter size-medium wp-image-114" /></a></p>
<p>I originally did not plan to not test with more than two vCPUs as my server has only four cores, but decided to give it a go while everything was set up.  I would not normally allocate more than two vCPUs to any active vm on my VMWare box  as it would negatively affect the other active vms.  But this was a test, so all four were included in the results.</p>
<p>I ran each test twice and averaged the two runs until it was apparent that each set varied by no more than a few seconds of each other.  At that point, I decided only one run per set was needed.  The results gave me some nice data for comparing the three settings.</p>
<p>The Power Draw column indicates the average draw during the encoding phase.  It is provided as a relative value for comparisons.   </p>
<table style="height: 44px;" border="1" cellspacing="0" cellpadding="0" width="500" align="center">
<tbody>
<tr bgcolor="powderblue">
<td colspan="6" align="center"><strong>High Performance setting<strong><br />
</strong></strong></td>
</tr>
<tr bgcolor="powderblue">
<td align="center">vCPU Count</td>
<td align="center">Power Draw (Watts)</td>
<td align="center">Time<br />
(1 thread)</td>
<td align="center">Time<br />
(2 threads)</td>
<td align="center">Time<br />
(3 threads)</td>
<td align="center">Time<br />
(4 threads)</td>
</tr>
<tr>
<td align="center">1</td>
<td align="center">114</td>
<td align="center">29:09</td>
<td align="center">29:35</td>
<td align="center" bgcolor="grey"></td>
<td align="center" bgcolor="grey"></td>
</tr>
<tr>
<td align="center">2</td>
<td align="center">124</td>
<td align="center" bgcolor="grey"></td>
<td align="center">23:11</td>
<td align="center" bgcolor="grey"></td>
<td align="center" bgcolor="grey"></td>
</tr>
<tr>
<td align="center">3</td>
<td align="center">123</td>
<td align="center" bgcolor="grey"></td>
<td align="center">23:39</td>
<td align="center">20:57</td>
<td align="center">22:21</td>
</tr>
<tr>
<td align="center">4</td>
<td align="center">125</td>
<td align="center" bgcolor="grey"></td>
<td align="center">24:32</td>
<td align="center">22:12</td>
<td align="center">20:37</td>
</tr>
</tbody>
</table>
<p><center></center></p>
<table style="height: 44px;" border="1" cellspacing="0" cellpadding="0" width="500" align="center">
<tbody>
<tr bgcolor="powderblue">
<td colspan="6" align="center"><strong>Balanced setting<strong><br />
</strong></strong></td>
</tr>
<tr bgcolor="powderblue">
<td align="center">vCPU Count</td>
<td align="center">Power Draw (Watts)</td>
<td align="center">Time<br />
(1 thread)</td>
<td align="center">Time<br />
(2 threads)</td>
<td align="center">Time<br />
(3 threads)</td>
<td align="center">Time<br />
(4 threads)</td>
</tr>
<tr>
<td align="center">1</td>
<td align="center">112</td>
<td align="center">29:20</td>
<td align="center">29:50</td>
<td align="center" bgcolor="grey"></td>
<td align="center" bgcolor="grey"></td>
</tr>
<tr>
<td align="center">2</td>
<td align="center">122</td>
<td align="center" bgcolor="grey"></td>
<td align="center">23:29</td>
<td align="center" bgcolor="grey"></td>
<td align="center" bgcolor="grey"></td>
</tr>
<tr>
<td align="center">3</td>
<td align="center">124</td>
<td align="center" bgcolor="grey"></td>
<td align="center">24:28</td>
<td align="center">21:42</td>
<td align="center">22:53</td>
</tr>
<tr>
<td align="center">4</td>
<td align="center">127</td>
<td align="center" bgcolor="grey"></td>
<td align="center">24:54</td>
<td align="center">22:01</td>
<td align="center">20:54</td>
</tr>
</tbody>
</table>
<p><center></center></p>
<table style="height: 44px;" border="1" cellspacing="0" cellpadding="0" width="500" align="center">
<tbody>
<tr bgcolor="powderblue">
<td colspan="6" align="center"><strong>Lower Power setting<strong><br />
</strong></strong></td>
</tr>
<tr bgcolor="powderblue">
<td align="center">vCPU Count</td>
<td align="center">Power Draw (Watts)</td>
<td align="center">Time<br />
(1 thread)</td>
<td align="center">Time<br />
(2 threads)</td>
<td align="center">Time<br />
(3 threads)</td>
<td align="center">Time<br />
(4 threads)</td>
</tr>
<tr>
<td align="center">1</td>
<td align="center">113</td>
<td align="center">30:09</td>
<td align="center">30:41</td>
<td align="center" bgcolor="grey"></td>
<td align="center" bgcolor="grey"></td>
</tr>
<tr>
<td align="center">2</td>
<td align="center">123</td>
<td align="center" bgcolor="grey"></td>
<td align="center">26:20</td>
<td align="center" bgcolor="grey"></td>
<td align="center" bgcolor="grey"></td>
</tr>
<tr>
<td align="center">3</td>
<td align="center">121</td>
<td align="center" bgcolor="grey"></td>
<td align="center">27:51</td>
<td align="center">24:52</td>
<td align="center">26:20</td>
</tr>
<tr>
<td align="center">4</td>
<td align="center">125</td>
<td align="center" bgcolor="grey"></td>
<td align="center">28:01</td>
<td align="center">26:00</td>
<td align="center">23:53</td>
</tr>
</tbody>
</table>
<p><center></center></p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2010/10/Overview_of_performance_by_settings_and_vCPU_chart.jpg"><img src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2010/10/Overview_of_performance_by_settings_and_vCPU_chart-300x224.jpg" alt="Overview of performance by power settings and vCPU count" title="Overview_of_performance_by_settings_and_vCPU_chart" width="300" height="224" class="aligncenter size-medium wp-image-121" /></a></p>
<p><strong>Initial observations</strong><br />
The power usage varied little between the three options when the test was running.  The charts also show that going from one to two vCPUs to the virtual machine increased the total by just 10W in each case, and each subsequent vCPU only a couple more watts.</p>
<p>Anytime more threads were used than CPUs allocated, performance suffered.  This is not a big surprise, and even DVDFlick cautions against this practice.  Performance suffered equally when you went the other direction; running with fewer threads than cores.  Obviously, you would want to run with the same number of threads as cores.</p>
<p>Power usage was effectively the same across all the settings when encoding.  I would have expected ratios more resembling the <a href="http://miketrellosblog.arcadecab.com/2010/10/power-policy-settings-in-vsphere-4-1/">idle stats</a>, but that is why I ran these tests.</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2010/10/PowerUsageatIdle.jpg"><img src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2010/10/PowerUsageatIdle-300x160.jpg" alt="Power Usage at Idle" title="PowerUsageatIdle" width="300" height="160" class="aligncenter size-medium wp-image-125" /></a></p>
<p>Encoding times for the Balanced setting were very close to that of High Performance, most within 1%.  VMWare states the Balanced setting &#8220;reduces energy consumption without sacrificing performance.&#8221;  From my tests, this statement is 100% true.</p>
<p>The Lower Power encoding times were quite a bit slower than the other two settings.  Four cores/four threads took three minutes longer (12.5%) to complete than the other two settings, but this was what VMWare cautions would occur.  These results suggest there is no compelling reason to ever use this setting.  There was almost no difference in power usage but imparted a huge performance penalty.</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2010/10/Power_Settings_Performance_chart.jpg"><img src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2010/10/Power_Settings_Performance_chart-300x172.jpg" alt="Power Settings Performance" title="Power_Settings_Performance_chart" width="300" height="172" class="aligncenter size-medium wp-image-120" /></a></p>
<p>Four threads/four vCPUs was a third faster than one/one on Balanced and High Performance settings.</p>
<p><strong>Comparisons to my Desktop</strong><br />
While in the mood to test, I ran two benchmarks on my desktop.  That machine runs XP on a Q6600 Quad-core with 4GB installed.  I rebooted the machine first and didn&#8217;t open anything additional post-boot.  The same test bed was used as above.</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2010/10/Desktop_test_chart.jpg"><img src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2010/10/Desktop_test_chart-300x172.jpg" alt="Desktop test results" title="Desktop_test_chart" width="300" height="172" class="aligncenter size-medium wp-image-126" /></a></p>
<p>The first benchmark, from OpenFiler virtual machine to a local drive, was almost exactly the same time as through the Server 2003 vm using either Balanced and Performance settings.  I was very pleased, until I saw the results from the second test.  Local drive A to local drive B was quite a bit faster on the desktop.  The 2003 vm <em>should </em> have been doing almost the same thing.  Now I needed to test the vm using input and output partitions on two separate physical drives in the ESXi box, and skip OpenFiler altogether.  By eliminating OF from the equation, we&#8217;ll see if that was the bottleneck.</p>
<p><strong>Removing OpenFiler as input source</strong><br />
I changed the drives to be on 10GB partitions within the two local drives; a <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16822136218&#038;Tpk=Western%20Digital%20WD6400AAKS">Western Digital WD6400AAKS</a> and a <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16822152185&#038;Tpk=Samsung%20F3%20HD103SJ">Samsung F3 HD103SJ</a>.  I used all four threads on the four vCPU virtual machine.  I, again, ran each test twice and averaged the scores.  The target drive was swapped for the second set.</p>
<table style="height: 44px;" border="1" cellspacing="0" cellpadding="0" width="300" align="center">
<tbody>
<tr bgcolor="powderblue">
<td colspan="2" align="center"><strong>MS Server 2003 VM; 4 vCPU/4 threads<br />Balanced Power setting<strong><br />
</strong></strong></td>
</tr>
<tr bgcolor="powderblue">
<td align="center">From local 640 to local 1TB</td>
<td align="center">From local 1TB to local 640</td>
</tr>
<tr>
<td align="center">17:22</td>
<td align="center">17:43</td>
</tr>
</tbody>
</table>
<p><center></center></p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2010/10/OF_vs_local_chart.jpg"><img src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2010/10/OF_vs_local_chart-300x172.jpg" alt="OpenFiler input versus using local input" title="OF_vs_local_chart" width="300" height="172" class="aligncenter size-medium wp-image-115" /></a></p>
<p>By eliminating OpenFiler, we reduced runtime by 3-1/2 minutes!  This was another result I was not expecting.  I will have to investigate this further in the future.<br />
<br />
<strong>Conclusion</strong><br />
Using multiple vCPUs for virtual machines that can take advantage of multiple threads can definitely increase performance.  Going from one virtual CPU to two in my tests showed the &#8220;biggest bang for the buck&#8221;.  It bears repeating that there were no other virtual machines contending for resources during my testing.  If there had been, the outcome might have been affected.</p>
<p>I have vSphere set to the Balanced Power setting.  It reduces my power utilization by 15% during all the time it is idle, and does not sacrifice any performance.</p>
]]></content:encoded>
			<wfw:commentRss>http://miketrellosblog.arcadecab.com/2010/10/multiple-vcpu-encoding-performance-in-esxi-4-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Power Policy Settings in vSphere 4.1</title>
		<link>http://miketrellosblog.arcadecab.com/2010/10/power-policy-settings-in-vsphere-4-1/</link>
		<comments>http://miketrellosblog.arcadecab.com/2010/10/power-policy-settings-in-vsphere-4-1/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 14:29:11 +0000</pubDate>
		<dc:creator>mtrello_Blog</dc:creator>
				<category><![CDATA[Esxi]]></category>
		<category><![CDATA[vSphere]]></category>
		<category><![CDATA[benchmarks]]></category>

		<guid isPermaLink="false">http://miketrellosblog.arcadecab.com/?p=108</guid>
		<description><![CDATA[The new Power Policy Settings in ESXi 4.1 Since the upgrade to VMWare&#8217;s ESxi 4.1, I have been curious as to how the newly added power policy settings would affect both system power usage and relative performance. This short post will look at how the various power settings affect my specific setup during idle time, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The new Power Policy Settings in ESXi 4.1</strong><br />
Since the upgrade to VMWare&#8217;s <a href="http://miketrellosblog.arcadecab.com/2010/08/upgrading-from-esxi-4-0-to-4-1/">ESxi 4.1</a>, I have been curious as to how the newly added power policy settings would affect both system power usage and relative performance.  This short post will look at how the various power settings affect my specific setup during idle time, with a follow-up post looking more closely at power usage and performance during a typical video encoding job.</p>
<p>These new settings can be reached from the VSphere client;<br /><em>Configuration -&gt; Power Management -&gt; Properties.</em></p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2010/10/PowerPolicySettings_fullscreen.jpg"><img class="size-medium wp-image-112  aligncenter" title="PowerPolicySettings_fullscreen" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2010/10/PowerPolicySettings_fullscreen-300x161.jpg" alt="Power policy settings in vSphere 4.1" width="300" height="161" /></a></p>
<p><strong>Power Usage at Idle</strong><br />
I began my testing by checking the top three settings at idle.  (I decided not to even mess with the custom settings.)  The ever useful <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16882715001">Kill A Watt load meter</a> was used to measure the server&#8217;s power draw.  The beauty of these settings are they can be changed on the fly, and the effects seen immediately.</p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2010/10/PowerPolicySettings.jpg"><img class="size-medium wp-image-109  aligncenter" title="PowerPolicySettings" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2010/10/PowerPolicySettings-300x218.jpg" alt="Power Policy Settings" width="300" height="218" /></a></p>
<p><strong>Results</strong><br />
As you can see in the chart below, the <em>Balanced</em> setting reduced the power usage by almost 15%.  The <em>Low power</em> setting didn&#8217;t appear to make any further savings.  In my specific situation, where the machine will be essentially idle 95% of the time, saving 15% is a big deal.  I have the server set to <em>Balanced</em> now, and will enjoy the feeling of saving a few cents an hour on the power bill.</p>
<p><center></center></p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2010/10/PowerUsageatIdle1.jpg"><img src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2010/10/PowerUsageatIdle1-300x160.jpg" alt="Power Usage at idle" title="PowerUsageatIdle" width="300" height="160" class="aligncenter size-medium wp-image-124" /></a></p>
<p>My next post will look at power utilization during a test video encoding job, as well as testing how much adding addition vCPUs to the virtual machine affects performance.</p>
]]></content:encoded>
			<wfw:commentRss>http://miketrellosblog.arcadecab.com/2010/10/power-policy-settings-in-vsphere-4-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ESXi Windows NFS datastore inactive upon reboot</title>
		<link>http://miketrellosblog.arcadecab.com/2010/09/esxi-windows-nfs-datastore-inactive-upon-reboot/</link>
		<comments>http://miketrellosblog.arcadecab.com/2010/09/esxi-windows-nfs-datastore-inactive-upon-reboot/#comments</comments>
		<pubDate>Mon, 06 Sep 2010 17:37:28 +0000</pubDate>
		<dc:creator>mtrello_Blog</dc:creator>
				<category><![CDATA[Backups]]></category>
		<category><![CDATA[Esxi]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[vSphere]]></category>
		<category><![CDATA[WSFU]]></category>
		<category><![CDATA[datastores]]></category>
		<category><![CDATA[vSphere Client]]></category>

		<guid isPermaLink="false">http://miketrellosblog.arcadecab.com/?p=101</guid>
		<description><![CDATA[The problem The NFS datastore I recently created to hold the virtual machine backups from my home ESXi server showed as &#8220;inactive&#8221; upon a recent server reboot. This was unexpected but, after some Googling, definitely not unusual. A second reboot (why not?) still did not restore the connection. I needed to find a proper solution [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The problem</strong><br />
The <a href="http://miketrellosblog.arcadecab.com/2010/08/setting-up-an-nfs-share-to-receive-esxi-4-1-vm-backups/">NFS datastore</a> I recently created to hold the <a href="http://miketrellosblog.arcadecab.com/2010/08/using-ghettovcb-sh-to-backup-esxi-4-1-vms-to-nfs-datastore/">virtual machine backups</a> from my home ESXi server showed as &#8220;inactive&#8221; upon a recent server reboot.  This was unexpected but, after some Googling, definitely not unusual.  A second reboot (why not?) still did not restore the connection.  I needed to find a proper solution to this problem.</p>
<p><strong>My solution</strong><br />
Research pointed me toward the <em>Advanced Software</em> settings in VSphere.  Under NFS I changed the following three settings:</p>
<table style="height: 44px;" border="1" cellspacing="1" cellpadding="1" width="258" align="center">
<tbody>
<tr>
<td>HeartbeatFrequency:</td>
<td>12</td>
</tr>
<tr>
<td>HeartbeatTimeout:</td>
<td>20</td>
</tr>
<tr>
<td>HeartbeatMaxFailures:</td>
<td>10</td>
</tr>
</tbody>
</table>
<p></p>
<p style="text-align: center;"><a href="http://miketrellosblog.arcadecab.com/wp-content/uploads/2010/09/NFS_Advanced_settings.jpg"><img class="size-medium wp-image-105  aligncenter" title="NFS_Advanced_settings" src="http://miketrellosblog.arcadecab.com/wp-content/uploads/2010/09/NFS_Advanced_settings-300x196.jpg" alt="NFS Advanced Settings" width="300" height="196" /></a></p>
<p>I based these values on EMC and NetApp recommendations, except I went crazy with the NFS.HeartbeatTimeout; they only recommend 5.  I went with a larger value as my NFS share is much slower than these vendor&#8217;s fine products.  </p>
<p>These values work as such (cribbed from <a href="http://virtualgeek.typepad.com/virtual_geek/2009/06/a-multivendor-post-to-help-our-mutual-nfs-customers-using-vmware.html">this post</a>): </p>
<ul>
<li>  Every “NFS.HeartbeatFrequency” (or 12 seconds) the ESXi server checks to see that the NFS datastore is reachable.</li>
<li> Those heartbeats expire after “NFS.HeartbeatTimeout” (or 20 seconds), after which another heartbeat is sent.</li>
<li> If “NFS.HeartbeatMaxFailures” (or 10) heartbeats fail in a row, the datastore is marked as unavailable (&#8220;inactive&#8221;).</li>
</ul>
<p>It appeared that ESXi stopped trying to connect to the NSF share before the physical connection was even available.  By upping the low defaults, this appears to have corrected the issue.  Four reboots and the datastore is still available.</p>
]]></content:encoded>
			<wfw:commentRss>http://miketrellosblog.arcadecab.com/2010/09/esxi-windows-nfs-datastore-inactive-upon-reboot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

