About the Mac OS and Multiple RAID Types
Since its early days, the Mac operating system has supported multiple RAID types using AppleRAID software that is part of diskutil, the command-line tool used for formatting, partitioning, and repairing storage devices on a Mac. Until OS X El Capitan, RAID support was built into the Disk Utility app, which you could use to create and manage RAID arrays. Apple dropped the RAID support in the El Capitan version of the Disk Utility app but kept AppleRAID available for users who were willing to use Terminal and the command line. Apple returned RAID creation to Disk Utility in macOS High Sierra.
Before You Begin
Using Terminal to create a RAID 0 array, also known as a striped array, is an easy process that can be performed by any Mac user. No special skills are necessary, although you may find the Terminal app a bit strange if you’ve never used it before.
The Importance of Backups
Striped arrays provide a speed increase, but they also increase the possibility of failure. A failure of any single drive that makes up a striped array causes the entire RAID array to fail. There’s no magical method to recover data from a failed striped array, which means you should have a good backup system that you can use to restore data should a failure of the RAID array occur.
What You’ll Need
AppleRAID supports striped (RAID 0), mirrored (RAID 1), and concatenated (spanning) types of RAID. Before you create a RAID 0 array, you need:
Two or more drives that can be dedicated as slices in your striped RAID array.A current backup. The process of creating a RAID 0 array eras all the data on the drives used.
You can use just about any drive type, including hard drives, SSDs, or USB flash drives. It’s a good idea for the drives to be identical, both in size and model, although this is not a strict requirement of RAID 0.
Use Terminal to Create a RAID 0 (Striped) Array
This example uses two disks as slices of the RAID 0 array. Slices are the nomenclature used to describe the individual volumes that make up the elements of any RAID array. Format a Mac’s Drive Using Disk Utility (OS X El Capitan or later) Format a Mac’s Drive Using Disk Utility (OS X Yosemite or earlier) This causes Terminal to display all the drives connected to your Mac, along with the drive identifiers you need when creating the RAID array. Your drives are displayed by the file entry point, usually /dev/disk0 or /dev/disk1. Each drive has its individual partitions displayed, along with the size of the partition and the identifier (the name). The identifier will likely not be the same as the name you used when you formatted your drives. This example uses two drives titled Slice1 and Slice2. In the image, you can see that Slice1’s identifier is disk2s2, and Slice2’s is disk3s2. It’s the identifier that you use to create the RAID 0 array. NameofStripedArray is the name of the array that will be shown when it is mounted on your Mac’s desktop. FileFormat is the format that will be used when the striped array is created. For Mac users, this will likely be hfs+. DiskIdentifers is the identifier names you discovered using the diskutil list command.
How to Delete a Striped RAID Array Using Terminal
At some point, you may need to delete the array. Once again, you use the Terminal app combined with the diskutil command line tool to delete the RAID 0 array and return each RAID slice for use as individual volumes on your Mac. The example for creating a RAID 0 array resulted in a RAID array named FastFred. The name of your RAID will be different.