<?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>Anthony's Blog &#187; mdadm</title>
	<atom:link href="http://www.anthonyldechiaro.com/blog/archives/category/linux/mdadm-linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.anthonyldechiaro.com/blog</link>
	<description>Thoughts, ideas, and ramblings of a crazed mind</description>
	<lastBuildDate>Fri, 05 Jun 2009 00:01:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Random md-device recovery?</title>
		<link>http://www.anthonyldechiaro.com/blog/archives/53</link>
		<comments>http://www.anthonyldechiaro.com/blog/archives/53#comments</comments>
		<pubDate>Sun, 05 Oct 2008 07:50:49 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[admin]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mdadm]]></category>
		<category><![CDATA[data integrity]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.anthonyldechiaro.com/blog/?p=53</guid>
		<description><![CDATA[I was taking a mid-afternoon nap (yes at 3 am, I work nights) and I came back to my PC to see CPU usage on my server hovering around 15% &#8211; not at idle like usual.  Doing a quick check revealed md0_raid5 and md0_resync running which is normally not a good sign.
mdadm &#8211;detail /dev/md0 showed [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I was taking a mid-afternoon nap (yes at 3 am, I work nights) and I came back to my PC to see CPU usage on my server hovering around 15% &#8211; not at idle like usual.  Doing a quick check revealed <strong>md0_raid5</strong> and <strong>md0_resync</strong> running which is normally not a good sign.</p>
<p>mdadm &#8211;detail /dev/md0 showed the following:</p>
<pre>    Update Time : Sun Oct  5 03:22:19 2008
          State : clean, recovering
 Active Devices : 4
Working Devices : 4
 Failed Devices : 0
  Spare Devices : 0
         Layout : left-symmetric
     Chunk Size : 64K
 Rebuild Status : 85% complete</pre>
<p style="text-align: justify;">Uh oh.  Why was the array rebuilding itself?  All drives were listed as active and working &#8230;  but did we experience a drive momentarily dropping from the array or a SATA device reset?  Was this a sign of impending hardware failure?  Tailing /var/log/messages displayed this useful piece of information:</p>
<pre>Oct  5 01:06:01 rigel md: data-check of RAID array md0</pre>
<p>Ok, so &#8220;data-check&#8221; doesn&#8217;t sound so worrysome.  A quick Google search <a title="aha!" href="http://ubuntuforums.org/showpost.php?p=5518454&amp;postcount=36">revealed</a> this nice gem:</p>
<pre>root@rigel:~# tail /etc/cron.d/mdadm
# By default, run at 01:06 on every Sunday, but do nothing unless the day of
# the month is less than or equal to 7. Thus, only run on the first Sunday of
# each month. crontab(5) sucks, unfortunately, in this regard; therefore this
# hack (see #380425).
6 1 * * 0 root [ -x /usr/share/mdadm/checkarray ] &amp;&amp; [ $(date +\%d) -le 7 ] &amp;&amp; /usr/share/mdadm/checkarray --cron --all --quiet</pre>
<p style="text-align: justify;">Ah, so this is the first Sunday of the month and the check kicked off at 1:06 AM.  You trixies Ubuntu.  Apparently a <a href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/212684">bug</a> has been filed causing performance issues on some boxes.  Good idea to verify data integrity, although slightly more obvious notice would be nice.</p>
 <img src="http://www.anthonyldechiaro.com/blog/wp-content/plugins/feed-statistics.php?view=1&post_id=53" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.anthonyldechiaro.com/blog/archives/53/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
