<?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>Nick Heppleston's BizTalk Blog &#187; Virtualisation</title>
	<atom:link href="http://www.modhul.com/category/virtualisation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.modhul.com</link>
	<description>Experiences of a UK BizTalk Consultant</description>
	<lastBuildDate>Sun, 13 Mar 2011 17:01:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>BizTalk DR: Configuring BizTalk Backup for Disaster Recovery – Part 2</title>
		<link>http://www.modhul.com/2009/09/04/configuring-biztalk-backup-for-disaster-recovery-part-2/</link>
		<comments>http://www.modhul.com/2009/09/04/configuring-biztalk-backup-for-disaster-recovery-part-2/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 11:04:19 +0000</pubDate>
		<dc:creator>Nick Heppleston</dc:creator>
				<category><![CDATA[Backup]]></category>
		<category><![CDATA[BizTalk 2004]]></category>
		<category><![CDATA[BizTalk 2006]]></category>
		<category><![CDATA[BizTalk 2009]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[Backup and Restore]]></category>
		<category><![CDATA[BizTalk]]></category>
		<category><![CDATA[BizTalk Backup]]></category>
		<category><![CDATA[BizTalk Log Shipping]]></category>
		<category><![CDATA[Disaster Recovery]]></category>
		<category><![CDATA[Microsoft SQL Server]]></category>

		<guid isPermaLink="false">http://www.modhul.com/?p=1275</guid>
		<description><![CDATA[Originally posted by Nick Heppleston at: http://www.modhul.com/2009/09/04/configuring-biztalk-backup-for-disaster-recovery-part-2/ This is the second of a three-part series covering the BizTalk Backup Process, where I&#8217;m looking at one of the two supported methods to backup and restore a BizTalk Server environment – Log Shipping. The series will cover the following topics: In Part 1, I’ll provide a high-level [...]]]></description>
			<content:encoded><![CDATA[<p><em>Originally posted by Nick Heppleston at: <a title="Configuring BizTalk for Disaster Recovery – Part 1" href="http://www.modhul.com/2009/09/04/configuring-biztalk-backup-for-disaster-recovery-part-2/" target="_blank">http://www.modhul.com/2009/09/04/configuring-biztalk-backup-for-disaster-recovery-part-2/</a></em></p>
<p>This is the second of a three-part series covering the BizTalk Backup Process, where I&#8217;m looking at one of the two supported methods to backup and restore a BizTalk Server environment – Log Shipping. The series will cover the following topics:</p>
<ul>
<li>In <strong>Part 1</strong>, I’ll provide a high-level overview of the backup and restore process. <a title="Configuring BizTalk Backup for Disaster Recovery – Part 1" href="http://www.modhul.com/2009/06/29/configuring-biztalk-for-disaster-recovery-part-1/" target="_blank">Part 1 is already published, go an read it now!</a></li>
<li>In <strong>Part 2</strong>, I’ll walk through an actual backup and restore setup, looking at the configuration steps as we go.<em><br />
</em></li>
<li>In <strong>Part 3</strong>, I’ll demonstrate a long-running BizTalk application that is restored on a sample disaster recovery environment using the backup and restore process configured in Part 2.</li>
</ul>
<p>Please accept my apologies for the wide screenshots in this part of the series. Please also note that I have not repeated the configuration steps on the MSDN website &#8211; this is an excellent resource and I do not wish to repeat or plagarise this work. In this part of the series, I have simply added my own observations that I thought were lacking from the MSDN text.</p>
<h3><strong>BizTalk Log Shipping – A Quick Recap</strong></h3>
<p>Before we look at how the BizTalk Log Shipping process is configured, let us quickly recap on the process; for a more detailed overview, I recommend that you read Part One of this series of blog posts, specifically the section which covers <a title="Configuring BizTalk Backup for Disaster Recovery – Part 1 - The Backup and Restore Process" href="http://www.modhul.com/2009/06/29/configuring-biztalk-for-disaster-recovery-part-1/#TheBackupAndRestoreProcess" target="_blank">The Backup and Restore Process</a>.</p>
<p>The backup and restore process (BizTalk Log Shipping) is as follows:</p>
<ul>
<li>The BizTalk Backup SQL Agent Job creates data and transaction-log backups from the production environment, placing log marks into the transaction-log backups. An audit table is maintained which lists the backups that have been created, the type of backup (data or transaction-log backup) and details the location of the backup files. The physical data- and log-files are then pushed to a UNC share, as shown below:</li>
</ul>
<p><img class="size-full wp-image-1200" title="The BizTalk Backup Process - Log Shipping" src="http://www.modhul.com/wp-content/uploads/2009/06/BizTalkBackupProcess.png" alt="BizTalk Backup Process Overview" width="515" height="170" /></p>
<ul>
<li>The standby environment reads the audit table maintained by the production environment, using this information to determine which data- and transaction-log files need to be restored. These files are restored from the UNC share using the SQL ‘NORECOVERY’ option, leaving the databases in a non-operational state, allowing additional transaction-logs to be applied. <em><strong>Note:</strong> the transaction-logs are <strong>not restored to the transaction-log mark in this step</strong>, instead the full transaction-log is restored:</em></li>
</ul>
<p><img class="size-full wp-image-1200" title="The BizTalk Restore Process" src="http://www.modhul.com/wp-content/uploads/2009/06/BizTalkRestoreProcess.png" alt="BizTalk Backup Process Overview" width="682" height="231" /></p>
<p>These two steps continue throughout live operations. In the event of a disaster recovery situation, where the production environment has been lost and the standby environment needs to be brought online, three recovery steps must be performed on the standby environment:</p>
<ul>
<li>The most recent transaction-log backup is restored to its transaction-log mark using the SQL ‘WITH RECOVERY’ option, placing the databases into an operationally ready state.</li>
<li>Database and registry updates statements are run to re-configure the restored databases to use the standby environment.</li>
<li>BizTalk services are brought online (including the Enterprise Single Sing-On server and Business Rules Engine service etc.) and the standby environment is made live as the production environment.</li>
</ul>
<p>Once the live environment is recovered and the switch from the standby environment back to the live environment is ready to be made, the process is reversed, with the standby environment creating backups that are restored to the live environment.</p>
<p>In this post, we&#8217;ll look at how to configure each of these steps.</p>
<h3><strong>BizTalk Log Shipping – Prerequisites</strong></h3>
<p>Several prerequisites need to be setup before configuring BizTalk Log Shipping. I would recommend that you spend time to ensure that these areas work, as they will save you a great deal of pain when configuring log shipping. They include:</p>
<ol>
<li>Before starting to configure the BizTalk Log Shipping process, ensure that the production and standby servers can communicate with each other over the network;</li>
<li>The production and standby SQL Server instances need to communicate with each other via MSDTC (Microsoft Distributed Transaction Coordinator). There are a number of excellent resources on the internet addressing MSDTC configuration issues including <a title="Troubleshooting Problems with MSDTC" href="http://msdn.microsoft.com/en-us/library/aa561924%28BTS.10%29.aspx" target="_blank">Troubleshooting Problems with MSDTC</a> on the MSDN website. <strong>Ensure that the two serverscan communicate over MSDTC before starting to configure Log Shipping;</strong></li>
<li>The BizTalk backup and restore SQL Agent jobs should run as under an isolated user account &#8211; choose a Windows user account for this purpose and create a SQL Server login for this account. Map this SQL Server login to the <em>BTS_BACKUP_USERS</em> database role in the BizTalk Server databases; and finally</li>
<li>It is recommend that the data- and transaction-log backup files are written to a highly-available UNC share. Ensure that an UNC share is created that is accessible by both the production and standby servers and that the necessary permissions are assigned. Check that you can read, write and delete files from this share using Windows Explorer on both  servers.</li>
</ol>
<h3><strong>Configuring The Backup Job</strong></h3>
<p>The first task in configuring BizTalk Log Shipping is to configure the SQL Agent <em>&#8216;Backup BizTalk Server (BizTalkMgmtDb)&#8217;</em> backup job on the production environment. This job is created by the BizTalk installer and is responsible for a number of tasks, including:</p>
<ul>
<li>Creating a full database backup at the specified interval;</li>
<li>Writing a transaction-log mark to the transaction-log and creating a backup of the transaction-log; and finally</li>
<li>Clearing the backup history table, based on specified criteria.</li>
</ul>
<p>To configure the job, follow the instructions detailed in the excellent <a title="How to Configure the Backup BizTalk Server Job" href="http://msdn.microsoft.com/en-us/library/aa546765%28BTS.10%29.aspx" target="_blank">How to Configure the Backup BizTalk Server Job</a> on the MSDN website.</p>
<p>When configuring the backup job, remember the following:</p>
<ul>
<li>The <strong>Frequency</strong> parameter denotes the frequency at which a <em>full backup</em> is taken. By default, this is set to <strong>d</strong> (daily) which is sufficient for most BizTalk environments. If you require more frequent <em>full</em> backups, change this accordingly &#8211; other values include <strong>h</strong> (hourly), <strong>w</strong> (weekly), <strong>m</strong> (monthly), or <strong>y</strong> (yearly). <strong>Note that irrespective of what frequency you set here, transaction log backups will occur every time this job is run.</strong></li>
<li>The (optional) <strong>Force full backup after partial backup failures</strong> parameter instructs the backup job to create a full backup if a transaction-log backup failed the last time the job ran, ignoring the <em>Frequency</em> setting. For example, if you use a setting of &#8216;daily&#8217; for the <em>Frequency </em>parameter and the job fails to create a full set of transaction-log backups, the next time the job runs, it will create a full-backup followed by a further transaction-log backup; a second full-backup followed by a transaction-log backup will be created when the job runs again at midnight (UTC time) to honour the <em>Frequency</em> setting.</li>
<li>When setting the <strong>Location of backup files</strong> parameter, ensure that the user who is running this SQL Agent job has sufficient privileges to write to that location.</li>
</ul>
<p>By default, this job runs once every fifteen minutes; this means that a transaction-log backup will be created and restored once every fifteen minutes (once you have configured the log shipping restore jobs, which execute once every minute). If you want to reduce delay in restoring these transaction-logs to your standby environment, reduce the scheduled frequency of the backup job. I would however recommend that this job is run <em>no more frequently</em> than once every three minutes; you will however need to find a happy medium that works best in your environment &#8211; this will be based on the load on your BizTalk Server and the rate at which your SQL Server transaction-logs grow.</p>
<p>Once you have configured the backup job, execute it starting at step one and ensure you have backup data- and log-files in your UNC share location, and entries in the <em>BizTalkMgmtDb.dbo.adm_BackupHistory</em> table, as follows:</p>
<p><img class="alignnone size-full wp-image-1326" title="BackupHistory" src="http://www.modhul.com/wp-content/uploads/2009/09/BackupHistory.png" alt="BackupHistory" width="1313" height="309" /></p>
<p>These entries in the Backup History table will be read by the restore jobs on the standby SQL Server and used to identify which data and log files need to be restored. Of particular interest in the above screenshot of the Backup History table are the following columns:</p>
<ul>
<li>The <strong>BackupSetId</strong> column, which is used during the restore to identify an entire backup-set;</li>
<li>The <strong>MarkName</strong> column, which details the Transaction-Log Mark Name given to transaction-logs (Notice how the full database-backup has a value of NULL instead of a a log mark name, as these cannot be applied to full backups);</li>
<li>The <strong>BackupFilename</strong> and <strong>BackupFileLocation</strong> columns, which are used by the restore jobs to locate the data- and log-files to restore;</li>
<li>The <strong>BackupType</strong> column, which is used by the restore jobs to identify the type of backup the backup set relates to; and finally</li>
<li>The <strong>SetComplete</strong> column, which is used by the (optional) <strong>Force full backup after partial backup failures</strong> parameter of the backup job to determine whether a full or partial backup was taken during the last execution.</li>
</ul>
<p>One final point to note about the <em>&#8216;Backup BizTalk Server (BizTalkMgmtDb)&#8217;</em> backup job: if the SQL Agent Service or the backup-job is disabled and misses the time-window in which the full-backup should be taken (based on the Frequency parameter), the next execution of the job will cause a full backup to be created. For example, if you use a setting of &#8216;daily&#8217; for the <em>Frequency </em>parameter and the job is disabled between 2000 and 0200 (i.e. during the time window that the daily full-backup will occur &#8211; 0000UTC), when the job is enabled, it will detect that its &#8216;frequency&#8217; has been missed and cause a full-back to be created, followed by a transaction-log backup.</p>
<h4><a style="text-decoration: none; color: #444444;" name="ForcingAFullBackup">Forcing a Full Backup</a></h4>
<p>There may be cases where you wish to perform an ad-hoc full-backup, outside of the <em>Frequency</em> window specified in <em>Backup BizTalk Server</em> SQL Agent Job &#8211; for example, you may want to take a full backup before applying a hotfix or service pack, or when replacing hardware.</p>
<p>When a backup is forced, the <em>Frequency</em> window is ignored next time the Backup BizTalk Server job executes and both data- and log-file backups are generated. If a problem occurs in the scenarios described above and the databases need to be recovered, only one transaction log needs to be restored for each database, reducing the recovery time significantly.</p>
<p>To force a full backup, execute the <em>BizTalkMgmtDb.dbo.sp_ForceFullBackup</em> stored procedure; the next time the Backup BizTalk Server job executes, both data- and log-file backups will be generated.</p>
<h3><strong>Configuring BizTalk Log Shipping &#8211; The Restore Jobs</strong></h3>
<p>We&#8217;re now ready to configure the standby environment to automagically restore our data- and log-file backups that are created by our production environment.</p>
<p>Several new jobs will be created in the standby SQL Server environment to handle the restoring of backups (along with a number of tables and stored procedures in the <em>master</em> database, which are used to hold information about the Log Shipping process). The jobs in particular are responsible for a number of tasks, including:</p>
<ul>
<li>Retrieving the backup history from the production environment;</li>
<li>Restoring the data- and transaction-log backup files to the standby SQL Server in a non-operational state, allowing further transaction-logs to be restored; and finally</li>
<li>Restoring all of the databases to an operational state, by restoring the next available transaction-log to their last log mark <em>only when disaster recovery is invoked and the standby SQL Server environment is to be made operational</em>.</li>
</ul>
<p>For more detailed information on these jobs, I recommend that you read the first part of this series, specifically the section which covers <a title="Configuring BizTalk Backup for Disaster Recovery – Part 1 - The Restore Process : The BizTalk Log Shipping Jobs" href="http://www.modhul.com/2009/06/29/configuring-biztalk-for-disaster-recovery-part-1/#TheRestoreProcessTheBizTalkLogShippingJobs" target="_blank">the Restore Process and the BizTalk Log Shipping Jobs</a>.</p>
<p>To configure log shipping on the standby environment, follow the instructions detailed in the excellent <a title="How to Configure the Destination System for Log Shipping" href="http://msdn.microsoft.com/en-us/library/aa560961%28BTS.10%29.aspx" target="_blank">How to Configure the Destination System for Log Shipping</a> on the MSDN website.</p>
<p>When configuring the backup job, remember the following:</p>
<ul>
<li>The standby environment will try and read the data- and log-files from the same location as they were written to by the backup job; it is therefore prudent to use a UNC share location (mapped to a drive letter if necessary) that both the standby and production environments have read/write permissions to.</li>
<li>If you encounter problems executing the <em>bts_ConfigureBizTalkLogShipping</em> stored procedure, ensure that you have correctly configured MSDTC between the production and standby environments; additionally, check that you have enabled <em>Ad Hoc Distributed Queries</em> on the standby SQL Server (if using SQL Server 2005/2008) as this stored procedure executes distributed queries over a linked server to the production SQL Server.</li>
<li>If you need to re-configure your standby environment, re-run the configuration process including starting with the <em>LogShipping_Destination_Schema.sql</em> and <em>LogShipping_Destination_Logic.sql</em> before executing the <em>bts_ConfigureBizTalkLogShipping</em> stored procedure.</li>
</ul>
<h4><strong>A note about the Physical Location of Database Files when Restoring</strong></h4>
<p>If you have been around SQL Server for any length of time, you will have come across some of the more &#8216;helpful&#8217; features of restoring data- and transaction-log files &#8211; when you restore a backup, <strong>SQL Server will attempt to re-create the database on the standby environment in exactly the same directory structure as the data- and log-file/s appeared on the production SQL Server</strong>.</p>
<p>If the directory structure doesn&#8217;t exist on the standby server <em>exactly</em> as it did on the production server, you will receive an error similar to the following and the restore will fail:</p>
<blockquote><p>Executed as user: BIZTALKDR\BizTalkBackup. Directory lookup for the file “D:\MSSQL.4\MSSQL\DATA\BizTalkMgmtDb.mdf” failed with the operating system error 3(The system cannot find the path specified.). [SQLSTATE 42000] (Error 5133) <strong>File ‘BizTalkMgmtDb’ cannot be restored to ‘D:\MSSQL.4\MSSQL\DATA\BizTalkMgmtDb.mdf’</strong>. Use WITH MOVE to identify a valid location for the file. [SQLSTATE 42000] (Error 3156) Directory lookup for the file “D:\MSSQL.4\MSSQL\DATA\BizTalkMgmtDb_log.LDF” failed with the operating system error 3(The system cannot find the path specified.). [SQLSTATE 42000] (Error 5133) <strong>File ‘BizTalkMgmtDb_log’ cannot be restored to ‘D:\MSSQL.4\MSSQL\DATA\BizTalkMgmtDb_log.LDF’</strong>. Use WITH MOVE to identify a valid location for the file. [SQLSTATE 42000] (Error 3156) Problems were identified while planning for the RESTORE statement. Previous messages provide details. [SQLSTATE 42000] (Error 3119) <strong>RESTORE DATABASE is terminating abnormally.</strong> [SQLSTATE 42000] (Error 3013). The step failed.</p></blockquote>
<p>There are a number of ways we can resolve this, including using the <em>WITH MOVE</em> statement, as suggested in the error text, however this would require us to make changes to the stored procedure that is invoked by the <em>Restore Databases</em> SQL Agent job &#8211; this would invalidate our warranty with Microsoft as changes to the SQL Server portion of the codebase are not supported.</p>
<p>SQL Server uses several techniques to determine the physical location that databases should be restored to (further information can be found in <a title="INF: Using the WITH MOVE Option with the RESTORE Statement" href="http://support.microsoft.com/kb/221465" target="_blank">Microsoft Knowledgebase Article 221465</a>); the easiest method is to perform an <em>implicit</em> &#8216;MOVE&#8217; &#8211; if the database already exists on the standby environment, but at a different location than specified in the backup set, the location on the server is used during the restore.</p>
<p>I would therefore recommend that you create the various BizTalk databases (including the Business Rules Engine Db and SSO Db) in their correct locations on the standby environment before you enable the restore job, this way SQL Server will restore the databases to your preferred location.</p>
<h4>Testing the Restore Functionality<strong><br />
</strong></h4>
<p>With log shipping successfully configured, enable the <strong>BTS Log Shipping &#8211; Get Backup History (DBServer: </strong><strong>&#8220;[Database Server Name]&#8220;, DBName: &#8220;[Database Name]&#8220;</strong><strong>)</strong> SQL Agent job to retrieve backup history information from the production environment.</p>
<p>If everything is configured correctly, you will see entries in the standby SQL Server <em>master.dbo.bts_LogShippingHistory</em> table which show the backups that are yet to be restored (see the <strong>Restored</strong> and <strong>RestoredDateTime</strong> columns highlighted in <span style="color: #008000;"><strong>Green</strong></span>). In the following screenshot, there is one full database backup, plus three transaction-log backups to be restored.</p>
<p><img class="alignnone size-full wp-image-1312" title="LogShippingHistory-DatabasesToBeRestoredv2" src="http://www.modhul.com/wp-content/uploads/2009/09/LogShippingHistory-DatabasesToBeRestoredv2.png" alt="LogShippingHistory-DatabasesToBeRestoredv2" width="1539" height="475" /></p>
<p>With the backup history successfully retrieved from the production environment, we&#8217;re now ready to start restoring the data- and log-files to our standby environment.</p>
<p>Enable the <strong>BTS Log Shipping &#8211; Restore Databases (DBServer: &#8220;[Database Server Name]&#8220;, DBName: &#8220;[Database Name]&#8220;)</strong> SQL Agent job. As described in the first post of this series, this job restores the BizTalk databases to a non-operational state, allowing further transaction-logs to be restored. The job uses the  ‘NORECOVERY’ option, leaving each database in the ‘Restoring…’ state, thereby allowing additional transaction-logs to be applied.</p>
<p>In the screenshot below, the Restore Databases job has been enabled and has executed, restoring the full backup set (<strong>BackupType</strong> &#8216;Db&#8217;) and two transaction-log backup sets (<strong>BackupType</strong> &#8216;Lg&#8221;) as highlighted in <span style="color: #008000;"><strong>Green</strong></span>; the transaction log set that has not been restored &#8211; highlighted in <span style="color: #ff6600;"><strong>Orange</strong></span> &#8211; is the N-1 backup-set that is only restored when the standby environment is to be brought online as the new production environment; this is to ensure that we always have one transaction-log that can be restored to the <em>transaction-log mark</em>. Also note that the <strong>RestoredDateTime</strong> column is populated with the UTC time, not the actual system time.</p>
<p><img class="alignnone size-full wp-image-1313" title="LogShippingHistory-RestoredDatabasesv2" src="http://www.modhul.com/wp-content/uploads/2009/09/LogShippingHistory-RestoredDatabasesv2.png" alt="LogShippingHistory-RestoredDatabasesv2" width="1564" height="475" /></p>
<p>One final point to take away when restoring databases is the way in which the restore job handles full backups (<strong>BackupType</strong> &#8216;Db&#8217;). If the production environment creates a full backup &#8211; either because the Backup job has crossed its <em>Frequency</em> window, or the BizTalk Administrator has forced a full backup &#8211; the Log Shipping Restore job will <strong>only restore the transaction log created during the full backup</strong> &#8211; it skips the data-file backup as this isn&#8217;t required to maintain database integrity. As demonstrated in the screenshot below, the transaction logs before and after the full backup have been restored (highlighted in <strong><span style="color: #008000;">Green</span></strong>), however the data-file backup hasn&#8217;t been restored (highlighted in <strong><span style="color: #333399;">Purple</span></strong>); finally, the N-1 transaction log set is yet to be restored (highlighted in <span style="color: #ff6600;"><strong>Orange</strong></span>):</p>
<p><img class="alignnone size-full wp-image-1319" title="LogShippingHistory-RestoredDatabasesFullBackupNotRestored" src="http://www.modhul.com/wp-content/uploads/2009/09/LogShippingHistory-RestoredDatabasesFullBackupNotRestored.png" alt="LogShippingHistory-RestoredDatabasesFullBackupNotRestored" width="1564" height="475" /></p>
<h4>Cleaning the Standby Environment<strong><br />
</strong></h4>
<p>You may want to clean the standby environment <strong>without performing a full reconfiguration of BizTalk Log Shipping</strong>, so that the restore process starts from scratch: the databases are re-created and restoration starts as if it is the first time it has run.</p>
<p>To achieve this, execute the <em>master.dbo.bts_LogShippingClean</em> stored procedure on the standby environment. This stored procedure deletes all references to the previously restored backup-sets and physically deletes the databases that are in the &#8216;restoring&#8217; state. The <em>bts_LogShippingClean</em> stored proc accepts a single parameter <em>@SourceId</em>; the value you should use for this  parameter is based on your log shipping configuration which is available in the <em>master.dbo.bts_LogShippingDatabases</em> table, an example of which is shown below:</p>
<p><img class="alignnone size-full wp-image-1359" title="CleanupLogShipping-SourceId" src="http://www.modhul.com/wp-content/uploads/2009/09/CleanupLogShipping-SourceId.png" alt="CleanupLogShipping-SourceId" width="622" height="190" /></p>
<p>These two actions force the <strong>BTS Log Shipping &#8211; Restore Databases</strong> job to re-create the databases in a restoring state by applying the last full backup, followed by subsequent transaction log backups the next time it runs. This is demonstrated in the screenshot below &#8211; the data-file and transaction-log backups are restored (highlighted in <span style="color: #008000;"><strong>Green</strong></span>), with the N-1 transaction log set is yet to be restored (highlighted in <span style="color: #ff6600;"><strong>Orange</strong></span>); also notice how the full- and transaction log backups <em>are restored sequentially at t</em><em>he same time</em>, within a few seconds of each other (see the <strong>RestoredDateTime</strong> column):</p>
<p><img class="alignnone size-full wp-image-1323" title="LogShippingHistory-LogShippingCleanFullBackupRestored" src="http://www.modhul.com/wp-content/uploads/2009/09/LogShippingHistory-LogShippingCleanFullBackupRestored.png" alt="LogShippingHistory-LogShippingCleanFullBackupRestored" width="1564" height="475" /></p>
<h4>Handling Partial Backup-Sets</h4>
<p>One of the most common errors I encountered while putting together this series of blog posts related to <em>partially restored backups-sets</em>. The SQL Agent <em>BTS Log Shipping &#8211; Restore Databases</em> job automagically detects this condition and raises an error in the Event Log similar to the following:</p>
<blockquote><p>Executed as user: BIZTALKDR\SqlAgent. A partial set has been detected but a valid full backup set does not exist yet.  Please force a full backup on the source server. [SQLSTATE 42000] (Error 50000)  @LastSetId: 487 [SQLSTATE 01000] (Error 0)  @RestoredToMark: 0 [SQLSTATE 01000] (Error 0)  Here101 [SQLSTATE 01000] (Error 0)  @NextSetId: 488 [SQLSTATE 01000] (Error 0)  Here102 [SQLSTATE 01000] (Error 0)   [SQLSTATE 01000] (Error 0)  Statement2: 1 [SQLSTATE 01000] (Error 0)  Statement3: 1 [SQLSTATE 01000] (Error 0).  The step failed.</p></blockquote>
<p>The restore job identifies this error condition by simply checking for a backup set that has both restored and non-restored entries, as shown in the screenshot below (highlighted in <span style="color: #ff6600;"><strong>Orange</strong></span>):</p>
<p><img class="alignnone size-full wp-image-1344" title="LogShippingHistory-PartialRestore" src="http://www.modhul.com/wp-content/uploads/2009/09/LogShippingHistory-PartialRestore.png" alt="LogShippingHistory-PartialRestore" width="1533" height="380" /></p>
<p>When a partially restored backup-set is detected, the restore job will attempt to identify and restore a more recent full data- and transaction-log backup, thereby minimizing the synchronization gap between the production and standby environments. If a more recent full backup cannot be found, the job will fail reporting the error detailed above and either wait until a new full backup is created as the backup job passes its <em>Frequency</em> window, or when the BizTalk Administration <a title="Forcing a Full Backup" href="#ForcingAFullBackup" target="_self">forces a full backup</a>.</p>
<h3><strong>Wrap-Up</strong></h3>
<p>So that’s the end of Part 2. We’ve walked through configuring the backup and restore jobs and looked at how to check that these jobs are working correctly, how to force full backups and problems caused by partial restores.</p>
<p>In Part 3, we’ll demonstrate a long-running BizTalk application that is restored and brought operational on a standby environment using the instructions detailed here.</p>
<h3><strong>Postscript: Creating a Sandbox Environment to Test Log Shipping<br />
</strong></h3>
<p>Before jumping into configuring Log Shipping on a production environment, I would suggest that you become familiar with how the process itself works, either in a test or sandboxed environment. In writing this series of blog posts, I created a small VirtualBox based virtual-machine sandbox with which I could test the various scenario&#8217;s I planned on writing about. This sandbox consisted of:</p>
<ul>
<li>A &#8216;production&#8217; server hosting BizTalk and the BizTalk databases in an operational state;</li>
<li>A &#8216;standby&#8217; server hosting BizTalk and the restored BizTalk databases;</li>
<li>A standalone server acting as an Active Directory Domain Controller.</li>
</ul>
<p>All three servers communicate through a private VirtualBox network and cannot be seen outside of the physical host machine. The &#8216;production&#8217; and &#8216;standby&#8217; servers run Windows Server 2008, plus BizTalk Server 2009 and SQL Server 2008 (all Enterprise Edition), running with 512Mb RAM; the AD server runs Windows Server 2008 Core, running with 256Mb RAM. All three virtual-machines run extremely well given their small amount of RAM, however they need to be located on a separate HDD to the physical machine&#8217;s OS otherwise heavy I/O thrashing causes a significant degradation in performance.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/26fea57a-1442-4826-b44e-8e369e422953/"><img class="zemanta-pixie-img" style="float: right;" src="http://img.zemanta.com/reblog_e.png?x-id=26fea57a-1442-4826-b44e-8e369e422953" alt="Reblog this post [with Zemanta]" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.modhul.com/2009/09/04/configuring-biztalk-backup-for-disaster-recovery-part-2/feed/</wfw:commentRss>
		<slash:comments>34</slash:comments>
		</item>
		<item>
		<title>How-To: Clone or Copy a VirtualBox Virtual Disk</title>
		<link>http://www.modhul.com/2009/06/17/how-to-clone-or-copy-a-virtualbox-virtual-disk/</link>
		<comments>http://www.modhul.com/2009/06/17/how-to-clone-or-copy-a-virtualbox-virtual-disk/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 11:50:00 +0000</pubDate>
		<dc:creator>Nick Heppleston</dc:creator>
				<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[Clone]]></category>
		<category><![CDATA[Copy]]></category>
		<category><![CDATA[VDI]]></category>
		<category><![CDATA[Virtual Disk]]></category>

		<guid isPermaLink="false">http://www.modhul.com/?p=987</guid>
		<description><![CDATA[As a virtual machine environment user, I regularly create &#8216;base&#8217; images of machines that I can reuse &#8211; a base Windows Server 2003 environment, or SQL Server 2005 environment for example. That way, when I need a new machine, I can simply create a copy of the virtual disk and add any additional software I [...]]]></description>
			<content:encoded><![CDATA[<p>As a virtual machine environment user, I regularly create &#8216;base&#8217; images of machines that I can reuse &#8211; a base Windows Server 2003 environment, or SQL Server 2005 environment for example. That way, when I need a new machine, I can simply create a copy of the virtual disk and add any additional software I need, saving myself valuable time creating new virtual environments.</p>
<p>With VMWare&#8217;s various offerings, copying a virtual disk is easy: copy the disk in Windows Explorer and add it to a newly created VM; VMWare will detect that the disk was a copy and create a new unique identifier (UUID) for the disk before adding it to the VM. Easy and painless. Not so with VirtualBox.</p>
<p>With VirtualBox, copying a virtual disk is a bit of a pain. If you copy the disk in Windows Explorer and try and use it in a new VM, VirtualBox will have a hissy fit and display the error shown below. A bit of a &#8216;wordy&#8217; way to say that it already knows about this disk, don&#8217;t you think?</p>
<p align="center"><img class="size-full wp-image-993" title="virtualbox-addcopiedvirtualdisk-hissyfit" src="http://www.modhul.com/wp-content/uploads/2009/06/virtualbox-addcopiedvirtualdisk-hissyfit.png" alt="VirtualBox - Add Copied Virtual Disk - Duplicate UUID Error" width="426" height="307" /></p>
<p>The <em>publicised</em> way around this is to use the command-line <strong>VBoxManage CloneHd</strong> tool, however there is another &#8211; secret and undocumented &#8211; way to clone a disk: the <strong>setvdiuuid</strong> tool. Lets look at these two methods in detail.</p>
<h3><strong>Cloning a Virtual Disk &#8211; The &#8216;Supported&#8217; Method<br />
</strong></h3>
<p>Cloning a disk is (IMHO) a clunky and Unix-y type way of creating a duplicate disk. We need to invoke the <strong>CloneHd </strong>command of the <strong>VBoxManage </strong>tool, supplying the disk to clone and the name of the new &#8216;cloned&#8217; disk. In its simplest form, you would do something like this at the command-line:</p>
<blockquote><p><code>VBoxManage clonehd "DiskToClone.vdi" "ClonedDisk.vdi"</code></p></blockquote>
<p>The VBoxManage tool will chug away and clone the disk for you, creating a new UUID in the process:</p>
<p align="center"><img class="alignnone size-full wp-image-1010" title="virtualbox-clonehd-2" src="http://www.modhul.com/wp-content/uploads/2009/06/virtualbox-clonehd-2.png" alt="virtualbox-clonehd-2" width="1078" height="247" /></p>
<p>The <em>cloned</em> disk can now be used on a new VM without incurring the &#8216;I already know about this disk&#8217; error.</p>
<h3><strong><em>Copying</em> a Disk &#8211; The &#8216;Unsupported&#8217; Method<br />
</strong></h3>
<p>The alternative to the CloneHd tool is an undocumented option available in VBoxManage &#8211; the <strong>setvdiuuid</strong> command. As the command help states: <em>&#8216;This is a development tool and shall only be used to analyse problems. It is completely unsupported and will change in incompatible ways without warning&#8217;</em>. Because of this, let me add a little disclaimer: <strong>I don&#8217;t accept any responsibility if you completely destroy your VM using this procedure.</strong> Having said that, it appears to work without issue, so I&#8217;m more than happy to use it myself &#8211; just make sure that you take a backup of you virtual disk before using it if necessary.</p>
<p>To use the tool, simply create a copy of the virtual disk&#8217;s VDI file in Windows Explorer; open the Windows command-line and issue the <strong>setvdiuuid</strong> command for the newly copied disk:</p>
<blockquote><p><code>VBoxManage internalcommands setvdiuuid "CopiedDisk.vdi"</code></p></blockquote>
<p>The tool will create a new UUID and assign it to the disk:</p>
<p align="center"><img class="alignnone size-full wp-image-1003" title="virtualbox-setvdiuuid" src="http://www.modhul.com/wp-content/uploads/2009/06/virtualbox-setvdiuuid.png" alt="virtualbox-setvdiuuid" width="1078" height="247" /></p>
<p>The new <em>copied</em> disk can now be used on a new VM without incurring the &#8216;I already know about this disk&#8217; error.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.modhul.com/2009/06/17/how-to-clone-or-copy-a-virtualbox-virtual-disk/feed/</wfw:commentRss>
		<slash:comments>38</slash:comments>
		</item>
		<item>
		<title>VirtualBox 2.0.4 Released</title>
		<link>http://www.modhul.com/2008/10/24/virtualbox-204-released/</link>
		<comments>http://www.modhul.com/2008/10/24/virtualbox-204-released/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 10:26:19 +0000</pubDate>
		<dc:creator>Nick Heppleston</dc:creator>
				<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://www.modhul.com/?p=344</guid>
		<description><![CDATA[I&#8217;m thinking about renaming this blog &#8216;Nick Heppleston&#8217;s VirtualBox blog&#8217;&#8230;. the team over at VirtualBox have just released version 2.0.4 &#8211; there are a number of bugfixes in this release. Grab it from the download page.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m thinking about renaming this blog <em>&#8216;Nick Heppleston&#8217;s VirtualBox blog&#8217;</em>&#8230;. the team over at VirtualBox have just released version 2.0.4 &#8211; there are a <a href="http://www.virtualbox.org/wiki/Changelog" target="_blank">number of bugfixes</a> in this release. Grab it from the <a href="http://www.virtualbox.org/wiki/Downloads" target="_blank">download page</a>.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Zemified by Zemanta" href="http://www.zemanta.com/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/zemified_c.png?x-id=8e897ab1-7f66-488f-9aa1-5c86b207d559" alt="Enhanced by Zemanta" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.modhul.com/2008/10/24/virtualbox-204-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Re-sizing a VirtualBox Virtual Disk Image File</title>
		<link>http://www.modhul.com/2008/10/21/re-sizing-a-virtualbox-virtual-disk-image-file/</link>
		<comments>http://www.modhul.com/2008/10/21/re-sizing-a-virtualbox-virtual-disk-image-file/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 22:42:14 +0000</pubDate>
		<dc:creator>Nick Heppleston</dc:creator>
				<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[Hard Disks]]></category>
		<category><![CDATA[Resizing]]></category>
		<category><![CDATA[VDI]]></category>
		<category><![CDATA[Virtual machine]]></category>

		<guid isPermaLink="false">http://www.modhul.com/?p=317</guid>
		<description><![CDATA[Update 17th April 2009: This post has been updated to include the latest suggestions posted to the comments, including using the gparted Live CD instead of the Gentoo Linux System Rescue CD. In my previous post I extolled the virtues of Sun&#8217;s desktop virtualisation software, VirtualBox. One thing niggled me though &#8211; I couldn&#8217;t easily [...]]]></description>
			<content:encoded><![CDATA[<p><em><strong>Update 17th April 2009:</strong> This post has been updated to include the latest suggestions posted to the comments, including using the gparted Live CD instead of the Gentoo Linux System Rescue CD.</em></p>
<p>In my previous post I <a title="Sun’s VirtualBox Rocks - Beats VMWare and VirtualPC anyday" href="http://www.modhul.com/2008/10/20/suns-virtualbox-rocks-beats-vmware-and-virtualpc-anyday/" target="_blank">extolled the virtues of Sun&#8217;s desktop virtualisation software, VirtualBox</a>. One thing niggled me though &#8211; I couldn&#8217;t easily expand a Virtual Disk Image (VDI) and was regularly reaching the space limits of the modest 20Gb disks I was creating; I needed an easy way of expanding disks before I could use it as my main virtualisation platform and felt comfortable in recommending it to my readers.</p>
<p>Given that there is very little information out there on how to perform this task &#8211; apart from a single obscure forum post &#8211; here is my attempt to walk you through the process of expanding a virtual disk image. This guide assumes that you are trying to expand a disk configured with Windows, however the procedure should be pretty much the same for a Linux/OpenSolaris etc. based disk.</p>
<p><strong>Getting Started</strong></p>
<ul>
<li>Ensure that the Virtual Machine that uses the disk you want to re-size is shutdown.</li>
<li>Remove any snapshots you may have &#8211; VirtualBox can go a bit wonky when re-sizing a VDI with snapshots attached (thank to Darren for pointing this one out).</li>
<li>Take a backup of your VDI that you want to resize (by copying and pasting the .vdi file in Windows Explorer) &#8211; if we mess our resize up we can recover back to this backup.</li>
<li>While the VDI file is copying, download the latest stable release of the <a title="Sourceforge: gparted-live-stable" href="http://sourceforge.net/project/showfiles.php?group_id=115843&amp;package_id=271779" target="_blank"><em>gparted Live CD</em> ISO from Sourceforge</a> (approx 95Mb).</li>
<li>While the ISO is downloading, create a new empty Virtual Disk in the VirtualBox console that is the size of the larger disk you need.</li>
<li>Attach the new disk to your virtual machine that needs its disk expanding as the slave disk.</li>
<li>Once the System Rescue CD download has completed, mount the ISO on the virtual machine CD drive.</li>
</ul>
<p><strong>Starting the Disk Image Utility</strong></p>
<ul>
<li>Boot the virtual machine from the mounted ISO &#8211; you may need to reconfigure your VM to ensure that you boot from the CD-ROM drive before the HDD, so change the VM settings as shown below or hit F12 at boot and change there (given that VirtualBox is currently under development, the screenshot below will always be out of date, but I&#8217;m sure you get the idea ;-):</li>
</ul>
<p style="text-align: center;"><img class="size-full wp-image-886" title="virtualboxbootorder" src="http://www.modhul.com/wp-content/uploads/2008/10/virtualboxbootorder.png" alt="virtualboxbootorder" width="518" height="520" /></p>
<ul>
<li>During the boot process the <em>gparted Live CD</em> will prompt you to select the correct keymap &#8211; if you are using a QWERTY keyboard, simple select the &#8216;Don&#8217;t Touch Kepmap&#8217; option; next, you will be prompted for the language settings to be used &#8211; select the appropriate language code, in my case &#8217;02&#8242; for British English; finally, you will be prompted for the X-Windows mode &#8211; select &#8217;0&#8242; to automagically start <em>gparted</em> in an X-Windows session.</li>
<li>Once <em>gparted</em> starts, you will be presented with a graphical representation of your disks &#8211; left-click the left-to-right bar named <strong>/dev/sda1</strong> (your primary hard disk that is to be expanded) and then click on the <strong>Copy</strong> icon.</li>
<li>Select the drop-down-box to the right of the tool-bar and select the second (currently empty) disk &#8211; /dev/sdb (possibly /dev/hdb in your environment), the graphical representation of your disks will change to show you the second slave disk which is currently empty. Click on the <strong>Paste</strong> icon.</li>
<li><em>gparted</em> will <span class="postbody">will prompt you that all data on the new partition will be erased and if you&#8217;re happy, subsequently prompt you on how the disk should be formatted. For a Windows environment, select <strong>MSDOS</strong> (this will give you an NTFS partition, trust me!).<br />
</span></li>
<li><span class="postbody"><em>gparted</em> will finally present you with a slider dialog indicating the desired size of the new disk. Drag the slider to the right to select the maximum size of the new partition on this new disk (I&#8217;d just drag it so the partition consumes the whole disk), as shown in the screenshot below:</span></li>
</ul>
<p style="text-align: center;"><img class="alignnone size-full wp-image-896" title="selectsizeofnewpartitiongparted" src="http://www.modhul.com/wp-content/uploads/2008/10/selectsizeofnewpartitiongparted.png" alt="selectsizeofnewpartitiongparted" width="782" height="534" /></p>
<ul>
<li><span class="postbody">Click the <strong>Apply</strong> icon, you&#8217;ll be presented with something along the lines of the screenshot below as the contents of the source disk are copied to the new, larger, disk:</span></li>
</ul>
<p style="text-align: center;"><a href="http://www.modhul.com/wp-content/uploads/2008/10/gparted-applying.png"><img class="size-full wp-image-326 aligncenter" title="gparted-applying" src="http://www.modhul.com/wp-content/uploads/2008/10/gparted-applying.png" alt="" width="781" height="522" /></a></p>
<ul>
<li>Once the copy has completed (approx. 35 mins to create a 30Gb disk from an original 20Gb disk), you will need to mark the new disk as bootable (if this is to be a bootable partition &#8211; if not, simply skip the next step).</li>
<li>To mark the partition as bootable, right-click the graphical representation of the new disk and left-click <strong>Manage Flags</strong>. In the dialog that appears, select <strong>Boot </strong>and click Ok to close. <em>gparted</em> will apply the necessary flag and re-scan your disks.</li>
<li>Close <em>gparted</em> and click the <strong>Exit</strong> icon to shutdown the system.</li>
</ul>
<p><strong>Completing the Re-Sizing</strong></p>
<ul>
<li>Once the virtual machine has powered off, re-configure the hard disks to use the newly created/copied disk as the primary and remove the old primary disk from the system; finally, unmount the System Rescue ISO from the CD-ROM.</li>
<li>Power on your new VM and you should be presented with the the usual Windows boot sequence; if you are just presented with a black screen with a flashing cursor at the top left-hand corner of the screen, there isn&#8217;t a boot sector on the disk, so restart <em>gparted</em> and add the boot flag as directed above.</li>
<li>Hopefully, your virtual machine will start without issue. Windows may perform a check of the disk during boot. Once logged-in, open Windows Explorer and confirm that the newly created drive is the new larger size.</li>
</ul>
<p>The procedure described above has been tested on Windows Server 2003 and works without issue (although the first time around I forgot to apply the boot flags&#8230;), so it should work seamlessly on Windows XP, Vista and Windows Server 2008.</p>
<p>I appreciate that this procedure does involve running a flavour of Linux to acheive the desired results, however its very straightforward and shouldn&#8217;t be off putting to a Linux novice.</p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a href="http://lifehacker.com/5134980/gizmo-drive-mounts-iso-bin-and-vhd-disk-images">Gizmo Drive Mounts ISO, BIN, and VHD Disk Images</a> (lifehacker.com)</li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Zemified by Zemanta" href="http://reblog.zemanta.com/zemified/af72bf75-dfdf-4a54-a37b-93dbb882f1d9/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/reblog_e.png?x-id=af72bf75-dfdf-4a54-a37b-93dbb882f1d9" alt="Reblog this post [with Zemanta]" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.modhul.com/2008/10/21/re-sizing-a-virtualbox-virtual-disk-image-file/feed/</wfw:commentRss>
		<slash:comments>104</slash:comments>
		</item>
		<item>
		<title>Sun&#8217;s VirtualBox Rocks &#8211; Beats VMWare and VirtualPC anyday</title>
		<link>http://www.modhul.com/2008/10/20/suns-virtualbox-rocks-beats-vmware-and-virtualpc-anyday/</link>
		<comments>http://www.modhul.com/2008/10/20/suns-virtualbox-rocks-beats-vmware-and-virtualpc-anyday/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 21:58:50 +0000</pubDate>
		<dc:creator>Nick Heppleston</dc:creator>
				<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[Virtual machine]]></category>
		<category><![CDATA[Virtual PC]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.modhul.com/?p=291</guid>
		<description><![CDATA[I&#8217;m an avid user of virtual machines, primarily for development work on the desktop, but also in the Enterprise. For desktop virtualisation I&#8217;ve tried them all &#8211; Microsoft&#8217;s Virtual PC, VMWare Server and I&#8217;m now hooked on VirtualBox, Sun&#8217;s open-source offering to the gods of virtualisation. The performance is excellent, it &#8216;feels&#8217; like a stable [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-271" title="Sun xVM VirtualBox" src="http://upload.wikimedia.org/wikipedia/en/d/d5/Virtualbox_logo.png" alt="Sun xVM VirtualBox" height="128" width="128"/>I&#8217;m an avid user of virtual machines, primarily for development work on the desktop, but also in the Enterprise. For desktop virtualisation I&#8217;ve tried them all &#8211; Microsoft&#8217;s Virtual PC, VMWare Server and I&#8217;m now hooked on <a href="http://www.virtualbox.org/" target="_blank">VirtualBox</a>, Sun&#8217;s open-source offering to the gods of virtualisation. The performance is excellent, it &#8216;feels&#8217; like a stable product and is actively maintained with regular releases.</p>
<p>For me, Virtual PC never felt stable enough and when running several VM&#8217;s at once to test clustered BizTalk installations &#8211; I could never get the desired performance. I moved to VMWare&#8217;s free VMWare Server which felt a lot more stable and ran quickly, but thrashed I/O. After reading Tim Anderson&#8217;s <a href="http://www.itwriting.com/blog/660-virtualbox-is-amazing-50-faster-than-virtual-pc-on-my-pc.html" target="_blank">glowing blog post on VirtualBox</a> a good few months ago, I decided to take the plunge and have never looked back.</p>
<p>Restoring a VM from a saved state and saving itself is blisteringly quick &#8211; much quicker than either VMWare or Virtual PC; the VM&#8217;s themselves are rock solid, even after being started and stopped several times during a working week and don&#8217;t cause the same I/O problems previously experienced. The admin &#8216;console&#8217; is based on the Trolltech Qt tool set and although slightly different to VirtualPC and VMWare products it is intuitive annd easy to use. More importantly, VirtualBox can read VMWare disk images (and with some work, VirtualPC images), so no need to re-create all of those environments!</p>
<p>VirtualBox was originally developed by Innotek GmbH, but was <a href="http://www.sun.com/software/innotek/" target="_blank">acquired by Sun earlier in the year</a> to form the desktop element of the company&#8217;s <a href="http://www.sun.com/software/products/virtualbox/" target="_blank">xVM virtualisation strategy</a>. There doesn&#8217;t appear to be a development roadmap available on the website, but they have an excellent release cycle with regular bug and stability fixes. All in all, an excellent product that gets the seal of approval from this blogger.</p>
<p>If you&#8217;re interested in trying out VirtualBox, head on over to the <a href="http://www.virtualbox.org/wiki/Downloads" target="_blank">downloads page</a> and grab a copy of their latest release. Let me know how you get on!</p>
<h3>Additional VirtualBox Reading on this Blog</h3>
<p>You may be interested in reading some of my other VirtualBox related posts:</p>
<ul style="padding-left: 30px;">
<li><a title="Permanent Link to &quot;Re-sizing a VirtualBox Virtual Disk Image File&quot;" rel="bookmark" href="../2008/10/21/re-sizing-a-virtualbox-virtual-disk-image-file/">How-To: Re-size a VirtualBox Virtual Disk Image File</a></li>
<li><a title="Permanent Link to &quot;How-To: Clone or Copy a VirtualBox Virtual Disk&quot;" rel="bookmark" href="../2009/06/17/how-to-clone-or-copy-a-virtualbox-virtual-disk/">How-To: Clone or Copy a VirtualBox Virtual Disk</a></li>
<li><a title="Permanent Link to &quot;VirtualBox 3.0: New Full-Screen Toolbar&quot;" rel="bookmark" href="../2009/07/05/virtualbox-3-0-new-full-screen-toolbar/">VirtualBox 3.0: New Full-Screen Toolbar</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.modhul.com/2008/10/20/suns-virtualbox-rocks-beats-vmware-and-virtualpc-anyday/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

