<?xml version='1.0' encoding='utf-8' ?>

<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:atom10='http://www.w3.org/2005/Atom'>
<channel>
  <title>Import That!</title>
  <link>https://import-that.dreamwidth.org/</link>
  <description>Import That! - Dreamwidth Studios</description>
  <lastBuildDate>Sun, 27 Apr 2014 15:05:12 GMT</lastBuildDate>
  <generator>LiveJournal / Dreamwidth Studios</generator>
  <lj:journal>import_that</lj:journal>
  <lj:journaltype>personal</lj:journaltype>
  <image>
    <url>https://v2.dreamwidth.org/7214752/2137567</url>
    <title>Import That!</title>
    <link>https://import-that.dreamwidth.org/</link>
    <width>100</width>
    <height>100</height>
  </image>

<item>
  <guid isPermaLink='true'>https://import-that.dreamwidth.org/4236.html</guid>
  <pubDate>Sun, 27 Apr 2014 15:05:12 GMT</pubDate>
  <title>The importance of RAID</title>
  <link>https://import-that.dreamwidth.org/4236.html</link>
  <description>Backups are important, right? Really important. Computers die. Hard drives die. If you don&apos;t have backups, data may be lost for ever.&lt;br /&gt;&lt;br /&gt;But making backups is a nuisance, it&apos;s a chore, one of those things that you feel virtuous for doing a few times and then get distracted or bored and stop doing. Especially with home systems, it&apos;s easy to be slack.&lt;br /&gt;&lt;br /&gt;About a week ago, I had a hard drive suddenly die in my home server. And I had no backups. Oops.&lt;br /&gt;&lt;br /&gt;Fortunately, I did have &lt;a href=&quot;http://en.wikipedia.org/wiki/RAID&quot;&gt;RAID&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Although one drive had died, the second hard drive in the RAID array was okay, with a complete copy of all my data, including a working operating system, and my server just kept going. After a couple of days, I got a new hard drive, moved furniture around so I could actually get to the server, replaced the hard drive (and the long-dead DVD drive as well), moved everything back, and ... the damn server wouldn&apos;t boot.&lt;br /&gt;&lt;br /&gt;Hmmmm.&lt;br /&gt;&lt;br /&gt;As far as I am concerned, RAID is fantastic. It&apos;s not really practical in a laptop, but in a desktop or server, I couldn&apos;t do without it. RAID isn&apos;t really designed as a backup system, but it behaves as a poor man&apos;s backup. Or perhaps a slack person&apos;s backup. It lets you keep going even in the face of an otherwise catastrophic hard drive failure. But it does have one horrible flaw: the boot loader isn&apos;t included in the RAIDed partition. So I had a situation like this:&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;margin-left: 40px;&quot;&gt;&lt;pre&gt;Before the disk died:

    +--------+-----------------------------+
hda |  GRUB  |      RAIDed Partitions      |  &amp;lt;== Boots from this drive.
    +--------+-----------------------------+

    +--------+-----------------------------+
hdb | blank  |      RAIDed Partitions      |
    +--------+-----------------------------+


After the disk was replaced:

    +--------+-----------------------------+
hda | blank  |      RAIDed Partitions      |  &amp;lt;== The former hdb, moved.
    +--------+-----------------------------+

    +--------+-----------------------------+
hdb | blank  |      blank                  |  &amp;lt;== The replacement drive.
    +--------+-----------------------------+&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;So here I was with two good disks and no working computers (all my desktops mount their home from the server via &lt;a href=&quot;https://en.wikipedia.org/wiki/Network_File_System&quot;&gt;NFS&lt;/a&gt;). Since neither disk had &lt;a href=&quot;https://en.wikipedia.org/wiki/GNU_GRUB&quot;&gt;GRUB&lt;/a&gt; installed, there was no way to boot from either of them. After making an attempt to fix the situation with the Centos recovery system, I soon decided that this was beyond my level of expertise. (I might administer my own system, but I have no illusions that I&apos;m a system administrator. A man&apos;s got to know his limitations.) Fortunately I was able to get one of the sys admins that I work with to re-install GRUB (thanks David!), this time on &lt;em&gt;both&lt;/em&gt; hard drives, and configure RAID for the new drive.&lt;br /&gt;&lt;br /&gt;The moral of this story:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Backups are important.&lt;/strong&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;RAID makes a nifty backup for slackers.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;But when you configure RAID, your Linux installer probably won&apos;t install GRUB on both drives. You need to do it yourself.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=import_that&amp;ditemid=4236&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://import-that.dreamwidth.org/4236.html</comments>
  <category>backups</category>
  <category>linux</category>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
</channel>
</rss>
