<?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>Karl Katzke &#187; vmware</title>
	<atom:link href="http://www.karlkatzke.com/categories/vmware/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.karlkatzke.com</link>
	<description>Geek of the Week</description>
	<lastBuildDate>Thu, 22 Jul 2010 16:14:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Backing Up Two Ways from Sunday</title>
		<link>http://www.karlkatzke.com/backing-up-two-ways-from-sunday/</link>
		<comments>http://www.karlkatzke.com/backing-up-two-ways-from-sunday/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 18:25:07 +0000</pubDate>
		<dc:creator>karlkatzke</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.karlkatzke.com/?p=555</guid>
		<description><![CDATA[One method of backup or recovery isn&#8217;t enough. Period. No matter what anyone tells you, what the book says, what your boss says, or what you think you need, you need to be backing things up in many ways. Here&#8217;s a few examples. MySQL Theoretically, you could recover anything you needed from the binary log, [...]]]></description>
			<content:encoded><![CDATA[<p>One method of backup or recovery isn&#8217;t enough. Period. No matter what anyone tells you, what the book says, what your boss says, or what you think you need, you need to be backing things up in many ways. </p>
<p>Here&#8217;s a few examples. </p>
<h3>MySQL</h3>
<p>Theoretically, you could recover anything you needed from the binary log, as long as you&#8217;ve got a good starting point and a good ending point.  (This, by the way, is a good reason to flush the binary logs and take a backup on a regular basis.) What if your binary log&#8217;s corrupted, though? You need to fall back to a full SQL backup &#8230; which you&#8217;re doing regularly, right? </p>
<p>If your binary log is corrupted, any mirrors you are using that are based on that binary log are corrupted as well. </p>
<p>Case in point: I had a client with a very active, very large database&#8230; north of 15GB in InnoDB. The binary log hit a bug and corrupted itself. The backups were being done from that mirror so that they didn&#8217;t interrupt the main machine&#8217;s processing, but they only kept a few days worth, so we couldn&#8217;t use those backups to restore. The most recent un-corrupted dump from the main machine had been taken three months before. Luckily, the client had done some application-level backups to an XML format, and we were able to (laboriously) restore from that. It cost about $3,000 because they didn&#8217;t want to degrade their forum&#8217;s performance for a half hour every night and pay for an extra TB or storage or so to keep more than a few days worth of upgrades. </p>
<h3>Servers</h3>
<p>Scenario: Hard drive gets corrupted or dies. You need to get the machine back up quickly. You have a snapshot of the machine &#8230; but your snapshot is on the same storage as that machine unless you back it up somewhere else. </p>
<p>On top of that, storage requirements have been growing rapidly for servers. Where a linux server take less than 1GB, Windows 2008R2 can take up 20GB with system files alone. (In fact, if you plan to have any data on that server, or keep any logs, we&#8217;d recommend going with 40GB minimum for your C: drive.) It&#8217;s important to back that up to something that&#8217;s not on the same system disks. </p>
<p>Better yet, take a hint from the application-level backups &#8212; and back up your registry, configuration files, and data separately from the snapshot. We tend to use RSync for this role and put it in a rolling-backup mode with the &#8211;link-dest option to ease recovery. </p>
<h3>VMWare</h3>
<p>Same principle as above. Snapshots are usually stored in the same datastore. Datastore goes bye-bye, so do your snapshots. </p>
<p>There&#8217;s some great products out there that can really help with this issue. The one we use is <a href="http://www.veeam.com/vmware-esx-backup.html">VEEAM Replication and Backup</a>. It can be used to replicate a snapshot to another VMWare cluster, or back up the datastore files at a consistent snapshot point and then copy them elsewhere all in one step. We use a two-step process &#8212; we keep them locally on the backup server and also transmit them to another datacenter across campus. </p>
<p>When using VEEAM with Windows, make sure that VMWare Tools is installed and that you enable the VSS integration. (You&#8217;ll also need to make sure that the administrative share option on the system drives are enabled, and that the appropriate firewall ports are opened.) This ensures that you&#8217;ve got a transactionally consistent backup snapshot. </p>
<h3>Practice, practice, practice</h3>
<p>The only way to make sure that you can recover from a disaster is to test recovering from a disaster. At least once a year, we practice recovering from a worst-case scenario. That means bringing up a new machine from scratch, re-implementing all of the options and configurations, and then restoring the data. Despite that kind of restoration being something that should never happen, it does &#8212; and practice gives you insights into how to improve the processes and turns a recovery operation from an expensive nightmare that sets back all of your other processes into something that you can execute quickly and professionally. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.karlkatzke.com/backing-up-two-ways-from-sunday/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LSI Logic SAS Driver for VMWare vSphere 4</title>
		<link>http://www.karlkatzke.com/lsi-logic-sas-driver-for-vmware-vsphere-4/</link>
		<comments>http://www.karlkatzke.com/lsi-logic-sas-driver-for-vmware-vsphere-4/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 01:18:54 +0000</pubDate>
		<dc:creator>karlkatzke</dc:creator>
				<category><![CDATA[vmware]]></category>
		<category><![CDATA[iSCSI]]></category>

		<guid isPermaLink="false">http://www.karlkatzke.com/?p=542</guid>
		<description><![CDATA[If you&#8217;re using raw access to storage LUNs with VMWare, and you&#8217;re using Windows, you can use the LSI Logic SAS virtual SCSI adapter option and create virtual drives. This is better than using the Microsoft iSCSI initiator because you can edit the drive mappings with the machine powered off and you can clone the [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re using raw access to storage LUNs with VMWare, and you&#8217;re using Windows, you can use the LSI Logic SAS virtual SCSI adapter option and create virtual drives. This is better than using the Microsoft iSCSI initiator because you can edit the drive mappings with the machine powered off and you can clone the machine and easily redirect all of your storage before powering the machine on. </p>
<p>The correct driver to be using is <a href="http://www.lsi.com/storage_home/products_home/standard_product_ics/sas_ics/lsisas1068/index.html">the LSI SAS 1068 driver</a>. You&#8217;ll need to make a floppy image using an image tool &#8212; if you&#8217;ve access to a linux box, just use DD to create the image and then mount it and write files to it. If you&#8217;re on Windows, the venerable WinImage and other utilities exist. Either way, you&#8217;ll need to rename the file with a .flp extension and mount it on boot in your Windows VM in order to load the driver to see the drives. </p>
<p>I&#8217;ve been getting some pretty darned good performance with that and iSCSI LUNs on my Solaris server. I haven&#8217;t (yet) put together a decent test and some metrics to back it, but the machines on raw device LUNs feel a *lot* snappier than the machines that are on a 400GB VMFS. A good basic tutorial with iSCSI and ZFS is here: <a href="http://blog.laspina.ca/ubiquitous/running-zfs-over-iscsi-as-a-vmware-vmfs-store">Running ZFS Over iSCSI as a vmware VMFS store</a> &#8212; but note that I&#8217;m using raw LUNs after not being happy with the VMFS performance with a half-dozen hosts doing heavy I/O. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.karlkatzke.com/lsi-logic-sas-driver-for-vmware-vsphere-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
