Enabling RAID 1 on a Mac Mini Server

Today I bought a new Mac Mini running Mac OS X Server to replace an aging home-built Linux server that supports my home network. You might recall that in early 2009 I wrote an article about how I had worked to provide some Ubuntu-Mac integration on the home network. Although the integration has worked well since that time, many of the functions that the Ubuntu server was providing have since been taken over by an Iomega ix4-200d NAS box. It’s the Iomega that now handles all my Time Machine backups and CIFS/AFP file sharing. In addition, I’ve been looking for a way to create a “master” iTunes library for the entire house, and the Linux server with Firefly Media Server, while powerful, just wasn’t doing what I needed it to do. So I figured I’d replace it with an Intel-based Mac Mini running Mac OS X Server. The network services the Linux server is now providing would either be replaced by the Mac Mini or by VMs running on the Mac Mini vis VMware Fusion.

After I bought the Mac mini and brought it home, I was dismayed to find that Apple hadn’t enabled RAID 1 on the dual 500GB hard drives in the system. Unfortunately, enabling RAID 1 mirroring on the hard drives wasn’t as simple as using Disk Utility. I did find a way, and in the interest of helping others, here are the steps that I followed. As I type this, my Mac Mini server is downstairs rebuilding it’s RAID 1 mirror set.

Here are the steps to follow to enable RAID 1 on the drives in your Mac Mini Server:

  1. First, you’ll need to boot from some source other than one of the internal hard drives. I chose to use the Mac OS X Remote Install application, found in the Utilities folder. This allows your Mac Mini server, which doesn’t have an optical drive, to boot from the optical drive on another Mac on your network (that’s assuming, of course, you have another Mac on your network). The procedure for booting remotely using the Remote Install application are already well documented, so I won’t bother to include them again here.
  2. Once you’ve booted remotely, open a Terminal window and use this command to list the disks and volumes in your system:
     
    diskutil list
     
    In all the online guides to this process, the “Server HD” volume was always listed as disk0s2; on my system, it was listed as disk1s2. Just be sure to note the device names so that you can use them later.
  3. Use this command to convert the existing “Server HD” volume to a RAID 1 mirror:
     
    diskutil appleRAID enable mirror <device name for “Server HD”>
     
    Mac OS X will convert the existing “Server HD” volume into a RAID 1 mirror with only one member. From what I can tell, this process is instantaneous and takes effect immediately.
  4. Use the diskutil list command again to get the device name for the new RAID set. On my system, it was referenced as disk9, but this will vary from system to system.
  5. Next, add the second hard disk as a member to the RAID 1 set:
     
    diskutil appleRAID add member <device name for second hard disk> <device name for RAID set>
     
    For example, on my system the second hard disk was actually disk0s2 and the RAID set was disk9, so the command looked like this:
     
    diskutil appleRAID add member disk0s2 disk9
     
    And that should do it! Mac OS X will add the second drive to the RAID 1 set and begin the rebuilding process. If you do this right after unboxing your new Mac Mini, it will minimize the amount of time required.

I’m still waiting on my Mac Mini to finish the rebuilding process, so I’ll update this post if I discover something unusual or find that some additional steps are necessary to make everything work.

Tags: ,

  1. LWR’s avatar

    In step 5, you say “the second hard disk was actually disk0s1″, but the command uses “disk1s2″ — presumably, that’s a typo?

  2. slowe’s avatar

    LWR, there were errors all over the post! I’ve corrected them, thanks for pointing that out. That’s what you get for posting a blog entry late in the evening when you’re tired…

  3. Gallop’s avatar

    My goodness that is a lot of work. Ru asking too much of what you bought? Or did you way over buy for what you are trying to do. You should probably write another article on not letting platform bias compellimg you into a purchase. What is the per gb cost of mirrored drives on a Mac mini?

  4. Andrew Miller’s avatar

    If you haven’t already, take a look at SoftRAID….MUCH more robust/feature-rich than the built-in RAID offering on OS X (I used it in a previous life for some production Mac servers).

    http://www.softraid.com

    No affiliations, etc.

  5. slowe’s avatar

    Gallop, I certainly didn’t buy the Mac Mini Server on the metric of cost/GB; there are far cheaper solutions if that is your primary metric. As I pointed out in the post, there were other motivations that led me to choose a Mac Mini Server for this solution. I’m clearly not biased against Linux, as I’ve used Linux as my home server for YEARS, and it’s quite likely that I’ll end up with one or more Linux- or UNIX-based VMs to provide various home network services. In the end, it’s all about finding the right solution to your needs. In this particular case, it was a Mac Mini Server.

    Thanks for your comment!

  6. slowe’s avatar

    Andrew, thanks for the recommendation. I’ll have a look!

  7. Justin Paul’s avatar

    I have never been a huge Mac fan, but the Mini line of desktops and servers are pretty darn cool looking. Let us know in a few months how its working out for you, I have considered getting one a couple times.

  8. jeffrey wolfanger’s avatar

    Good post…”As I pointed out in the post, there were other motivations that led me to choose a Mac Mini Server for this solution” I can see using a Mac Mini for wife approval factor too. Not all tech gadgets get that ok in my house :)

    I use a Macbook Pro with Fusion now….Kind of upset that I have to buy fusion again to get on the latest release.

  9. Steve Jones’s avatar

    I am the chief programmer for Applied Computer Technology (ACT), a small consulting and software development company near Atlanta. Because of my frustration with the existing software to mirror my Mac mini server’s hard drives, I developed aMirrorVault (AMV), which is now available on my company’s website: http://www.actmac.com. (A demo download is also available.)

    To use AMV to mirror a Mac mini server (HD’s with factory disk partitioning):
    Install the AMV software
    Use Disk Utility’s GUI to copy the OS HD to the 2nd HD (should be empty)
    Boot on the 2nd HD
    Promote the OS HD to a mirror
    Boot on the mirror
    Add the 2nd HD to the mirror as the 2nd pane and build

  10. Robert Pelletier’s avatar

    I can’t garantee what I’m going to say is true, since I’ve never booted a my via remote install, but you can build a RAID with Disk Utility! In fact, I did a RAID-10 in my MacPro with it. (wierd thing, I moved from a custom built Linux server to a Mac Pro in the beginning of june.. I don’t regret a thing!)

    I did it all with the RAID tab in disk utility. I created 3 RAID Arrays, 2 RAID-1 with 2 disks, and a RAID-0 of those 2 RAID-1.

    The thing is really enjoyable. Hope you like it!

  11. Nicnac’s avatar

    Wow complicated.
    Or, you could connect a USB DVD drive, boot the mini server from the Snow Leopard Server DVD, and use disk utility to do the setup and install the OS.

  12. James’s avatar

    I am also going to implement a similar solution however I already have a MacBook Air and the Super Drive for the MBA is supposed to work with the MacMini Server