]> pere.pagekite.me Git - homepage.git/blobdiff - blog/index.rss
Generated.
[homepage.git] / blog / index.rss
index 0ceaf9dd0b43ff48d1ec0e1792e5ecc98b34553e..3294493115a9ef7d4d87fd66c468f7f0451b93f4 100644 (file)
@@ -6,6 +6,64 @@
                 <link>http://people.skolelinux.org/pere/blog/</link>
                 <atom:link href="http://people.skolelinux.org/pere/blog/index.rss" rel="self" type="application/rss+xml" />
        
                 <link>http://people.skolelinux.org/pere/blog/</link>
                 <atom:link href="http://people.skolelinux.org/pere/blog/index.rss" rel="self" type="application/rss+xml" />
        
+       <item>
+               <title>How to figure out which RAID disk to replace when it fail</title>
+               <link>http://people.skolelinux.org/pere/blog/How_to_figure_out_which_RAID_disk_to_replace_when_it_fail.html</link>
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/How_to_figure_out_which_RAID_disk_to_replace_when_it_fail.html</guid>
+                <pubDate>Tue, 14 Feb 2012 21:25:00 +0100</pubDate>
+               <description>&lt;p&gt;Once in a while my home server have disk problems.  Thanks to Linux
+Software RAID, I have not lost data yet (but
+&lt;a href=&quot;http://comments.gmane.org/gmane.linux.raid/34532&quot;&gt;I was
+close&lt;/a&gt; this summer :).  But once a disk is starting to behave
+funny, a practical problem present itself.  How to get from the Linux
+device name (like /dev/sdd) to something that can be used to identify
+the disk when the computer is turned off?  In my case I have SATA
+disks with a unique ID printed on the label.  All I need is a way to
+figure out how to query the disk to get the ID out.&lt;/p&gt;
+
+&lt;p&gt;After fumbling a bit, I
+&lt;a href=&quot;http://www.cyberciti.biz/faq/linux-getting-scsi-ide-harddisk-information/&quot;&gt;found
+that hdparm -I&lt;/a&gt; will report the disk serial number, which is
+printed on the disk label.  The following (almost) one-liner can be
+used to look up the ID of all the failed disks:&lt;/p&gt;
+
+&lt;blockquote&gt;&lt;pre&gt;
+for d in $(cat /proc/mdstat |grep &#39;(F)&#39;|tr &#39; &#39; &quot;\n&quot;|grep &#39;(F)&#39;|cut -d\[ -f1|sort -u);
+do
+    printf &quot;Failed disk $d: &quot;
+    hdparm -I /dev/$d |grep &#39;Serial Num&#39;
+done
+&lt;/blockquote&gt;&lt;/pre&gt;
+
+&lt;p&gt;Putting it here to make sure I do not have to search for it the
+next time, and in case other find it useful.&lt;/p&gt;
+
+&lt;p&gt;At the moment I have two failing disk. :(&lt;/p&gt;
+
+&lt;blockquote&gt;&lt;pre&gt;
+Failed disk sdd1:       Serial Number:      WD-WCASJ1860823
+Failed disk sdd2:       Serial Number:      WD-WCASJ1860823
+Failed disk sde2:       Serial Number:      WD-WCASJ1840589
+&lt;/blockquote&gt;&lt;/pre&gt;
+
+&lt;p&gt;The last time I had failing disks, I added the serial number on
+labels I printed and stuck on the short sides of each disk, to be able
+to figure out which disk to take out of the box without having to
+remove each disk to look at the physical vendor label.  The vendor
+label is at the top of the disk, which is hidden when the disks are
+mounted inside my box.&lt;/p&gt;
+
+&lt;p&gt;I really wish the check_linux_raid Nagios plugin for checking Linux
+Software RAID in the
+&lt;a href=&quot;http://packages.qa.debian.org/n/nagios-plugins.html&quot;&gt;nagios-plugins-standard&lt;/a&gt;
+debian package would look up this value automatically, as it would
+make the plugin a lot more useful when my disks fail.  At the moment
+it only report a failure when there are no more spares left (it really
+should warn as soon as a disk is failing), and it do not tell me which
+disk(s) is failing when the RAID is running short on disks.&lt;/p&gt;
+</description>
+       </item>
+       
        <item>
                <title>Automatic proxy configuration with Debian Edu / Skolelinux</title>
                <link>http://people.skolelinux.org/pere/blog/Automatic_proxy_configuration_with_Debian_Edu___Skolelinux.html</link>
        <item>
                <title>Automatic proxy configuration with Debian Edu / Skolelinux</title>
                <link>http://people.skolelinux.org/pere/blog/Automatic_proxy_configuration_with_Debian_Edu___Skolelinux.html</link>
@@ -76,11 +134,11 @@ first place.  In Debian Edu, the proxy setup is updated using dhcp and
 ifupdown hooks, to make sure the configuration is updated every time
 the network setup changes.&lt;/p&gt;
 
 ifupdown hooks, to make sure the configuration is updated every time
 the network setup changes.&lt;/p&gt;
 
-The WPAD system is documented in a
+&lt;p&gt;The WPAD system is documented in a
 &lt;a href=&quot;http://tools.ietf.org/html/draft-ietf-wrec-wpad-01&quot;&gt;IETF
 draft&lt;/a&gt; and a
 &lt;a href=&quot;http://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol&quot;&gt;Wikipedia
 &lt;a href=&quot;http://tools.ietf.org/html/draft-ietf-wrec-wpad-01&quot;&gt;IETF
 draft&lt;/a&gt; and a
 &lt;a href=&quot;http://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol&quot;&gt;Wikipedia
-page&lt;/a&gt; for those that want to learn more.
+page&lt;/a&gt; for those that want to learn more.&lt;/p&gt;
 </description>
        </item>
        
 </description>
        </item>
        
@@ -564,22 +622,5 @@ from within Iceweasel instead.&lt;/p&gt;
 </description>
        </item>
        
 </description>
        </item>
        
-       <item>
-               <title>Second beta version of Debian Edu / Skolelinux based on Squeeze</title>
-               <link>http://people.skolelinux.org/pere/blog/Second_beta_version_of_Debian_Edu___Skolelinux_based_on_Squeeze.html</link>
-               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Second_beta_version_of_Debian_Edu___Skolelinux_based_on_Squeeze.html</guid>
-                <pubDate>Sat, 7 Jan 2012 22:50:00 +0100</pubDate>
-               <description>&lt;p&gt;I am happy to announce that today we managed to wrap up and publish
-the second beta version of
-&lt;a href=&quot;http://www.skolelinux.org/&quot;&gt;Debian Edu / Skolelinux&lt;/a&gt;.  If
-you want to test a LDAP backed Kerberos server with out of the box PXE
-configuration for running diskless machines and installing new
-machines, check it out.  If you need a software solution for your
-school, check it out too.  The full announcement is
-&lt;a href=&quot;http://lists.debian.org/debian-edu-announce/2012/01/msg00000.html&quot;&gt;available&lt;/a&gt;
-on the project announcement list.&lt;/p&gt;
-</description>
-       </item>
-       
         </channel>
 </rss>
         </channel>
 </rss>