<?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>No Name Blog &#187; clvm</title>
	<atom:link href="http://ebroder.net/tag/clvm/feed/" rel="self" type="application/rss+xml" />
	<link>http://ebroder.net</link>
	<description>Because all the cool names are taken</description>
	<lastBuildDate>Mon, 14 Jun 2010 03:14:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Complex Systems and Simple Failures</title>
		<link>http://ebroder.net/2010/01/25/complex-systems-and-simple-failures/</link>
		<comments>http://ebroder.net/2010/01/25/complex-systems-and-simple-failures/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 13:45:36 +0000</pubDate>
		<dc:creator>evan</dc:creator>
				<category><![CDATA[planet sipb]]></category>
		<category><![CDATA[posts]]></category>
		<category><![CDATA[clustering]]></category>
		<category><![CDATA[clvm]]></category>
		<category><![CDATA[complexity]]></category>
		<category><![CDATA[invirt]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[lvm]]></category>

		<guid isPermaLink="false">http://ebroder.net/?p=369</guid>
		<description><![CDATA[Complex systems do not always fail for complex reasons. They quite often fail for the absolutely dumbest possible reasons. - nelhage Like say, for instance, when you&#8217;re debugging why one of your servers takes 7 seconds to do what the other server can do in less than 1. root@black-mesa:~# time lvcreate -n test -L 1G <a href='http://ebroder.net/2010/01/25/complex-systems-and-simple-failures/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<blockquote><p>Complex systems do not always fail for complex reasons. They quite often fail for the absolutely dumbest possible reasons.</p>
<p>- <a href="http://twitter.com/nelhage/status/5544628422">nelhage</a></p></blockquote>
<p>Like say, for instance, when you&#8217;re debugging why one of your servers takes 7 seconds to do what the other server can do in less than 1.</p>
<blockquote><pre>root@black-mesa:~# time lvcreate -n test -L 1G xenvg
 Logical volume "test" created

real    0m0.309s
user    0m0.000s
sys     0m0.008s
root@torchwood-institute:~# time lvcreate -n test -L 1G xenvg
 Logical volume "test" created

real    0m7.282s
user    0m6.396s
sys     0m0.312s</pre>
</blockquote>
<p>Sometimes it turns out to just be that the directory it&#8217;s logging to takes 7 seconds to list:</p>
<blockquote><pre>root@black-mesa:~# time ls -a /etc/lvm/archive/ >/dev/null

real    0m0.005s
user    0m0.000s
sys     0m0.004s

root@torchwood-institute:~# time ls -a /etc/lvm/archive/ >/dev/null

real    0m7.007s
user    0m6.644s
sys     0m0.364s</pre>
</blockquote>
<p>And occasionally, that&#8217;s not just because your disk is failing or you&#8217;re running into caching issues. Occasionally, it&#8217;s just because that directory somehow has hundreds of thousands of files in it:</p>
<blockquote><pre>root@torchwood-institute:~# ls -a /etc/lvm/archive | wc -l
301369</pre>
</blockquote>
<p>And very, very rarely, if the gods are smiling on you, deleting those hundreds of thousands of files causes things to work again.</p>
<blockquote><pre>root@torchwood-institute:~# find /etc/lvm/archive -name '.lvm_torchwood-institute.mit.edu_*' -delete
root@torchwood-institute:~# time ls -a /etc/lvm/archive >/dev/null

real	0m0.015s
user	0m0.000s
sys	0m0.012s
root@torchwood-institute:~# time lvcreate -n test -L 1G xenvg
  Logical volume "test" created

real	0m0.341s
user	0m0.000s
sys	0m0.016s
root@torchwood-institute:~# time lvremove -f /dev/xenvg/test
  Logical volume "test" successfully removed

real	0m0.226s
user	0m0.004s
sys	0m0.012s</pre>
</blockquote>
<p>It kind of sucks to spend a week on and off, talking with developers, trying to figure out what&#8217;s going on. But it&#8217;s also really nice when it turns out to be something I can just fix myself.</p>
]]></content:encoded>
			<wfw:commentRss>http://ebroder.net/2010/01/25/complex-systems-and-simple-failures/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

