<?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>sheenaustin.com &#187; VMWare</title>
	<atom:link href="http://www.sheenaustin.com/category/vmware/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sheenaustin.com</link>
	<description>all in a day&#039;s work</description>
	<lastBuildDate>Fri, 06 Apr 2012 12:53:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Storage vMotion with Multiple Datastores</title>
		<link>http://www.sheenaustin.com/2012/04/06/storage-vmotion-with-multiple-datastores/</link>
		<comments>http://www.sheenaustin.com/2012/04/06/storage-vmotion-with-multiple-datastores/#comments</comments>
		<pubDate>Fri, 06 Apr 2012 12:45:45 +0000</pubDate>
		<dc:creator>Sheen</dc:creator>
				<category><![CDATA[VMWare]]></category>
		<category><![CDATA[Storage vMotion]]></category>
		<category><![CDATA[VMWare ESX]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.sheenaustin.com/?p=364</guid>
		<description><![CDATA[One of the problems with using tiered storage used to be that when a VM with disks on different datastores was Storage vMotioned, the disks would end up on a single datastore. The simple solution to this is to use the &#8216;Advanced&#8217; option when using Storage vMotion. It allows you to granularly control where each [...]]]></description>
			<content:encoded><![CDATA[<p>One of the problems with using tiered storage used to be that when a VM with disks on different datastores was Storage vMotioned, the disks would end up on a single datastore.</p>
<p>The simple solution to this is to use the &#8216;Advanced&#8217; option when using Storage vMotion. It allows you to granularly control where each of the VMs hard disks and configuration files go.</p>
<p>Take a look at these screenshots:<span id="more-364"></span></p>
<p>When you get to the select datastore part of the migration wizard, click on the &#8220;Advanced&#8221; button:</p>
<div id="attachment_366" class="wp-caption alignnone" style="width: 584px"><a href="http://www.sheenaustin.com/wp-content/uploads/2012/04/sVMotion-Advanced.png"><img class=" wp-image-366 " title="sVMotion-Advanced" src="http://www.sheenaustin.com/wp-content/uploads/2012/04/sVMotion-Advanced.png" alt="" width="574" height="239" /></a><p class="wp-caption-text">Storage vMotion Advanced Button</p></div>
<p>This will bring you to a screen that looks like the one below. On this window, you can click on &#8220;Current Location&#8221; to get a drop down menu with a list of available datastores and decide where the individual files go.</p>
<div id="attachment_367" class="wp-caption alignnone" style="width: 584px"><a href="http://www.sheenaustin.com/wp-content/uploads/2012/04/sVMotion-Advanced-Select-Datastore.png"><img class=" wp-image-367 " title="sVMotion-Advanced-Select-Datastore" src="http://www.sheenaustin.com/wp-content/uploads/2012/04/sVMotion-Advanced-Select-Datastore.png" alt="" width="574" height="234" /></a><p class="wp-caption-text">Click on &quot;Current Location&quot; to get a drop down menu with a list of datastores.</p></div>
<p>This feature simplifies sVMotions especially when you have a setup that has tiered storage and you want to preserve the storage tiering when moving between datastores.<br />
Drop me a line if this has helped you.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sheenaustin.com/2012/04/06/storage-vmotion-with-multiple-datastores/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VMWare Snapshot causes server to freeze</title>
		<link>http://www.sheenaustin.com/2011/03/31/vmware-snapshot-causes-server-to-freeze/</link>
		<comments>http://www.sheenaustin.com/2011/03/31/vmware-snapshot-causes-server-to-freeze/#comments</comments>
		<pubDate>Thu, 31 Mar 2011 23:49:00 +0000</pubDate>
		<dc:creator>Sheen</dc:creator>
				<category><![CDATA[VMWare]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Snapshots]]></category>
		<category><![CDATA[VMWare Data Recovery]]></category>
		<category><![CDATA[VMWare ESX]]></category>

		<guid isPermaLink="false">http://www.sheenaustin.com/?p=315</guid>
		<description><![CDATA[Sometimes, creating a snapshot &#8211; either manually or by using a program like VMWare Data Recovery or Veeam, you might run into issues with the guest OS freezing. Check to see if, in the event log you see errors or, in some cases just information messages, from source LGTO_Sync. This can sometimes only indicate that [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes, creating a snapshot &#8211; either manually or by using a program like VMWare Data Recovery or Veeam, you might run into issues with the guest OS freezing.<br />
Check to see if, in the event log you see errors or, in some cases just information messages, from source LGTO_Sync. This can sometimes only indicate that this service had started and stopped.<br />
It might also just have the following information:<br />
&#8220;The description for Event ID ( 1 ) in Source ( LGTO_Sync ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: , Sync Stop done.&#8221;<br />
The reason this happens is because the snapshot process is using a legacy snapshot driver to create a quiesced snapshot of the filesystem but the filesystem doesn&#8217;t respond in time due to incomplete I/O (reads or writes). The work around to ensure that the server doesn&#8217;t hang or crash is to create non quiesced snapshots of the filesystem. This will give you &#8220;Crash Consistent&#8221; backups &#8211; meaning when you recover the server, it will appear as if the server crashed at the moment you took the snapshot. Most enterprise applications (eg Microsoft Exchange or Microsoft SQL) today are fairly crash consistent &#8211; meaning, they will not crash and burn but will recovery gracefully in almost all cases.<br />
<span id="more-315"></span><br />
To work around this issue and setup non-quiesced backups, you will need to disable the LGTO_SYNC driver.</p>
<p>To disable the LGTO Sync service:<br />
Note: The LGTO Sync service is not applicable with Windows 64bit.</p>
<p>    Open the Windows Device Manager.<br />
    Click View > Show Hidden Devices.<br />
    Expand Non-Plug and Play Drivers.<br />
    Find the Sync Driver device. To verify that you have found the correct device, edit the properties and click the Driver tab. The Driver tab shows information similar to:</p>
<p>    Service name: LGTO_Sync<br />
    Display name: Sync Driver </p>
<p>    Once you have found the correct service, Click Cancel to go back to the Device manager.<br />
    Right-click the device and select Disable.<br />
    Reboot the virtual machine. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sheenaustin.com/2011/03/31/vmware-snapshot-causes-server-to-freeze/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMWare UPS Shutdown Script</title>
		<link>http://www.sheenaustin.com/2011/02/20/vmware-ups-shutdown-script/</link>
		<comments>http://www.sheenaustin.com/2011/02/20/vmware-ups-shutdown-script/#comments</comments>
		<pubDate>Sun, 20 Feb 2011 23:44:25 +0000</pubDate>
		<dc:creator>Sheen</dc:creator>
				<category><![CDATA[VMWare]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Shutdown]]></category>
		<category><![CDATA[UPS]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[VMWare ESX]]></category>
		<category><![CDATA[VMWare Scripts]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.sheenaustin.com/?p=274</guid>
		<description><![CDATA[Here is a script that can be used in conjuction with a UPS shutdown utility like APC Powerchute to shutdown all VMs and ESX hosts automatically if a power loss has been detected by the UPS. This script is a configure it once and forget it script. It queries the vCenter server for a list [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a script that can be used in conjuction with a UPS shutdown utility like APC Powerchute to shutdown all VMs and ESX hosts automatically if a power loss has been detected by the UPS. This script is a configure it once and forget it script. It queries the vCenter server for a list of all VMs and ESX hosts and shuts them all down (VMs first and Hosts later).<br />
<span id="more-274"></span><br />
Pre-Requisites:</p>
<ol>
<li>vCenter Server.</li>
<li>VMWare Powershell.</li>
<li>Any UPS Software that can execute a script when a power loss has been detected by the UPS. (Eg- APC Powerchute)</li>
</ol>
<p>Here&#8217;s the script:<br />
<code><br />
Connect-VIServer -Server xxx.xxx.xxx.xxx -Protocol http -User [username] -Password [password]<br />
# List All the ESX Hosts<br />
$ESXSRV = Get-VMHost<br />
# For each of the VMs on the ESX hosts<br />
Foreach ($VM in ($ESXSRV | Get-VM)){<br />
# Shutdown the guest cleanly<br />
$VM | Shutdown-VMGuest -Confirm:$false<br />
}<br />
# Set the amount of time to wait before assuming the remaining powered on guests are stuck<br />
$waittime = 240 #Seconds<br />
Start-Sleep $Waittime<br />
$ESXSRV | Foreach {Get-View $_.ID} | Foreach {$_.ShutdownHost_Task($TRUE)}<br />
Write-Host "Shutdown Complete"<br />
</code></p>
<p>Do the following to run this script via a UPS shutdown utility:</p>
<ol>
<li>Save the script to a location of your choice as a PS1 file &#8211; Eg: C:\Scripts\PowerOffAll.ps1</li>
<li>Replace [username] and [password] with the admin username and password for the vCenter server in the Powershell script.</li>
<li>Change the <code>$waittime</code> value to a high enough value (in seconds) that would allow all your VMs to shutdown. This value would vary from network to network. You might have to try shutting down your VMs to find out the server that shuts down last and use that time in this script.</li>
</ol>
<p>To execute this powershell script from a UPS software you will need to create this batch file to be able to call this powershell script. Save the following code to a batch file (for example &#8211; C:\Scripts\PowerOffAll.bat):<br />
<code><br />
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -PSConsoleFile "C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\vim.psc1" "&amp; "C:\Scripts\PowerOffAll.ps1"</code></p>
<p>The above script assumes that the vCenter server is running a 64-bit OS (which would be the case if you are using vCenter server version 4.1)</p>
<p>For a x86 server, the code, for example would be:</p>
<p><code>C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -PSConsoleFile "C:\Program Files\VMware\Infrastructure\vSphere PowerCLI\vim.psc1" "&amp; "C:\Scripts\PowerOffAll.ps1"</code></p>
<p>If you face issues with running the script, you might need to check the Powershell execution policy by running: <code>Get-ExecutionPolicy</code>. If it is set to Restricted or AllSigned, you may have issues.<br />
To ensure that you run this script without issues, change the execution policy by running this command: <code>Set-ExecutionPolicy -bypass</code>.</p>
<p>All you need to do now is to configure your UPS software to run this script when the low battery threshold is reached &#8211; and &#8211; TEST!</p>
<p>Drop me a line if this has helped you!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sheenaustin.com/2011/02/20/vmware-ups-shutdown-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VMWare Data Recovery (VDR) Status Report Script</title>
		<link>http://www.sheenaustin.com/2010/10/20/vmware-data-recovery-status-report-script/</link>
		<comments>http://www.sheenaustin.com/2010/10/20/vmware-data-recovery-status-report-script/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 11:16:31 +0000</pubDate>
		<dc:creator>Sheen</dc:creator>
				<category><![CDATA[VMWare]]></category>
		<category><![CDATA[VDR]]></category>
		<category><![CDATA[VMWare Data Recovery]]></category>
		<category><![CDATA[VMWare ESX]]></category>
		<category><![CDATA[VMWare Scripts]]></category>

		<guid isPermaLink="false">http://www.sheenaustin.com/?p=204</guid>
		<description><![CDATA[VMWare Data Recovery is a good platform that allows you to backup virtual machines running on an ESX platform managed by a vSphere server. It, however, lacks a good reporting module. Here is a script compiled to generate an email report on the status of jobs (both successful and unsuccessful) and can be run as [...]]]></description>
			<content:encoded><![CDATA[<p>VMWare Data Recovery is a good platform that allows you to backup virtual machines running on an ESX platform managed by a vSphere server. It, however, lacks a good reporting module.</p>
<p>Here is a script compiled to generate an email report on the status of jobs (both successful and unsuccessful) and can be run as a cron job.</p>
<p><span id="more-204"></span></p>
<p>The script parses the operations_log.utx file under /var/vmware/datarecovery and checks for successful and failed jobs. The parse results are stored in temporary files under /root. These files are then used during subsequent runs to compare with the current run and will only report on jobs that ran after the last run.</p>
<p>Here is the content of the script:<br />
<code><br />
#!/bin/bash<br />
#<br />
# Example usage of strings<br />
# strings -e l /var/vmware/datarecovery/operations_log.utx | grep -i -B2 "error" | awk -F"$" '{print "[1: " $1 "] [2: " $2 "] [3: " $3 "] [4: " $4 "] [5: " $5 "] [6: " $6 "] [7: " $7 "] [8: " $8 "] [9: " $9 "]"}'<br />
#<br />
# Variables<br />
domain=yourdomain.com<br />
host=$HOSTNAME<br />
smtphost=yourmailhost<br />
mailto=you@domain.com<br />
#<br />
cat /dev/null >> /root/olderror.out<br />
cat /dev/null >> /root/oldsuccess.out<br />
err=0<br />
succ=0<br />
#<br />
# List all Errors<br />
strings -e l /var/vmware/datarecovery/operations_log.utx | grep -i -B2 "error" | awk -F"$" '{print substr($2,5,21) " " substr($2, 27, 100) " "  $3 " " substr($6,17,20)}' > /root/newerror.out<br />
#<br />
# List all Successes<br />
strings -e l /var/vmware/datarecovery/operations_log.utx | grep -i -B1 "success" | awk -F"$" '{print substr($2,5,21) " " substr($2, 26, 100) " "  substr($3,5,100)}' > /root/newsuccess.out<br />
##<br />
# Compare new list of all errors to old list of all errors<br />
if ! diff /root/olderror.out /root/newerror.out<br />
then<br />
diff /root/olderror.out /root/newerror.out  | grep ">"  > /root/differr.out<br />
err=$(cat /root/differr.out | grep -c "error")<br />
echo Failed Jobs - $err<br />
mv /root/newerror.out /root/olderror.out -f<br />
fi<br />
#<br />
if ! diff /root/oldsuccess.out /root/newsuccess.out<br />
then<br />
diff /root/oldsuccess.out /root/newsuccess.out  | grep ">"  > /root/diffsuccess.out<br />
succ=$(cat /root/diffsuccess.out | grep -c "success")<br />
echo Successful Jobs - $succ<br />
mv /root/newsuccess.out /root/oldsuccess.out -f<br />
fi<br />
# Send email with any errors found<br />
(<br />
sleep 1<br />
echo "HELO $host.$domain"<br />
sleep 1<br />
echo "mail from: vdrreport@$domain"<br />
sleep 1<br />
echo "rcpt to:$mailto"<br />
sleep 1<br />
echo "data"<br />
sleep 1<br />
echo "subject: VDR-Report - $host $(date +"%Y-%m-%d %H:%M") Jobs OK: $succ, FAILED: $err"<br />
sleep 1<br />
echo "from: VMWare Data Recovery on "$host<br />
sleep 1<br />
echo "to:$mailto"<br />
sleep 1<br />
echo ""<br />
sleep 1<br />
echo ""<br />
sleep 1<br />
echo "$host $(date +"%Y-%m-%d %H:%M") Jobs OK:$succ, FAILED:$err "<br />
echo ""<br />
sleep 1<br />
echo "##### Successful Jobs ($succ) #####"<br />
sleep 1<br />
echo ""<br />
sleep 1<br />
  if [ -f /root/diffsuccess.out ]<br />
    then<br />
      cat /root/diffsuccess.out<br />
    else<br />
      echo No successful jobs listed!<br />
  fi<br />
sleep 1<br />
echo ""<br />
sleep 1<br />
echo ""<br />
sleep 1<br />
echo "##### Failed Jobs ($err) #####"<br />
sleep 1<br />
echo " "<br />
sleep 1<br />
  if [ -f /root/differr.out ]<br />
    then<br />
      cat /root/differr.out<br />
    else<br />
      echo No failed jobs!<br />
  fi<br />
sleep 1<br />
echo " "<br />
sleep 1<br />
echo "."<br />
sleep 1<br />
echo "QUIT"<br />
) | telnet $smtphost 25</p>
<p>  if [ -f /root/differr.out ]<br />
    then<br />
      rm -f /root/differr.out<br />
  fi</p>
<p>  if [ -f /root/diffsuccess.out ]<br />
    then<br />
      rm -f /root/diffsuccess.out<br />
  fi</p>
<p>exit 0</p>
<p></code></p>
<p>The script can be scheduled to run as a cron job. For example, the following cron job will run the script at 7:15 AM every day from Monday to Friday:</p>
<p><code>15 7 * * 1-5 /root/vDRreport.sh</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sheenaustin.com/2010/10/20/vmware-data-recovery-status-report-script/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Script to Hot Backup VMWare ESX Virtual Machines</title>
		<link>http://www.sheenaustin.com/2010/01/29/script-to-hot-backup-vmware-esx-virtual-machines/</link>
		<comments>http://www.sheenaustin.com/2010/01/29/script-to-hot-backup-vmware-esx-virtual-machines/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 19:25:01 +0000</pubDate>
		<dc:creator>Sheen</dc:creator>
				<category><![CDATA[VMWare]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Free]]></category>
		<category><![CDATA[Virtual Machines]]></category>
		<category><![CDATA[VMWare ESX]]></category>
		<category><![CDATA[VMWare Scripts]]></category>
		<category><![CDATA[vmware-cmd]]></category>

		<guid isPermaLink="false">http://www.sheenaustin.com/2010/01/29/script-to-hot-backup-vmware-esx-virtual-machines/</guid>
		<description><![CDATA[I was searching for the best way to implement vmware-cmd to snapshot live VMs and then rsync them to another location of my choice and look what I found! There is a free script called ghettoVCB.sh that does the trick. The script allows you to backup live virtual machines and also maintains only a selected [...]]]></description>
			<content:encoded><![CDATA[<p>I was searching for the best way to implement vmware-cmd to snapshot live VMs and then rsync them to another location of my choice and look what I found!</p>
<p>There is a free script called <a href="http://communities.vmware.com/docs/DOC-8760" target="_blank">ghettoVCB.sh</a> that does the trick.</p>
<p>The script allows you to backup live virtual machines and also maintains only a selected number of snapshots that you would like to keep. Check it out!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sheenaustin.com/2010/01/29/script-to-hot-backup-vmware-esx-virtual-machines/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.823 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-05-16 22:33:44 -->
<!-- Compression = gzip -->
