Skip to content

Instantly share code, notes, and snippets.

@acidprime
Created January 9, 2012 01:50
Show Gist options
  • Save acidprime/1580533 to your computer and use it in GitHub Desktop.
Save acidprime/1580533 to your computer and use it in GitHub Desktop.
Create Hardware RAID
#!/bin/bash
# configure RAIDs
echo yes | raidutil delete volume -n Vol-RS1
echo yes | raidutil delete volume -n Vol-RS2
echo yes | raidutil delete volume -n Vol-RS3
raidutil delete raidset -n RS1
raidutil delete raidset -n RS2
raidutil delete raidset -n RS3
raidutil createraidset -n "Raid5Set" -d 1,2,3 -r 5
raidutil create volume -n "ServerHD" -r "Raid5Set" -s 100GB
raidutil create volume -n "Storage" -r "Raid5Set" -s all
# 100 GB
# 3.8 TB
#diskutil partitionDisk disk1 1 GPT HFS+ "ServerHD" 100%
#diskutil partitionDisk disk2 1 GPT HFS+ "Storage" 100%
#diskutil enableJournal /Volumes/ServerHD
#diskutil enableJournal /Volumes/Storage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment