<?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>Levi McCormick</title>
	<atom:link href="http://levimccormick.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://levimccormick.com</link>
	<description>.com</description>
	<lastBuildDate>Sat, 31 Jul 2010 12:41:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Network Monitoring with SmokePing</title>
		<link>http://levimccormick.com/2010/07/31/network-monitoring-with-smokeping/</link>
		<comments>http://levimccormick.com/2010/07/31/network-monitoring-with-smokeping/#comments</comments>
		<pubDate>Sat, 31 Jul 2010 12:41:40 +0000</pubDate>
		<dc:creator>Levi</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[network]]></category>

		<guid isPermaLink="false">http://levimccormick.com/?p=15</guid>
		<description><![CDATA[I decided to set up SmokePing, an open source network monitoring utility. I installed it on an Ubuntu Server using apt and with some minor configuration, it was running smoothly. It presents ping tests in various graphs, which you can drill down to specific points and see what the latency is at that time.]]></description>
			<content:encoded><![CDATA[<p>Our remote sites are connected by a Managed MPLS. While a managed service frees us from the headache of maintaining the equipment and configurations, it also prevents us from troubleshooting properly. The only tools provided are bandwidth utilization reports, which currently, do not work.</p>
<p>After my Kaspersky Antivirus rollout, remote users started to complain about slow network speeds. Further investigation intermittently showed high latency (~200ms - 400ms) on our T1 lines. A phone call to our service provider resulted in the usual: "Call us when it is happening."</p>
<p>I decided to set up <a title="SmokePing" href="http://oss.oetiker.ch/smokeping/" target="_blank">SmokePing</a>, an open source network monitoring utility. I installed it on an Ubuntu Server using apt and with some minor configuration, it was running smoothly. It presents ping tests in various graphs, which you can drill down to specific points and see what the latency is at that time. I have it set up to run 20 pings to each of my remote routers every minute. After monitoring for a few days, I was able to narrow down that our latency was caused by remote Kaspersky clients connecting to the main server for updates. It was maxing out the links (which, if my utilization reports worked, I would have been able to determine).</p>
<p>SmokePing can be configured to monitor all kinds of network services as well. It is an essential tool in the OpenSource Network Administrator's toolkit.</p>
<p>A word of warning, if you change your ping settings, you need to delete some rrd files associated with SmokePing, which will destroy your history.</p>
]]></content:encoded>
			<wfw:commentRss>http://levimccormick.com/2010/07/31/network-monitoring-with-smokeping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Backups using DeltaCopy</title>
		<link>http://levimccormick.com/2010/01/29/windows-backups-using-deltacopy/</link>
		<comments>http://levimccormick.com/2010/01/29/windows-backups-using-deltacopy/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 15:46:41 +0000</pubDate>
		<dc:creator>Levi</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[backup]]></category>

		<guid isPermaLink="false">http://levimccormick.com/?p=5</guid>
		<description><![CDATA[...we had six remote sites, each with a Windows file server backing up to a set of DAT72 tapes, that were stored on-site. The remote sites would not pay for off-site backup, so I set out to develop a way to back them up to our headquarters in Minnesota.]]></description>
			<content:encoded><![CDATA[<p>When I started working for my current employer, we had six remote sites, each with a Windows file server backing up to a set of DAT72 tapes, that were stored on-site. The remote sites would not pay for off-site backup, so I set out to develop a way to back them up to our headquarters in Minnesota.</p>
<p>Our set up is each remote site connected via MPLS VPN over a T1 line to our main site in Minnesota. Our site in Minnesota has two bundled T1 lines to the VPN and then two bundled T1's to the Internet. With bandwidth limited to 1.5Mbps at each site, I needed an efficient solution.</p>
<p>I elected to use rsync because it will transfer only changed parts of files, rather then copying the entire file. Rsync is a very robust file copy program that can push and pull files. I settled on using <a href="http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp">DeltaCopy</a>, a windows based rsync wrapper.</p>
<p>For a backup target,  I purchased a Buffalo Terastation II Pro. It has four 500GB drives in a Raid 5 array, giving me 1.5TB of storage with fault-tolerance. I hacked the Buffalo to give me command line access and then configured rsync daemons to run on the device.</p>
<p>I configured each Windows server to run the DeltaCopy client to synchronize the shares to the Buffalo drive. It will then email the results of the backup to me. The DeltaCopy client ignores file permissions and catches changes in each file in the share. Total storage used was around 300GB.</p>
<p>After getting it all working, I realized it was backing up files I didn't want included, like tmp files and others. I set up an exclude file to remove all these unwanted files.  I discovered you could configure DeltaCopy with most rsync parameters using the Options tab. I added the line <em>--exclude-from "/cygdrive/C/tools/excludes.txt"</em> and put the excludes in that file. Then, I went through the backup and removed the unwanted files using the linux find command.</p>
<p>After getting backups down to a manageable level, I decided that it would be nice to keep changes made to files. After reading up on the command line options of rsync, I decided to use some environmental variables to store backed up files by date. I tried to use --backup --backup-dir="date" using both linux date commands and windows date commands, but neither would work. I settled on using --backup --backup-dir="XXXX-XX-XX" and then setting up a script on the backup server that renames all my XXXX-XX-XX to the date of the backup. It works very well.</p>
<p>Backup times have been reduced greatly. On the old tape based backup, nightly differential backups would happen at each location at 10pm. Each backup would run for between 1 and 2 hours. Full backups would happen on Thursday nights, and last between 4 and 6 hours. Now, each site generates a full backup every night in about 15 minutes. It also keeps old versions and has offsite protection.</p>
<p>Restoring files is as simple as copying the files back to their original location. In the event of a catastrophic loss, data can be copied to external HD's hooked to each backup server and sent overnight to the location. Fedex is still faster than pushing large amounts of data over a T1 line.</p>
<p>This project took about a week to research, a week to configure and two months to fine-tune. Since it's launch, it has eliminated most of the user error involved with failed backups.</p>
<p>If you have questions or suggestions, I'd like to hear them.</p>
]]></content:encoded>
			<wfw:commentRss>http://levimccormick.com/2010/01/29/windows-backups-using-deltacopy/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Purpose</title>
		<link>http://levimccormick.com/2010/01/17/purpose/</link>
		<comments>http://levimccormick.com/2010/01/17/purpose/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 22:10:14 +0000</pubDate>
		<dc:creator>Levi</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://levimccormick.com/?p=3</guid>
		<description><![CDATA[I will be using this blog to document projects I work on for my job. I post these to help other people who experience the same problems, and to gain input on any oversights I may have about said project. Check back often for updates or subscribe to my RSS feed. Thanks.]]></description>
			<content:encoded><![CDATA[<p>I will be using this blog to document projects I work on for my job. I post these to help other people who experience the same problems, and to gain input on any oversights I may have about said project. Check back often for updates or subscribe to my RSS feed. Thanks.</p>
]]></content:encoded>
			<wfw:commentRss>http://levimccormick.com/2010/01/17/purpose/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

