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:
- 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.
- 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 asdisk0s2; on my system, it was listed asdisk1s2. Just be sure to note the device names so that you can use them later. - 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. - Use the
diskutil listcommand again to get the device name for the new RAID set. On my system, it was referenced asdisk9, but this will vary from system to system. - 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 actuallydisk0s2and the RAID set wasdisk9, 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.
-
In step 5, you say “the second hard disk was actually disk0s1″, but the command uses “disk1s2″ — presumably, that’s a typo?
-
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?
-
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).
No affiliations, etc.
-
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.
-
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 -
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!
-
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. -
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




12 comments
Comments feed for this article
Trackback link: http://blog.scottlowe.org/2010/07/17/enabling-raid-1-on-a-mac-mini-server/trackback/