<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: How to get the status of a Linux software raid?</title> <atom:link href="http://www.faqforge.com/linux/how-to-get-the-status-of-the-software-raid-on-linux/feed/" rel="self" type="application/rss+xml" /><link>http://www.faqforge.com/linux/how-to-get-the-status-of-the-software-raid-on-linux/</link> <description>Just another WordPress weblog</description> <lastBuildDate>Sat, 04 Feb 2012 02:28:24 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: John</title><link>http://www.faqforge.com/linux/how-to-get-the-status-of-the-software-raid-on-linux/comment-page-1/#comment-154</link> <dc:creator>John</dc:creator> <pubDate>Tue, 30 Mar 2010 20:50:20 +0000</pubDate> <guid
isPermaLink="false">http://www.faqforge.com/?p=102#comment-154</guid> <description>Code a bit messy above.
[code]
&lt;?php
header( &#039;refresh: 300; url=/sensors/&#039; );echo &#039;&#039;;$raidStat = shell_exec(&quot;cat /proc/mdstat&quot;);
echo &quot;RAID Status (mdstat):  &lt;pre&gt;$raidStat&lt;/pre&gt;&quot;;echo &#039;&#039;;
?&gt;
[/code]</description> <content:encoded><![CDATA[<p>Code a bit messy above.<br
/> [code]<br
/> &lt;?php<br
/> header( &#039;refresh: 300; url=/sensors/&#039; );</p><p>echo &#039;';</p><p>$raidStat = shell_exec("cat /proc/mdstat");<br
/> echo "RAID Status (mdstat):<pre>$raidStat</pre><p>";</p><p>echo '';<br
/> ?&gt;<br
/> [/code]</p> ]]></content:encoded> </item> <item><title>By: John</title><link>http://www.faqforge.com/linux/how-to-get-the-status-of-the-software-raid-on-linux/comment-page-1/#comment-153</link> <dc:creator>John</dc:creator> <pubDate>Tue, 30 Mar 2010 20:48:58 +0000</pubDate> <guid
isPermaLink="false">http://www.faqforge.com/?p=102#comment-153</guid> <description>I extended this to an Administrator only page in Drupal using PHP input format.  This way I can see the status from any browser without having to run putty or other terminal program.  The header command refreshes the page every 5 minutes and the output of the mdstat can be styled by using CSS on the div.&lt;?php
header( &#039;refresh: 300; url=/sensors/&#039; );
echo &#039;&#039;;
$raidStat = shell_exec(&quot;cat /proc/mdstat&quot;);
echo &quot;RAID Status (mdstat):  &lt;pre&gt;$raidStat&lt;/pre&gt;&quot;;
echo &#039;&#039;;
?&gt;</description> <content:encoded><![CDATA[<p>I extended this to an Administrator only page in Drupal using PHP input format.  This way I can see the status from any browser without having to run putty or other terminal program.  The header command refreshes the page every 5 minutes and the output of the mdstat can be styled by using CSS on the div.</p><p>&lt;?php<br
/> header( &#039;refresh: 300; url=/sensors/&#039; );<br
/> echo &#039;&#8217;;<br
/> $raidStat = shell_exec(&#8220;cat /proc/mdstat&#8221;);<br
/> echo &#8220;RAID Status (mdstat):<pre>$raidStat</pre><p>&#8220;;<br
/> echo &#8221;;<br
/> ?&gt;</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 1/9 queries in 0.010 seconds using disk: basic
Object Caching 264/267 objects using disk: basic

Served from: www.faqforge.com @ 2012-02-05 00:46:05 -->
