<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dw="https://www.dreamwidth.org">
  <id>tag:dreamwidth.org,2013-12-31:2137567</id>
  <title>Import That!</title>
  <subtitle>Steven D'Aprano</subtitle>
  <author>
    <name>Steven D'Aprano</name>
  </author>
  <link rel="alternate" type="text/html" href="https://import-that.dreamwidth.org/"/>
  <link rel="self" type="text/xml" href="https://import-that.dreamwidth.org/data/atom"/>
  <updated>2014-05-01T01:32:47Z</updated>
  <dw:journal username="import_that" type="personal"/>
  <entry>
    <id>tag:dreamwidth.org,2013-12-31:2137567:4236</id>
    <link rel="alternate" type="text/html" href="https://import-that.dreamwidth.org/4236.html"/>
    <link rel="self" type="text/xml" href="https://import-that.dreamwidth.org/data/atom/?itemid=4236"/>
    <title>The importance of RAID</title>
    <published>2014-04-27T15:05:12Z</published>
    <updated>2014-05-01T01:32:47Z</updated>
    <category term="backups"/>
    <category term="linux"/>
    <dw:security>public</dw:security>
    <dw:reply-count>0</dw:reply-count>
    <content type="html">Backups are important, right? Really important. Computers die. Hard drives die. If you don't have backups, data may be lost for ever.&lt;br /&gt;&lt;br /&gt;But making backups is a nuisance, it'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'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="http://en.wikipedia.org/wiki/RAID"&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'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's not really practical in a laptop, but in a desktop or server, I couldn't do without it. RAID isn't really designed as a backup system, but it behaves as a poor man's backup. Or perhaps a slack person'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't included in the RAIDed partition. So I had a situation like this:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-left: 40px;"&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="https://en.wikipedia.org/wiki/Network_File_System"&gt;NFS&lt;/a&gt;). Since neither disk had &lt;a href="https://en.wikipedia.org/wiki/GNU_GRUB"&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'm a system administrator. A man'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'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="https://www.dreamwidth.org/tools/commentcount?user=import_that&amp;ditemid=4236" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
</feed>
