TechJunkie is a BOX20 Media Company

Home PC Windows How to Create RAID Volumes in OS X El Capitan

How to Create RAID Volumes in OS X El Capitan

How to Create RAID Volumes in OS X El Capitan

Disk Utility received its first significant makeover in years as part of the recent OS X El Capitan update, and while Apple hopes the new design will make the app easier to understand and use, the new version of Disk Utility is missing at least one crucial function: RAID support.
RAID — a redundant array of independent disks — is a technology that allows users to combine multiple physical disks into a single virtual volume in one of several ways that can increase capacity, increase speed, increase redundancy, or some combination of the three. A deeper look at RAID is beyond the scope of this tip (for a quick overview, check out this video from Techquickie‘s Linus Sebastian), but the key point is that the ability to create and manage software RAID volumes — something that was possible in previous versions of Disk Utility — is no longer available in OS X El Capitan.

disk utility raid before os x el capitan

Previous versions of Disk Utility included the ability to create and manage RAID volumes.


While El Capitan’s version of Disk Utility may be missing this important feature, the good news is that users can still perform many RAID functions via Terminal. The process isn’t as simple as the old Disk Utility GUI, but for users running Apple’s latest desktop operating system, it’s the next best thing to investing in third party software SoftRAID.
To illustrate how users can manage RAID volumes in OS X El Capitan, we’ll use an example in which we want to create a 2TB RAID 0 volume from two 1TB SSDs, labeled TB1 and TB2. The first step is to determine the disk number of each drive you wish to include in your RAID, as we’ll need this information for the Terminal command that will eventually create the RAID volume. We can obtain this information in one of two ways: via Disk Utility or via the diskutil command line function.
Looking at GUI method first, launch Disk Utility and select the first disk that is destined for your RAID volume. In our example, we’re using two Samsung 840 EVO SSDs, so we’ll select one of the disks, not volumes, from the Disk Utility sidebar on the left. With the disk selected, find the Device box on the right side of the screen and note the disk number. In our case, our SSDs are disk2 and disk3.
disk utility disk info
If you prefer to stick with Terminal, you can run the diskutil command to identify your Mac’s disk numbers. Just launch Terminal and enter the command diskutil list. You’ll get a list of each disk and volume currently connected to your Mac, along with other information such as partition scheme and name. The disk number for each disk is located on the first line of each entry. In our case, we see our 1TB disks with the TB1 and TB2 volumes and we can confirm that we’re working with disk2 and disk3.
terminal diskutil list
Be careful to select and verify the correct disk, as the next steps will erase any data on the drives. If you pick the wrong disk number — something that could be easy to do if you have many attached drives — you could accidentally wipe your data. So, as always, be careful and double-check your information before proceeding.
With the correct disks identified, it’s time to build your RAID volume. Even though the GUI method for creating RAID volumes is now gone in OS X El Capitan, you can still access the basic underlying technology in OS X to perform most functions: appleRAID.
Part of the diskutil command, appleRAID can be used to create and manage RAID 0 (striped), RAID 1 (mirrored), and JBOD (concatenated) volumes. To use it, you’ll need to enter all of the RAID configuration info manually, including the type, name, and file system format.
create raid os x el capitan
Continuing our example, we want to create a 2-disk RAID 0 volume called “Storage” with a Journaled HFS+ file system. Recalling that our two SSDs are disk2 and disk3, we’ll enter this command in Terminal:
diskutil appleRAID create stripe Storage JHFS+ disk2 disk3

The command will process for a few moments, and will automatically mount the new RAID volume when the operation is complete. If you head back to Disk Utility, you’ll now see your new RAID volume listed in the sidebar, although you won’t be able to modify it without returning to the command line.
create raid os x el capitan
As another example, if we instead wanted to create a RAID 1 volume called “Backup,” we’d use this command instead:

diskutil appleRAID create mirror Backup JHFS+ disk2 disk3

There are many additional functions that can be used with the appleRAID command, such as issuing manual or automatic rebuilds, setting timeout values, and adding or removing disks. To see them all, check out the appleRAID section of the diskutil manual page.
While these Terminal commands will suffice for simple RAID volumes, it’s important to note that we don’t know what Apple’s future plans are for RAID support in OS X, and that it would be unwise to rely on Apple’s own solutions for mission critical RAID volumes. It is therefore recommended that users with more advanced RAID needs check out third party solutions such as the aforementioned SoftRAID for software-based RAID volumes or, if your Mac supports it, one of the many hardware-based RAID solutions.

How To Fix LG V10 Not Charging Problem

Read Next 

13 thoughts on “How to Create RAID Volumes in OS X El Capitan”

Archiforma says:
Hi ,, Anyone will advise me please how to do a partition from RAID 0 disk ( 2 disk 256GB striped into 511GB) in Terminal option?
I need 2 seperate logical disks made from RAID 0, one disk 100GB for System and programs, and second disk 411Gb for data.?

It is posssible to do it in Terminal , on EI Captain system?>

Please do not advice any seperate softvare like SOFT Raid, ive been trying , iim not able to do it from it.

Need help and advice in the case.

Almo says:
I saw the RAID button until I hit erase. It’s still there. This article talks about how it’s just not there if your drives are “core storage”.
https://forums.macrumors.com/threads/no-raid-option-in-disk-utility-for-new-disks.1824436/
Brett Trigloff says:
I think I’m late to the party but i am using OS X sierra and i have the raid utility from apple built in. /System /library /coreservices /applications and boom raid utility.
Jacques Cornell says:
Yes, Apple has since added RAID support back into Disk Utility. Happened several months ago, I believe.
Giovanni Mancini says:
Ottima guida, appena montato un 3TB in mirror 1
Great guide, mount 3TB in mirror 1!
Josh Barrere says:
For those who come across this and want to use JBOD, use concat as the argument, rather than concatenate.
Jacques Cornell says:
You have GOT to be @#$%ing kidding me. Apple just doesn’t give a $^!& about apps anymore. Contacts was bad, but this is completely unforgivable.
Michael Lin says:
I’m sorry, but Apple really doesn’t care about customization anymore. Literally five seconds after encryption, my RAID0 volume already force ejected the first slice. Wonderful driver support, Apple.
Brian_M_CDN says:
useful in a 2010/2012 Mac Pro – you can stripe a couple of mirrors to create Raid 0+1 (or 1+0 depending on how you look at it)
with the command
“diskutil appleRAID create stripe Projects JHFS+ UUIDofMirror1 UUIDofMirror2”
(to get the UUID’s of the mirrors use “diskutil appleRAID list”)
by stripping 2 mirrors, the RAID should be able to handle the failure of 1 drive, and possibly 2 (if one failed in each mirror) – a slight advantage over RAID5 using an Apple RAID card from a Mac Pro, and in my testing, the performance was comparible for Reads & Writes – and no batteries to fail/need conditioning or replacement without the Apple Mac Pro RAID card.
wiredtothemaximum says:
Jim, thanks for the easy to follow example. Any suggestions on alert notifications when a raid degrades?
Brian_M_CDN says:
Until I get a scripted check in place which will report to a central reporting server, I search across many systems using Remote Desktop and the command:
“diskutil appleRAID list | grep ‘Failed'”
if no result is returned, then there is no failure – if there is a failure it tells you what disk it is.
I have found that maybe 10-20% of the time an indicated failure isn’t actually a driver failure, but just a sync issue between the 2 drives – you can force a rebuild with the existing drives which will take a few hours – so far none of the ones I’ve forced a rebuild on has had a failure again.
I determine if its an actual drive failure by deploying “SmartMonTools” onto the Macs so I can run the command
“smartctl -t short disk#” with # being the disk indicated (only takes 2-5 minutes usually)
use “smartctl -l selftest disk#” to check the results of the test.
If the short test passes , a long test may be needed which will take a few hours, if the long test passes, then I just do a rebuild with the existing disk as i mentioned above.
Kendall Bartling says:
As of 10.11.3, you need to add an additional JHFS+ to the command. The updated command is diskutil appleRAID create stripe Storage JHFS+ JHFS+ disk* disk**
Replace the * and ** with the disk numbers.
lazdnet says:
Yeah I got an error “Can’t write the RAID partition map on disk3” on 10.11.4 when running the command from the article (diskutil appleRAID create mirror Backup JHFS+ disk2 disk3), but I formatted both of the drives and tried again and it worked.
Brian_M_CDN says:
I did not get any errors using only a single “JHFS+” on more than one system I’ve used the command on recently, all running 10.11.4
smayer97 says:
You’ve made no mention of RAID 10 which was/is supported, auto rebuild settings, being able to check the status of a mirrored RAID rebuild, triggering a rebuild, block size setting, adding to or deleting volumes from a RAID.
Kevin Purcell says:
DO NOT use blocksizes other than the default 32K. In Yosemite at least there was a kernel panic bug with (mirrored) raid sets with blocksizes other than the default (i.e. customized raid volumes created under early operating systems). There is no way to fix the blocksize once it’s set (as mounting the disk KPs the Mac) except to use a Mac that doesn’t KP (e.g. old PPC Mac in my case).
For the other commands in terminal, type
diskutil AppleRAID
to see all of the sub-commands. You can get help on each of those subsubcommands with, for example,
diskutil AppleRAID repairMirror
For autorebuilding (I’ve not tried this on 10.10 or 10.11) set the AutoRebuild property to 1 and then check it’s set
diskutil appleRAID update AutoRebuild 1 disk#
diskutil appleRAID list
Sebastian Ritland says:
Getting this message when entering the command in terminal:
Started RAID operation
Unmounting proposed new member disk2
Error: -69888: Couldn’t unmount disk
Any ideas?
Snowfox1111 says:
Need to make sure there are no windows opened to that dive more any apps accessing an open file in it as well. Also if there is a virtual drive already mounted on that drive – as in Western Digital had a dive management utility that would create a virtual CD/CDROM for creating a ‘safety zone’ (partition) on their drives so that you could unmount the main partition to do file reparations etc.
Morgan says:
Thanks for the Terminal Example ! Agree with rharder, it’s so frustrating “simple” , when you know …! A french guys ;-)
rharder says:
Thanks for the Terminal example. So frustrating — “simple” in the Mac ecosystem used to mean “easy but still powerful.” Now simple seems to mean emasculated. Are there no hard core computer users at Apple anymore? Sorry for the rant. Thanks again for the RAID example.
-Rob

Leave a Reply

Your email address will not be published. Required fields are marked *


Jim Tanous

Nov 24, 2015

676 Articles Published

More